Jump to content

Saevar

Members
  • Posts

    3
  • Joined

  • Last visited

Converted

  • Gender
    Undisclosed
  • Personal Text
    I am new!

Saevar's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. 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]
  2. Ok if there is a "hard" way could you point me in the right direction of what I would need to do? Thanks for the quick answer
  3. I want to cancel lava/water placement on a vanilla server, this code works but not on a vanilla server, so my question is if there is any way to cancel lava/water placement client side so the lava doesn't reach the server at all. [embed=425,349]@SubscribeEvent public void onBucketFill(FillBucketEvent event) { event.setCanceled(true); }[/embed]
×
×
  • Create New...

Important Information

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