Discussion in 'Plugin Development' started by Moon_werewolf, Jan 22, 2011.
who do i spawn a block? or change its TypeId?
To change a blocks type you can do the following:
And or typeid:
Hope this helps.
Also check out this for other block methods etc.
You can get any block by using
To get the location of the player use
But usually you get some block in the event object ( event.getBlock() )
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.
Separate names with a comma.