From d6a7098482ac557a677b18f6a6148c77f132f809 Mon Sep 17 00:00:00 2001 From: sys4-fr Date: Sun, 16 Sep 2018 17:26:15 +0200 Subject: [PATCH] Ajout du mod nalc_moognu Le mod remplace les nyancats mais reste compatible. --- nalc_moognu/depends.txt | 2 + nalc_moognu/init.lua | 147 ++++++++++++++++++ nalc_moognu/textures/default_tool_nyanaxe.png | Bin 0 -> 434 bytes .../textures/default_tool_nyanpick.png | Bin 0 -> 308 bytes .../textures/default_tool_nyanshovel.png | Bin 0 -> 274 bytes .../textures/default_tool_nyansword.png | Bin 0 -> 334 bytes 6 files changed, 149 insertions(+) create mode 100644 nalc_moognu/depends.txt create mode 100644 nalc_moognu/init.lua create mode 100755 nalc_moognu/textures/default_tool_nyanaxe.png create mode 100755 nalc_moognu/textures/default_tool_nyanpick.png create mode 100755 nalc_moognu/textures/default_tool_nyanshovel.png create mode 100755 nalc_moognu/textures/default_tool_nyansword.png diff --git a/nalc_moognu/depends.txt b/nalc_moognu/depends.txt new file mode 100644 index 0000000..dbb9510 --- /dev/null +++ b/nalc_moognu/depends.txt @@ -0,0 +1,2 @@ +moognu +toolranks? diff --git a/nalc_moognu/init.lua b/nalc_moognu/init.lua new file mode 100644 index 0000000..a672240 --- /dev/null +++ b/nalc_moognu/init.lua @@ -0,0 +1,147 @@ +minetest.register_craft({ + type = "fuel", + recipe = "nyancat:nyancat", + burntime = 7200, +}) + +minetest.register_craft({ + type = "fuel", + recipe = "nyancat:nyancat_rainbow", + burntime = 1200, +}) + +minetest.register_craft( + { output = 'nalc_moognu:pick_nyan', + recipe = { + {'nyancat:nyancat', 'nyancat:nyancat', 'nyancat:nyancat'}, + {'', 'group:stick', ''}, + {'', 'group:stick', ''}, + } + }) + +minetest.register_craft( + { + output = "nalc_moognu:shovel_nyan", + recipe = { + {"nyancat:nyancat"}, + {"group:stick"}, + {"group:stick"}, + } + }) + +minetest.register_craft( + { + output = "nalc_moognu:axe_nyan", + recipe = { + {"nyancat:nyancat", "nyancat:nyancat"}, + {"nyancat:nyancat", "group:stick"}, + {"", "group:stick"}, + } + }) + +minetest.register_craft( + { + output = "nalc_moognu:sword_nyan", + recipe = { + {"nyancat:nyancat"}, + {"nyancat:nyancat"}, + {"group:stick"}, + } + }) + +-- +-- Register Tools +-- + +minetest.register_tool( + "nalc_moognu:pick_nyan", + { + description = "Nyan Pickaxe", + inventory_image = "default_tool_nyanpick.png", + tool_capabilities = { + full_punch_interval = 0.9, + max_drop_level = 3, + groupcaps = { + cracky = {times = {[1] = 2.60, [2] = 1.10, [3] = 0.60}, uses = 60, maxlevel = 3}, + crumbly = {times = {[1] = 2.0, [2] = 0.9, [3] = 0.36}, uses = 75, maxlevel = 2}, + }, + damage_groups = {fleshy = 4}, + }, + }) + +minetest.register_tool( + "nalc_moognu:shovel_nyan", + { + description = "Nyan Shovel", + inventory_image = "default_tool_nyanshovel.png", + wield_image = "default_tool_nyanshovel.png^[transformR90", + tool_capabilities = { + full_punch_interval = 1.2, + max_drop_level = 1, + groupcaps = { + crumbly = {times = {[1] = 1.30, [2] = 0.55, [3] = 0.30}, uses = 60, maxlevel = 3}, + }, + damage_groups = {fleshy = 4}, + }, + }) + +minetest.register_tool( + "nalc_moognu:axe_nyan", + { + description = "Nyan Axe", + inventory_image = "default_tool_nyanaxe.png", + tool_capabilities = { + full_punch_interval = 1.2, + max_drop_level = 1, + groupcaps = { + choppy = {times = {[1] = 2.86, [2] = 1.21, [3] = 0.66}, uses = 60, maxlevel = 3}, + snappy = {times = {[3] = 0.125}, uses = 0, maxlevel = 1}, + }, + damage_groups = {fleshy = 4}, + }, + }) + +minetest.register_tool( + "nalc_moognu:sword_nyan", + { + description = "Nyan Sword", + inventory_image = "default_tool_nyansword.png", + tool_capabilities = { + full_punch_interval = 0.7, + max_drop_level = 1, + groupcaps = { + snappy = {times = {[1] = 1.9, [2] = 0.85, [3] = 0.125}, uses = 40, maxlevel = 3}, + }, + damage_groups = {fleshy = 6}, + } + }) + +minetest.register_alias("default:pick_nyan", "nalc_moognu:pick_nyan") +minetest.register_alias("default:axe_nyan", "nalc_moognu:axe_nyan") +minetest.register_alias("default:shovel_nyan", "nalc_moognu:shovel_nyan") +minetest.register_alias("default:sword_nyan", "nalc_moognu:sword_nyan") + +-- Toolranks +if minetest.get_modpath("toolranks") then + minetest.override_item( + "nalc_moognu:pick_nyan", + { + original_description = "Nyan Pickaxe", + description = toolranks.create_description("Nyan Pickaxe", 0, 1), + after_use = toolranks.new_afteruse + }) + minetest.override_item( + "nalc_moognu:axe_nyan", + { + original_description = "Nyan Axe", + description = toolranks.create_description("Nyan Axe", 0, 1), + after_use = toolranks.new_afteruse + }) + minetest.override_item( + "nalc_moognu:shovel_nyan", + { + original_description = "Nyan Shovel", + description = toolranks.create_description("Nyan Shovel", 0, 1), + after_use = toolranks.new_afteruse + }) +end diff --git a/nalc_moognu/textures/default_tool_nyanaxe.png b/nalc_moognu/textures/default_tool_nyanaxe.png new file mode 100755 index 0000000000000000000000000000000000000000..9d756b52b4c29fa5b80afa3e0293ab4e9a37b8f4 GIT binary patch literal 434 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnE3?yBabR7dy)d4;su1+i-C42>)OKz{+`*hXb zCp*{Q-?`!5q57wn7rnXq_WOf7A71Bu`!MzA&kKM4|NpPUBmz|L&Sv1jqUOP==fQ98 z$!YH?Wbef!=*`GiB%Ta3s+>EjlGCG(MY*0?s)0!a%~+tBcfbCJ7@K~5b_~!N{3Stt z!9W@rs4qXf1<1ed>Eaktack-2Xz@k|k+z32i)4OrEOt6I<=6lH7kYH1cSl}J(%V%z z|EBNiPmA#dY|-;>jXU7vqu|)h+8n;L z!cE>`mB^X`2AMLhiK0RQ@%bMs7PGkAcc|fCWX;&OZ8zhm8ztrkEIW64H(a)RsK;3J zis{22+j7Q={VaFu-Z9%g1-_N_Q^ZwSbzbE_H{UylDp00i_>zopr01@}R AfB*mh literal 0 HcmV?d00001 diff --git a/nalc_moognu/textures/default_tool_nyanpick.png b/nalc_moognu/textures/default_tool_nyanpick.png new file mode 100755 index 0000000000000000000000000000000000000000..d100daca85f2a34066a165738fa0bfb296b65573 GIT binary patch literal 308 zcmV-40n7f0P)800vD17Ip+Aq1NrGz2(Ax<(%%A()fW< zBvSwY00DGTPE!Ct=GbNc0068>L_t(|0j1N+5`r)cM&Syaaw!*l|ChD!GfdSG9nFTB zoNtju3EvI-xZ=L93w#m_j)6_gvtwWv)3h6GA~B9|BiQ5+Rb>g0LpbM35PlZax`WGJ z*KC4|9&-=Zf*2#Z!vwVIfqVy6Z(FS;oSwn*2I$mJ!E5ijV#O+9cZnxJQZGR%NGX;5 z5a)^^cjKLM_F=$!$+$fS^y#gxq~7=LFVm)SHpphk?ysET@pYx{N2Sio>CnRlR{pypfT&bII*VU-PH^IJ@xL+YR5R?_7WX z>)ZS-q4WHK1~HZd`2{mLJiCzwaKw;Bw`KxND&gqFC zJ92BEd_v>Tj|z+T=@>Ts*ms%fwHJ5J?a&AJo?D9V_$pAO$f$oLb757z*skxcS|QsX z6?MPc=Cf>9@uOb`JGy=c?Em!f!$XKs=egXqU`gV@btTI^>4fOZn5}m zhWPWA`>)je(B}PTfd9P7U)r|J00001bW%=J06^y0W&i*Hv`IukRCwBb)7cJ$AP_`R zXje7`Mfm?eopM6PWLmo3$hmJFlr+Lb-;aYNKldGh;3o>|yE`$-ofF+SOmbsHw+55k zTG745B=?>>k1_&^F+R=