Jump to content

[1.7.10] Placing a block doesn't go at the coordinates I want


Saevar

Recommended Posts

I'm trying to place a block(specifically water/lava from a bucket) at certain coordinates.

The placement action needs to be sent from the client because I want the mod to work on a vanilla server.

 

What I've got so far places the block where the player is looking at but I don't want that. I thought this would place the block at x:1, y:3, z:0 soo... what am I doing wrong? [embed=425,349]Minecraft.getMinecraft().thePlayer.sendQueue.addToSendQueue(new C08PacketPlayerBlockPlacement(1, 3, 0, f, Minecraft.getMinecraft().thePlayer.inventory.getCurrentItem(), 0.0F, 0.0F, 0.0F));[/embed]

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.


×
×
  • Create New...

Important Information

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