From 2f51e670aefdcf0212ed05128b05413e70ec26ed Mon Sep 17 00:00:00 2001 From: Fauli1221 Date: Sat, 13 Apr 2024 18:34:47 +0200 Subject: [PATCH] added configs --- .../config/betterdungeons-fabric-1_20_4.toml | 16 + .../config/yosbr/config/servercore/config.yml | 288 ++++++++++++++++++ .../yosbr/config/servercore/optimizations.yml | 16 + .../yosbr/config/styledplayerlist/config.json | 22 ++ .../styledplayerlist/styles/animated.json | 99 ++++++ .../styledplayerlist/styles/default.json | 19 ++ .../vcinteraction/vcinteraction.properties | 10 + TrotCraft/server/index.toml | 35 ++- .../server/mods/essential-commands.pw.toml | 13 - TrotCraft/server/pack.toml | 2 +- 10 files changed, 500 insertions(+), 20 deletions(-) create mode 100644 TrotCraft/server/config/yosbr/config/betterdungeons-fabric-1_20_4.toml create mode 100644 TrotCraft/server/config/yosbr/config/servercore/config.yml create mode 100644 TrotCraft/server/config/yosbr/config/servercore/optimizations.yml create mode 100644 TrotCraft/server/config/yosbr/config/styledplayerlist/config.json create mode 100644 TrotCraft/server/config/yosbr/config/styledplayerlist/styles/animated.json create mode 100644 TrotCraft/server/config/yosbr/config/styledplayerlist/styles/default.json create mode 100644 TrotCraft/server/config/yosbr/config/vcinteraction/vcinteraction.properties delete mode 100644 TrotCraft/server/mods/essential-commands.pw.toml diff --git a/TrotCraft/server/config/yosbr/config/betterdungeons-fabric-1_20_4.toml b/TrotCraft/server/config/yosbr/config/betterdungeons-fabric-1_20_4.toml new file mode 100644 index 0000000..cc01bc6 --- /dev/null +++ b/TrotCraft/server/config/yosbr/config/betterdungeons-fabric-1_20_4.toml @@ -0,0 +1,16 @@ +[betterDungeons.general] +enableHeads = true +removeVanillaDungeons = true +enableNetherBlocks = true +[betterDungeons.zombieDungeon] +zombieDungeonMaxSurfaceStaircaseLength = 20 +[betterDungeons.smallDungeon] +bannerMaxCount = 2 +chestMinCount = 1 +chestMaxCount = 2 +enableOreProps = true +[betterDungeons.smallNetherDungeon] +enabled = true +witherSkeletonsDropWitherSkulls = true +blazesDropBlazeRods = true +bannerMaxCount = 2 diff --git a/TrotCraft/server/config/yosbr/config/servercore/config.yml b/TrotCraft/server/config/yosbr/config/servercore/config.yml new file mode 100644 index 0000000..df3acc1 --- /dev/null +++ b/TrotCraft/server/config/yosbr/config/servercore/config.yml @@ -0,0 +1,288 @@ +# The main configuration file for ServerCore. +# Most of these settings can be reloaded without restarting using /servercore reload. + +# Most miscellaneous feature toggles. +features: + # Stops the server from loading spawn chunks. + disable-spawn-chunks: true + # Prevents lagspikes caused by players moving into unloaded chunks. + prevent-moving-into-unloaded-chunks: false + # The amount of seconds between auto-saves when /save-on is active. + autosave-interval-seconds: 300 + # The fraction that decides the chance of experience orbs being able to merge with each other. (1 = 100%, 40 = 2.5%) + # Note that just like in vanilla, experience orbs will still need to be of the same size to actually merge. + xp-merge-fraction: 40 + # The radius in blocks that experience orbs will merge at. + xp-merge-radius: 0.5 + # The radius in blocks that items will merge at. + item-merge-radius: 0.5 + lobotomize-villagers: + # Makes villagers tick less often if they are stuck in a 1x1 space. + enabled: false + # Decides the interval in between villager ticks when lobotomized. + tick-interval: 20 + + +# Automatically modifies dynamic settings based on the server performance. +dynamic: + # Enables dynamic performance checks. + enabled: true + # The average MSPT to target. + target-mspt: 35 + # The settings that will be decreased when the server is overloaded, in the specified order. + # Removing a setting from the list will disable it. + # ► max = The maximum value the server will increase the setting to. + # ► min = The minimum value the server will decrease the setting to. + # ► increment = The amount the setting will be increased or decreased by. + # ► interval = The amount of seconds between each check to increase or decrease. + dynamic-settings: + - setting: 'CHUNK_TICK_DISTANCE' + max: 10 + min: 2 + increment: 1 + interval: 15 + + - setting: 'MOBCAP_PERCENTAGE' + max: 100 + min: 30 + increment: 10 + interval: 15 + + - setting: 'SIMULATION_DISTANCE' + max: 10 + min: 2 + increment: 1 + interval: 15 + + - setting: 'VIEW_DISTANCE' + max: 10 + min: 2 + increment: 1 + interval: 150 + + +# A special mobcap that only affects the breeding of animals and villagers. +breeding-cap: + # Enables breeding caps. + enabled: true + # The breeding cap for villagers. + # ► limit = The limit of mobs of the same type within range. Setting this to negative will disable the breeding cap. + # ► range = The range it will check for entities of the same type. + villagers: + limit: 32 + range: 64 + + # The breeding cap for animals. + # Note that this cap only checks for animals of the same type. + # If the limit is 32 you can still breed 32 cows and 32 pigs next to each other. + animals: + limit: 32 + range: 64 + + +# Gives more control over mob spawning. +mob-spawning: + # Mobcap settings for zombie reinforcements. + # ► enforce-mobcaps = Whether to enforce mobcaps for this type of mobspawning. + # ► mobcap-modifier = The modifier to apply to this enforced mobcap. This modifier only affects this type of mobspawning. + # Since these mobspawns normally wouldn't be affected by the mobcap, you might want to allow them to spawn a bit over it. + zombie-reinforcements: + enforce-mobcap: false + mobcap-modifier: 1.5 + + # Mobcap settings for zombified piglin spawning from nether portal random ticks. + nether-portal-randomticks: + enforce-mobcap: false + mobcap-modifier: 1.5 + + # Mobcap settings for mobs spawned from monster spawners. + monster-spawners: + enforce-mobcap: false + mobcap-modifier: 1.5 + + # A list of mob categories with their respective mobcap and spawn interval. + # ► category = The vanilla spawn category. + # ► mobcap = The maximum amount of entities in the same category that can spawn near a player. + # ► spawn-interval = The interval between spawn attempts in ticks. Higher values mean less frequent spawn attempts. + categories: + - category: 'MONSTER' + mobcap: 70 + spawn-interval: 1 + + - category: 'CREATURE' + mobcap: 10 + spawn-interval: 400 + + - category: 'AMBIENT' + mobcap: 15 + spawn-interval: 1 + + - category: 'AXOLOTLS' + mobcap: 5 + spawn-interval: 1 + + - category: 'UNDERGROUND_WATER_CREATURE' + mobcap: 5 + spawn-interval: 1 + + - category: 'WATER_CREATURE' + mobcap: 5 + spawn-interval: 1 + + - category: 'WATER_AMBIENT' + mobcap: 20 + spawn-interval: 1 + + +# Settings for commands and their formatting. +commands: + # Enables the /servercore status command. + status-enabled: true + # Enables the /mobcaps command. + mobcaps-enabled: true + colors: + # The colors used in command feedback. You can use hex codes or minecraft legacy color names. + # The primary color is the most used color in command feedback. + primary: 'dark_aqua' + # The secondary color is used for highlighting important information, like values. + secondary: 'green' + # The tertiary color is mostly used for text in titles. + tertiary: 'aqua' + + +# Activation range can drastically reduce the amount of lag caused by ticking entities. +# It does this by cleverly skipping certain entity ticks based on the distance to players and other factors, like immunity checks. +# Immunity checks determine whether an entity should be ticked even when it's outside the activation range, like for example when it is falling or takes damage. +# Note: while this is a very powerful feature, it can still slow down mobfarms and break very specific technical contraptions. +activation-range: + # Enables activation range. + enabled: true + # Briefly ticks entities newly added to the world for 10 seconds (includes both spawning and loading). + # This gives them a chance to properly immunize when they are spawned if they should be. Can be helpful for mobfarms. + tick-new-entities: true + # Enables vertical range checks. By default, activation ranges only work horizontally. + # This can greatly improve performance on taller worlds, but might break a few very specific ai-based mobfarms. + use-vertical-range: false + # Skips 1/4th of entity ticks whilst not immune. + # This affects entities that are within the activation range, but not immune (for example by falling or being in water). + skip-non-immune: false + # Allows villagers to tick regardless of the activation range when panicking. + villager-tick-panic: true + # The time in seconds that a villager needs to be inactive for before obtaining work immunity (if it has work tasks). + villager-work-immunity-after: 20 + # The amount of ticks an inactive villager will wake up for when it has work immunity. + villager-work-immunity-for: 20 + # A list of entity types that should be excluded from activation range checks. + excluded-entity-types: + - 'minecraft:ghast' + - 'minecraft:hopper_minecart' + - 'minecraft:warden' + # The activation type that will get assigned to any entity that doesn't have a custom activation type. + # ► activation-range = The range an entity is required to be in from a player to be activated. + # ► tick-interval = The interval between 'active' ticks whilst the entity is inactive. Negative values will disable these active ticks. + # ► wakeup-interval = The interval between inactive entity wakeups in seconds. + # ► extra-height-up = Allows entities to be ticked when far above the player when vertical range is in use. + # ► extra-height-down = Allows entities to be ticked when far below the player when vertical range is in use. + default-activation-type: + activation-range: 16 + tick-interval: 20 + wakeup-interval: -1 + extra-height-up: false + extra-height-down: false + + # A list of custom activation types. + # ► name = The name of the activation type. + # ► entity-matcher = A list of conditions to filter entities. Only one of these conditions needs to be met for an entity to match. + # ► If an entity matches multiple activation types, the one highest in the list will be used. The conditions accept the following formats: + # - Entity type matching | Uses the entity type's identifier. | 'minecraft:zombie' matches zombies, but for example not husks or drowned. + # - Typeof class matching | Uses the 'typeof:' prefix. | 'typeof:monster' matches all monsters. + # ► Available typeof classes: mob, monster, raider, neutral, ambient, animal, water_animal, flying_animal, flying_monster, villager. + custom-activation-types: + - name: 'raider' + activation-range: 48 + tick-interval: 20 + wakeup-interval: 20 + extra-height-up: true + extra-height-down: false + entity-matcher: + - 'typeof:raider' + + - name: 'water' + activation-range: 16 + tick-interval: 20 + wakeup-interval: 60 + extra-height-up: false + extra-height-down: false + entity-matcher: + - 'typeof:water_animal' + + - name: 'villager' + activation-range: 16 + tick-interval: 20 + wakeup-interval: 30 + extra-height-up: false + extra-height-down: false + entity-matcher: + - 'typeof:villager' + + - name: 'zombie' + activation-range: 16 + tick-interval: 20 + wakeup-interval: 20 + extra-height-up: true + extra-height-down: false + entity-matcher: + - 'minecraft:zombie' + - 'minecraft:husk' + + - name: 'monster-below' + activation-range: 32 + tick-interval: 20 + wakeup-interval: 20 + extra-height-up: true + extra-height-down: true + entity-matcher: + - 'minecraft:creeper' + - 'minecraft:slime' + - 'minecraft:magma_cube' + - 'minecraft:hoglin' + + - name: 'flying-monster' + activation-range: 48 + tick-interval: 20 + wakeup-interval: 20 + extra-height-up: true + extra-height-down: false + entity-matcher: + - 'minecraft:ghast' + - 'minecraft:phantom' + + - name: 'monster' + activation-range: 32 + tick-interval: 20 + wakeup-interval: 20 + extra-height-up: true + extra-height-down: false + entity-matcher: + - 'typeof:monster' + + - name: 'animal' + activation-range: 16 + tick-interval: 20 + wakeup-interval: 60 + extra-height-up: false + extra-height-down: false + entity-matcher: + - 'typeof:animal' + - 'typeof:ambient' + + - name: 'creature' + activation-range: 24 + tick-interval: 20 + wakeup-interval: 30 + extra-height-up: false + extra-height-down: false + entity-matcher: + - 'typeof:mob' + + diff --git a/TrotCraft/server/config/yosbr/config/servercore/optimizations.yml b/TrotCraft/server/config/yosbr/config/servercore/optimizations.yml new file mode 100644 index 0000000..6823c38 --- /dev/null +++ b/TrotCraft/server/config/yosbr/config/servercore/optimizations.yml @@ -0,0 +1,16 @@ +# Allows you to toggle specific optimizations that don't have full vanilla parity. +# These settings will only take effect after server restarts. + +# Prevents many different lagspikes caused by loading chunks synchronously. +# This for example causes maps to only update loaded chunks, which depending on the viewdistance can be a smaller radius than vanilla. +reduce-sync-loads: true +# Can significantly reduce the time spent on chunk iteration by caching ticking chunks every second. +# This is especially useful for servers with a high playercount and / or viewdistance. +# Note: The list of ticking chunks is only updated every second, rather than every tick (but that is very unlikely to matter). +cache-ticking-chunks: true +# Can significantly reduce time spent on mobspawning, but isn't as accurate as vanilla on biome borders. +# This may cause mobs from another biome to spawn a few blocks across a biome border (this does not affect structure spawning!). +fast-biome-lookups: true +# Fluid random ticks, like lava spreading fire, are run twice each game tick. +# Enabling this will cancel the 'duplicate' second fluid tick, but this may cause slight behavior changes. +cancel-duplicate-fluid-ticks: true diff --git a/TrotCraft/server/config/yosbr/config/styledplayerlist/config.json b/TrotCraft/server/config/yosbr/config/styledplayerlist/config.json new file mode 100644 index 0000000..595c9a5 --- /dev/null +++ b/TrotCraft/server/config/yosbr/config/styledplayerlist/config.json @@ -0,0 +1,22 @@ +{ + "config_version": 2, + "__comment": "Before changing anything, see https://github.com/Patbox/StyledPlayerList#configuration", + "default_style": "default", + "messages": { + "switch": "Your player list style has been changed to: ${style}", + "unknown": "This style doesn't exist!", + "no_permission": "You don't have required permissions!" + }, + "player": { + "modify_name": false, + "modify_right_text": false, + "passthrough": false, + "hidden": false, + "format": "%player:displayname%", + "right_text": "", + "update_on_chat_message": false, + "update_tick_time": -1, + "styles": [] + }, + "client_show_in_singleplayer": true +} \ No newline at end of file diff --git a/TrotCraft/server/config/yosbr/config/styledplayerlist/styles/animated.json b/TrotCraft/server/config/yosbr/config/styledplayerlist/styles/animated.json new file mode 100644 index 0000000..e2aae4d --- /dev/null +++ b/TrotCraft/server/config/yosbr/config/styledplayerlist/styles/animated.json @@ -0,0 +1,99 @@ +{ + "style_name": "Default", + "update_tick_time": 2, + "list_header": { + "change_rate": 1, + "values": [ + [ + "", + " TrotCraft ⛏ ", + "", + " [ %server:online%/%server:max_players% ] ", + "" + ], + [ + "", + " TrotCraft ⛏ ", + "", + " [ %server:online%/%server:max_players% ] ", + "" + ], + [ + "", + " TrotCraft ⛏ ", + "", + " [ %server:online%/%server:max_players% ] ", + "" + ], + [ + "", + " TrotCraft ⛏ ", + "", + " [ %server:online%/%server:max_players% ] ", + "" + ], + [ + "", + " TrotCraft ⛏ ", + "", + " [ %server:online%/%server:max_players% ] ", + "" + ], + [ + "", + " TrotCraft ⛏ ", + "", + " [ %server:online%/%server:max_players% ] ", + "" + ], + [ + "", + " TrotCraft ⛏ ", + "", + " [ %server:online%/%server:max_players% ] ", + "" + ], + [ + "", + " TrotCraft ⛏ ", + "", + " [ %server:online%/%server:max_players% ] ", + "" + ], + [ + "", + " TrotCraft ⛏ ", + "", + " [ %server:online%/%server:max_players% ] ", + "" + ] + ] + }, + "list_footer": { + "change_rate": 20, + "values": [ + [ + "", + " ", + "", + "TPS: %server:tps_colored% | Ping: %player:ping%", + "" + ], + [ + "", + " ", + "", + "Health: %player:health% | Playtime: %player:playtime%", + "" + ], + [ + "", + " ", + "", + "Time: %world:time% | World: %world:name%", + "" + ] + ] + }, + "hidden_in_commands": false +} diff --git a/TrotCraft/server/config/yosbr/config/styledplayerlist/styles/default.json b/TrotCraft/server/config/yosbr/config/styledplayerlist/styles/default.json new file mode 100644 index 0000000..7f364b1 --- /dev/null +++ b/TrotCraft/server/config/yosbr/config/styledplayerlist/styles/default.json @@ -0,0 +1,19 @@ +{ + "style_name": "Default", + "update_tick_time": 20, + "list_header": [ + "", + " TrotCraft ⛏ ", + "", + " [ %server:online%/%server:max_players% ] ", + "" + ], + "list_footer": [ + "", + " ", + "", + "TPS: %server:tps_colored% | Ping: %player:ping%", + "" + ], + "hidden_in_commands": false +} diff --git a/TrotCraft/server/config/yosbr/config/vcinteraction/vcinteraction.properties b/TrotCraft/server/config/yosbr/config/vcinteraction/vcinteraction.properties new file mode 100644 index 0000000..4919443 --- /dev/null +++ b/TrotCraft/server/config/yosbr/config/vcinteraction/vcinteraction.properties @@ -0,0 +1,10 @@ +# If talking in groups should trigger vibrations +group_interaction=true +# If whispering should trigger vibrations +whisper_interaction=false +# If talking while sneaking should trigger vibrations +sneak_interaction=false +# The frequency of the voice vibration +voice_sculk_frequency=7 +# The audio level threshold to activate the sculk sensor in dB +minimum_activation_threshold=-50 diff --git a/TrotCraft/server/index.toml b/TrotCraft/server/index.toml index 6396424..1357fe1 100644 --- a/TrotCraft/server/index.toml +++ b/TrotCraft/server/index.toml @@ -18,7 +18,11 @@ hash = "77336d79f7cafe6cb292024198c49a212ab405ad06eace5d4e7672f7eeb4e81a" [[files]] file = "config/yosbr/config/MiniMOTD/main.conf" -hash = "109f8cd9cb742cb0cb73a637679bd0b07dd45642eaf3cb3d2071e94c616c4f36" +hash = "03211d69414ca8f3d79019bf97cf940908e00f214b219149e7b4517cc06044c0" + +[[files]] +file = "config/yosbr/config/betterdungeons-fabric-1_20_4.toml" +hash = "80c03ca877123cdf7dca2d928a7512c7e7cb6533e0c98f9fbd969eec3997b157" [[files]] file = "config/yosbr/config/bigpony.json" @@ -28,14 +32,38 @@ hash = "d2e1b1ffb64e4c005f6032392d16ba9c73830f5d1a5ec949b778ebe0736ad714" file = "config/yosbr/config/modmenu.json" hash = "b2d6f97d6f09d3c02504264a778ab1958378c91e5d743afed9ab71846073bf60" +[[files]] +file = "config/yosbr/config/servercore/config.yml" +hash = "7bd0bfb8bea9bf94b23b6fb154bfb0bf252041b43ec49058a0ab726b88dcd9b5" + +[[files]] +file = "config/yosbr/config/servercore/optimizations.yml" +hash = "fbb29b9bf5d8f90f58568cfae7f85220d84465d78d6a4dcbfbe3c15ffd172f8d" + [[files]] file = "config/yosbr/config/styled-nicknames.json" hash = "b35b762964b545b3e5f9664111844fa562ddb992c0b662d91867dcd4743737bc" +[[files]] +file = "config/yosbr/config/styledplayerlist/config.json" +hash = "87aac2c6cc8efff361bfcc52c6ecf1d3a4ed9f1b013537e30d19253edabcc0f5" + +[[files]] +file = "config/yosbr/config/styledplayerlist/styles/animated.json" +hash = "48169085e76c7dd6e9f23722d3092023ee4de7c696b5cd52ef0eee1dd42fd3fa" + +[[files]] +file = "config/yosbr/config/styledplayerlist/styles/default.json" +hash = "b6b2af1b05136b0225fe379e8313e5a1d2a39d98904674c04babcda828ffde95" + [[files]] file = "config/yosbr/config/universal-graves/config.json" hash = "0104253e1e871206b09f3ac2b715d7de023ffc3d6064f3ec635549746e27ffd2" +[[files]] +file = "config/yosbr/config/vcinteraction/vcinteraction.properties" +hash = "9286af131e04f726124035f4f450bdd256c44286ab3c86daa5b237e278c11fa7" + [[files]] file = "config/yosbr/options.txt" hash = "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" @@ -165,11 +193,6 @@ file = "mods/enhanced-groups.pw.toml" hash = "a40e757d5f7f8d114f40430a2457fb7d48db457905e2f97ed9aa4fb8285a5113" metafile = true -[[files]] -file = "mods/essential-commands.pw.toml" -hash = "fdb843150645d3e54d1c5c501b8975243e5ba3d886a1a7332c96f03967c6ceb6" -metafile = true - [[files]] file = "mods/explorify.pw.toml" hash = "9ec8d9ecfedbd3cc30dc19b91f37a540ff9340debf035cbb81a7103f65e086f1" diff --git a/TrotCraft/server/mods/essential-commands.pw.toml b/TrotCraft/server/mods/essential-commands.pw.toml deleted file mode 100644 index b3edb1b..0000000 --- a/TrotCraft/server/mods/essential-commands.pw.toml +++ /dev/null @@ -1,13 +0,0 @@ -name = "Essential Commands" -filename = "essential_commands-0.35.0-mc1.20.4.jar" -side = "server" - -[download] -url = "https://cdn.modrinth.com/data/6VdDUivB/versions/GYFhjn7a/essential_commands-0.35.0-mc1.20.4.jar" -hash-format = "sha1" -hash = "6b15d70628c6332f5cb7ac4f8cb0f41e5e8c2dc3" - -[update] -[update.modrinth] -mod-id = "6VdDUivB" -version = "GYFhjn7a" diff --git a/TrotCraft/server/pack.toml b/TrotCraft/server/pack.toml index 1906d45..5a4922e 100644 --- a/TrotCraft/server/pack.toml +++ b/TrotCraft/server/pack.toml @@ -6,7 +6,7 @@ pack-format = "packwiz:1.1.0" [index] file = "index.toml" hash-format = "sha256" -hash = "915faa5646c1c7ec43b02883d5a1a584af76e5e73c90f8294f3b03bb74303c84" +hash = "c130900eebd39dbdccbf10a1f542a634dde114175048d481b7b16a6b7283d906" [versions] fabric = "0.15.9"