Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

loordgek

Members
  • Joined

  • Last visited

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. because you need for the @mod.eventSubscriber
  15. it is crashing for me see log i will re setup the project see if that will fix it
  16. event.crafting.getItem() == someitem && event.crafting.getMetadata() == whatever
  17. it did work a while and now it is just crashing
  18. https://github.com/loordgek/itemhandlerV2/tree/master/src/main/java/loordgek/itemhandlerv2/test
  19. https://github.com/Excaliburns/ModPractice/blob/master/src/main/java/network/tutmodHuskItemMessage.java#L127 a itemstack can not be null, check for ItemStack.isEmpty
  20. https://gist.github.com/loordgek/0f2f81f30d9e6b735f5c10c2a3eecb18 the code https://gist.github.com/loordgek/d5dc0cbec73ea9623a45e6d77f1de047
  21. 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

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.