Skip to content

Instantly share code, notes, and snippets.

@Andrey2470T Andrey2470T/zinc.ore Secret
Created Aug 20, 2018

Embed
What would you like to do?
minetest.register_node("medicine:mineral_zinc", {
description = "Zinc Mineral",
tiles = {"default_stone.png^mineral_zinc.png"},
is_ground_content = true,
paramtype = "light",
light_source = 5,
groups = {cracky = 3, oddly_breakable_by_hand = 1},
sounds = default.node_sound_defaults(),
on_dig = function(pos, node, player)
local random_items_amount_to_give = math.random(4)
local stack = ItemStack("medicine:zinc_lump")
for give_item = 1, random_items_amount_to_give do
stack:add_item("medicine:zinc_lump")
end
end
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.