My goal is
When a player left clicks a specific custom item it sets their scoreboard value to zero
When a player right clicks a specific custom item it sets their scoreboard value to zero
"format_version": "1.10.0",
"animation_controllers": {
"variable.attack_time": {
"initial_state": "false",
"states": {
"false": {
"on_entry": ["/scoreboard players set @s leftClick 0"],
"transitions": [
{
"true": "variable.attack_time"
}
]
},
"true": {
"on_entry": ["/scoreboard players set @s leftClick 1"],
"transitions": [
{
"false": "!variable.attack_time"
}
]
}
}
},
"is_using_item": {
"initial_state": "false",
"states": {
"false": {
"on_entry": ["/scoreboard players set @s rightClick 0"],
"transitions": [
{
"true": "q.is_using_item"
}
]
},
"true": {
"on_entry": ["/scoreboard players set @s rightClick 1"],
"transitions": [
{
"false": "!q.is_using_item"
}
]
}
}
}
}
}```
It's my first time using Animation Controllers, I'm not sure if I'm missing something else