|
| 1 | +# The main configuration file for ServerCore. |
| 2 | +# Most of these settings can be reloaded without restarting using /servercore reload. |
| 3 | + |
| 4 | +# Most miscellaneous feature toggles. |
| 5 | +features: |
| 6 | + # Stops the server from loading spawn chunks. |
| 7 | + disable-spawn-chunks: true |
| 8 | + # Prevents lagspikes caused by players moving into unloaded chunks. |
| 9 | + prevent-moving-into-unloaded-chunks: true |
| 10 | + # The amount of ticks between auto-saves when /save-on is active. |
| 11 | + autosave-interval: 6000 |
| 12 | + # The fraction that decides the chance of experience orbs being able to merge with each other. (1 = 100%, 40 = 2.5%) |
| 13 | + # Note that just like in vanilla, experience orbs will still need to be of the same size to actually merge. |
| 14 | + xp-merge-fraction: 1 |
| 15 | + # The radius in blocks that experience orbs will merge at. |
| 16 | + xp-merge-radius: 2 |
| 17 | + # The radius in blocks that items will merge at. |
| 18 | + item-merge-radius: 2 |
| 19 | + lobotomize-villagers: |
| 20 | + # Makes villagers tick less often if they are stuck in a 1x1 space. |
| 21 | + enabled: true |
| 22 | + # Decides the interval in between villager ticks when lobotomized. |
| 23 | + tick-interval: 20 |
| 24 | + |
| 25 | + |
| 26 | +# Automatically modifies dynamic settings based on the server performance. |
| 27 | +dynamic: |
| 28 | + # Enables dynamic performance checks. |
| 29 | + enabled: true |
| 30 | + # The average MSPT to target. |
| 31 | + target-mspt: 35 |
| 32 | + # The settings that will be decreased when the server is overloaded, in the specified order. |
| 33 | + # Removing a setting from the list will disable it. |
| 34 | + # ► max = The maximum value the server will increase the setting to. |
| 35 | + # ► min = The minimum value the server will decrease the setting to. |
| 36 | + # ► increment = The amount the setting will be increased or decreased by. |
| 37 | + # ► interval = The amount of seconds between each check to increase or decrease. |
| 38 | + dynamic-settings: |
| 39 | + - setting: 'CHUNK_TICK_DISTANCE' |
| 40 | + max: 10 |
| 41 | + min: 2 |
| 42 | + increment: 1 |
| 43 | + interval: 15 |
| 44 | + |
| 45 | + - setting: 'MOBCAP_PERCENTAGE' |
| 46 | + max: 100 |
| 47 | + min: 30 |
| 48 | + increment: 10 |
| 49 | + interval: 15 |
| 50 | + |
| 51 | + - setting: 'SIMULATION_DISTANCE' |
| 52 | + max: 6 |
| 53 | + min: 2 |
| 54 | + increment: 1 |
| 55 | + interval: 15 |
| 56 | + |
| 57 | + - setting: 'VIEW_DISTANCE' |
| 58 | + max: 12 |
| 59 | + min: 4 |
| 60 | + increment: 1 |
| 61 | + interval: 150 |
| 62 | + |
| 63 | + |
| 64 | +# A special mobcap that only affects the breeding of animals and villagers. |
| 65 | +breeding-cap: |
| 66 | + # Enables breeding caps. |
| 67 | + enabled: true |
| 68 | + # The breeding cap for villagers. |
| 69 | + # ► limit = The limit of mobs of the same type within range. Setting this to negative will disable the breeding cap. |
| 70 | + # ► range = The range it will check for entities of the same type. |
| 71 | + villagers: |
| 72 | + limit: 24 |
| 73 | + range: 64 |
| 74 | + |
| 75 | + # The breeding cap for animals. |
| 76 | + # Note that this cap only checks for animals of the same type. |
| 77 | + # If the limit is 32 you can still breed 32 cows and 32 pigs next to each other. |
| 78 | + animals: |
| 79 | + limit: 32 |
| 80 | + range: 64 |
| 81 | + |
| 82 | + |
| 83 | +# Gives more control over mob spawning. |
| 84 | +mob-spawning: |
| 85 | + # Mobcap settings for zombie reinforcements. |
| 86 | + # ► enforce-mobcaps = Whether to enforce mobcaps for this type of mobspawning. |
| 87 | + # ► additional-capacity = Additional capacity for this specific mobcap. Decides how much it can spawn over the regular mobcap. |
| 88 | + # It is recommended to allow them to spawn a bit over the regular mobcap as they would otherwise never get a chance to spawn. |
| 89 | + zombie-reinforcements: |
| 90 | + enforce-mobcap: true |
| 91 | + additional-capacity: 32 |
| 92 | + |
| 93 | + # Mobcap settings for zombified piglin spawning from nether portal random ticks. |
| 94 | + nether-portal-randomticks: |
| 95 | + enforce-mobcap: true |
| 96 | + additional-capacity: 0 |
| 97 | + |
| 98 | + # Mobcap settings for mobs spawned from monster spawners. |
| 99 | + monster-spawners: |
| 100 | + enforce-mobcap: true |
| 101 | + additional-capacity: 32 |
| 102 | + |
| 103 | + # A list of mob categories with their respective mobcap and spawn interval. |
| 104 | + # ► category = The vanilla spawn category. |
| 105 | + # ► mobcap = The maximum amount of entities in the same category that can spawn near a player. |
| 106 | + # ► spawn-interval = The interval between spawn attempts in ticks. Higher values mean less frequent spawn attempts. |
| 107 | + categories: |
| 108 | + - category: 'MONSTER' |
| 109 | + mobcap: 70 |
| 110 | + spawn-interval: 1 |
| 111 | + |
| 112 | + - category: 'CREATURE' |
| 113 | + mobcap: 10 |
| 114 | + spawn-interval: 400 |
| 115 | + |
| 116 | + - category: 'AMBIENT' |
| 117 | + mobcap: 15 |
| 118 | + spawn-interval: 1 |
| 119 | + |
| 120 | + - category: 'AXOLOTLS' |
| 121 | + mobcap: 5 |
| 122 | + spawn-interval: 1 |
| 123 | + |
| 124 | + - category: 'UNDERGROUND_WATER_CREATURE' |
| 125 | + mobcap: 5 |
| 126 | + spawn-interval: 1 |
| 127 | + |
| 128 | + - category: 'WATER_CREATURE' |
| 129 | + mobcap: 5 |
| 130 | + spawn-interval: 1 |
| 131 | + |
| 132 | + - category: 'WATER_AMBIENT' |
| 133 | + mobcap: 20 |
| 134 | + spawn-interval: 1 |
| 135 | + |
| 136 | + |
| 137 | +# Settings for commands and their formatting. |
| 138 | +commands: |
| 139 | + # Enables the /servercore status command. |
| 140 | + status-enabled: true |
| 141 | + # Enables the /mobcaps command. |
| 142 | + mobcaps-enabled: true |
| 143 | + colors: |
| 144 | + # The colors used in command feedback. You can use hex codes or minecraft legacy color names. |
| 145 | + # The primary color is the most used color in command feedback. |
| 146 | + primary: 'dark_aqua' |
| 147 | + # The secondary color is used for highlighting important information, like values. |
| 148 | + secondary: 'green' |
| 149 | + # The tertiary color is mostly used for text in titles. |
| 150 | + tertiary: 'aqua' |
| 151 | + |
| 152 | + |
| 153 | +# Activation range can drastically reduce the amount of lag caused by ticking entities. |
| 154 | +# It does this by cleverly skipping certain entity ticks based on the distance to players and other factors, like immunity checks. |
| 155 | +# 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. |
| 156 | +# Note: while this is a very powerful feature, it can still slow down mobfarms and break very specific technical contraptions. |
| 157 | +activation-range: |
| 158 | + # Enables activation range. |
| 159 | + enabled: true |
| 160 | + # Briefly ticks entities newly added to the world for 10 seconds (includes both spawning and loading). |
| 161 | + # This gives them a chance to properly immunize when they are spawned if they should be. Can be helpful for mobfarms. |
| 162 | + tick-new-entities: true |
| 163 | + # Enables vertical range checks. By default, activation ranges only work horizontally. |
| 164 | + # This can greatly improve performance on taller worlds, but might break a few very specific ai-based mobfarms. |
| 165 | + use-vertical-range: false |
| 166 | + # Skips 1/4th of entity ticks whilst not immune. |
| 167 | + # This affects entities that are within the activation range, but not immune (for example by falling or being in water). |
| 168 | + skip-non-immune: false |
| 169 | + # Allows villagers to tick regardless of the activation range when panicking. |
| 170 | + villager-tick-panic: false |
| 171 | + # The time in seconds that a villager needs to be inactive for before obtaining work immunity (if it has work tasks). |
| 172 | + villager-work-immunity-after: 20 |
| 173 | + # The amount of ticks an inactive villager will wake up for when it has work immunity. |
| 174 | + villager-work-immunity-for: 20 |
| 175 | + # A list of entity types that should be excluded from activation range checks. |
| 176 | + excluded-entity-types: |
| 177 | + - 'minecraft:hopper_minecart' |
| 178 | + - 'minecraft:ghast' |
| 179 | + - 'minecraft:warden' |
| 180 | + # The activation type that will get assigned to any entity that doesn't have a custom activation type. |
| 181 | + # ► activation-range = The range an entity is required to be in from a player to be activated. |
| 182 | + # ► tick-interval = The interval between 'active' ticks whilst the entity is inactive. Negative values will disable these active ticks. |
| 183 | + # ► wakeup-interval = The interval between inactive entity wakeups in seconds. |
| 184 | + # ► extra-height-up = Allows entities to be ticked when far above the player when vertical range is in use. |
| 185 | + # ► extra-height-down = Allows entities to be ticked when far below the player when vertical range is in use. |
| 186 | + default-activation-type: |
| 187 | + activation-range: 16 |
| 188 | + tick-interval: 20 |
| 189 | + wakeup-interval: -1 |
| 190 | + extra-height-up: false |
| 191 | + extra-height-down: false |
| 192 | + |
| 193 | + # A list of custom activation types. |
| 194 | + # ► name = The name of the activation type. |
| 195 | + # ► entity-matcher = A list of conditions to filter entities. Only one of these conditions needs to be met for an entity to match. |
| 196 | + # ► If an entity matches multiple activation types, the one highest in the list will be used. The conditions accept the following formats: |
| 197 | + # - Entity type matching | Uses the entity type's identifier. | 'minecraft:zombie' matches zombies, but for example not husks or drowned. |
| 198 | + # - Typeof class matching | Uses the 'typeof:' prefix. | 'typeof:monster' matches all monsters. |
| 199 | + # ► Available typeof classes: mob, monster, raider, neutral, ambient, animal, water_animal, flying_animal, flying_monster, villager, projectile. |
| 200 | + custom-activation-types: |
| 201 | + - name: 'raider' |
| 202 | + activation-range: 48 |
| 203 | + tick-interval: 20 |
| 204 | + wakeup-interval: 20 |
| 205 | + extra-height-up: true |
| 206 | + extra-height-down: false |
| 207 | + entity-matcher: |
| 208 | + - 'typeof:raider' |
| 209 | + |
| 210 | + - name: 'water' |
| 211 | + activation-range: 16 |
| 212 | + tick-interval: 20 |
| 213 | + wakeup-interval: 60 |
| 214 | + extra-height-up: false |
| 215 | + extra-height-down: false |
| 216 | + entity-matcher: |
| 217 | + - 'typeof:water_animal' |
| 218 | + |
| 219 | + - name: 'villager' |
| 220 | + activation-range: 16 |
| 221 | + tick-interval: 20 |
| 222 | + wakeup-interval: 30 |
| 223 | + extra-height-up: false |
| 224 | + extra-height-down: false |
| 225 | + entity-matcher: |
| 226 | + - 'typeof:villager' |
| 227 | + |
| 228 | + - name: 'zombie' |
| 229 | + activation-range: 16 |
| 230 | + tick-interval: 20 |
| 231 | + wakeup-interval: 20 |
| 232 | + extra-height-up: true |
| 233 | + extra-height-down: false |
| 234 | + entity-matcher: |
| 235 | + - 'minecraft:zombie' |
| 236 | + - 'minecraft:husk' |
| 237 | + |
| 238 | + - name: 'monster-below' |
| 239 | + activation-range: 32 |
| 240 | + tick-interval: 20 |
| 241 | + wakeup-interval: 20 |
| 242 | + extra-height-up: true |
| 243 | + extra-height-down: true |
| 244 | + entity-matcher: |
| 245 | + - 'minecraft:creeper' |
| 246 | + - 'minecraft:slime' |
| 247 | + - 'minecraft:magma_cube' |
| 248 | + - 'minecraft:hoglin' |
| 249 | + |
| 250 | + - name: 'flying-monster' |
| 251 | + activation-range: 48 |
| 252 | + tick-interval: 20 |
| 253 | + wakeup-interval: 20 |
| 254 | + extra-height-up: true |
| 255 | + extra-height-down: false |
| 256 | + entity-matcher: |
| 257 | + - 'minecraft:ghast' |
| 258 | + - 'minecraft:phantom' |
| 259 | + |
| 260 | + - name: 'monster' |
| 261 | + activation-range: 32 |
| 262 | + tick-interval: 20 |
| 263 | + wakeup-interval: 20 |
| 264 | + extra-height-up: true |
| 265 | + extra-height-down: false |
| 266 | + entity-matcher: |
| 267 | + - 'typeof:monster' |
| 268 | + |
| 269 | + - name: 'animal' |
| 270 | + activation-range: 16 |
| 271 | + tick-interval: 20 |
| 272 | + wakeup-interval: 60 |
| 273 | + extra-height-up: false |
| 274 | + extra-height-down: false |
| 275 | + entity-matcher: |
| 276 | + - 'typeof:animal' |
| 277 | + - 'typeof:ambient' |
| 278 | + |
| 279 | + - name: 'creature' |
| 280 | + activation-range: 24 |
| 281 | + tick-interval: 20 |
| 282 | + wakeup-interval: 30 |
| 283 | + extra-height-up: false |
| 284 | + extra-height-down: false |
| 285 | + entity-matcher: |
| 286 | + - 'typeof:mob' |
| 287 | + |
| 288 | + |
0 commit comments