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

Hello all. I'm trying to make my door only 1 block high. And while I can get it only 1 block high, and I can get it to activate via redstone, and get it to work like double doors, I can't get all of them to work TOGETHER. I either have a 1 block tall door that's kinda buggy, or i have a 2 block high double door that can activate with redstone.

 

        par0World.setBlock(par1, par2, par3, par5Block, par4, 2);

        par0World.setBlock(par1, par2 + 1, par3, par5Block, 8 | (flag2 ? 1 : 0), 2);

        par0World.notifyBlocksOfNeighborChange(par1, par2, par3, par5Block);

        par0World.notifyBlocksOfNeighborChange(par1, par2 + 1, par3, par5Block);

 

Where that "+1" is makes all the difference.. With it, I have a 2 block high door that can be a double door and WORKS with redstone, while without it, i get a single block door that can be a double door that does NOT work with redstone. If I leave out ALL the code from the Item class, I have a 1 block door that CAN work with redstone, but can't be double doors.

 

I need it 1 block high, can be double doors, and can work with redstone... Anyone know a solution?

 

My custom BlockDoor class is almost exactly the same as the vanilla BlockDoor class (the only difference being it doesnt need a block underneath it), and my custom ItemDoor class is exactly the same for the vanilla ItemDoor as well

Remove that line entirely.

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.

when i do that it makes it 1 block high, and no double doors

 

You do know what that one line does, right?

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.

  • Author

when i do that it makes it 1 block high, and no double doors

 

You do know what that one line does, right?

it places the upper half of the door. it also holds the key to double doors. I thought maybe by lowering the up half of the door down a block, that it would work right but it won't work with redstone when i do that.

No, actually it doesn't.  All it does is change the block-above to being the top half of a door with the correct metadata.  The next line,

notifyBlocksOfNeighborChange

, is what makes double-doors work.

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.

  • Author

No, actually it doesn't.  All it does is change the block-above to being the top half of a door with the correct metadata.  The next line,

notifyBlocksOfNeighborChange

, is what makes double-doors work.

I've tried it several times. when i ixnay that line, its 1 tall, but no double doors
  • 2 weeks later...

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.