Hello, I'm newbie in minecraft modding and i'm stuck.
I need to add new items to fishing loot table but I don't know how. I created fish.json in loot_tables/gameplay/fishing and add here my fish.
But it don't work, as I understand I need to registry or smth else this "fish"(if not, please correct me).
I saw code of some open sourse mods like "Aquacuture 2" and they do smth like this:
@Mod.EventBusSubscriber(modid = BetterFishing.MOD_ID)
public class LootTableInit {
public static final ResourceLocation FISH = register("gameplay/fishing/fish");
private static ResourceLocation register(String path) {
return new ResourceLocation(BetterFishing.MOD_ID, path);
}
}
Why are they doing this and should I use smth similar?
P.S. Sorry, if there are mistakes here and it looks unclear(Еnglish isn't my native language)