123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520 |
- if not minetest.global_exists("basictools") then basictools = {} end
- basictools.modpath = minetest.get_modpath("basictools")
- minetest.register_tool(":default:pick_wood", {
- description = "Wooden Pickaxe",
- inventory_image = "default_tool_woodpick.png",
- tool_capabilities = tooldata["pick_wood"],
- sounds = {breaks = "basictools_tool_breaks"},
- groups = {flammable = 2, not_repaired_by_anvil = 1},
- })
- minetest.register_tool(":default:pick_stone", {
- description = "Stone Pickaxe",
- inventory_image = "default_tool_stonepick.png",
- tool_capabilities = tooldata["pick_stone"],
- sounds = {breaks = "basictools_tool_breaks"},
- groups = {not_repaired_by_anvil = 1},
- })
- minetest.register_tool(":default:pick_steel", {
- description = "Iron Pickaxe",
- inventory_image = "default_tool_steelpick.png",
- tool_capabilities = tooldata["pick_steel"],
- sounds = {breaks = "basictools_tool_breaks"},
- })
- minetest.register_tool(":default:pick_bronze", {
- description = "Copper Pickaxe",
- inventory_image = "default_tool_bronzepick.png",
- tool_capabilities = tooldata["pick_bronze"],
- sounds = {breaks = "basictools_tool_breaks"},
- })
- minetest.register_tool(":default:pick_bronze2", {
- description = "Bronze Pickaxe",
- inventory_image = "default_tool_bronzepick2.png",
- tool_capabilities = tooldata["pick_bronze2"],
- sounds = {breaks = "basictools_tool_breaks"},
- })
- minetest.register_tool(":default:pick_mese", {
- description = "Mese Pickaxe",
- inventory_image = "default_tool_mesepick.png",
- tool_capabilities = tooldata["pick_mese"],
- sounds = {breaks = "basictools_tool_breaks"},
- })
- minetest.register_tool(":default:pick_diamond", {
- description = "Diamond Pickaxe",
- inventory_image = "default_tool_diamondpick.png",
- tool_capabilities = tooldata["pick_diamond"],
- sounds = {breaks = "basictools_tool_breaks"},
- })
- minetest.register_tool(":default:shovel_stone", {
- description = "Stone Shovel",
- inventory_image = "default_tool_stoneshovel.png",
- wield_image = "default_tool_stoneshovel.png^[transformR90",
- tool_capabilities = tooldata["shovel_stone"],
- sounds = {breaks = "basictools_tool_breaks"},
- groups = {not_repaired_by_anvil = 1},
- })
- minetest.register_tool(":default:shovel_steel", {
- description = "Iron Shovel",
- inventory_image = "default_tool_steelshovel.png",
- wield_image = "default_tool_steelshovel.png^[transformR90",
- tool_capabilities = tooldata["shovel_steel"],
- sounds = {breaks = "basictools_tool_breaks"},
- })
- minetest.register_tool(":default:shovel_bronze", {
- description = "Copper Shovel",
- inventory_image = "default_tool_bronzeshovel.png",
- wield_image = "default_tool_bronzeshovel.png^[transformR90",
- tool_capabilities = tooldata["shovel_bronze"],
- sounds = {breaks = "basictools_tool_breaks"},
- })
- minetest.register_tool(":default:shovel_bronze2", {
- description = "Bronze Shovel",
- inventory_image = "default_tool_bronzeshovel2.png",
- wield_image = "default_tool_bronzeshovel2.png^[transformR90",
- tool_capabilities = tooldata["shovel_bronze2"],
- sounds = {breaks = "basictools_tool_breaks"},
- })
- minetest.register_tool(":default:shovel_mese", {
- description = "Mese Shovel",
- inventory_image = "default_tool_meseshovel.png",
- wield_image = "default_tool_meseshovel.png^[transformR90",
- tool_capabilities = tooldata["shovel_mese"],
- sounds = {breaks = "basictools_tool_breaks"},
- })
- minetest.register_tool(":default:shovel_diamond", {
- description = "Diamond Shovel",
- inventory_image = "default_tool_diamondshovel.png",
- wield_image = "default_tool_diamondshovel.png^[transformR90",
- tool_capabilities = tooldata["shovel_diamond"],
- sounds = {breaks = "basictools_tool_breaks"},
- })
- minetest.register_tool(":default:axe_stone", {
- description = "Stone Axe",
- inventory_image = "default_tool_stoneaxe.png",
- tool_capabilities = tooldata["axe_stone"],
- sounds = {
- breaks = "basictools_tool_breaks",
- punch_use_air = "sword_swipe_hard",
- },
- groups = {not_repaired_by_anvil = 1},
- })
- minetest.register_tool(":default:axe_steel", {
- description = "Iron Axe",
- inventory_image = "default_tool_steelaxe.png",
- tool_capabilities = tooldata["axe_steel"],
- sounds = {
- breaks = "basictools_tool_breaks",
- punch_use_air = "sword_swipe_metal",
- _punch_mob = "sword_flesh",
- },
- })
- minetest.register_tool(":default:axe_bronze", {
- description = "Copper Axe",
- inventory_image = "default_tool_bronzeaxe.png",
- tool_capabilities = tooldata["axe_bronze"],
- sounds = {
- breaks = "basictools_tool_breaks",
- punch_use_air = "sword_swipe_metal",
- _punch_mob = "sword_flesh",
- },
- })
- minetest.register_tool(":default:axe_bronze2", {
- description = "Bronze Axe",
- inventory_image = "default_tool_bronzeaxe2.png",
- tool_capabilities = tooldata["axe_bronze2"],
- sounds = {
- breaks = "basictools_tool_breaks",
- punch_use_air = "sword_swipe_metal",
- _punch_mob = "sword_flesh",
- },
- })
- minetest.register_tool(":default:axe_mese", {
- description = "Mese Axe",
- inventory_image = "default_tool_meseaxe.png",
- tool_capabilities = tooldata["axe_mese"],
- sounds = {
- breaks = "basictools_tool_breaks",
- punch_use_air = "sword_swipe_metal",
- _punch_mob = "sword_flesh",
- },
- })
- minetest.register_tool(":default:axe_diamond", {
- description = "Diamond Axe",
- inventory_image = "default_tool_diamondaxe.png",
- tool_capabilities = tooldata["axe_diamond"],
- sounds = {
- breaks = "basictools_tool_breaks",
- punch_use_air = "sword_swipe_metal",
- _punch_mob = "sword_flesh",
- },
- })
- minetest.register_tool(":default:sword_stone", {
- description = "Stone Sword",
- inventory_image = "default_tool_stonesword.png",
- tool_capabilities = tooldata["sword_stone"],
- sounds = {breaks = "basictools_tool_breaks"},
- groups = {not_repaired_by_anvil = 1},
- sounds = {
- breaks = "basictools_tool_breaks",
- punch_use_air = "sword_swipe_hard",
- },
- })
- minetest.register_tool(":default:sword_steel", {
- description = "Iron Sword",
- inventory_image = "default_tool_steelsword.png",
- tool_capabilities = tooldata["sword_steel"],
- sounds = {
- breaks = "basictools_tool_breaks",
- punch_use_air = "sword_swipe_metal",
- _punch_mob = "sword_flesh",
- },
- })
- minetest.register_tool(":default:sword_bronze", {
- description = "Copper Sword",
- inventory_image = "default_tool_bronzesword.png",
- tool_capabilities = tooldata["sword_bronze"],
- sounds = {
- breaks = "basictools_tool_breaks",
- punch_use_air = "sword_swipe_metal",
- _punch_mob = "sword_flesh",
- },
- })
- minetest.register_tool(":default:sword_bronze2", {
- description = "Bronze Sword",
- inventory_image = "default_tool_bronzesword2.png",
- tool_capabilities = tooldata["sword_bronze2"],
- sounds = {
- breaks = "basictools_tool_breaks",
- punch_use_air = "sword_swipe_metal",
- _punch_mob = "sword_flesh",
- },
- })
- minetest.register_tool(":default:sword_mese", {
- description = "Mese Sword",
- inventory_image = "default_tool_mesesword.png",
- tool_capabilities = tooldata["sword_mese"],
- sounds = {
- breaks = "basictools_tool_breaks",
- punch_use_air = "sword_swipe_metal",
- _punch_mob = "sword_flesh",
- },
- })
- minetest.register_tool(":default:sword_diamond", {
- description = "Diamond Sword",
- inventory_image = "default_tool_diamondsword.png",
- tool_capabilities = tooldata["sword_diamond"],
- sounds = {
- breaks = "basictools_tool_breaks",
- punch_use_air = "sword_swipe_metal",
- _punch_mob = "sword_flesh",
- },
- })
- minetest.register_craft({
- output = 'default:pick_wood',
- recipe = {
- {'group:wood', 'group:wood', 'group:wood'},
- {'', 'group:stick', ''},
- {'', 'group:stick', ''},
- },
- })
- minetest.register_craft({
- output = 'default:pick_stone',
- recipe = {
- {'group:native_stone', 'group:native_stone', 'group:native_stone'},
- {'', 'group:stick', ''},
- {'', 'group:stick', ''},
- }
- })
- minetest.register_craft({
- output = 'default:pick_steel',
- recipe = {
- {'default:steel_ingot', 'default:steel_ingot', 'default:steel_ingot'},
- {'', 'group:stick', ''},
- {'', 'group:stick', ''},
- }
- })
- minetest.register_craft({
- output = 'default:pick_bronze',
- recipe = {
- {'default:copper_ingot', 'default:copper_ingot', 'default:copper_ingot'},
- {'', 'group:stick', ''},
- {'', 'group:stick', ''},
- }
- })
- minetest.register_craft({
- output = 'default:pick_bronze2',
- recipe = {
- {'default:bronze_ingot', 'default:bronze_ingot', 'default:bronze_ingot'},
- {'', 'group:stick', ''},
- {'', 'group:stick', ''},
- }
- })
- minetest.register_craft({
- output = 'default:pick_mese',
- recipe = {
- {'default:mese_crystal', 'default:mese_crystal', 'default:mese_crystal'},
- {'', 'darkage:iron_stick', ''},
- {'', 'darkage:iron_stick', ''},
- }
- })
- minetest.register_craft({
- output = 'default:pick_diamond',
- recipe = {
- {'default:diamond', 'default:diamond', 'default:diamond'},
- {'', 'farming:string', ''},
- {'', 'default:pick_steel', ''},
- }
- })
- minetest.register_craft({
- output = 'default:shovel_stone',
- recipe = {
- {'group:native_stone'},
- {'group:stick'},
- {'group:stick'},
- }
- })
- minetest.register_craft({
- output = 'default:shovel_steel',
- recipe = {
- {'default:steel_ingot'},
- {'group:stick'},
- {'group:stick'},
- }
- })
- minetest.register_craft({
- output = 'default:shovel_bronze',
- recipe = {
- {'default:copper_ingot'},
- {'group:stick'},
- {'group:stick'},
- }
- })
- minetest.register_craft({
- output = 'default:shovel_bronze2',
- recipe = {
- {'default:bronze_ingot'},
- {'group:stick'},
- {'group:stick'},
- }
- })
- minetest.register_craft({
- output = 'default:shovel_mese',
- recipe = {
- {'default:mese_crystal'},
- {'darkage:iron_stick'},
- {'darkage:iron_stick'},
- }
- })
- minetest.register_craft({
- output = 'default:shovel_diamond',
- recipe = {
- {'default:diamond'},
- {'farming:string'},
- {'default:shovel_steel'},
- }
- })
- minetest.register_craft({
- output = 'default:axe_stone',
- recipe = {
- {'group:native_stone', 'group:native_stone'},
- {'group:native_stone', 'group:stick'},
- {'', 'group:stick'},
- }
- })
- minetest.register_craft({
- output = 'default:axe_steel',
- recipe = {
- {'default:steel_ingot', 'default:steel_ingot'},
- {'default:steel_ingot', 'group:stick'},
- {'', 'group:stick'},
- }
- })
- minetest.register_craft({
- output = 'default:axe_bronze',
- recipe = {
- {'default:copper_ingot', 'default:copper_ingot'},
- {'default:copper_ingot', 'group:stick'},
- {'', 'group:stick'},
- }
- })
- minetest.register_craft({
- output = 'default:axe_bronze2',
- recipe = {
- {'default:bronze_ingot', 'default:bronze_ingot'},
- {'default:bronze_ingot', 'group:stick'},
- {'', 'group:stick'},
- }
- })
- minetest.register_craft({
- output = 'default:axe_mese',
- recipe = {
- {'default:mese_crystal', 'default:mese_crystal'},
- {'default:mese_crystal', 'darkage:iron_stick'},
- {'', 'darkage:iron_stick'},
- }
- })
- minetest.register_craft({
- output = 'default:axe_diamond',
- recipe = {
- {'default:diamond', 'default:diamond'},
- {'default:diamond', 'farming:string'},
- {'', 'default:axe_steel'},
- }
- })
- minetest.register_craft({
- output = 'default:axe_stone',
- recipe = {
- {'group:native_stone', 'group:native_stone'},
- {'group:stick', 'group:native_stone'},
- {'group:stick', ''},
- }
- })
- minetest.register_craft({
- output = 'default:axe_steel',
- recipe = {
- {'default:steel_ingot', 'default:steel_ingot'},
- {'group:stick', 'default:steel_ingot'},
- {'group:stick', ''},
- }
- })
- minetest.register_craft({
- output = 'default:axe_bronze',
- recipe = {
- {'default:copper_ingot', 'default:copper_ingot'},
- {'group:stick', 'default:copper_ingot'},
- {'group:stick', ''},
- }
- })
- minetest.register_craft({
- output = 'default:axe_bronze2',
- recipe = {
- {'default:bronze_ingot', 'default:bronze_ingot'},
- {'group:stick', 'default:bronze_ingot'},
- {'group:stick', ''},
- }
- })
- minetest.register_craft({
- output = 'default:axe_mese',
- recipe = {
- {'default:mese_crystal', 'default:mese_crystal'},
- {'darkage:iron_stick', 'default:mese_crystal'},
- {'darkage:iron_stick', ''},
- }
- })
- minetest.register_craft({
- output = 'default:axe_diamond',
- recipe = {
- {'default:diamond', 'default:diamond'},
- {'farming:string', 'default:diamond'},
- {'default:axe_steel', ''},
- }
- })
- minetest.register_craft({
- output = 'default:sword_stone',
- recipe = {
- {'group:native_stone'},
- {'group:native_stone'},
- {'group:stick'},
- }
- })
- minetest.register_craft({
- output = 'default:sword_steel',
- recipe = {
- {'default:steel_ingot'},
- {'default:steel_ingot'},
- {'group:stick'},
- }
- })
- minetest.register_craft({
- output = 'default:sword_bronze',
- recipe = {
- {'default:copper_ingot'},
- {'default:copper_ingot'},
- {'group:stick'},
- }
- })
- minetest.register_craft({
- output = 'default:sword_bronze2',
- recipe = {
- {'default:bronze_ingot'},
- {'default:bronze_ingot'},
- {'group:stick'},
- }
- })
- minetest.register_craft({
- output = 'default:sword_mese',
- recipe = {
- {'default:mese_crystal'},
- {'default:mese_crystal'},
- {'darkage:iron_stick'},
- }
- })
- minetest.register_craft({
- output = 'default:sword_diamond',
- recipe = {
- {'', 'default:diamond', ''},
- {'farming:string', 'default:diamond', 'farming:string'},
- {'', 'default:sword_steel', ''},
- }
- })
|