Jump to content

Multi-Block Structures (like waterwheels)


MikeZ

Recommended Posts

Hello,

I wondered, how multi-block structures are made.

So that a player places a specific structure of blocks, and then a single block appears. e.g. Water Wheels from Immersive Engineering.

 

Does anyone have a tutorial or tips for that project. It should be for 1.7.10?

 

Thanks,

Mike

Link to comment
Share on other sites

It's not that hard, if you are a little bit experienced with rendering. Have a core block from which you check if a specific pattern of blocks is correct each tick, and if it is, spawn your desired entity/tile-entity. In case of a water wheel you would need a custom rendered entity with a rotating animation, with ghostly, fully transparent blocks around it's base to give it a hitbox. When one of these blocks is broken, you can either drop all the water wheel components, or save the broken blok position to respawn the pattern with the missig piece. That's what i would have tried, even though i myself probably wouldn't jave bothered with this at all until i learn something good about rendering.

Link to comment
Share on other sites

Don't check every tick.  Only check when your block gets a neighborChanged update

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

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.