Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public boolean onItemUse(ItemStack itemstack, EntityPlayer player, World world, int x, int y, int z, int meta, float p_77648_8_, float p_77648_9_, float p_77648_10_)
- {
- if (!player.canPlayerEdit(x, y, z, meta, itemstack))
- {
- return false;
- }
- else
- {
- ChunkCoordinates location = player.getPlayerCoordinates();
- for (float degrees = 0.0F; degrees < 360.0F; degrees += 20.0F)
- {
- double angle = Math.toRadians(degrees);
- double vx = player.posX* Math.cos(angle) -player.posZ * Math.sin(angle);
- double vz = player.posX * Math.sin(angle) + player.posZ * Math.cos(angle);
- world.createExplosion(player,(int)vx, player.posY, (int)vz, 3.2F, true);
- }
- }
- return true;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement