Spawn block

Discussion in 'Plugin Development' started by Moon_werewolf, Jan 22, 2011.

Thread Status:
Not open for further replies.
  1. Offline

    Moon_werewolf

    who do i spawn a block? or change its TypeId?
     
  2. Offline

    Samkio

  3. Offline

    eisental

    You can get any block by using
    Code:
    player.getWorld().getBlockAt(x,y,z)
    To get the location of the player use
    Code:
    player.getLocation()
    But usually you get some block in the event object ( event.getBlock() )
     
  4. Offline

    phondeux

    I didn't get this until I read a few threads but technically every block that will ever be in the game is already there. Need a new block? Find the location of where it will be and change the 'air' to the block needed.

    A very "there is no spoon" moment for me.
     
Thread Status:
Not open for further replies.

Share This Page