Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 12/03/22 in all areas

  1. there are two ways that method would be called for that event: variant 1 - manual: you called addListener. see ExampleMod.java for example. variant 2 - automagic: if a class is annotated with @Mod.EventBusSubscriber and the event is made static and annotated with @SubscribeEvent, forge will handle everything. use variant 2, but not in main class.
    1 point
  2. You need to make your mod load after forge to modify the vanilla datapack. By specifying an ordering in your mods.toml https://forge.gemwire.uk/wiki/Mods.toml But doing that is a bad idea. You will conflict with other mods or modpack configuration doing the same thing. You should use global loot modifiers instead. https://forge.gemwire.uk/wiki/Dynamic_Loot_Modification
    1 point
  3. Maybe I am misunderstanding the problem, but the code in that github repository works fine for me? You are referring to the useOn() block code?
    1 point
  4. Use java 17, mixin doesn't support java 19
    1 point
  5. not really. wiki is here: https://forge.gemwire.uk/wiki/ but, yes, it is quite general.
    1 point
×
×
  • Create New...

Important Information

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