#how my sword activite just only right click not leftclick
1 messages · Page 1 of 1 (latest)
my predicate; {
"condition": "minecraft:any_of",
"terms": [
{
"condition": "minecraft:entity_properties",
"entity": "this",
"predicate": {
"equipment": {
"mainhand": {
"items": ["minecraft:diamond_sword"],
"nbt": "{chrono_sword:1b}"
}
}
}
},
{
"condition": "minecraft:entity_properties",
"entity": "this",
"predicate": {
"equipment": {
"offhand": {
"items": ["minecraft:diamond_sword"],
"nbt": "{chrono_sword:1b}"
}
}
}
}
]
}
//
my advancement:{
"criteria": {
"requirement": {
"trigger": "minecraft:using_item",
"conditions": {
"item": {
"components": {
"minecraft:food": {
"nutrition": 0,
"saturation": 0,
"can_always_eat": true,
"eat_seconds": 1000000
},
"minecraft:custom_data": "{chrono_sword:1b}"
}
}
}
}
},
"rewards": {
"function": "chronosword:use"
}
}
Im play on version 1.21.1
What?