Jump to content

Tile Entity Changing BoundingBox


thebest108

Recommended Posts

I want my tile entity to change the parent block's bounding box every tick, but I can't seem to find a reference to the parent block from the tile entity. Is there some method I'm overlooking?

Edit: How would I use a tile entity to tick a block, I don't know what to put in the world.scheduleUpdate methods

"you seem to be THE best modder I've seen imo."

~spynathan

 

ლ(́◉◞౪◟◉‵ლ

Link to comment
Share on other sites

Hi

 

The direct answer to your question is that the TileEntity knows its [x,y,z], so you can access the block at [x,y,z] using

World.getBlockID() and World.getBlockMetadata()

 

But I think that this probably won't help you much, because every block of that type has the same bounding box.  I think what you're asking is backwards - i.e. the Block should be asking its TileEntity what the bounding box is, since the TileEntity stores that information, not the block.

 

Why do you want to change the bounding box, i.e. what effect are you trying to achieve?

 

Your TileEntity ticks every time so you can just tick the block from the TileEntity tick-?

 

Lots of vanilla code uses scheduleUpdate, but I'm not sure it's really what you need.

 

-TGG

 

 

Link to comment
Share on other sites

What would I put in the parameters for schedule update? It's just par1-par5.

 

X, Y, Z, BlockID, Delay (in ticks)

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.

Link to comment
Share on other sites

Thx. I mean to change all of those. ATM I'm working on a project that's sure to get some heads turning, but I haven't done enough of it yet that I'll say what it is. What I will say is that it's very cool and revolutionary ;D. Thx for the help.

"you seem to be THE best modder I've seen imo."

~spynathan

 

ლ(́◉◞౪◟◉‵ლ

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



×
×
  • Create New...

Important Information

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