Jump to content

Recommended Posts

Posted

Hello,

I want to be able to rightclick with an item on a block (any block in a 3x3x3 structure for example), this should check if the other Blocks are set, and if they are it should change their Texture, if any of the Blocks get destroyed afterwards, they all should turn back.
How would one go on to do this, I have been looking into the Immersive Engineering mod but isn't there a more simple method to implement this?

My thought was to make the item rightclick on a specific block call an event that checks the surrounding blocks in a loop until it finds one that is wrong, if the loop finishes it returns a true boolean, if not then false, but how can I change the textures of all the blocks if it returns true? Are Blockstates the way to go here, even if I want to use vanilla blocks for this? And should the structure constantly check if it's still correct or can an event be triggered when a block breaks, that changes the textures back?

Can someone please point me to some methods to read through for this?

Thanks in advance.

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.