Skip to content

Commit 78e6a30

Browse files
authored
Version 1.17.1 (#134)
* version 1.17.1 * Added ocean floor config option for baxkward compatibility with upgrades Default is false, so that upgrades don't see a floor.
1 parent 4601c76 commit 78e6a30

File tree

4 files changed

+58
-26
lines changed

4 files changed

+58
-26
lines changed

pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
<!-- Do not change unless you want different name for local builds. -->
6666
<build.number>-LOCAL</build.number>
6767
<!-- This allows to change between versions. -->
68-
<build.version>1.17.0</build.version>
68+
<build.version>1.17.1</build.version>
6969
<!-- Sonar Cloud -->
7070
<sonar.projectKey>BentoBoxWorld_AcidIsland</sonar.projectKey>
7171
<sonar.organization>bentobox-world</sonar.organization>

src/main/java/world/bentobox/acidisland/AISettings.java

+11
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,11 @@ public class AISettings implements WorldSettings {
214214
@ConfigComment("Water block. This should usually stay as WATER, but may be LAVA for fun")
215215
@ConfigEntry(path = "world.water-block", needsReset = true)
216216
private Material waterBlock = Material.WATER;
217+
218+
@ConfigComment("Ocean Floor")
219+
@ConfigComment("This creates an ocean floor environment, with vanilla elements.")
220+
@ConfigEntry(path = "world.ocean-floor", needsReset = true)
221+
private boolean oceanFloor = false;
217222

218223
@ConfigComment("Maximum number of islands in the world. Set to -1 or 0 for unlimited. ")
219224
@ConfigComment("If the number of islands is greater than this number, no new island will be created.")
@@ -2013,4 +2018,10 @@ public Material getEndWaterBlock() {
20132018
public void setEndWaterBlock(Material endWaterBlock) {
20142019
this.endWaterBlock = endWaterBlock;
20152020
}
2021+
public boolean isOceanFloor() {
2022+
return oceanFloor;
2023+
}
2024+
public void setOceanFloor(boolean oceanFloor) {
2025+
this.oceanFloor = oceanFloor;
2026+
}
20162027
}

src/main/java/world/bentobox/acidisland/world/ChunkGeneratorWorld.java

+8-6
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,12 @@ public void generateNoise(@NonNull WorldInfo worldInfo, @NonNull Random random,
5555
WorldConfig wc = seaHeight.get(worldInfo.getEnvironment());
5656
int sh = wc.seaHeight();
5757
if (sh > worldInfo.getMinHeight()) {
58-
chunkData.setRegion(0, worldInfo.getMinHeight(), 0, 16, worldInfo.getMinHeight() + 1, 16, Material.BEDROCK);
5958
chunkData.setRegion(0, worldInfo.getMinHeight() + 1, 0, 16, sh + 1, 16, wc.waterBlock());
6059
// Add some noise
61-
addNoise(worldInfo, chunkX, chunkZ, chunkData);
60+
if (addon.getSettings().isOceanFloor()) {
61+
chunkData.setRegion(0, worldInfo.getMinHeight(), 0, 16, worldInfo.getMinHeight() + 1, 16, Material.BEDROCK);
62+
addNoise(worldInfo, chunkX, chunkZ, chunkData);
63+
}
6264
}
6365
if (worldInfo.getEnvironment().equals(Environment.NETHER) && addon.getSettings().isNetherRoof()) {
6466
roofChunk.forEach((k,v) -> chunkData.setBlock(k.getBlockX(), worldInfo.getMaxHeight() + k.getBlockY(), k.getBlockZ(), v));
@@ -82,23 +84,23 @@ public boolean shouldGenerateNoise() {
8284
}
8385
@Override
8486
public boolean shouldGenerateSurface() {
85-
return true;
87+
return addon.getSettings().isOceanFloor();
8688
}
8789
@Override
8890
public boolean shouldGenerateCaves() {
89-
return true;
91+
return addon.getSettings().isOceanFloor();
9092
}
9193
@Override
9294
public boolean shouldGenerateDecorations() {
93-
return true;
95+
return addon.getSettings().isOceanFloor();
9496
}
9597
@Override
9698
public boolean shouldGenerateMobs() {
9799
return true;
98100
}
99101
@Override
100102
public boolean shouldGenerateStructures() {
101-
return true;
103+
return addon.getSettings().isOceanFloor();
102104
}
103105

104106
@Override

src/main/resources/config.yml

+38-19
Original file line numberDiff line numberDiff line change
@@ -132,10 +132,13 @@ world:
132132
# Sea height (don't changes this mid-game unless you delete the world)
133133
# Minimum is 0, which means you are playing Skyblock!
134134
sea-height: 54
135-
# Water block this should usually stay as WATER, but may be LAVA for fun
136-
# Changing mid-game will cause problems!
135+
# Water block. This should usually stay as WATER, but may be LAVA for fun
137136
# /!\ BentoBox currently does not support changing this value mid-game. If you do need to change it, do a full reset of your databases and worlds.
138137
water-block: WATER
138+
# Ocean Floor
139+
# This creates an ocean floor environment, with vanilla elements.
140+
# /!\ BentoBox currently does not support changing this value mid-game. If you do need to change it, do a full reset of your databases and worlds.
141+
ocean-floor: false
139142
# Maximum number of islands in the world. Set to -1 or 0 for unlimited.
140143
# If the number of islands is greater than this number, no new island will be created.
141144
max-islands: 0
@@ -166,8 +169,7 @@ world:
166169
# Changing mid-game will cause problems!
167170
# /!\ BentoBox currently does not support changing this value mid-game. If you do need to change it, do a full reset of your databases and worlds.
168171
sea-height: 54
169-
# Water block this should usually stay as WATER, but may be LAVA for fun
170-
# Changing mid-game will cause problems!
172+
# Water block. This should usually stay as WATER, but may be LAVA for fun
171173
# /!\ BentoBox currently does not support changing this value mid-game. If you do need to change it, do a full reset of your databases and worlds.
172174
water-block: WATER
173175
# Make the nether roof, if false, there is nothing up there
@@ -180,8 +182,9 @@ world:
180182
# Only applies to vanilla nether
181183
spawn-radius: 25
182184
# This option indicates if nether portals should be linked via dimensions.
183-
# Option will simulate vanilla portal mechanics that links portals together or creates a new portal, if there is not a portal in other dimension.
184-
# Added since 1.14.6
185+
# Option will simulate vanilla portal mechanics that links portals together
186+
# or creates a new portal, if there is not a portal in that dimension.
187+
# Added since 1.14.6.
185188
create-and-link-portals: false
186189
end:
187190
# End Nether - if this is false, the end world will not be made and access to
@@ -194,12 +197,12 @@ world:
194197
# Changing mid-game will cause problems!
195198
# /!\ BentoBox currently does not support changing this value mid-game. If you do need to change it, do a full reset of your databases and worlds.
196199
sea-height: 54
197-
# Water block this should usually stay as WATER, but may be LAVA for fun
198-
# Changing mid-game will cause problems!
200+
# Water block. This should usually stay as WATER, but may be LAVA for fun
199201
# /!\ BentoBox currently does not support changing this value mid-game. If you do need to change it, do a full reset of your databases and worlds.
200202
water-block: WATER
201-
# This option indicates if obsidian platform in the end should be generated when player enters the end world.
202-
# Added since 1.14.6
203+
# This option indicates if obsidian platform in the end should be generated
204+
# when player enters the end world.
205+
# Added since 1.14.6.
203206
create-obsidian-platform: false
204207
# /!\ This feature is experimental and might not work as expected or might not work at all.
205208
dragon-spawn: false
@@ -209,9 +212,9 @@ world:
209212
# Mob white list - these mobs will NOT be removed when logging in or doing /island
210213
remove-mobs-whitelist:
211214
- ZOMBIE_VILLAGER
212-
- WITHER
213215
- ENDERMAN
214216
- ZOMBIFIED_PIGLIN
217+
- WITHER
215218
# World flags. These are boolean settings for various flags for this world
216219
flags:
217220
CREEPER_DAMAGE: true
@@ -227,6 +230,7 @@ world:
227230
ENTER_EXIT_MESSAGES: true
228231
ENDERMAN_DEATH_DROP: true
229232
OFFLINE_REDSTONE: true
233+
REMOVE_END_EXIT_ISLAND: true
230234
OFFLINE_GROWTH: true
231235
REMOVE_MOBS: true
232236
ENDER_CHEST: false
@@ -248,6 +252,7 @@ world:
248252
ANVIL: 500
249253
MINECART: 500
250254
FISH_SCOOPING: 500
255+
TRAPPED_CHEST: 500
251256
END_PORTAL: 500
252257
BREEDING: 500
253258
HURT_VILLAGERS: 500
@@ -262,37 +267,47 @@ world:
262267
RIDING: 500
263268
NAME_TAG: 500
264269
ARMOR_STAND: 500
270+
CHANGE_SETTINGS: 1000
265271
TRADING: 0
266272
EGGS: 500
267273
ITEM_DROP: 0
274+
CHEST: 500
268275
NOTE_BLOCK: 0
269276
FLINT_AND_STEEL: 500
270277
NETHER_PORTAL: 500
278+
SCULK_SENSOR: 500
271279
LECTERN: 500
280+
SHULKER_BOX: 500
272281
ITEM_PICKUP: 0
273282
CROP_TRAMPLE: 500
274283
DROPPER: 500
275284
BREWING: 500
276285
TNT_PRIMING: 500
277286
COLLECT_WATER: 500
287+
AXOLOTL_SCOOPING: 500
278288
BUTTON: 500
289+
COMPOSTER: 500
279290
FIRE_EXTINGUISH: 500
280291
COMMAND_RANKS: 500
281292
BEACON: 500
293+
ALLAY: 500
282294
TRAPDOOR: 500
283295
PRESSURE_PLATE: 0
284296
EXPERIENCE_BOTTLE_THROWING: 500
285297
DYE: 500
298+
HIVE: 500
286299
ITEM_FRAME: 500
287300
PLACE_BLOCKS: 500
288301
CRAFTING: 0
289302
SHEARING: 500
290303
ENCHANTING: 0
304+
FLOWER_POT: 500
291305
BOAT: 500
292306
BED: 500
293307
SPAWN_EGGS: 500
294308
MILKING: 0
295309
DISPENSER: 500
310+
SCULK_SHRIEKER: 500
296311
GATE: 0
297312
EXPERIENCE_PICKUP: 500
298313
HOPPER: 500
@@ -303,20 +318,23 @@ world:
303318
CONTAINER: 500
304319
JUKEBOX: 500
305320
POTION_THROWING: 500
321+
BARREL: 500
322+
COLLECT_POWDERED_SNOW: 500
306323
# These are the default settings for new islands
307324
default-island-settings:
308325
PVP_END: false
309326
PVP_NETHER: false
310327
LEAF_DECAY: true
311-
MONSTER_SPAWNERS_SPAWN: true
312-
TNT_DAMAGE: true
313328
ANIMAL_NATURAL_SPAWN: true
314329
MONSTER_NATURAL_SPAWN: true
315-
FIRE_IGNITE: true
316330
FIRE_SPREAD: true
317331
FIRE_BURNING: true
318-
ANIMAL_SPAWNERS_SPAWN: true
319332
PVP_OVERWORLD: false
333+
MONSTER_SPAWNERS_SPAWN: true
334+
TNT_DAMAGE: true
335+
FIRE_IGNITE: true
336+
ANIMAL_SPAWNERS_SPAWN: true
337+
BLOCK_EXPLODE_DAMAGE: true
320338
# These settings/flags are hidden from users
321339
# Ops can toggle hiding in-game using SHIFT-LEFT-CLICK on flags in settings
322340
hidden-flags: []
@@ -464,17 +482,17 @@ island:
464482
#
465483
# Note that player-executed commands might not work, as these commands can be run with said player being offline.
466484
on-leave: []
467-
# Returns a list of commands that should be executed when the player respawns after death if Flags.ISLAND_RESPAWN is true.
485+
# List of commands that should be executed when the player respawns after death if Flags.ISLAND_RESPAWN is true.
468486
# These commands are run by the console, unless otherwise stated using the [SUDO] prefix,
469487
# in which case they are executed by the player.
470-
#
488+
#
471489
# Available placeholders for the commands are the following:
472490
# * [name]: name of the player
473-
#
491+
#
474492
# Here are some examples of valid commands to execute:
475493
# * '[SUDO] bbox version'
476494
# * 'bsbadmin deaths set [player] 0'
477-
#
495+
#
478496
# Note that player-executed commands might not work, as these commands can be run with said player being offline.
479497
# Added since 1.14.0.
480498
on-respawn: []
@@ -533,3 +551,4 @@ protection:
533551
do-not-edit-these-settings:
534552
# These settings should not be edited
535553
reset-epoch: 0
554+

0 commit comments

Comments
 (0)