Posted October 25, 201311 yr 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 ლ(́◉◞౪◟◉‵ლ
October 25, 201311 yr 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
October 26, 201311 yr Author What would I put in the parameters for schedule update? It's just par1-par5. "you seem to be THE best modder I've seen imo." ~spynathan ლ(́◉◞౪◟◉‵ლ
October 26, 201311 yr 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.
October 26, 201311 yr Author 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 . Thx for the help. "you seem to be THE best modder I've seen imo." ~spynathan ლ(́◉◞౪◟◉‵ლ
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.