Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -889,15 +889,21 @@ public void adjust(Mechanism mechanism) {
// <--[mechanism]
// @object ChunkTag
// @name regenerate
// @deprecated This functionality was removed from Spigot and Paper as of 1.21.
// @input None
// @description
// Deprecated on MC 1.21+.
// Causes the chunk to be entirely deleted and reformed from the world's seed.
// At time of writing this method only works as expected on Paper, and will error on Spigot.
// @example
// - adjust <player.location.chunk> regenerate
// -->
if (mechanism.matches("regenerate")) {
getBukkitWorld().regenerateChunk(getX(), getZ());
if (NMSHandler.getVersion().isAtMost(NMSVersion.v1_20)) {
getBukkitWorld().regenerateChunk(getX(), getZ());
}
else {
mechanism.echoError("The 'ChunkTag.regenerate' mechanism has been deprecated upstream and is no longer supported.");
}
}

// <--[mechanism]
Expand Down