Material Choices - ShaneBeee/SkBee GitHub Wiki
SkBee introduces Minecraft Tags and Material Choices.
Minecraft Tags
Minecraft has some built in tags, which group together some things.
As of right now, SkBee supports item and block tags, but maybe more types will come in the future.
You can use these to create material choices or even to check if an item is tagged.
See McWiki for more detailed information on tags.
Simple syntaxes:
minecraft [(item|block)] tag[s] %strings%
[all] minecraft [(item|block)] tags
[all] item[type]s of minecraft [(item|block)] tag[s] %strings%
When using these expressions, by default we'll look for item tags. But you can also distinguish between item and block tags.
The first expression:
minecraft [(item|block)] tag[s] %strings%
Allows you to retrieve a tag, ie:
set {_tag} to Minecraft tag "doors"
This will return a list of all doors.
The second expression:
[all] minecraft [(item|block)] tags
Will return a list of all possible flags. This can be helpful if you aren't sure which tags are available.
The last expression:
[all] item[type]s of minecraft [(item|block)] tag[s] %strings%
Alls you to get a list of all item types pertaining to a tag.
Here is an example output using the tag "doors"
[01:38:20 INFO]: executing 'send "%items of minecraft tag ""doors""%"'
[01:38:20 INFO]: jungle wood door, acacia wood door, iron door, oak wood door, birch wood door, spruce wood door, warped door, crimson door and dark oak wood door
Theres also a handy little condition which allows you to check if an item type is tagged.
%item types% (is|are) tagged (with|as) %minecraft tags%
%item types% (isn't|is not|aren't|are not) tagged (with|as) %minecraft tags%
Example usage:
if target block is tagged with Minecraft tag "doors":
FANCY!!!
Material Choices
Material choices allow you to create a list of items or tags, that will be used in recipes for ingredients, thus allowing you to create one recipe that accepts variations of ingredients.
The syntaxes are pretty straight forward
material choice of %itemtypes%
material choice of %minecrafttag%
You can create a material choice using a bunch of items:
set {_m} to material choice of diamond sword, iron sword, stone sword and wooden sword
You can also create groups based on the 'every' keyword:
set {_m} to material choice of every sword
This will return a list of every sword available:
MaterialChoice{choices=[wood sword, stone sword, gold sword, iron sword, diamond sword, netherite sword]}
Lastly, you can create a material choice using tags:
set {_m} to material choice of minecraft tag "doors"