#cooldown doesn't work
1 messages ยท Page 1 of 1 (latest)
Can you post your behavior json file for your item?
That would help people greatly understand where the issue could be
Still waiting on this Emzy~
Can you explain any testing you've done such as if you've tried reorganizing the component list, etc
I tried changing the format version, remake the item completely, make it work with scripts
Which format version have you tried changing to?
Okay so this is my lava bottle file;
{
"format_version": "1.20.80",
"minecraft:item": {
"description": {
"identifier": "ee:potion_bottle_lava",
"menu_category": {
"category": "items"
}
},
"components": {
"minecraft:icon": "ee:potion_bottle_lava",
"minecraft:display_name": {
"value": "Lava Bottle"
},
"minecraft:max_stack_size": 1,
"minecraft:cooldown": {
"duration": 5,
"category": "potion"
},
"minecraft:use_duration": 32,
"minecraft:food": {
"nutrition": 5
}
}
}
}```
As is, it is not working with the food part however upon trying to use the item it IS however using the cooldown.
I tried with 1.16.100 and 1.20.50
So maybe you need to restructure your json
I made the same system for the cooldown
I remake the item 2 times
I also tried with scripts and it doesn't work
Does your client show you any errors upon joining your world?
It should show you errors like this:
no, it doesn't show anything
Hmm well can you send me your behavior/resource folders and I can attempt to debug it for you?
You can DM me if you'd prefer not to sure them publicly
okok
wait
But here is further proof that I got the cooldown working:
So just a quick screenshot, You definitely have errors:
Also you failed to create a dependency for your behavior pack
@frozen junco So I think the issue here is that nothing is triggering the cooldown because the item technically isn't being used
what
I think that is the bug version
I fixed that in other version
how I can fix that?
I'm not sure because I even tried adding in a fake food thing for it
why are the run commands not working?
{
"format_version": "1.20.80",
"minecraft:item": {
"description": {
"identifier": "emzy:shade_cloath",
"menu_category": {
"category": "equipment"
}
},
"components": {
"minecraft:cooldown": {
"duration": 5,
"category": "dash"
},
"minecraft:can_destroy_in_creative": false,
"minecraft:hand_equipped": true,
"minecraft:icon": "emzy_shade_cloath",
"minecraft:max_stack_size": 1,
"minecraft:use_duration": 1,
"minecraft:food": {
"nutrition": 5,
"saturation_modifier": 0
}
}
}
}
}```
idk i got that the instant I enabled both the resource+behavior pack and joined the world
you activated the experiments?
beta api yes
okay I enabled them and it did remove the errors
okok
well
what can I do to fix the cooldown?
But I still can't get your cloak working with a cooldown :/ and I need to go to bed ๐ If no one has helped again by time I get off work tomorrow I'll give it another go
okok don't worry
thx
good night