lavastuff/init.lua

40 lines
1.1 KiB
Lua
Raw Normal View History

2017-10-08 17:49:28 -07:00
minetest.register_tool("lavastuff:sword", {
description = "Lava Sword",
inventory_image = "lavastuff_sword.png",
tool_capabilities = {
full_punch_interval = 0.6,
max_drop_level=1,
groupcaps={
snappy={times={[1]=1.90, [2]=0.90, [3]=0.30}, uses=40, maxlevel=3},
},
damage_groups = {fleshy=8},
},
sound = {breaks = "default_tool_breaks"},
})
minetest.register_craft({
output = 'lavastuff:sword',
recipe = {
{'mobs:lava_orb'},
{'mobs:lava_orb'},
{'default:obsidian_shard'},
}
})
minetest.register_node ("lavastuff:block", {
description = "Lava Block",
tiles = {"lavastuff_block.png"},
paramtype = "light",
sunglight_propagates = true,
is_ground_content = false,
sounds = default.node_sound_stone_defaults(),
groups = {cracky = 1, level = 2},
light_source = default.LIGHT_MAX,
})
minetest.register_craft({
output = 'lavastuff:block',
recipe = {
{'mobs:lava_orb', 'mobs:lava_orb', 'mobs:lava_orb'},
{'mobs:lava_orb', 'mobs:lava_orb', 'mobs:lava_orb'},
{'mobs:lava_orb', 'mobs:lava_orb', 'mobs:lava_orb'},
}
})