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.

Luis_ST

Members
  • Joined

  • Last visited

Everything posted by Luis_ST

  1. there are no Events from vanilla, all Events are added by Forge there is LivingHealEvent
  2. use your IDE to add the super constructor, all recommend IDE's have this feature (IntelliJ, Eclipse)
  3. is this the size of the image file or the size of the screen inside the image
  4. first of all basic java is required for modding minecraft what did you mean by native events? getDamage is a method not a class nor an Event
  5. did you add the constructor of the Item class (parameter Item.Properties), your IDE should do this automatically for you
  6. it's a class your Item class should be able to extends the Item class
  7. which value did you use as friction of your Block
  8. you need to call EYE_OF_ALWORTH.get()
  9. you need to call RegistryObject#get
  10. i know, this was just a simple example how it could be possible to do
  11. use the debugger of your IDE
  12. you need to check if the EventHandler is called
  13. update Forge to the latest version 1.16.5 requires java 8
  14. you should use FMLClientSetupEvent#enqueueWork, and use an anonymous class or a lambda expression is the EventHandler called?
  15. the SubscribeEvent annotation does only work with public static methods and you must use FMLClientSetupEvent#enqueueWork since Screens are not thread safe
  16. an ItemProperty? https://forge.gemwire.uk/wiki/Item_Properties
  17. and the EventHandler is not registered:
  18. you need to register a MenuScreen for your MenuType in FMLClientSetupEvent#enqueueWork via MenuScreens.register
  19. yeah it should, this is the logic of the vanilla SuspiciousStewItem
  20. depends on your launcher, but normally in .minecraft/config/forge-client.toml
  21. why? there is no reason for it, moreover it's illegal
  22. why did you check the Item name, you can just compare the Items with the == operator why did you use LivingEntityUseItemEvent.Finish? you can just override #finishUsingItem in your Item class and perform the action you want there i would recommend you to avoid constants when working with registries you can use something like: List<MobEffect> effects = Lists.newArrayList(ForgeRegistries.MOB_EFFECTS.getValues()); MobEffect randomEffect = effects.get(new Random().nextInt(effects.size()));
  23. https://gist.github.com/50ap5ud5/beebcf056cbdd3c922cc8993689428f4#minecraft-authentication-in-dev-environments also do not post in ancient threads
  24. delete this client config file if you haven't modify it

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.