diff --git a/src/main/java/world/bentobox/caveblock/Settings.java b/src/main/java/world/bentobox/caveblock/Settings.java index eb24894..00525a5 100644 --- a/src/main/java/world/bentobox/caveblock/Settings.java +++ b/src/main/java/world/bentobox/caveblock/Settings.java @@ -862,6 +862,26 @@ public class Settings implements WorldSettings } + /** + * {@inheritDoc} + */ + @Override + public boolean isMakeNetherPortals() + { + return this.makeNetherPortals; + } + + + /** + * {@inheritDoc} + */ + @Override + public boolean isMakeEndPortals() + { + return this.makeEndPortals; + } + + // --------------------------------------------------------------------- // Section: Setters // --------------------------------------------------------------------- @@ -2001,6 +2021,28 @@ public class Settings implements WorldSettings } + /** + * Sets make nether portals. + * + * @param makeNetherPortals the make nether portals + */ + public void setMakeNetherPortals(boolean makeNetherPortals) + { + this.makeNetherPortals = makeNetherPortals; + } + + + /** + * Sets make end portals. + * + * @param makeEndPortals the make end portals + */ + public void setMakeEndPortals(boolean makeEndPortals) + { + this.makeEndPortals = makeEndPortals; + } + + // --------------------------------------------------------------------- // Section: Variables // --------------------------------------------------------------------- @@ -2207,6 +2249,12 @@ public class Settings implements WorldSettings @ConfigEntry(path = "world.nether.blocks", needsReset = true) private List netherBlocks = new ArrayList<>(); + @ConfigComment("This option indicates if nether portals should be linked via dimensions.") + @ConfigComment("Option will simulate vanilla portal mechanics that links portals together") + @ConfigComment("or creates a new portal, if there is not a portal in that dimension.") + @ConfigEntry(path = "world.nether.create-and-link-portals") + private boolean makeNetherPortals = false; + // End @ConfigEntry(path = "world.end.generate") private boolean endGenerate = true; @@ -2245,6 +2293,11 @@ public class Settings implements WorldSettings @ConfigEntry(path = "world.end.blocks", needsReset = true) private List endBlocks = new ArrayList<>(); + @ConfigComment("This option indicates if obsidian platform in the end should be generated") + @ConfigComment("when player enters the end world.") + @ConfigEntry(path = "world.end.create-obsidian-platform") + private boolean makeEndPortals = false; + // Other staff. @ConfigComment("Mob white list - these mobs will NOT be removed when logging in or doing /cave") diff --git a/src/main/resources/config.yml b/src/main/resources/config.yml index af2e17d..4adcac0 100644 --- a/src/main/resources/config.yml +++ b/src/main/resources/config.yml @@ -181,6 +181,9 @@ world: - ENTITY:GHAST:0.1:1 - ENTITY:WITHER_SKELETON:0.1:1 - MATERIAL:FIRE:10:1 + # This option indicates if nether portals should be linked via dimensions. + # Option will simulate vanilla portal mechanics that links portals together or creates a new portal, if there is not a portal in other dimension. + create-and-link-portals: false end: generate: true # /!\ 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. @@ -213,6 +216,8 @@ world: - ENTITY:SHULKER:0.2:1 - MATERIAL:OBSIDIAN:1:1 - MATERIAL:CHORUS_PLANT:1:3 + # This option indicates if obsidian platform in the end should be generated when player enters the end world. + create-obsidian-platform: false # Mob white list - these mobs will NOT be removed when logging in or doing /cave remove-mobs-whitelist: - WITHER