Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

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.

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

  • Author

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

  • Author

of course absolute.

 

so how do i check the block next to one placed? do i have the ~ like in relative teleport

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...

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.