Jump to content

Recommended Posts

Posted

Hi,

 

I'm currently helping the MineColonies team to get their mod updated to 1.8.9, but I'm wondering a few things.

 

Like in 1.7.10 they we got these methods:

world.setBlock(x, y, , block, metadata, 0x03);
world.setBlockMetadataWithNotify(x, y , z, metadata, 0x03);
world.setBlock(coords.posX, coords.posY, coords.posZ, block);
Vec3.createVectorHelper(x, y, z);
citizenInventory.func_110133_a(message.name); (citizenInventory extends from InventoryBasic)
world.isAirBlock(posX, posY, posZ);
world.canBlockSeeTheSky(x, yHolder, z)
Vec3.squareDistanceTo(x, y, z)
MinecraftServer.getServer().func_152358_ax().func_152652_a(id);
world.blockExists

So, how to do this in 1.8.9?

I think this should it be for the beginning. ;)

 

Thx in advance.

Bektor

 

EDIT: Oh, I forgot something. How do I do Entity Rendering in 1.8.9? I've got here some Entity code which extends from RenderBiped.

Developer of Primeval Forest.

Posted

All of the methods you have indicated no longer take integer x y z parameters but a single BlockPos object, which is a wrapper around integer x y z.

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

All of the methods you have indicated no longer take integer x y z parameters but a single BlockPos object, which is a wrapper around integer x y z.

example for setBlock: The method setBlock(BlockPos, Block) is undefined for the type World

So this does not seem to work. And then there are still some things with no xyz coords. ;)

 

Developer of Primeval Forest.

Posted

All of the methods you have indicated no longer take integer x y z parameters but a single BlockPos object, which is a wrapper around integer x y z.

example for setBlock: The method setBlock(BlockPos, Block) is undefined for the type World

So this does not seem to work. And then there are still some things with no xyz coords. ;)

Are you sure that you are using vanilla

BlockPos

?

Because some mods had their own class in 1.7.10, and iа using it, it will not work.

Posted

No where near my IDE but aren't you supposed to be setting blockstates as opposed to raw blocks?

 

Hell yeah.

 

OP - look at the damn code, its very easy to find stuff and examples.

 

world.setBlockState(pos, blockInstance.getDefaultState().withProperty(possibly some properties)); //  Note that this is example of usage.

 

Read how to work with IBS.

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

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.