Jump to content

matwaua

Members
  • Posts

    4
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

matwaua's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. I am following a tutorial for modding minecraft 1.20.1, and while running the mod with the minecraft of the idea, no errors was present but, when I switched to real minecraft, it started to want a default constructor "public ZeroToAutomation()" instead of the one recomended by the video "public ZeroToAutomation(FMLJavaModLoadingContext context) {...}", and I can't use the default constructor because I need the FMLJavaModLoadingContext to register the blocks and items. The problem is at: "net/myself/zerotoautomation/ZeroToAutomation.java" the file contains the default constructor, "Logger"s, and the code for the mod the defaut constructor was added after an error requesting it the Loggers was used to see which methods/constructors was used by the Launcher things that I tried to fix the issue: remove the default constructor, but an error appeared "net.myself.zerotoautomation.ZeroToAutomation.<init>()", and nothing else on the class runs adding an "public static void init()" method, but it changed nothing The mod files: https://github.com/Matwaua/Zero_To_Automation/tree/not-finished
  2. i dont know how to close the topic, so it will remain open until someone does it for me
  3. solved: it was in the wrong folder: it needs to be at "resources/data/modID/loot_tables/blocks" the gravel loot table was wrong: I wrote "minecraft:andesite_gravel" instead of "zerotoautomation:andesite_gravel"
  4. I am following a tutorial at youtube and at the part where it is made loot tables for block drops, it dosn't work for me, the blocks that I made dosn't drop anything in survival, everything else works as intended, the link is the git hub repository for the code https://github.com/Matwaua/Zero_To_Automation/tree/not-finished things that I tried: exploding the modded blocks; removing blocks/ from " "random_sequence": "zerotoautomation:blocks/fertilized_dirt" " coping the loot table from another equivalent block, like dirt for fertilized dirt and gravel for andesite gravel using "random_sequence" from another equivalent block
×
×
  • Create New...

Important Information

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