123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155 |
- local mod_storage = minetest.get_mod_storage()
- anvils = {}
- minetest.override_item("farming:hoe_diamond", {
- groups = {hoe=1, tool=1},
- _repair_material = "default:diamond"}
- )
- minetest.override_item("default:pick_diamond", {
- groups = {pickaxe=1, tool=1},
- _repair_material = "default:diamond"}
- )
- minetest.override_item("default:axe_diamond", {
- groups = {axe=1, tool=1},
- _repair_material = "default:diamond"}
- )
- minetest.override_item("default:shovel_diamond", {
- groups = {shovel=1, tool=1},
- _repair_material = "default:diamond"}
- )
- minetest.override_item("farming:hoe_wood", {
- groups = {hoe=1, tool=1, flammable=1},
- _repair_material = "default:wood"}
- )
- minetest.override_item("default:pick_wood", {
- groups = {pick=1, tool=1, flammable=2},
- _repair_material = "default:wood"}
- )
- minetest.override_item("default:axe_wood", {
- groups = {axe=1, tool=1},
- _repair_material = "default:wood"}
- )
- minetest.override_item("default:shovel_wood", {
- groups = {shovel=1, tool=1, flammable=2},
- _repair_material = "default:wood"}
- )
- minetest.override_item("farming:hoe_steel", {
- groups = {hoe=1, tool=1},
- _repair_material = "default:steel_ingot"}
- )
- minetest.override_item("default:pick_steel", {
- groups = {pickaxe=1, tool=1},
- _repair_material = "default:steel_ingot"}
- )
- minetest.override_item("default:axe_steel", {
- groups = {axe=1, tool=1},
- _repair_material = "default:steel_ingot"}
- )
- minetest.override_item("default:shovel_steel", {
- groups = {shovel=1, tool=1},
- _repair_material = "default:steel_ingot"}
- )
- minetest.override_item("farming:hoe_stone", {
- groups = {hoe=1, tool=1},
- _repair_material = "default:cobble"}
- )
- minetest.override_item("default:pick_stone", {
- groups = {pickaxe=1, tool=1},
- _repair_material = "default:cobble"}
- )
- minetest.override_item("default:axe_stone", {
- groups = {axe=1, tool=1},
- _repair_material = "default:cobble"}
- )
- minetest.override_item("default:shovel_stone", {
- groups = {shovel=1, tool=1},
- _repair_material = "default:cobble"}
- )
- minetest.override_item("farming:hoe_bronze", {
- groups = {hoe=1, tool=1},
- _repair_material = "default:bronze_ingot"}
- )
- minetest.override_item("default:pick_bronze", {
- groups = {pickaxe=1, tool=1},
- _repair_material = "default:bronze_ingot"}
- )
- minetest.override_item("default:axe_bronze", {
- groups = {axe=1, tool=1},
- _repair_material = "default:bronze_ingot"}
- )
- minetest.override_item("default:shovel_bronze", {
- groups = {shovel=1, tool=1},
- _repair_material = "default:bronze_ingot"}
- )
- minetest.override_item("farming:hoe_mese", {
- groups = {hoe=1, tool=1},
- _repair_material = "default:mese_crystal"}
- )
- minetest.override_item("default:pick_mese", {
- groups = {pick=1, tool=1},
- _repair_material = "default:mese_crystal"}
- )
- minetest.override_item("default:axe_mese", {
- groups = {axe=1, tool=1},
- _repair_material = "default:mese_crystal"}
- )
- minetest.override_item("default:shovel_mese", {
- groups = {shovel=1, tool=1},
- _repair_material = "default:mese_crystal"}
- )
- -- add swords for snappy nodes
- minetest.override_item("default:sword_wood", {
- groups = {weapon=1, sword=1, flammable=1},
- _repair_material = "default:wood"}
- )
- minetest.override_item("default:sword_stone", {
- groups = {weapon=1, sword=1},
- _repair_material = "default:cobble"}
- )
- minetest.override_item("default:sword_steel", {
- groups = {weapon=1, sword=1},
- _repair_material = "default:steel_ingot"}
- )
- minetest.override_item("default:sword_bronze", {
- groups = {weapon=1, sword=1},
- _repair_material = "default:bronze_ingot"}
- )
- minetest.override_item("default:sword_mese", {
- groups = {weapon=1, sword=1},
- _repair_material = "default:mese_crystal"}
- )
- minetest.override_item("default:sword_diamond", {
- groups = {weapon=1, sword=1},
- _repair_material = "default:diamond"}
- )
|