commit 42a12e1463755702784c829bc388d515bd85d873 Author: Bruno Rybársky Date: Thu Feb 24 16:03:42 2022 +0100 first commit diff --git a/init.lua b/init.lua new file mode 100644 index 0000000..2911942 --- /dev/null +++ b/init.lua @@ -0,0 +1,51 @@ +minetest.register_tool("krompac:rychly", { + description = "Rychly krompac", + inventory_image = "krompac.png", + tool_capabilities = { + full_punch_interval = 0.1, + max_drop_level = 1, + groupcaps = { + crumbly = { + maxlevel = 3, + uses = 2000, + times = {[0] = 0.8, [1]=0.4, [2]=0.2, [3]=0.1 } + }, + cracky = { + maxlevel = 3, + uses = 2000, + times = {[0] = 0.8, [1]=0.4, [2]=0.2, [3]=0.1 } + }, + choppy = { + maxlevel = 3, + uses = 2000, + times = {[0] = 0.8, [1]=0.4, [2]=0.2, [3]=0.1 } + }, + }, + }, +}) + +minetest.register_node("krompac:superblok", { + description = "SuperBlok", + tiles = {"superblok.png"}, + is_ground_content = true, + groups = {cracky=1} +}) + +minetest.register_craft({ + type = "shaped", + output = "krompac:superblok", + recipe = { + {"default:mese", "default:diamondblock", "default:mese"}, + {"default:diamondblock", "moreores:mithril_block", "default:diamondblock"}, + {"default:mese", "default:diamondblock", "default:mese"} + } +}) +minetest.register_craft({ + type = "shaped", + output = "krompac:rychly", + recipe = { + {"krompac:superblok", "krompac:superblok", "krompac:superblok"}, + {"krompac:superblok", "krompac:superblok", "krompac:superblok"}, + {"krompac:superblok", "krompac:superblok", "krompac:superblok"}, + } +}) diff --git a/mod.conf b/mod.conf new file mode 100644 index 0000000..585b65a --- /dev/null +++ b/mod.conf @@ -0,0 +1,3 @@ +name = krompac +description = Prida rychly krompac +depends = default, moreores diff --git a/textures/krompac.png b/textures/krompac.png new file mode 100644 index 0000000..50a7b97 Binary files /dev/null and b/textures/krompac.png differ diff --git a/textures/superblok.png b/textures/superblok.png new file mode 100644 index 0000000..00c4514 Binary files /dev/null and b/textures/superblok.png differ