I made a custom fishing loot table that adds “Weight” lore to all fish.
What is this?
This adds another layer to fishing in Minecraft, adding a Lore tag to all four fish showing their "weight". It's just a somewhat complicated loot table modification that adds a random chance to display a randomly chosen weight Lore tag on the item.
I doubt the lore tag survives if you cook the fish, nor do I plan on finding out or even trying to make new cooking loot tables that somehow check for a lore tag and preserve it upon cooking.
Someone could try to do that and maybe add a status effect boost on the fish that makes it so the higher the weight, the more hunger bar slots get filled when you eat the fish.
Notes
- The reason why each fish has two entries showing "Weight: 1 lb" is because the first one is a failsafe. Without the failsafe, you'll occasionally get a fish that is missing the lore entirely.
- The random_chance conditions for each are listed at 0.33 (3.3%) each. I'm not good at determining proper % chance for each weight so I figured having an equal chance to get any weight would be for the best.
- Fish weights range from 1 lb to 30 lbs. More weights can easily be added by simply copying and pasting, but then you would have to re-calculate the drop chances (divide 100 by the new # of weight options), and that just seems like more work to me.
- If the JSON files were to allow some sort of random integer choosing function, I would've used that to choose the weight # at random which would've allowed me to only have to do one nbt data function per fish, instead of 1 function per weight per fish.
How to use
- Download the json file from the link below. Make sure it saves as "fish.json"
- Follow this bit of info to create the proper folder for your world/server
- Within your new "loot_tables" folder that you created in Step 2, create a new folder called "fishing".
- Inside the "fishing" folder, create another new folder and call it "fish".
- Put "fish.json" in the "fish" folder.
- MP servers will need a reboot for the new loot table override to take effect.
- And you're done! It's elementary.
Download
Submitted May 17, 2016 at 01:06AM by 404UNFGaming
via reddit http://ift.tt/24WlXka