Jump to content

loordgek

Members
  • Posts

    1910
  • Joined

  • Last visited

  • Days Won

    7

Everything posted by loordgek

  1. use itemstack.isEmpty not != new ItemStack(Items.AIR)
  2. http://mcforge.readthedocs.io/en/latest/concepts/registries/
  3. https://1drv.ms/u/s!Ai-emKyjYKqWg7oPrbudlosmoXLR0g here mine
  4. did try to build it worked but got a crash when trying to start a game https://paste.ee/p/PnquI will look into it tomorrow
  5. https://github.com/MinecraftForge/MinecraftForge/blob/1.8.8/src/main/java/net/minecraftforge/fml/common/gameevent/TickEvent.java#L50 event.entity does not exist
  6. no you need to == the item in the stack to your item
  7. face palm DONT use that, learn java and code it properly
  8. @EventBusSubscriber tells forge "hey this is a class that has event methods" @SubscribeEvent tells forge "hey this method needs to recessive the event"
  9. you need @SubscribeEvent on the event methods https://github.com/loordgek/Extragenarators/blob/trytofix/src/main/java/loordgek/extragenarators/event/CommonEventHandler.java#L14
  10. dont know it is the problem stack in 1.11 and up are not null check for isEmpty()
  11. what mc version are you working on cant find canBeControlled in 1.12.2
  12. https://minecraft.gamepedia.com/1.13/Flattening
  13. 2 reasons not to use this 1 ^ and 2 1.13 there will be no more metadata/subItems
  14. where ??
  15. because you need for the @mod.eventSubscriber
  16. and the better way is ...
  17. it is crashing for me see log i will re setup the project see if that will fix it
  18. event.crafting.getItem() == someitem && event.crafting.getMetadata() == whatever
  19. it did work a while and now it is just crashing
  20. https://github.com/loordgek/itemhandlerV2/tree/master/src/main/java/loordgek/itemhandlerv2/test
  21. https://github.com/Excaliburns/ModPractice/blob/master/src/main/java/network/tutmodHuskItemMessage.java#L127 a itemstack can not be null, check for ItemStack.isEmpty
  22. https://gist.github.com/loordgek/0f2f81f30d9e6b735f5c10c2a3eecb18 the code https://gist.github.com/loordgek/d5dc0cbec73ea9623a45e6d77f1de047
  23. https://gist.github.com/loordgek/bb6b9822d9ddadac09ac9af6e5c96de0 fixed if you are asking "why are you adding a IItehandler tot the player" https://github.com/MinecraftForge/MinecraftForge/issues/3344
×
×
  • Create New...

Important Information

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