mirror of
https://github.com/BentoBoxWorld/CaveBlock.git
synced 2024-11-22 11:35:11 +01:00
Implement options for linking nether portals and crating end obsidian platform.
This commit is contained in:
parent
c61a2deaac
commit
9006a5f4d4
@ -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<String> 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<String> 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")
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user