Jump to content

Recommended Posts

Posted

I want make a multiblock structure from a single block add by my mod i want it to register as multiblock if 1 wide and 2 high depth one or 2 wide and 2 heigh depth 1, i want the blocks to changes texture when it is a multiblock and i want each of the blocks to have difference and when it a multiblock when right clicked it will bring up gui.

 

I have the coding for the gui open when a single block is right click i have made boolean variable call multiblock and warp gui open code in if statement to only fire when boolean is true. but i am looking how to get boolean to become only if it is the desired  multiblock shape and how to update the texture when the boolean is true.

Posted

To check if it is the desired multiblock make if checks like (pseudocode incoming)

if(world.getBlock(x,y,z) == Blocks.stone && world.getBlock(x,y,z)==Blocks.wood) setBooleanToTrue()

I dont know what the getBlock method in 1.7 was so u need to find that out urself.

And about the texture. I think you could use metadata to do that

Posted

To check if it is the desired multiblock make if checks like (pseudocode incoming)

if(world.getBlock(x,y,z) == Blocks.stone && world.getBlock(x,y,z)==Blocks.wood) setBooleanToTrue()

I dont know what the getBlock method in 1.7 was so u need to find that out urself.

And about the texture. I think you could use metadata to do that

 

x,y,z absolute position as the x,y,z value it is in the world or distance from the the block in question

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.