Skip to content

Commit

Permalink
server.flag_map and item script meta info
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Dec 11, 2020
1 parent 536bb55 commit 2d19861
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Expand Up @@ -111,6 +111,7 @@ public class ItemScriptContainer extends ScriptContainer {
// # For an empty slot, use "air".
// # By default, items require an exact match. For a material-based match, use the format "material:MaterialNameHere" like "material:stick".
// # To make multiple different items match for any slot, just separate them with slashes, like "stick/stone". To match multiple materials, use "material:a/b/c".
// # Note that to require multiple of an item as an input, the only option is to use multiple slots. A single slot cannot require a quantity of items, as that is not part of the minecraft recipe system.
// # | All recipes must include this key!
// input:
// - ItemTag|ItemTag|ItemTag
Expand Down
Expand Up @@ -485,6 +485,11 @@ else if (recipe instanceof CookingRecipe<?>) {
.getObjectAttribute(attribute.fulfill(1)));
return;
}
if (attribute.startsWith("flag_map")) {
event.setReplacedObject(Denizen.getInstance().serverFlagMap.doFlagMapTag(attribute)
.getObjectAttribute(attribute.fulfill(1)));
return;
}

// <--[tag]
// @attribute <server.traits>
Expand Down

0 comments on commit 2d19861

Please sign in to comment.