Jump to content
  • Home
  • Files
  • Docs
  • Merch
Topics
  • All Content

  • This Topic
  • This Forum

  • Advanced Search
  • Existing user? Sign In  

    Sign In



    • Not recommended on shared computers


    • Forgot your password?

  • Sign Up
  • All Activity
  • Home
  • Non-Forge
  • Minecraft General
  • Multiple Block Height blocks
Sign in to follow this  
Followers 0
Jammy780

Multiple Block Height blocks

By Jammy780, September 26, 2012 in Minecraft General

  • Reply to this topic
  • Start new topic

Recommended Posts

Jammy780    0

Jammy780

Jammy780    0

  • Tree Puncher
  • Jammy780
  • Members
  • 0
  • 23 posts
Posted September 26, 2012

Hello there!

 

I've been trying to make a block that is two blocks along (like a door on its side) I have managed to create the block side by side, but the trouble I am having now is when I destroy it. I've managed to get it to destroy both parts but it also destroys the block behind it too. I have already checked the door block class and also the bed but I just cannot figure it out and its getting really annoying! If somebody could show me a tutorial or just point me in the right direction I would be very very great full!

 

Thank you in advance,

 

Jammy780

  • Quote

Share this post


Link to post
Share on other sites

atrain99    68

atrain99

atrain99    68

  • World Shaper
  • atrain99
  • Forge Modder
  • 68
  • 1502 posts
Posted September 26, 2012

Well, the blocks have to have a reference to each other.

  • Quote

Share this post


Link to post
Share on other sites

Jammy780    0

Jammy780

Jammy780    0

  • Tree Puncher
  • Jammy780
  • Members
  • 0
  • 23 posts
Posted September 26, 2012

It's the same block class its just placing two next to each other.

  • Quote

Share this post


Link to post
Share on other sites

LexManos    1519

LexManos

LexManos    1519

  • Reality Controller
  • LexManos
  • Forge Code God
  • 1519
  • 8573 posts
Posted September 26, 2012

The doors store wither they are the top or bottom, so when it breaks it knows where to look for its other half.

The bends store both wither its the foot or the head, as well as what orientation it is. So it knows where to look for the other half.

See the connection?

  • Quote

Share this post


Link to post
Share on other sites

Jammy780    0

Jammy780

Jammy780    0

  • Tree Puncher
  • Jammy780
  • Members
  • 0
  • 23 posts
Posted September 27, 2012

The doors store wither they are the top or bottom, so when it breaks it knows where to look for its other half.

The bends store both wither its the foot or the head, as well as what orientation it is. So it knows where to look for the other half.

See the connection?

 

Thank you so much, it was just that bit of info I needed. I understand how it works now and I now have a working double block!! I love you so much! :D You help but don't spoon feed which is soooo much better because it means we actually learn! :D Thanks again! :)

  • Quote

Share this post


Link to post
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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  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.

  • Insert image from URL
×
  • Desktop
  • Tablet
  • Phone
Sign in to follow this  
Followers 0
Go To Topic Listing



  • Recently Browsing

    No registered users viewing this page.

  • Posts

    • diesieben07
      Memory Heap Thingy!

      By diesieben07 · Posted 28 minutes ago

      That's not what this thread is about... Make your own thread and post logs.
    • gudie73
      Memory Heap Thingy!

      By gudie73 · Posted 46 minutes ago

      It gets stuck on that part and doesn’t change
    • gudie73
      Memory Heap Thingy!

      By gudie73 · Posted 47 minutes ago

      Wym  
    • RaphGamingz
      ScreenGui does nothing

      By RaphGamingz · Posted 1 hour ago

      any errors?
    • RaphGamingz
      Game crashing when the block is activated

      By RaphGamingz · Posted 1 hour ago

      then you    your not assigning a value to the tileEntity try in the constructor tileEntity = world.getTileEntity(pos);
  • Topics

    • Mizinov
      7
      Memory Heap Thingy!

      By Mizinov
      Started August 24

    • Jaffaaaaa
      2
      ScreenGui does nothing

      By Jaffaaaaa
      Started Wednesday at 07:03 PM

    • jun2040
      5
      Game crashing when the block is activated

      By jun2040
      Started 17 hours ago

    • Merthew
      5
      [1.12.2] Multiple Structure Generation

      By Merthew
      Started November 7, 2018

    • Professional Derp
      16
      Server frequently crashes

      By Professional Derp
      Started 10 hours ago

  • Who's Online (See full list)

    • bismuth210
    • Choonster
    • Lea9ue
  • All Activity
  • Home
  • Non-Forge
  • Minecraft General
  • Multiple Block Height blocks
  • Theme
  • Contact Us
  • Discord

Copyright © 2019 ForgeDevelopment LLC · Ads by Curse Powered by Invision Community