mirror of
https://github.com/BentoBoxWorld/Boxed.git
synced 2024-12-11 14:37:52 +01:00
Expose BentoBox 1.16 portal generation mechanics. (#13)
BentoBoxWorld/BentoBox#1718
This commit is contained in:
parent
7a32465512
commit
9f4ac86fb4
@ -172,6 +172,12 @@ public class Settings implements WorldSettings {
|
|||||||
@ConfigEntry(path = "world.nether.spawn-radius")
|
@ConfigEntry(path = "world.nether.spawn-radius")
|
||||||
private int netherSpawnRadius = 32;
|
private int netherSpawnRadius = 32;
|
||||||
|
|
||||||
|
@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", since = "1.16")
|
||||||
|
private boolean makeNetherPortals = false;
|
||||||
|
|
||||||
// End
|
// End
|
||||||
@ConfigComment("End Nether - if this is false, the end world will not be made and access to")
|
@ConfigComment("End Nether - if this is false, the end world will not be made and access to")
|
||||||
@ConfigComment("the end will not occur. Other plugins may still enable portal usage.")
|
@ConfigComment("the end will not occur. Other plugins may still enable portal usage.")
|
||||||
@ -1735,4 +1741,19 @@ public class Settings implements WorldSettings {
|
|||||||
this.onLeaveResetAdvancements = onLeaveResetAdvancements;
|
this.onLeaveResetAdvancements = onLeaveResetAdvancements;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return the makeNetherPortals
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public boolean isMakeNetherPortals() {
|
||||||
|
return makeNetherPortals;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sets make nether portals.
|
||||||
|
* @param makeNetherPortals the make nether portals
|
||||||
|
*/
|
||||||
|
public void setMakeNetherPortals(boolean makeNetherPortals) {
|
||||||
|
this.makeNetherPortals = makeNetherPortals;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -87,6 +87,11 @@ world:
|
|||||||
# Minimum is 0 (not recommended), maximum is 100. Default is 25.
|
# Minimum is 0 (not recommended), maximum is 100. Default is 25.
|
||||||
# Only applies to vanilla nether
|
# Only applies to vanilla nether
|
||||||
spawn-radius: 32
|
spawn-radius: 32
|
||||||
|
# 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.
|
||||||
|
# Added since 1.16
|
||||||
|
create-and-link-portals: false
|
||||||
end:
|
end:
|
||||||
# End Nether - if this is false, the end world will not be made and access to
|
# End Nether - if this is false, the end world will not be made and access to
|
||||||
# the end will not occur. Other plugins may still enable portal usage.
|
# the end will not occur. Other plugins may still enable portal usage.
|
||||||
|
Loading…
Reference in New Issue
Block a user