Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

athy

Members
  • Posts

    3
  • Joined

  • Last visited

athy's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. I already have. It doesn't work. Read point 4 please
  2. I cannot figure out how to override vanilla loot tables, I've been at this for hours, and I can't find anything online. Just very outdated tutorials. I added custom crops and seeds to my mod, now I need those seeds to drop from the in-world grass. The loot tables for my custom blocks are in data.modId.loot_tables.blocks and they work just fine. Now, when I try to override the grass to drop an item of my choosing, say, coal, I do this: 1) Make grass.json 2) Fill it: { "type": "minecraft:block", "pools": [ { "rolls": 1, "entries": [ { "type": "minecraft:alternatives", "children": [ { "type": "minecraft:item", "conditions": [ { "condition": "minecraft:match_tool", "predicate": { "item": "minecraft:shears" } } ], "name": "minecraft:grass" }, { "type": "minecraft:item", "conditions": [ { "condition": "minecraft:random_chance", "chance": 0.125 } ], "functions": [ { "function": "minecraft:apply_bonus", "enchantment": "minecraft:fortune", "formula": "minecraft:uniform_bonus_count", "parameters": { "bonusMultiplier": 2 } }, { "function": "minecraft:explosion_decay" } ], "name": "minecraft:coal" } ] } ] } ] } 3) Place it in my project in data.minecraft.loot_tables.blocks When I test it in game, grass still drops wheat seeds and not coal. Why?
×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.