From e0d74c2b95d8d33719ba79932003b47f61fcc79a Mon Sep 17 00:00:00 2001 From: encode42 Date: Wed, 4 Feb 2026 23:34:39 -0500 Subject: [PATCH] Add Vivecraft config --- config/vivecraft-server-config.toml | 205 ++++++++++++++ .../config/vivecraft-client-config.json | 259 ++++++++++++++++++ index.toml | 8 + pack.toml | 2 +- 4 files changed, 473 insertions(+), 1 deletion(-) create mode 100644 config/vivecraft-server-config.toml create mode 100644 configureddefaults/config/vivecraft-client-config.json diff --git a/config/vivecraft-server-config.toml b/config/vivecraft-server-config.toml new file mode 100644 index 0000000..5313ee7 --- /dev/null +++ b/config/vivecraft-server-config.toml @@ -0,0 +1,205 @@ + +#General Settings +[general] + #Will log clients that connect with Vivecraft and their Vivecraft version. + debug = false + #Will check for new mod versions when an OP logs into the server and sends a system message to them. + checkForUpdate = false + #What updates to check for. + # r: Release, b: Beta, a: Alpha + checkForUpdateType = "r" + #Set to 'true' to only allow VR players to join the server. + # If enabled, VR hotswitching will be automatically disabled. + vr_only = false + #Set to 'true' to only allow players that have Vivecraft installed to join the server. + vive_only = false + #Set to 'true', to allow server OPs to bypass VR/Vivecraft only settings. + allow_op = true + #Seconds to wait before kicking a player or sending the welcome messages. + # The player's client must send the Vivecraft VERSION info in this time. + # default: 10.00, min: 0.00, max: 100.00 + messageAndKickDelay = 10.0 + #Gives VR Players fun cakes and drinks at random, when they respawn. + vrFun = false + #Sends the player position data also back to the player that sent it, usually not needed. + # Enable this on a dedicated server when using replay mod or something similar. + sendDataToOwner = false + +#Configure messages that are sent when players do specific actions. +#Set message to nothing to not send. e.g., leaveMessage = "" +# Use '%s' in any message for the player name. +# For messages that take two placeholders (i.e., death by mob) use '%1$s' for the player name and '%2$s' for the second placeholder. +[messages] + #Enable or disable all messages. + enabled = false + #Message sent when a player joins with VR active. + welcomeVR = "%s has joined with standing VR!" + #Message sent when a player joins with VR not active. + welcomeNonVR = "%s has joined with Non-VR companion!" + #Message sent when a player joins with VR in seated mode. + welcomeSeated = "%s has joined with seated VR!" + #Message sent when a player joins without vivecraft installed. + welcomeVanilla = "%s has joined as a Muggle!" + #Message sent when a player leaves the server. + leaveMessage = "%s has disconnected from the server!" + #Message sent when a player dies with VR active. + deathVR = "%s died in standing VR!" + #Message sent when a player dies with VR not active. + deathNonVR = "%s died in Non-VR companion!" + #Message sent when a player dies with VR in seated mode. + deathSeated = "%s died in seated VR!" + #Message sent when a player dies without Vivecraft. + deathVanilla = "%s died as a Muggle!" + #Message sent when a player dies because of a mob with VR active. + deathByMobVR = "%1$s was slain by %2$s in standing VR!" + #Message sent when a player dies because of a mob with VR not active. + deathByMobNonVR = "%1$s was slain by %2$s in Non-VR companion!" + #Message sent when a player dies because of a mob with VR in seated mode. + deathByMobSeated = "%1$s was slain by %2$s in seated VR!" + #Message sent when a player dies because of a mob without Vivecraft. + deathByMobVanilla = "%1$s was slain by %2$s as a Muggle!" + #Message sent to a player when they get kicked because of the 'Vivecraft Only' setting. + KickViveOnly = "This server is configured for Vivecraft players only." + #Message sent to a player when they get kicked because of the 'VR Only' setting. + KickVROnly = "This server is configured for VR players only." + +#Vanilla Modifications for VR Players +[vrChanges] + #Distance at which creepers swell and explode for standing VR players. + # Vanilla distance: 3 + # default: 1.75, min: 0.10, max: 10.00 + creeperSwellDistance = 1.75 + #Adjusts the range in which mobs can use melee attacks against standing VR players. + # This is a reduction to the vanilla range (0.8 blocks), so 0.0 causes no change, and -0.7 means the mobs need to almost touch the player to cause an attack. + # When set very low, mobs might stop right in front of the player without attacking! + # default: -0.40, min: -0.70, max: 0.00 + mobAttackRangeAdjustment = -0.4 + #Allows vr players to hit/mine with their non-dominant hand items. + dualWielding = true + #Melee damage addition for VR players when hitting with their feet. + # This scales with the armor attribute of the boots, doing one additional damage per Armor level, times this multiplier + # Set to 0.0 to disable. + # default: 0.00, min: 0.00, max: 5.00 + bootsArmorDamage = 0.0 + #Projectiles by default have an inaccuracy to not shoot in the same direction all the time. + # With this, the inaccuracy can be adjusted for VR players. + # 1.0 is equal to vanilla, 0.0 is no inaccuracy at all. + # default: 1.00, min: 0.00, max: 1.00 + projectileInaccuracyMultiplier = 1.0 + #Allows VR players to bypass the vanilla block breaking check, which prevents breaking blocks too fast. + allowFasterBlockBreaking = false + #Allows VR players to block attacks by holding their shield up, without needing to actively use it. This means they can block attacks without needing to slow down. + allowRoomscaleShieldBlocking = true + #Allows VR players to attack entities, while they are actively using a shield. (This setting does not affect roomscale shield blocking) + allowAttacksWhileBlocking = true + + #Bow Damage Adjustments + [vrChanges.bow] + #Archery damage multiplier for VR players in standing mode. + # Set to 1.0 to disable. + # default: 2.00, min: 1.00, max: 10.00 + standingMultiplier = 1.0 + #Archery damage multiplier for VR players in seated mode. + # Set to 1.0 to disable. + # default: 1.00, min: 1.00, max: 10.00 + seatedMultiplier = 1.0 + #Headshot damage multiplier for VR players in standing mode. + # Set to 1.0 to disable. + # default: 3.00, min: 1.00, max: 10.00 + standingHeadshotMultiplier = 1.5 + #Headshot damage multiplier for VR players in seated mode. + # Set to 1.0 to disable. + # default: 2.00, min: 1.00, max: 10.00 + seatedHeadshotMultiplier = 1.5 + #Headshot damage multiplier for Vanilla/NonVR players. + # Set to 1.0 to disable. + # default: 1.00, min: 1.00, max: 10.00 + vanillaHeadshotMultiplier = 1.5 + #Indicator to notify players that they got a headshot. Options are: + # "NONE": No indicator. + # "AUDIO": Plays a sound near the shooter. + # "VISUAL": Spawns particles at the hit location. + # "BOTH": Both Audio and Visual indicators. + headshotIndicator = "AUDIO" + +#PVP Settings +[pvp] + #Notifies the player that tried to cause damage, that it was blocked from the server. + notifyBlockedDamage = false + #Allows Standing VR players to damage each other. + VRvsVR = true + #Allows Seated VR players to damage each other. + SEATEDVRvsSEATEDVR = true + #Allows Standing VR players and Non VR players to damage each other. + VRvsNONVR = true + #Allows Seated VR players and Non VR players to damage each other. + SEATEDVRvsNONVR = true + #Allows Standing VR players and Seated VR Players to damage each other. + VRvsSEATEDVR = true + +#Climbey Motion Settings +[climbey] + #Allows the use of 'Jump Boots' and 'Climb Claws'. + enabled = false + #Specifies how the blocks in the blocklist are interpreted. Options are: + # "DISABLED": List is ignored. All blocks are climbable. + # "WHITELIST": Only blocks on the list are climbable. + # "BLACKLIST": All blocks are climbable except those on the list + blockmode = "DISABLED" + #List of block names for use with WHITELIST/BLACKLIST block mode. + # Blocks can be of the form 'blockid' for vanilla or 'modid:blockid' for modded blocks + blocklist = ["white_wool", "dirt", "grass_block"] + +#Roomscale Crawling Settings +[crawling] + #Allows VR players to get into the crawl state by getting low to the ground. Disabling does not prevent vanilla crawling. + enabled = true + +#Teleport Settings +[teleport] + #Allows VR players to use teleport movement. It is recommended to leave this enabled for players prone to VR sickness. + # Disabling this only works for Vivecraft 1.3.0+ clients. + enabled = true + #Enforces limited teleport range and frequency in Survival. + limitedSurvival = true + #Maximum number of blocks players in Survival mode can teleport up. Set to 0 to disable. + # default: 4, min: 1, max: 16 + upLimit = 4 + #Maximum number of blocks players in Survival mode can teleport down. Set to 0 to disable. + # default: 4, min: 1, max: 16 + downLimit = 4 + #Maximum number of blocks players in Survival mode can teleport horizontally. Set to 0 to disable. + # default: 16, min: 1, max: 32 + horizontalLimit = 16 + +#Worldscale Settings +[worldScale] + #Limit the range of worldscales players are allowed to use. + limitRange = false + #Lower limit of allowed worldscale + # default: 0.50, min: 0.10, max: 100.00 + min = 0.5 + #Upper limit of allowed worldscale + # default: 2.00, min: 0.10, max: 100.00 + max = 2.0 + +#Other Clientsetting Overrides +[settingOverrides] + #Forces players to use the 'Raw Item Positions' setting + thirdPersonItems = false + #Forces players to use the 'Raw Item Positions' setting, only for items with custom model data/custom item models. + thirdPersonItemsCustom = false + +#VR Hotswitch Settings +[vrSwitching] + #Allows players to switch between VR and NonVR on the fly. + # If disabled, they will be locked to the mode they joined with. + enabled = true + +#Debug Settings +[debug] + #Will spawn particles at VR players device positions, to indicate the server VR data state. + debugParticles = false + #Will spawn particles at VR players head position, to indicate the server VR data state. + debugParticlesHead = false + diff --git a/configureddefaults/config/vivecraft-client-config.json b/configureddefaults/config/vivecraft-client-config.json new file mode 100644 index 0000000..f602079 --- /dev/null +++ b/configureddefaults/config/vivecraft-client-config.json @@ -0,0 +1,259 @@ +{ + "mrMovingCamOffsetZ": "0.0", + "smoothTick": "false", + "mrMovingCamOffsetY": "0.0", + "mrMovingCamOffsetX": "0.0", + "crawlThreshold": "0.82", + "modelArmsMode": "COMPLETE", + "reverseShootingEye": "false", + "fbtExtendedCalibrated": "false", + "closeWithRuntime": "true", + "physicalKeyboardScale": "1.0", + "renderTrackerPositions": "false", + "disableShaderOptimization": "false", + "keyboardKeys": "`1234567890-=qwertyuiop[]\\asdfghjkl;':\"zxcvbnm,./?<>", + "FBTOFFSETS": "0.0,0.0,0.0;0.0,0.0,0.0;0.0,0.0,0.0;0.0,0.0,0.0;0.0,0.0,0.0;0.0,0.0,0.0;0.0,0.0,0.0", + "applyPlayerWorldscale": "false", + "weaponCollisionNew": "AUTO", + "vrTouchHotbar": "true", + "useCrosshairOcclusion": "true", + "displayMirrorMode": "CROPPED", + "vrFixedCamrotW": "0.962", + "vrFixedCamrotZ": "0.041", + "realisticRowEnabled": "true", + "vrFixedCamrotY": "0.239", + "vrFixedCamrotX": "0.125", + "low_health_indicator": "true", + "version": "0", + "mixedRealityAlphaMask": "false", + "handCameraFov": "70.0", + "lastUpdate": "", + "nullvrFOV": "110.0", + "unlabeledTrackersUsed": "false", + "playerWalkAnim": "true", + "reverseHands": "false", + "keyboardKeysShift": "~!@#$%^&*()_+QWERTYUIOP{}|ASDFGHJKL;':\"ZXCVBNM,./?<>", + "thirdPersonItems": "false", + "controllerTransform": "AUTO", + "worldScale": "1.0", + "feetBodyPosition": "true", + "alwaysShowUpdates": "true", + "playerModelArmsScale": "0.5", + "renderVrPlayerAxes": "false", + "hudDistance": "1.25", + "stencilOn": "true", + "hudPitchOffset": "-2.0", + "onlySwordCollision": "false", + "vehicleRotation": "true", + "autoSprint": "true", + "playerLimbsConnected": "true", + "teleportLimitDown": "4", + "ySensitivity": "1.0", + "teleportLimitUp": "1", + "allowAdvancedBindings": "false", + "playerArmAnim": "true", + "mrMovingCamOffsetRotW": "1.0", + "pumpkinEffect": "true", + "seatedHudAltMode": "true", + "guiScale": "0", + "insideBlockSolidColor": "false", + "autoCloseKeyboard": "true", + "mrMovingCamOffsetRotZ": "-0.0", + "headHudScale": "1.0", + "debugCameraTracker": "false", + "autoSprintThreshold": "0.9", + "mrMovingCamOffsetRotX": "-0.0", + "mrMovingCamOffsetRotY": "-0.0", + "QUICKCOMMAND_9": "take this!", + "waterEffect": "true", + "QUICKCOMMAND_1": "/gamemode creative", + "menuBackground": "false", + "QUICKCOMMAND_2": "/help", + "QUICKCOMMAND_3": "/home", + "simulateFalling": "true", + "portalEffect": "true", + "QUICKCOMMAND_4": "/sethome", + "QUICKCOMMAND_5": "/spawn", + "QUICKCOMMAND_6": "hi!", + "realisticSneakEnabled": "true", + "QUICKCOMMAND_7": "bye!", + "QUICKCOMMAND_8": "follow me!", + "analogMovement": "true", + "QUICKCOMMAND_0": "/gamemode survival", + "playerModelType": "VANILLA", + "headToHmdLength": "0.10000000149011612", + "chatNotificationSound": "block.note_block.bell", + "jumpThreshold": "0.05", + "movementSpeedMultiplier": "1.0", + "seated": "false", + "dualMirrorCrop": "false", + "doubleGUIResolution": "false", + "physicalKeyboardTheme": "DEFAULT", + "limitedTeleport": "true", + "guiOnMirror": "OFF", + "RADIALALT_11": "", + "RADIALALT_10": "", + "RADIALALT_13": "", + "RADIALALT_12": "", + "bowMode": "ON", + "allowStandingOriginOffset": "false", + "crosshairScalesWithDistance": "false", + "autoCalibration": "-1.0", + "renderInGameCrosshairMode": "ALWAYS", + "worldRotation": "0.0", + "displayMirrorCenterSmooth": "0.0", + "alwaysSimulateKeyboard": "false", + "keyholeX": "15.0", + "mixedRealityRenderCameraModel": "true", + "thirdPersonItemsCustom": "true", + "useFuzzySearch": "true", + "fovRedutioncOffset": "0.1", + "RADIAL_2": "vivecraft.key.rotateRight", + "RADIAL_3": "key.pickItem", + "RADIAL_0": "key.drop", + "disableGarbageCollectorMessage": "false", + "RADIAL_1": "key.chat", + "RADIAL_6": "vivecraft.key.rotateLeft", + "RADIAL_7": "vivecraft.key.quickTorch", + "doorHitting": "true", + "RADIAL_4": "vivecraft.key.toggleHandheldCam", + "RADIAL_5": "vivecraft.key.togglePlayerList", + "rememberVr": "true", + "hudOcclusion": "true", + "RADIAL_8": "", + "RADIAL_9": "", + "aimDevice": "CONTROLLER", + "playerLimbsLimit": "false", + "mixedRealityGui": "FIRST", + "keyboardLayoutOrder": "custom;en_us", + "mixedRealityUndistorted": "true", + "vrSettingsButtonPositionLeft": "true", + "vrFreeMoveMode": "CONTROLLER", + "walkMultiplier": "1.0", + "fovReduction": "false", + "menuAlwaysFollowFace": "false", + "renderAllPasses": "false", + "hudMaxScale": "false", + "vrHudLockMode": "WRIST", + "blockIntelWindows": "true", + "shouldRenderSelf": "false", + "menuWorldSelection": "BOTH", + "showMirrorOffText": "true", + "useFsaa": "false", + "renderScaleFactor": "1.0", + "showServerPluginMissingMessageAlways": "true", + "realisticBlockInteractEnabled": "true", + "crosshairScale": "1.0", + "hideGUI": "false", + "mainPlayerDataSource": "REALTIME", + "sneakThreshold": "0.4", + "ingameBindingsInGui": "false", + "RADIALALT_4": "", + "RADIALALT_3": "", + "RADIALALT_2": "", + "RADIALALT_1": "", + "RADIALALT_0": "", + "mirrorCrop": "0.15", + "mixedRealityKeyColor": "0,0,0", + "oscTrackerPort": "9000", + "showPlayerHands": "true", + "realisticJumpEnabled": "AUTO", + "vrRadialButtons": "8", + "shaderFullSizeShadowLimbs": "true", + "originOffset": "0.0,0.0,0.0", + "vrToggleButtonEnabled": "true", + "roomscaleSpearLunge": "true", + "handCameraResScale": "1.0", + "forceHardwareDetection": "0", + "realisticClimbEnabled": "true", + "forceStandingFreeMove": "false", + "renderHeadHitbox": "false", + "inertiaFactor": "NORMAL", + "FBTROTATIONS": "1.0,0.0,0.0,0.0;1.0,0.0,0.0,0.0;1.0,0.0,0.0,0.0;1.0,0.0,0.0,0.0;1.0,0.0,0.0,0.0;1.0,0.0,0.0,0.0;1.0,0.0,0.0,0.0", + "freezeEffect": "true", + "mixedRealityFov": "40.0", + "vrServerBlacklist": "mc.hypixel.net", + "playerModelLegScale": "1.0", + "xSensitivity": "1.0", + "teleportLimitHoriz": "16", + "nullvrEyeAngle": "2.0", + "monoFOV": "0.0", + "physicalKeyboard": "true", + "autoOpenKeyboard": "OFF", + "realisticSwimEnabled": "true", + "keyboardCodes": "96;49;50;51;52;53;54;55;56;57;48;45;61;81;87;69;82;84;89;85;73;79;80;91;93;92;65;83;68;70;71;72;74;75;76;59;39;-1;-1;90;88;67;86;66;78;77;44;46;47;-1;-1;-1", + "RADIALALT_9": "", + "stereoProviderPluginID": "OPENVR", + "RADIALALT_8": "", + "RADIALALT_7": "", + "RADIALALT_6": "", + "RADIALALT_5": "", + "worldRotationXSensitivity": "1.0", + "keyboardPressBinds": "false", + "radialModeHold": "true", + "chatNotifications": "SOUND", + "renderBlockOutlineMode": "ALWAYS", + "guiAnisotropicFiltering": "true", + "showServerPluginMessage": "NEVER", + "showServerVrChangesMessage": "SERVER_ONLY", + "vrHudWristOffset": "1.0", + "reducedPlayerReach": "true", + "modifyPauseMenu": "true", + "guiAppearOverBlock": "true", + "realisticDismountEnabled": "true", + "dualMirrorSwap": "false", + "bcbOn": "true", + "hrtfSelection": "0", + "menuCrosshairScale": "1.0", + "renderDeviceAxes": "false", + "seatedhmd": "false", + "digitalMovementDeadzone": "0.5", + "rightclickDelay": "VANILLA", + "displayMirrorUseScreenshotCamera": "false", + "manualCalibration": "-1.0", + "allowCrawling": "true", + "smoothRunTickCount": "20", + "physicalGuiEnabled": "false", + "vrHotswitchingEnabled": "true", + "hudYawOffset": "0.0", + "RADIAL_10": "", + "menuWorldFallbackPanorama": "true", + "shaderPatching": "true", + "fovReductionMin": "0.25", + "swordBlockCollision": "true", + "externalCameraAngleOrder": "XZY", + "RADIAL_12": "", + "gameplayTrackerToRender": "", + "guiMipmaps": "false", + "RADIAL_11": "", + "vrFixedCamposX": "-1.0", + "realisticEntityInteractEnabled": "true", + "RADIAL_13": "", + "stencilBufferDisable": "false", + "vrFixedCamposY": "2.5", + "fbtCalibrated": "false", + "vrFixedCamposZ": "2.7", + "QUICKCOMMAND_11": "praise the sun!", + "QUICKCOMMAND_10": "thank you!", + "mixedRealityRenderHands": "false", + "hudOpacity": "1.0", + "vrWorldRotationIncrement": "45.0", + "vrFreeMoveFlyMode": "AUTO", + "feetCollision": "true", + "renderGameplayTrackers": "false", + "mixedRealityUnityLike": "true", + "nullvrIPD": "0.1", + "backpackSwitching": "true", + "playerModelBodyScale": "1.0", + "vrSettingsButtonEnabled": "true", + "shaderGUIRender": "AFTER_SHADER", + "displayMirrorLeftEye": "false", + "selfButtSparklesInFirstPerson": "false", + "vrEnabled": "false", + "hitIndicator": "true", + "walkUpBlocks": "true", + "seatedFreeMove": "false", + "updateType": "RELEASE", + "showChatMessageStencil": "true", + "fullReloadOnInit": "false" +} \ No newline at end of file diff --git a/index.toml b/index.toml index 0d31cce..00e1f3c 100644 --- a/index.toml +++ b/index.toml @@ -92,6 +92,10 @@ hash = "4b7f139690d13bfe1d3abb68e8c44c3bd0708778d7d6a7440584113db5b68c79" file = "config/universal-graves/models/modified_default.json" hash = "6585cf34c6ea5c7b0462cc7bdd032eb728bd14f1e644eee87df73fefbc11402c" +[[files]] +file = "config/vivecraft-server-config.toml" +hash = "b3164ed754b84fce7a787de306a71346cc432d474148e2ad94eb4729be4807a8" + [[files]] file = "config/voicechat/voicechat-server.properties" hash = "b7a88ee8cde6ed604eb8e8a03619545472b204f3cee20ab64085349c633fde26" @@ -104,6 +108,10 @@ hash = "abbad71b44fd62da1c2d38395cb535659055aa80df1b0d2cd9c764ad38986e7f" file = "configureddefaults/config/modmenu.json" hash = "cbb272545d031a7343779e03311612d915d29c96883a82f1652d580857104649" +[[files]] +file = "configureddefaults/config/vivecraft-client-config.json" +hash = "d203c0207854c6724676a7f46c6263c222bead85c915225fbb0c75193cd0b834" + [[files]] file = "configureddefaults/options.txt" hash = "820cb4a18e847108dac2024aaceaf4071b83b3c762f200055795fc43c78b55ba" diff --git a/pack.toml b/pack.toml index 295ff80..ead68eb 100644 --- a/pack.toml +++ b/pack.toml @@ -6,7 +6,7 @@ pack-format = "packwiz:1.1.0" [index] file = "index.toml" hash-format = "sha256" -hash = "ae75dd36bf59a06aabe477092205efa86c05700e34f9264d1b529671cb38a9bc" +hash = "53843403ef8d228b35a2ec8dbba709cf16171247fdf34edd2c8599e02671a80b" [versions] fabric = "0.18.4" -- knotmirror 0.0.1