Everything posted by Faxu_
-
My mod is loaded but it doesn't work anyway
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?
-
[1.19.2] Built JAR doesn't work on dedicated server
Problem is already resolved. Sorry for trouble
-
[1.19.2] Built JAR doesn't work on dedicated server
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
-
My mod is loaded but it doesn't work anyway
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.
-
My mod is loaded but it doesn't work anyway
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
-
My mod is loaded but it doesn't work anyway
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.
-
My mod is loaded but it doesn't work anyway
Here is code based on link that you send me with GLM registers https://pastebin.com/4EVLPbMC
-
My mod is loaded but it doesn't work anyway
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
-
My mod is loaded but it doesn't work anyway
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.
-
My mod is loaded but it doesn't work anyway
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
-
Block break event
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
IPS spam blocked by CleanTalk.