diff --git a/plugin/src/main/java/com/denizenscript/denizen/events/player/PlayerCraftsItemScriptEvent.java b/plugin/src/main/java/com/denizenscript/denizen/events/player/PlayerCraftsItemScriptEvent.java index 89f298c8f8..d1d6af7e8d 100644 --- a/plugin/src/main/java/com/denizenscript/denizen/events/player/PlayerCraftsItemScriptEvent.java +++ b/plugin/src/main/java/com/denizenscript/denizen/events/player/PlayerCraftsItemScriptEvent.java @@ -41,6 +41,7 @@ public class PlayerCraftsItemScriptEvent extends BukkitScriptEvent implements Li // returns the amount of the item that will be crafted (usually 1, except when shift clicked. Can be above 64). // returns a ListTag of ItemTags in the recipe. // returns the ID of the recipe that is being crafted. + // returns an ElementTag with the name of the click type. Click type list: <@link url https://hub.spigotmc.org/javadocs/spigot/org/bukkit/event/inventory/ClickType.html> // // @Determine // ItemTag to change the item that is crafted. @@ -116,6 +117,9 @@ else if (name.equals("amount")) { } return new ElementTag(amount); } + else if (name.equals("click_type")) { + return new ElementTag(event.getClick().name()); + } else if (name.equals("recipe")) { ListTag recipe = new ListTag(); for (ItemStack itemStack : event.getInventory().getMatrix()) { diff --git a/plugin/src/main/java/com/denizenscript/denizen/events/world/PortalCreateScriptEvent.java b/plugin/src/main/java/com/denizenscript/denizen/events/world/PortalCreateScriptEvent.java index 30a0677d69..0e0f7f131a 100644 --- a/plugin/src/main/java/com/denizenscript/denizen/events/world/PortalCreateScriptEvent.java +++ b/plugin/src/main/java/com/denizenscript/denizen/events/world/PortalCreateScriptEvent.java @@ -32,7 +32,7 @@ public class PortalCreateScriptEvent extends BukkitScriptEvent implements Listen // @Context // returns the EntityTag that created the portal. // returns the WorldTag the portal was created in. - // returns an ElementTag of the reason the portal was created. (FIRE or OBC_DESTINATION) + // returns an ElementTag of the reason the portal was created. (FIRE, NETHER_PAIR, END_PLATFORM) // returns a ListTag of all the blocks that will become portal blocks. // // --> diff --git a/plugin/src/main/java/com/denizenscript/denizen/scripts/containers/core/ItemScriptContainer.java b/plugin/src/main/java/com/denizenscript/denizen/scripts/containers/core/ItemScriptContainer.java index 7257c967be..9232615696 100644 --- a/plugin/src/main/java/com/denizenscript/denizen/scripts/containers/core/ItemScriptContainer.java +++ b/plugin/src/main/java/com/denizenscript/denizen/scripts/containers/core/ItemScriptContainer.java @@ -61,6 +61,7 @@ public class ItemScriptContainer extends ScriptContainer { // # This demonstrates how to add a custom attribute modifier. // attribute_modifiers: // # One subkey for each attribute you want to modify. + // # Valid attribute names are listed at https://hub.spigotmc.org/javadocs/spigot/org/bukkit/attribute/Attribute.html // generic_armor: // # Each attribute can have a list of modifiers, using numbered keys. They will be applied in numeric order, low to high. // 1: