I'm developing a mod and I have a custom item that gives the user some effects, spawns some particles, and plays a sound. I have all of those down, but I also want to add a half-second delay to the item before it applies the effects after it is used. How can I do this? I'm rather stumped as to how to deal with ticks inside an item as opposed to a block/other entity.
#I want a delay on a custom item's effects, how do I do that?
3 messages · Page 1 of 1 (latest)
Not like a "use for this long" or a cooldown? You'll need to set a timer using something, whether it's the world or the user. If you go for the user, mixin to their tick method and do your countdown logic there.
i think i understand, but for further clarification: i want the effects to be applied a half-second AFTER the user uses the item, i already know how to apply a normal cooldown to the item