Voxelis/mods/ITEMS/vox_mobdrops/init.lua
DesertMermaid a260c4a33a
All checks were successful
Error Check / luacheck_errcheck (push) Successful in 37s
Unit Tests / busted_unit_test (push) Successful in 48s
More work being done. And... bugs.
2024-12-11 14:47:15 -08:00

15 lines
354 B
Lua

-- Fat
minetest.register_craftitem("vox_mobdrops:fat", {
description = "Fat",
inventory_image = "fat.png",
})
-- Add fat drops from mobs
minetest.register_on_dieplayer(function(player)
local inventory = player:get_inventory()
if math.random(1, 5) == 1 then
inventory:add_item("main", "vox_mobdrops:fat")
end
end)
-- Leather