From ac307233a1bd18f347fb4ef3b67680db7cff8231 Mon Sep 17 00:00:00 2001 From: trans_soup <> Date: Wed, 11 Oct 2023 18:22:06 +0200 Subject: [PATCH] add cobblestone and fix some drops. add cobblestone node. make stone drop cobblestone and grass drop dirt. --- mods/bg_core/node.lua | 27 +++++++++++++++++---- mods/bg_core/textures/core_cobble.png | Bin 268 -> 0 bytes mods/bg_core/textures/core_cobblestone.png | Bin 0 -> 966 bytes 3 files changed, 22 insertions(+), 5 deletions(-) delete mode 100644 mods/bg_core/textures/core_cobble.png create mode 100644 mods/bg_core/textures/core_cobblestone.png diff --git a/mods/bg_core/node.lua b/mods/bg_core/node.lua index 020f273..89f4a15 100644 --- a/mods/bg_core/node.lua +++ b/mods/bg_core/node.lua @@ -1,6 +1,17 @@ local modname = minetest.get_current_modname() -blockgame.reg_simple_node("stone", "Stone", { +minetest.register_node(modname .. ":stone", { + description = "Stone", + tiles = { + modname .. "_stone.png", + }, + groups = { + cracky = 3, + stoney = 1, + }, + drop = modname .. ":cobblestone", +}) +blockgame.reg_simple_node("cobblestone", "Cobblestone", { cracky = 3, stoney = 1, }) @@ -8,11 +19,17 @@ blockgame.reg_simple_node("stone", "Stone", { minetest.register_alias("mapgen_stone", modname .. ":stone") minetest.register_alias("mapgen_water_source", "air") -blockgame.reg_simple_node("grass", "Grass", { - cracky = 3, - dirty = 1, +minetest.register_node(modname .. ":grass", { + description = "Grass", + tiles = { + modname .. "_grass.png", + }, + groups = { + cracky = 3, + dirty = 1, + }, + drop = modname .. ":dirt", }) - blockgame.reg_simple_node("dirt", "Dirt", { cracky = 3, dirty = 1, diff --git a/mods/bg_core/textures/core_cobble.png b/mods/bg_core/textures/core_cobble.png deleted file mode 100644 index d3798404b1f0fad2e4ac7940712f3bc45fce93c4..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 268 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!73?$#)eFPHF4e$wZ^>A?t4)9A&iud+#4fOMI zb#jP_3~ys0h=VsK%ssvH zaMweD_7#tEq!s1ZlG9k#ebbWJ+FmbR)TiW=eOhu-kfa3DluKnsKDXCw-Inr5#gL6N z(UCQ5`ZOCh$%ia`OwA1pZ5IL@RTcH_2DM#%YSYw|)2qZIG?|Afg7>PL!IBPxw^4Dg zln)$8IPmD^LaCfH2TJEQt_`j%HEecpH|FXVgMg*7oBp)<_kgZs N@O1TaS?83{1OU$zVB7!z diff --git a/mods/bg_core/textures/core_cobblestone.png b/mods/bg_core/textures/core_cobblestone.png new file mode 100644 index 0000000000000000000000000000000000000000..55f5c71113d5764e6ac91fae34348c3b43b9c65e GIT binary patch literal 966 zcmV;%13CPOP)EX>4Tx04R}tkv&MmKpe$iTeVUv9qb_DkfAzR5EXIMDionYs1;guFuC*#nlvOS zE{=k0!NHHks)LKOt`4q(Aou~|>f)s6A|?JWDYS_3;J6>}?mh0_0scmXsb<$WplX(p zP9}tGZdC}rB7{CfFn}J3nfjb4rrU7TlmpZjz4D|wRvK7n|a>4rtTK|H-_ z>74h8qpTz;#OK6g23?T&k?XR{Z=8z``*~*6$fW0qqr^h7gXIopB|{~iB91AlM*04% z%L?Z$&T6H`TKD8H4Cl3#WvWO9|k z$gzMbR7j2={11M2YZfLa+@x><=zg*7j}aia3pDGt{e5iP%@ZK-3|wh#f3*S3e3D*o zYq29BvJG5Zw>5bWxZD8-pLEHP94SE4Unl_YXY@@uVBi)At+~Cm_Hp_EWT>mu4RCM> zj20<--Q(T8oxS~grq$mM3UP9M0_&5200006VoOIv04xB503VYH(N+Ke010qNS#tmY z3ljhU3ljkVnw%H_000McNliru=L!oD4iLpQfS>>X02y>eSad^gZEa<4bO1wgWnpw> zWFU8GbZ8()Nlj2!fese{00Ev!L_t(I%WadvZrd;rL|+Y+WaM0!I%os&B=}2;9{T_1 zA}0#AVI@ogFJsXH+Ji%a3d$SF-Pzrl*)P9;{rtRLay0-y_(I}) zjLh@Qd78@H5{2_L6~LReWtH2^r)GJxxyN-5r44@Y09b2L+HkvGb4iJ&PO#Q;*zXn~ z5(U>e{NTxa0nGCZK$E8PfA#JAZRxBA$r1vLuPYBD*WtK|ywJaZBuclz?O@;yQr0w^#1&z5x^o zGhjAU_6fi$CtGXF!kk1(B|msBDJ{6jyAndUaxjiZfFe`Pv>*IpsnT>VQo7Dvjg*~N oCud^wz3;chRIYPaYmq4Y1FbhI4VShY#sB~S07*qoM6N<$f`W&v^#A|> literal 0 HcmV?d00001