@@ -35,15 +35,15 @@ you have not manually overridden it.
35
35
### Per-world values
36
36
37
37
To set a value for a specific world, edit ` paper-world.yml ` within the world folder. For example, if
38
- you wanted to disable ` spawn.keep-spawn-loaded ` for a world named ` resource ` , you would edit
38
+ you wanted to enable ` lootables.auto-replenish ` for a world named ` resource ` , you would edit
39
39
` paper-world.yml ` within the ` resource ` folder like so:
40
40
41
41
``` yaml title=resource/paper-world.yml
42
42
_version : 28
43
43
44
44
# highlight-start
45
- spawn :
46
- keep-spawn-loaded : false
45
+ lootables :
46
+ auto-replenish : true
47
47
# highlight-end
48
48
```
49
49
@@ -59,10 +59,12 @@ individual `paper-world.yml`. You **do not need to and should not** copy the ent
59
59
` paper-world-default.yml ` file into each ` paper-world.yml ` file you want to modify. Only copy the
60
60
exact value you want to change.
61
61
62
- For a more complex real-world example: setting both different ` spawn-limits ` and ` keep-spawn-loaded `
62
+ For a more complex real-world example: setting both different ` spawn-limits ` and ` auto-replenish `
63
63
in two worlds.
64
64
65
65
``` yaml title="paper-world-defaults.yml"
66
+ lootables :
67
+ auto-replenish : true
66
68
entities :
67
69
spawning :
68
70
spawn-limits :
@@ -73,8 +75,6 @@ entities:
73
75
underground_water_creature : 5
74
76
water_ambient : 5
75
77
water_creature : 20
76
- spawn :
77
- keep-spawn-loaded : true
78
78
` ` `
79
79
80
80
` ` ` yaml title="world_nether/paper-world.yml"
@@ -85,31 +85,31 @@ entities:
85
85
` ` `
86
86
87
87
` ` ` yaml title="resource_world/paper-world.yml"
88
+ lootables :
89
+ auto-replenish : false
88
90
entities :
89
91
spawning :
90
92
spawn-limits :
91
93
axolotls : 8
92
94
creature : 15
93
95
monster : 2
94
- spawn :
95
- keep-spawn-loaded : false
96
96
` ` `
97
97
98
98
This example demonstrates the concept of inheritance. For each world, this is the effective
99
99
configuration which will be applied:
100
100
101
101
| Configuration Key | world | world_nether | world_the_end | resource_world |
102
102
|-------------------------------------------------------------|--------|--------------|---------------|----------------|
103
+ | ` lootables.auto-replenish` | `true` | `true` | `true` | `false` |
103
104
| `entities.spawning.spawn-limits.ambient` | `15` | `15` | `15` | `15` |
104
105
| `entities.spawning.spawn-limits.axolotls` | `5` | `5` | `5` | `8` |
105
106
| `entities.spawning.spawn-limits.creature` | `10` | `10` | `10` | `15` |
106
107
| `entities.spawning.spawn-limits.monster` | `70` | `90` | `70` | `2` |
107
108
| `entities.spawning.spawn-limits.underground_water_creature` | `5` | `5` | `5` | `5` |
108
109
| `entities.spawning.spawn-limits.water_ambient` | `20` | `20` | `20` | `20` |
109
110
| `entities.spawning.spawn-limits.water_creature` | `5` | `5` | `5` | `5` |
110
- | `spawn.keep-spawn-loaded` | `true` | `true` | `true` | `false` |
111
111
112
112
Notice that `world_the_end/paper-world.yml` was never modified. Because of this, it inherits all the
113
- configuration options from `config/paper-world-defaults.yml`. Additionally, `keep-spawn-loaded ` was
113
+ configuration options from `config/paper-world-defaults.yml`. Additionally, `auto-replenish ` was
114
114
only disabled in `resource_world/paper-world.yml` because in `config/paper-world-defaults.yml`,
115
- ` keep-spawn-loaded ` is set to `true`.
115
+ ` auto-replenish ` is set to `true`.
0 commit comments