Disable jumping on shadow bush

This commit is contained in:
Wuzzy 2024-01-09 17:47:14 +01:00
parent e12cd1a8cb
commit fa7d480cf1

View File

@ -1010,10 +1010,12 @@ else
spikeplant_weak_tiles = { "sf_nodes_spikeplant.png" }
end
-- Same as normal shadow bush, except it is supposed to be destroyed
-- by a special event at the shadow bush barrier in the Dead Forest.
minetest.register_node("sf_nodes:spikeplant_weak", {
description = S("Weak Shadow Bush"),
paramtype = "light",
groups = { editor_breakable = 1, leaves = 1 },
groups = { editor_breakable = 1, leaves = 1, disable_jump = 1 },
drawtype = "allfaces_optional",
tiles = spikeplant_weak_tiles,
move_resistance = 1,
@ -1029,7 +1031,7 @@ minetest.register_node("sf_nodes:spikeplant_weak", {
minetest.register_node("sf_nodes:spikeplant", {
description = S("Shadow Bush"),
paramtype = "light",
groups = { editor_breakable = 1, leaves = 1 },
groups = { editor_breakable = 1, leaves = 1, disable_jump = 1 },
tiles = { "sf_nodes_spikeplant.png" },
drawtype = "allfaces_optional",
move_resistance = 1,
@ -1044,7 +1046,7 @@ minetest.register_node("sf_nodes:spikeplant", {
minetest.register_node("sf_nodes:spikeplant_inner", {
description = S("Branchy Shadow Bush"),
paramtype = "light",
groups = { editor_breakable = 1, leaves = 1 },
groups = { editor_breakable = 1, leaves = 1, disable_jump = 1 },
tiles = { "sf_nodes_spikeplant_inner.png" },
drawtype = "allfaces_optional",
move_resistance = 2,
@ -1059,7 +1061,7 @@ minetest.register_node("sf_nodes:spikeplant_inner", {
minetest.register_node("sf_nodes:spikeplant_protrusion", {
description = S("Protuding Shadow Bush"),
paramtype = "light",
groups = { editor_breakable = 1, leaves_protrusion = 1 },
groups = { editor_breakable = 1, leaves_protrusion = 1, disable_jump = 1 },
tiles = { "sf_nodes_spikeplant_plantlike.png" },
drawtype = "plantlike",
paramtype2 = "wallmounted",