Posted March 15, 20214 yr I want to add my own logic to ItemEntity tick method so it will check every tick for a certain condition and if the condition occurs, somthing will happen like changing item. How can I do that?
March 15, 20214 yr What are you attempting to do? What would the condition be? Why does it need to be checked every tick?
March 15, 20214 yr Author I want to check when a certain item collide with dragon breath, if yes, it will be changed to another item.
March 15, 20214 yr 1 hour ago, NIsimm said: I want to check when a certain item collide with dragon breath, if yes, it will be changed to another item. Is that "certain item" your own custom item or a vanilla one? Check out the port of the BetterEnd fabric mod (WIP): https://www.curseforge.com/minecraft/mc-mods/betterend-forge-port
March 15, 20214 yr Probably can use EntityJoinWorldEvent to store the EntityItems and remove them via EntityLeaveWorldEvent. Then can use the world tick event on the server to handle your logic and sync the data to the client.
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.