Advertisement
Guest User

Untitled

a guest
Jul 29th, 2014
200
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. public ItemStack onItemRightClick(ItemStack itemStack, World world, EntityPlayer player) {
  2. if (!world.isRemote) {
  3. Vec3 v3 = player.getLook(1);
  4. EntityWitherSkull witherskull = new EntityWitherSkull(world, player.posX, player.posY + player.eyeHeight, player.posZ, v3.xCoord, v3.yCoord, v3.zCoord);
  5. witherskull.shootingEntity = player;
  6. world.spawnEntityInWorld(witherskull);
  7. }
  8. return itemStack;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement