Advertisement
Guest User

Code in progress 2

a guest
Nov 28th, 2015
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. package com.ninjapiggaming.item;
  2.  
  3. import com.ninjapiggaming.mob.EntitySummoningToad;
  4.  
  5. import net.minecraft.entity.player.EntityPlayer;
  6. import net.minecraft.item.Item;
  7. import net.minecraft.item.ItemStack;
  8. import net.minecraft.world.World;
  9.  
  10. public class SscrollToad extends Item{
  11.  
  12. public SscrollToad(int x)
  13. {
  14. super();
  15. maxStackSize = 1;
  16. }
  17.  
  18.  
  19. public ItemStack onItemRightClick(ItemStack stack, World world, EntityPlayer player)
  20. {
  21. entityplayer.addChatMessage("Summoning Jutsu!!!");
  22.  
  23.  
  24. EntitySummoningToad entity=new EntitySummoningToad();
  25. EntitySummoningToad.setPosition(entityplayer.posX, entityplayer.posY + 2, entityplayer.posZ);
  26. world.entityJoinedWorld(EntitySummoningToad);
  27.  
  28. return itemstack;
  29. }
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement