Started by
Joshuya1
on
Topic category: Help with Minecraft modding (Java Edition)
Hello all,
I am needing help again. I tried making a new fishing loot table to spawn custom items to test it but it isn't working. My goal is to add different fish as items that can be fished. Can someone help please. If you could write it in steps maybe to help me or point me to a fishing loot table tutorial. I tried following one for mods but applied it to fishing and it didn't work.
There's a website I found which helps to create and edit loot tables, https://misode.github.io/loot-table/
What you want to do, is find the existing loot table for fish, loot_tables/gameplay/fishing/fish - and paste it into the box on the right hand side. I've pasted it here for you --> https://pastebin.com/8JFZ0Mks - so all you have to do is paste it into the website.
Once you've done that, the website will update with the loot table, and from there it's pretty self-explanatory. You can add new items to the loot tables, with functions such as the amount you get in one catch, or if you need to be in a certain biome.
Once you've finished editing the loot table, copy the text that's now in the box in the right, and open Mcreator. You'll want to create a new loot table. Set the registry name to 'gameplay/fishing/fish', the Loot Table Namespace to Minecraft, and the loot table type to fishing. Then save the mod element and lock the code.
Now that you've locked it, edit the code, and paste in your loot table. Save the mod element, and it should now work!
If you have any questions, shoot me a DM on discord, I'm Hm#0965 over there. I'll be more than happy to help ^^
Forgot to mention you have to press tab on the keyboard for the website to update with the pasted loot table
Thank you so much I really am thankful :)
necro but i did the exact same thing described here and it didn't work
Is there a way to add custom MCreator items? I tried to change the code, tried everything i could but it whould just catch nothing.
Code: https://imgur.com/a/p17AyWv
I tried to change to type and name to "minecraft:'' but that didn't work either.
Any help?
So since the new update to Mcreator, they implemented something similar within the software.
Though what I can see in your code, rename 'nanobot:item' to 'minecraft:item' like the others, and make sure the mod id is correct for the backpack item
That worked, thank you so much! :D
No worries, I'm glad I could help!
JJ_007, this is the best! Thanks for your detailed explanation. Works great!
No problem at all! I'm glad people are still finding this helpful even a year after I posted it!