Posted March 30, 20241 yr Let's say I have created an item, after I use it, it will do a certain action, for example, spawning particles on the player's position over the span of 20 ticks, without the use button being held down by the player. How would that be done?
March 31, 20241 yr Override Item#use and use the ItemStack NBT data to set some count that gets decremented on some method like Item#onInventoryTick
April 6, 20241 yr Author That's a horrible solution. What If it gets dropped or the same item is used several times?
April 6, 20241 yr I answered your question, the edge cases are up to you. Not going to bother with your rudeness, good luck bud.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.