#Cooldown component not working?

1 messages · Page 1 of 1 (latest)

verbal glen
#

here's the json file

    "format_version": "1.20.20",
    "minecraft:item": {
        "description": {
            "identifier": "unk:blade"
        },
        "components": {
            "minecraft:max_stack_size": 12,
            "minecraft:on_use": {
                "on_use": {
                    "event": "throw"
                },
                "minecraft:cooldown":{
                    "category": "attack",
                    "duration": 0.2
                }
            },
            "minecraft:icon": {
                "texture": "blade"
            },
            "minecraft:display_name": {
                "value": "Blade"
            }
        },
        "events": {
            "throw": {
                "shoot": {
                    "projectile": "unk:throwable_blade_entity",
                    "launch_power": 2,
                    "angle_offset": 0
                },
                "swing": {},
                "decrement_stack": {},
                "run_command": {
                    "command": [
                        "playsound fire.ignite",
                        "playsound mob.witch.throw"
                    ]
                }
            }
        }
    }
}```

everything works but the cooldown component is not working for some reason, I put the format_version in both 1.16.100 & 1.20.10 to see if the component works but it doesn't?
#

Nevermind

#

I placed the component in the wrong area 0_0