description = "Empty Bucket",
inventory_image = "bucket.png",
stack_max = 99,
+ groups = {tool = 1},
liquids_pointable = true,
on_use = function(itemstack, user, pointed_thing)
if pointed_thing.type == "object" then
"bucket:bucket_water",
"bucket_water.png",
"Water Bucket",
- {water_bucket = 1}
+ {tool = 1, water_bucket = 1}
)
-- River water source is 'liquid_renewable = false' to avoid horizontal spread
"bucket:bucket_river_water",
"bucket_river_water.png",
"River Water Bucket",
- {water_bucket = 1},
+ {tool = 1, water_bucket = 1},
true
)
"default:lava_flowing",
"bucket:bucket_lava",
"bucket_lava.png",
- "Lava Bucket"
+ "Lava Bucket",
+ {tool = 1}
)
minetest.register_craft({
minetest.register_craftitem("default:iron_lump", {
description = "Iron Lump",
- inventory_image = "default_iron_lump.png",
+ inventory_image = "default_iron_lump.png"
})
minetest.register_craftitem("default:copper_lump", {
description = "Copper Lump",
- inventory_image = "default_copper_lump.png",
+ inventory_image = "default_copper_lump.png"
})
minetest.register_craftitem("default:tin_lump", {
description = "Tin Lump",
- inventory_image = "default_tin_lump.png",
+ inventory_image = "default_tin_lump.png"
})
minetest.register_craftitem("default:mese_crystal", {
minetest.register_craftitem("default:gold_lump", {
description = "Gold Lump",
- inventory_image = "default_gold_lump.png",
+ inventory_image = "default_gold_lump.png"
})
minetest.register_craftitem("default:diamond", {
minetest.register_craftitem("default:steel_ingot", {
description = "Steel Ingot",
- inventory_image = "default_steel_ingot.png",
+ inventory_image = "default_steel_ingot.png"
})
minetest.register_craftitem("default:copper_ingot", {
description = "Copper Ingot",
- inventory_image = "default_copper_ingot.png",
+ inventory_image = "default_copper_ingot.png"
})
minetest.register_craftitem("default:tin_ingot", {
description = "Tin Ingot",
- inventory_image = "default_tin_ingot.png",
+ inventory_image = "default_tin_ingot.png"
})
minetest.register_craftitem("default:bronze_ingot", {
description = "Bronze Ingot",
- inventory_image = "default_bronze_ingot.png",
+ inventory_image = "default_bronze_ingot.png"
})
minetest.register_craftitem("default:gold_ingot", {
},
damage_groups = {fleshy=2},
},
- groups = {flammable = 2},
sound = {breaks = "default_tool_breaks"},
+ groups = {pickaxe = 1, flammable = 2}
})
minetest.register_tool("default:pick_stone", {
damage_groups = {fleshy=3},
},
sound = {breaks = "default_tool_breaks"},
+ groups = {pickaxe = 1}
})
minetest.register_tool("default:pick_bronze", {
damage_groups = {fleshy=4},
},
sound = {breaks = "default_tool_breaks"},
+ groups = {pickaxe = 1}
})
minetest.register_tool("default:pick_steel", {
damage_groups = {fleshy=4},
},
sound = {breaks = "default_tool_breaks"},
+ groups = {pickaxe = 1}
})
minetest.register_tool("default:pick_mese", {
damage_groups = {fleshy=5},
},
sound = {breaks = "default_tool_breaks"},
+ groups = {pickaxe = 1}
})
minetest.register_tool("default:pick_diamond", {
damage_groups = {fleshy=5},
},
sound = {breaks = "default_tool_breaks"},
+ groups = {pickaxe = 1}
})
--
},
damage_groups = {fleshy=2},
},
- groups = {flammable = 2},
sound = {breaks = "default_tool_breaks"},
+ groups = {shovel = 1, flammable = 2}
})
minetest.register_tool("default:shovel_stone", {
damage_groups = {fleshy=2},
},
sound = {breaks = "default_tool_breaks"},
+ groups = {shovel = 1}
})
minetest.register_tool("default:shovel_bronze", {
damage_groups = {fleshy=3},
},
sound = {breaks = "default_tool_breaks"},
+ groups = {shovel = 1}
})
minetest.register_tool("default:shovel_steel", {
damage_groups = {fleshy=3},
},
sound = {breaks = "default_tool_breaks"},
+ groups = {shovel = 1}
})
minetest.register_tool("default:shovel_mese", {
damage_groups = {fleshy=4},
},
sound = {breaks = "default_tool_breaks"},
+ groups = {shovel = 1}
})
minetest.register_tool("default:shovel_diamond", {
damage_groups = {fleshy=4},
},
sound = {breaks = "default_tool_breaks"},
+ groups = {shovel = 1}
})
--
},
damage_groups = {fleshy=2},
},
- groups = {flammable = 2},
sound = {breaks = "default_tool_breaks"},
+ groups = {axe = 1, flammable = 2}
})
minetest.register_tool("default:axe_stone", {
damage_groups = {fleshy=3},
},
sound = {breaks = "default_tool_breaks"},
+ groups = {axe = 1}
})
minetest.register_tool("default:axe_bronze", {
damage_groups = {fleshy=4},
},
sound = {breaks = "default_tool_breaks"},
+ groups = {axe = 1}
})
minetest.register_tool("default:axe_steel", {
damage_groups = {fleshy=4},
},
sound = {breaks = "default_tool_breaks"},
+ groups = {axe = 1}
})
minetest.register_tool("default:axe_mese", {
damage_groups = {fleshy=6},
},
sound = {breaks = "default_tool_breaks"},
+ groups = {axe = 1}
})
minetest.register_tool("default:axe_diamond", {
damage_groups = {fleshy=7},
},
sound = {breaks = "default_tool_breaks"},
+ groups = {axe = 1}
})
--
},
damage_groups = {fleshy=2},
},
- groups = {flammable = 2},
sound = {breaks = "default_tool_breaks"},
+ groups = {sword = 1, flammable = 2}
})
minetest.register_tool("default:sword_stone", {
damage_groups = {fleshy=4},
},
sound = {breaks = "default_tool_breaks"},
+ groups = {sword = 1}
})
minetest.register_tool("default:sword_bronze", {
damage_groups = {fleshy=6},
},
sound = {breaks = "default_tool_breaks"},
+ groups = {sword = 1}
})
minetest.register_tool("default:sword_steel", {
damage_groups = {fleshy=6},
},
sound = {breaks = "default_tool_breaks"},
+ groups = {sword = 1}
})
minetest.register_tool("default:sword_mese", {
damage_groups = {fleshy=7},
},
sound = {breaks = "default_tool_breaks"},
+ groups = {sword = 1}
})
minetest.register_tool("default:sword_diamond", {
damage_groups = {fleshy=8},
},
sound = {breaks = "default_tool_breaks"},
+ groups = {sword = 1}
})
minetest.register_tool("default:key", {
inventory_image = "farming_tool_woodhoe.png",
max_uses = 30,
material = "group:wood",
- groups = {flammable = 2},
+ groups = {hoe = 1, flammable = 2},
})
farming.register_hoe(":farming:hoe_stone", {
description = "Stone Hoe",
inventory_image = "farming_tool_stonehoe.png",
max_uses = 90,
- material = "group:stone"
+ material = "group:stone",
+ groups = {hoe = 1}
})
farming.register_hoe(":farming:hoe_steel", {
description = "Steel Hoe",
inventory_image = "farming_tool_steelhoe.png",
max_uses = 500,
- material = "default:steel_ingot"
+ material = "default:steel_ingot",
+ groups = {hoe = 1}
})
-- The following are deprecated by removing the 'material' field to prevent
description = "Bronze Hoe",
inventory_image = "farming_tool_bronzehoe.png",
max_uses = 220,
- groups = {not_in_creative_inventory = 1},
+ groups = {hoe = 1, not_in_creative_inventory = 1},
})
farming.register_hoe(":farming:hoe_mese", {
description = "Mese Hoe",
inventory_image = "farming_tool_mesehoe.png",
max_uses = 350,
- groups = {not_in_creative_inventory = 1},
+ groups = {hoe = 1, not_in_creative_inventory = 1},
})
farming.register_hoe(":farming:hoe_diamond", {
description = "Diamond Hoe",
inventory_image = "farming_tool_diamondhoe.png",
max_uses = 500,
- groups = {not_in_creative_inventory = 1},
+ groups = {hoe = 1, not_in_creative_inventory = 1},
})
sunlight_propagates = true,
walkable = false,
buildable_to = true,
- groups = {snappy = 3, attached_node = 1, flammable = 1},
+ groups = {mushroom = 1, snappy = 3, attached_node = 1, flammable = 1},
sounds = default.node_sound_leaves_defaults(),
on_use = minetest.item_eat(-5),
selection_box = {
sunlight_propagates = true,
walkable = false,
buildable_to = true,
- groups = {food_mushroom = 1, snappy = 3, attached_node = 1, flammable = 1},
+ groups = {mushroom = 1, food_mushroom = 1, snappy = 3, attached_node = 1, flammable = 1},
sounds = default.node_sound_leaves_defaults(),
on_use = minetest.item_eat(1),
selection_box = {
minetest.register_tool("screwdriver:screwdriver", {
description = "Screwdriver (left-click rotates face, right-click rotates axis)",
inventory_image = "screwdriver.png",
+ groups = {tool = 1},
on_use = function(itemstack, user, pointed_thing)
screwdriver.handler(itemstack, user, pointed_thing, screwdriver.ROTATE_FACE, 200)
return itemstack