generated from FabricMC/fabric-example-mod
-
Notifications
You must be signed in to change notification settings - Fork 176
Equipped Item
apace100 edited this page Mar 10, 2021
·
2 revisions
Entity Condition. Checks whether the player has an item equipped in a specific slot which matches a provided item condition.
Type ID: origins:equipped_item
Fields:
equipment_slot
, string: Which equipped item to check. One of: "mainhand", "offhand", "head", "chest", "legs", "feet".
item_condition
, Item Condition: Which condition will be applied to the item in the specified slot.
Example:
"condition": {
"type": "origins:equipped_item",
"equipment_slot": "mainhand",
"item_condition": {
"type": "origins:harvest_level",
"comparison": ">=",
"compare_to": 2
}
}
This condition checks whether the player is holding a tool or weapon of iron material or better in the mainhand (as defined per the harvest level).
Tutorials (Data packs)
Video Tutorial by CandyCaneCazoo
Tutorials (Add-ons)
Working with more unique powers
Lists
List of vanilla damage source names
Data Types