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.

Faxu_

Members
  • Joined

  • Last visited

Everything posted by Faxu_

  1. One more question. If I would like to add to drop items from another mod. Which way should I take, what do I include to my project to get blocks and items from another mod?
  2. Problem is already resolved. Sorry for trouble
  3. Hello, when I runClient or runGameServer from Intellij my mod works as intended, but when I copy-paste a built JAR file into my dedicated server then my mod doesn't work at all. What did I wrong and how do I fix it? Other downloaded mods are working as usual. Regards
  4. Thank you, it's working as intended. For the end of this topic I would ask you how can I add more possible drops from cobblestone. For now it's just a diamond and I can't see possibility to set another item to get diamond and for example coal from mining one cobblestone. Do I have to rebuild my cobblestone.json to make "item" as and array or there is another way to do it? I know that I can hardcode more items but I dont want to do it this way.
  5. I did those fixes, it works better but still didnt add additional item when mining cobblestone. I pushed on github those fixes. Method doApply isn't used. https://github.com/TagonZ/MC/tree/main/src/main
  6. Here is whole code with json files: https://github.com/TagonZ/MC/tree/main/src/main I don't know which part of code I'm missing or have wrong to make it work.
  7. Here is code based on link that you send me with GLM registers https://pastebin.com/4EVLPbMC
  8. Here is a link with code, its kinda messed up because I'm trying a lot of methods to make it works past few days and exhausted to make it clean already. Code below is based on few examples, and lastest javadoc from forge, however it doesn't work. You can see in console few lines of logs, but the important functions doesn't work. https://pastebin.com/PhGySG5P
  9. Hi, thanks for reply. I read whole topic that you sent, but I worries that doesn’t work on 1.19.2 but idea and code are similar. Even I did some changes and add more registers, this still didn’t help. My mod did those register events but nothing more. I think I still missing an event listener and I’m reading more about @EventSubscriber, maybe that’s a key. I will send more code if needed.
  10. Hello, I'm trying to do a tiny mod for my server for friends, which is based on block break event. Mod is built without any errors, and it's loaded into client, because I can see it and even check in console. No errors. But when I interacted with block then nothing happens like I missed something or so. Listeners? EventHandlers? Something should happens but there is no reaction at all in-game and even in console logs. How do I add event listeners? Maybe I messed up something. Here is short snippet: public MyMod { GLM.register(FMLJavaModLoadingContext.get().getModEventBus()); } private static final DeferredRegister<Codec<? extends IGlobalLootModifier>> GLM = DeferredRegister.create(ForgeRegistries.Keys.GLOBAL_LOOT_MODIFIER_SERIALIZERS, MODID); I would be glad for any advices. Regards
  11. Faxu_ posted a topic in ForgeGradle
    Hello, I'm kinda new in this but anyone can explain me how do I get which block was break by what player and how do I set a custom drop from that block? BlockEvent.BreakEvent has few functions but I don't see an option which allow me to make a custom drop and even what type of block was break. Regards

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.