Jump to content

Is there any method that triggers when block is moved with piston? 1.12.2


AntonBespoiasov

Recommended Posts

I have a block that mustn't be counted when piston counts blocks for pushing limit.But I don't know how to implement this feature. I've got an idea that I can move block using methods of block. I.e if there is a method that is called right before piston pushes blocks and that receives information about the push I can move block from this method before the piston. That means that piston won't count this block while trying to push the blocks.

Another idea isn't related to "method that is triggered when piston pushes blocks". This idea is about overriding piston and its behavior. I can somehow remove instance of old implementation of piston from registry and add mine one. But I think that it can cause mods conflicts and etc.

Edited by AntonBespoiasov
Link to comment
Share on other sites

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.