Jump to content

Recommended Posts

Posted

I have searched and I have come to the conclusion that I need to use a TickHandler but I don't know how to implement it in the context of my action, I need that when a player uses an item in a block, it removes the item on the fly and, after some time passes, spawns at the coordinates of the block.

Posted

I don't know what a TickHandler is, but you can store the stack in the tile entity, after a duration (maybe just an int field increment every tick), and spawn after time expires.

Check BlockEntityTicker, or ITickableTileEntity in older versions (1.16/1.18? I can't remember.)

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.