-
-
Notifications
You must be signed in to change notification settings - Fork 103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dragon tags & mechs #2620
base: dev
Are you sure you want to change the base?
Dragon tags & mechs #2620
Conversation
paper/src/main/java/com/denizenscript/denizen/paper/properties/PaperWorldExtensions.java
Show resolved
Hide resolved
paper/src/main/java/com/denizenscript/denizen/paper/properties/PaperWorldExtensions.java
Show resolved
Hide resolved
if (!mechanism.hasValue()) { | ||
battle.spawnNewGateway(); | ||
} | ||
if (mechanism.requireObject(LocationTag.class)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
else if
// --> | ||
tagProcessor.registerMechanism("respawn_dragon", false, (object, mechanism) -> { | ||
if (object.getWorld() == null) { | ||
mechanism.echoError("World '" + object.world_name + "' is unloaded, cannot set respawn phase."); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
... when is this a real concern?
// <--[mechanism] | ||
// @object WorldTag | ||
// @name respawn_phase | ||
// @input ElementTag(String) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just ElementTag
gateway_count
healing_crystals
respawn_crystals
spawn_gateway
first_dragon_killed
respawn_dragon
reset_crystals
respawn_phase
first_dragon_killed
I opened this as a draft PR because I haven't tested any of this/just wrote this up, and want it open so that I don't lose it in my sea of local and published branches. Feel free to comment/review though!