Jump to content

[1.7.10] TileEntity.worldObj.setBlock() not working


Recommended Posts

Posted

I have created a method:

private void sBlock(int x, int y, int z, Block b){
this.worldObj.setBlock(xCoord + x, xCoord + y, xCoord + z, b, 0, 2);
}

but when i call it, it does... nothing.

Posted

Also: (look at your coords)

x + x

x + y

x + z

 

It probably works, just sets block in some useless place.

1.7.10 is no longer supported by forge, you are on your own.

Posted

Knowing why something doesn't work from two lines of code is more often then not close to impossible. Please provide more information so that we can be of some assistance to you in solving your issue.

I still haven't published a mod because I can never get that in-dev version just right to warrant a public release. And yes, after two years of mod development I am still learning to speak Java.

 

Follow me on GitHub: https://github.com/yooksi

Contact me on Twitter: https://twitter.com/yooksi

Read my Minecraft blog: https://yooksidoesminecraft.blogspot.de/

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.