Add basic soul sand
This commit is contained in:
parent
2baec5d5d7
commit
8160896e46
|
@ -51,6 +51,20 @@ minetest.register_node("mcl_nether:magma", {
|
||||||
end,
|
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", {
|
minetest.register_node("mcl_nether:nether_brick", {
|
||||||
-- Original name: Nether Brick
|
-- Original name: Nether Brick
|
||||||
description = "Nether Brick Block",
|
description = "Nether Brick Block",
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 1.1 KiB |
|
@ -74,10 +74,12 @@ minetest.register_globalstep(function(dtime)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- standing on soul sand? if so walk slower
|
-- 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
|
-- TODO: Fix walk speed
|
||||||
-- def.speed = def.speed - 0.4
|
-- TODO: Also check other blocks
|
||||||
-- end
|
-- TODO: Also slow down mobs
|
||||||
|
def.speed = def.speed - 0.4
|
||||||
|
end
|
||||||
|
|
||||||
-- set player physics
|
-- set player physics
|
||||||
-- TODO: Resolve conflict
|
-- TODO: Resolve conflict
|
||||||
|
|
Loading…
Reference in New Issue