Jump to content

thebest108

Members
  • Posts

    503
  • Joined

  • Last visited

Everything posted by thebest108

  1. Quick question, how did you get the Boolean getlightswitchedoff to be ItemStack specific?
  2. No, the @Instance inst what's crashing it, but if another mod that puts @instance loads with yours then it will crash the game
  3. Remove the @Instance stuff, I'm pretty sure the tutorial said if 2 mods do that the game will crash
  4. Thanks, now maybe I can push my next release in about week
  5. Also, there is no way to blacklist client mods. If the client had some extra mods or hacks then why would it tell the server?
  6. All the functions you'd need should be in EntityPlayer.inventory
  7. Don't use on its right click, use itemInteractionForEntity(something like that)
  8. In the items class there is a method for left clicking. Use it
  9. Have you tried ItemStack.stackSize ?
  10. entity.setCurrentItemOrAmor
  11. Something like entityplayer.inventory.getItemStack(wand1).damageItme(1)
  12. Oops I made an error, try it with removing the !worl.isremote
  13. I'm pretty sure it's in IRecipeHandler, theres something like something.removeRecipeFromList(stuff goes here)
  14. No, what I put was Add this to your item class public boolean onItemUse(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, World par3World, int par4, int par5, int par6, int par7, float par8, float par9, float par10){ if(par3World.getBlockId(par4 + Facing.offsetsXForSide[par7], par5 + Facing.offsetsYForSide[par7], par6 + Facing.offsetsZForSide[par7]) == YourBlockId&&!par3World.isRemote){ par3World.setBlock(par4 + Facing.offsetsXForSide[par7], par5 + Facing.offsetsYForSide[par7], par6 + Facing.offsetsZForSide[par7], YourOtherBlockId); par1ItemStack.damageItem(1); } return true; } ossempeck messed u up
  15. What about the method I told you about that you put in the item class?
  16. Rather than instanceof use if(equipped.itemId==wand1.itemId)
  17. Corrupted workspace? Try a fresh decompile
  18. Thrown potions are indeed entities. Also, I could've sworn there was an entity death event in minecraftforge.event.entityliving
  19. Select the class and press shift+control+o and itll fix your imports
  20. Bad mc server GUI? Agreed
  21. Hmm maybe something like @Forgesubscribe(entityDeathEvent event){ if(event.entity instanceof entitypotion){ Get entities within the AABB pool and do stuff to them } }
  22. Also think about this, what item would a server be holding???
  23. You don't need a core mod to edit recipies. Recipies are just a list in which things can be added/removed
  24. Need any help with a config file? Also delete the proxies and the mod instance, theyre just wasting ram.
  25. API, Y U NO BE IN FORGE???
×
×
  • Create New...

Important Information

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