Jump to content

thebest108

Members
  • Posts

    503
  • Joined

  • Last visited

Everything posted by thebest108

  1. There is, but the stupid bukkit team said no
  2. Do something like if(Minecraft.getMinecraft().thePlayer.inventory.hasItem(ItemStack)) { Minecraft.getMinecraft.thePlayer.inventory.getItemstack(ItemStack).stackSize--; } I'm on mobile so the names aren't 100% accurate Btw to make a new ItemStack do ItemStack yourItemStack = new ItemStack(net.minecraft.src.Item.TNT;
  3. How does the beacon block affect the player when it gets in a certain radius?
  4. Chickenbones distributed the source, just see how he did it
  5. Crash minecraft? use System.exit(0)
  6. Is there something that detects when a player leaves a server or a single player world?
  7. You dont need a whole API to break a block, however I'm not spilling my secret on how I do it, but you don't need an api
  8. Is your mod name mod_blocks, because if it is then check line 25 for anything that's null
  9. Ive been doing ItemStack piggy = new ItemStack(AdvancedMiningDrillTraits.filledPigAnimalCage); public boolean itemInteractionForEntity(ItemStack itemstack, EntityLiving entity) { if (entity instanceof EntityLiving){ if (entity instanceof EntityPig){ if(entity.worldObj.isRemote){ entity.isDead = true; --itemstack.stackSize; EntityItem pig = new EntityItem(entity.worldObj, entity.posX, entity.posY, entity.posZ, piggy); entity.worldObj.spawnEntityInWorld(pig); }} but it will only spawn one item the first time, then it just wont spawn the item please help
  10. Specifically its public void onStruckByLightning(EntityLightningBolt par1EntityLightningBolt){ do stuff }
  11. Yes there is, its in the EntityPig class, when you find it just paste the method in your mod and make changes as you see fit
  12. Solved, just in case anyone wants to know, it's par4, par5, and par6 in the onBlockDestroyed() method
  13. No would I add an item to players inventory (in a static preferably)
  14. How would I get the position of the block the player just destroyed
  15. A. Wrong forum, this is for forge not craftbukkit forge B. it's in beta so don't expect much
  16. Is there an alternative for ModLoader.getMinecraftInstance().thePlayer.posX that works server side?
  17. Don't you think I've already tried that, the server side acts like it never initialized the packet and gives me a nosuchvariable error
  18. Can someone help me, I need to get something like this working If(herp==derp){ If(side==side.CLIENT){ get client side data, send as packet} //client side and server side should receive the packet Use information}} Btw the packet needs to send ints, doubles, and floats. Can someone please help me?
  19. No, Im leaving it at that
  20. I'm working on a mod and I need something to happen once a block is broken by a certain tool, I've been thinking of using the thing that damages the tool once a block is broken, but I can't find where its located. Any help would be greatly appreciated
  21. Subclass anyone?
  22. *facepalm* what a waste of internet
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.