Jump to content

CreateNewTileEntity(...) parameters ?? [1.7.10]


Recommended Posts

Posted

So, this is just a simple question I have, and couldn't find anything on google about it, what are the parameters of createNewTileEntity, I know the world parameter, but what is the second one? Is it metadata? I hope so, because I have a metadata block, and would like to have a different tile for each one. If it isn't I have ways of working round it, and using one tileentity, I could use the getMetadata method in the tileentity.

 

Thanks.

I ask complicated questions, and apparently like to write really long detailed posts. But I also help others when I can.

  • 10 months later...
Posted

And does it correspond to the created block's metadata, or the used ItemStack's damage? Also, can I work around this method completely? I'd rather have my ItemBlock class do the work.

Posted

I'll beat Dies to it.

 

No, NO, No, no, NO

 

 

Now, joking aside.

 

In your block that has a tileentity associated with it, it should automatically create the tile when the block is placed.

 

You place the block, the tile is instantly placed also.

 

also, it is more like w.setblockstate(pos, machineBlock.getdefaultstate);  [that is for 1.8]  - oops

 

for 1.7, you are fine for block placement, same comment on tile.

Long time Bukkit & Forge Programmer

Happy to try and help

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.