diff --git a/res/content/base/blocks/grass.json b/res/content/base/blocks/grass.json index 52bfb11d..e55bc2ac 100644 --- a/res/content/base/blocks/grass.json +++ b/res/content/base/blocks/grass.json @@ -10,5 +10,5 @@ "model": "X", "hitbox": [0.15, 0.0, 0.15, 0.7, 0.7, 0.7], "base:durability": 0.0, - "base:drop": [] + "base:loot": [] } diff --git a/res/content/base/modules/util.lua b/res/content/base/modules/util.lua index 2a8326ec..6dfa90a6 100644 --- a/res/content/base/modules/util.lua +++ b/res/content/base/modules/util.lua @@ -20,7 +20,7 @@ local function calc_loot(loot_table) local roll = math.random() if roll < chance then - table.insert(results, {item=loot.item, count=count}) + table.insert(results, {item=item.index(loot.item), count=count}) end end return results @@ -31,7 +31,7 @@ function util.block_loot(blockid) if lootscheme then return calc_loot(lootscheme) end - return {{block.get_picking_item(blockid), 1}} + return {{item=block.get_picking_item(blockid), count=1}} end return util