From 42a12e1463755702784c829bc388d515bd85d873 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bruno=20Ryb=C3=A1rsky?= Date: Thu, 24 Feb 2022 16:03:42 +0100 Subject: [PATCH] first commit --- init.lua | 51 +++++++++++++++++++++++++++++++++++++++++ mod.conf | 3 +++ textures/krompac.png | Bin 0 -> 460 bytes textures/superblok.png | Bin 0 -> 492 bytes 4 files changed, 54 insertions(+) create mode 100644 init.lua create mode 100644 mod.conf create mode 100644 textures/krompac.png create mode 100644 textures/superblok.png 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 0000000000000000000000000000000000000000..50a7b97062383cfc3eb199e0e3cd10f94ebf4c40 GIT binary patch literal 460 zcmV;-0WPx$hDk(0R9J<**S(E{Fcb&yztPp#Wr9dyf%MF98<2(xQeK%d6Sz4x$PDOO7T_c% zK)NCe_=@OV9xt|IW0NOEN)!Y?zYhbds*VPp=(@A={hu1@_gkBf&mZT-ZNQu;FTi$D z2};GNp>0g_^`3H$B#3oYm(vaa5R#cxh!?OF5rcVqcEIJd!!-6NYyE$+XOj~Xvo5Eu z=Ov);62T*7l&t`LxMH*2KOF2sgkWqCYYEC)tD%LFh|PA7p@s1wT&u0BqmhdRfWmd6 zves%EdjRuBydj$C9_YHWq7Q)pQ3Bfv_&&j>BcvQ5;miOI&Kq1Qk+)5IY zi6npv0fd($8IX#|`oz1WC$eOKV#$bR1=tW2E<|=fEMgS^Awuq=tG;#t_r@fIe8yZI zz!3mukZJ7KD*+GQ6Y~D?k_=GDePSB>*8&K^fBylAULBKx{8xkk0000Px$rb$FWR9J=0mraU;FdW5Sr&;t4N^#+~6ncSPMCb{GBI7B9B6xxU&m%~;E~MBy zbTPxsqVv}nlNu*}%v)Jg^L}~$^Wo}veE-IRVgTTJ(IVzW8a@F4;BmdpYQEWR0iXc@ z0Crl>V*dH@)p&}HWe`tl?p)5T-*1z;X{eI`$=>_*b(JUc1E^qt21vZmw;2Oec_K9s zjYUIh(*=21167_VJEArohQD?$=T5=Nr1c79k@KB9=r>Yn&@7-)(|S<`acA1{b9{6F zKp43sW*%--05TIhHcdcT1F8a&-RDiKJQ-9IQUH|+JFPn-wD-QzLZwWA3;{0YV7P(o zwegbHKpDh;+8JFhYMm`~3Q;Qo9pn1B!(Ho{UI2oq@}yN0EVJtCA`RhsQOA`3j}ZWg zq7=