Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public ItemStack onItemRightClick(ItemStack itemStack, World world, EntityPlayer player) {
- if (!world.isRemote) {
- Vec3 v3 = player.getLook(1);
- EntityWitherSkull witherskull = new EntityWitherSkull(world, player.posX, player.posY + player.eyeHeight, player.posZ, v3.xCoord, v3.yCoord, v3.zCoord);
- witherskull.shootingEntity = player;
- world.spawnEntityInWorld(witherskull);
- }
- return itemStack;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement