diff --git a/mods/mcl_nether/init.lua b/mods/mcl_nether/init.lua index 9bcd06442..3fbe77837 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 000000000..78abc8848 Binary files /dev/null and b/mods/mcl_nether/textures/mcl_nether_soul_sand.png differ diff --git a/mods/playerplus/init.lua b/mods/playerplus/init.lua index 7e48d6f1e..b22d28e20 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