#cooldown doesn't work

1 messages ยท Page 1 of 1 (latest)

frozen junco
#

I make a item and the component cooldown doesn't work, can someone help me?

ivory blaze
#

Can you post your behavior json file for your item?

#

That would help people greatly understand where the issue could be

ivory blaze
#

Still waiting on this Emzy~

frozen junco
#

o

#

I forgot about this

ivory blaze
# frozen junco

Can you explain any testing you've done such as if you've tried reorganizing the component list, etc

frozen junco
#

I tried changing the format version, remake the item completely, make it work with scripts

ivory blaze
#

Which format version have you tried changing to?

frozen junco
#

1.16.100

#

I used that version in other addons

ivory blaze
#

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.
frozen junco
ivory blaze
#

So maybe you need to restructure your json

frozen junco
frozen junco
#

I also tried with scripts and it doesn't work

ivory blaze
#

Does your client show you any errors upon joining your world?

ivory blaze
#

It should show you errors like this:

frozen junco
ivory blaze
#

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

ivory blaze
#

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

ivory blaze
#

@frozen junco So I think the issue here is that nothing is triggering the cooldown because the item technically isn't being used

frozen junco
#

I think that is the bug version

#

I fixed that in other version

ivory blaze
#

I'm not sure because I even tried adding in a fake food thing for it

frozen junco
ivory blaze
#
{
    "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

frozen junco
ivory blaze
#

beta api yes

frozen junco
#

you need to activate all the experiments

#

I forgot to say that

#

my bad

ivory blaze
#

okay I enabled them and it did remove the errors

frozen junco
#

well

#

what can I do to fix the cooldown?

ivory blaze
#

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

frozen junco
#

thx

#

good night