A tired guy Posted March 30 Posted March 30 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? Quote
dee12452 Posted March 31 Posted March 31 Override Item#use and use the ItemStack NBT data to set some count that gets decremented on some method like Item#onInventoryTick Quote
A tired guy Posted April 6 Author Posted April 6 That's a horrible solution. What If it gets dropped or the same item is used several times? Quote
dee12452 Posted April 6 Posted April 6 I answered your question, the edge cases are up to you. Not going to bother with your rudeness, good luck bud. Quote
Recommended Posts
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.