Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

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.

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.

  • Author

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.

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.

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

I think its my java of the variables.

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...

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.