Jump to content

Recommended Posts

Posted

Trying to accomplish the same thing with a model two blocks wide and two blocks tall. Currently using 4 split model pieces and then using BlockStates to change the piece out. Still trying to work it out though haha

Posted (edited)
  On 6/10/2017 at 12:16 AM, Jigokusaru said:
  1. Can I make 2 block high models?
Expand  

No. You must use two blocks.

Edited by Draco18s

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.

Posted
  On 6/10/2017 at 1:10 AM, Nomnomab said:

Would my way be fine?

Expand  

I edited my post in quick order. Yes, your way is fine.

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.

Posted
  On 6/10/2017 at 1:15 AM, Draco18s said:

I edited my post in quick order. Yes, your way is fine.

Expand  

Quick question then, do TileEntities support loading of BlockStates to a Block it is housed in? Trying to make this as painless as possible to load up states over 16.

 

  On 6/10/2017 at 12:16 AM, Jigokusaru said:
  1. Can I make 2 block high models?
  2. if so, do I need a special object in the BlockX.java?
  3. can I use a advanced json file to do so as well?
Expand  

I can share what I've done once I make sure it doesn't blow up in my face anymore :P 
 

Posted
  On 6/10/2017 at 1:18 AM, Nomnomab said:

Quick question then, do TileEntities support loading of BlockStates to a Block it is housed in? Trying to make this as painless as possible to load up states over 16.

Expand  

Block#getActualState()

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.

Posted
  On 6/10/2017 at 1:22 AM, Draco18s said:

Block#getActualState()

Expand  

Tried that, although only tried to use data from the TileEntity to set the state there. Should I use placement instead in the "group" of multiblocks? Like parent is x,y,z and child is using that parent's position to determine the state? What would you recommend

Posted
  On 6/10/2017 at 2:02 AM, Jigokusaru said:

I need to have a 2 block high block I can activate. that's basically it.

the top part and the bottom part need to act as 1 block.

Expand  

Ah ok, then yeah, it should be fine for you. Unless it doesn't act like a door, then you might have to do a bit of a rewrite :P 

Posted
  On 6/10/2017 at 1:24 AM, Nomnomab said:

Tried that, although only tried to use data from the TileEntity to set the state there.

Expand  

Were you syncing the data to the client?

  1 hour ago, Nomnomab said:

Should I use placement instead in the "group" of multiblocks? Like parent is x,y,z and child is using that parent's position to determine the state? What would you recommend

Expand  

I do that for one of my structures. A 3x3 millstone.

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.

Posted
  On 6/10/2017 at 2:39 AM, Draco18s said:
  On 6/10/2017 at 1:24 AM, Nomnomab said:

Tried that, although only tried to use data from the TileEntity to set the state there.

Expand  

Were you syncing the data to the client?

Expand  

Yep, just could never find the right way to set the state to the Block. Since I kept getting NullPointers for the block state. :S

  On 6/10/2017 at 2:39 AM, Draco18s said:
  Quote

Should I use placement instead in the "group" of multiblocks? Like parent is x,y,z and child is using that parent's position to determine the state? What would you recommend

Expand  

I do that for one of my structures. A 3x3 millstone.

Expand  

Ah sweet, currently making the base classes for this so that I can do it as large as I need :D Hopefully it doesn't explode too much :P 

Posted (edited)
  On 6/10/2017 at 2:42 AM, Nomnomab said:

Yep, just could never find the right way to set the state to the Block. Since I kept getting NullPointers for the block state. :S

Expand  

No, you're not.

That line you have does like 14 things and one of them is throwing null (and it is almost certainly not the getBlockState() part). You need to either:

a) break it up onto multiple lines to figure out which piece is null

b) use your god damn debugger to do the same thing

Edited by Draco18s

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.

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.