From 8160896e46c62bb2f120630f409ec10456514faa Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Thu, 9 Feb 2017 01:56:55 +0100 Subject: [PATCH] Add basic soul sand --- mods/mcl_nether/init.lua | 14 ++++++++++++++ .../mcl_nether/textures/mcl_nether_soul_sand.png | Bin 0 -> 1125 bytes mods/playerplus/init.lua | 8 +++++--- 3 files changed, 19 insertions(+), 3 deletions(-) create mode 100644 mods/mcl_nether/textures/mcl_nether_soul_sand.png diff --git a/mods/mcl_nether/init.lua b/mods/mcl_nether/init.lua index 9bcd064421..3fbe778379 100644 --- a/mods/mcl_nether/init.lua +++ b/mods/mcl_nether/init.lua @@ -51,6 +51,20 @@ minetest.register_node("mcl_nether:magma", { end, }) +minetest.register_node("mcl_nether:soul_sand", { + description = "Soul Sand", + stack_max = 64, + tiles = {"mcl_nether_soul_sand.png"}, + is_ground_content = true, + groups = {crumbly=3,building_block=1,soil_nether_wart=1}, + collision_box = { + type = "fixed", + fixed = { -0.5, -0.5, -0.5, 0.5, 0.5 - 2/16, 0.5 }, + }, + sounds = mcl_core.node_sound_sand_defaults(), + -- Movement handling is done in playerplus mod +}) + minetest.register_node("mcl_nether:nether_brick", { -- Original name: Nether Brick description = "Nether Brick Block", diff --git a/mods/mcl_nether/textures/mcl_nether_soul_sand.png b/mods/mcl_nether/textures/mcl_nether_soul_sand.png new file mode 100644 index 0000000000000000000000000000000000000000..78abc8848dc8cf3bd718774a96f4831cc75d4bbb GIT binary patch literal 1125 zcmV-r1e*JaP)9>&vz2bkuEyL%Q9!r-Sx#oXd*)P(VC~Yv_K^fhS9K1U-fu0r8R} ze?7{Jguu#HSScqN6oGEif2Tv{S`G9;yBRlodeCKv6d37iqX{!kDPbC1NNS)LtB7A` zX?CTYqPKhZaa8Hf0mBk>E)kIZ&D%z9H98>E`vl!6(81b35M!O+`UMAQr&{{q{ky~k z_V4Qf;bgU(1A>4$^!tB;XS*BW2)e;R`+tu2*2?uJUCpFJO{XzSg~XY+>?nn!N;lqt z0uY=RLzHJYZcLviRTC8u08eY99l~XRfE@K z%r`-=^&49iVf5Y1ZSS^>!@YWpZrCKG7n8hPJash(>brEFcsDB@-UQD%Y0b}MSAY1f zfIu%^I5g7{Z!t!RFz%m*J zC;?P{H`JgrJ%4U4yLM^MhD?WaP)CSp{wf60*$*JvYXvk5hi`V!&QsL^B^*BURr=INVVl=S!qYr|X44I^zKSWp9H>=TZmsm%V!m z%9lwYpdaA~dPI7sQBUmJuELYv1_2lJ2y_MRz?^(6R~N@{xQCmdp9wynJfVS|9iy{n zxl$+Te0GxRrZV|{E(B~+;fT+Wt;M=Q@cHDBzx;qe50uOJs5O2FMYgkRggS|z4%+CD z-d|nt2%W?iN;rbf`q^D81UmRP=*4FX8{DMB`GC%1;L=f!Pgos+4tk8O-_<4UFnO~G rVyvWt{xH}jRr;7C&_U00000NkvXXu0mjfvX&K> literal 0 HcmV?d00001 diff --git a/mods/playerplus/init.lua b/mods/playerplus/init.lua index 7e48d6f1ef..b22d28e202 100644 --- a/mods/playerplus/init.lua +++ b/mods/playerplus/init.lua @@ -74,10 +74,12 @@ minetest.register_globalstep(function(dtime) end -- standing on soul sand? if so walk slower --- if playerplus[name].nod_stand == "mcl_nether:soul_sand" then + if playerplus[name].nod_stand == "mcl_nether:soul_sand" then -- TODO: Fix walk speed --- def.speed = def.speed - 0.4 --- end + -- TODO: Also check other blocks + -- TODO: Also slow down mobs + def.speed = def.speed - 0.4 + end -- set player physics -- TODO: Resolve conflict