Bracket Handlers

Link to bracket-handlers

ZenScript uses Brackets to reference game objects such as Items, Entities and Oredict.

How to use Bracket Handlers

Link to how-to-use-bracket-handlers

Brackets in ZenScript are defined using the < and > characters, anything inside these characters are considered a Bracket.

An example of a Bracket Handler would be the Item Bracket Handler, which gives you access to the items inside the game.

An example of the Item Bracket Handler would be:

ZenScript
Copy
<minecraft:apple>

This will give you access to the Apple item.

An example of the OreDictEntry Bracket Handler would be:

ZenScript
Copy
<ore:ingotIron>

This will give you access to the IOreDictEntry for ingotIron.