"run_command" doesn't work in json
Summary: I'm trying to add an item in Minecraft Education, but it's not working as intended.
Details: The addition of the item is successful, and the texture is correctly applied. However, when the item is used, the associated event does not trigger.
JSON I created:
{
"format_version": "1.20.13",
"minecraft:item": {
"description": {
"identifier": "edu:example",
"category": "items"
},
"components": {
"minecraft:icon": {
"texture": "example"
},
"minecraft:display_name": {
"value": "item.example"
},
"minecraft:on_use": {
"on_use": {
"event": "example_event",
"target": "self"
}
}
},
"events": {
"example_event": {
"swing":{},
"run_command": {
"command": [ "say hi" ]
}
}
}
}
}
0
Please sign in to leave a comment.
Comments
0 comments