Move quicksand and mud to a seperate mod
|
@ -182,6 +182,7 @@ minetest.register_biome(
|
||||||
depth_filler = 8,
|
depth_filler = 8,
|
||||||
|
|
||||||
node_water = "main:ice_thick",
|
node_water = "main:ice_thick",
|
||||||
|
node_river_water = "main:ice_thin",
|
||||||
|
|
||||||
y_min = 1,
|
y_min = 1,
|
||||||
y_max = 50,
|
y_max = 50,
|
||||||
|
|
|
@ -40,7 +40,7 @@ minetest.register_node("main:ice_thin", {
|
||||||
alpha = 6,
|
alpha = 6,
|
||||||
description = "Thin Ice",
|
description = "Thin Ice",
|
||||||
tiles = {"main_ice_thin.png"},
|
tiles = {"main_ice_thin.png"},
|
||||||
groups = {cracky = 3},
|
groups = {cracky = 3, slippery = 3},
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_node("main:ice_thick", {
|
minetest.register_node("main:ice_thick", {
|
||||||
|
@ -444,77 +444,3 @@ minetest.register_node("main:muddywater_flowing", {
|
||||||
liquid_alternative_source = "main:muddywater_source",
|
liquid_alternative_source = "main:muddywater_source",
|
||||||
groups = {liquid = 1, water = 1},
|
groups = {liquid = 1, water = 1},
|
||||||
})
|
})
|
||||||
|
|
||||||
--Liquid mud
|
|
||||||
minetest.register_node("main:mud_source", {
|
|
||||||
description = "Liquid Mud Source",
|
|
||||||
drawtype = "liquid",
|
|
||||||
paramtype = "light",
|
|
||||||
|
|
||||||
tiles = {name = "main_mud_source.png"},
|
|
||||||
post_effect_color = {r = 60, g = 40, b = 10},
|
|
||||||
|
|
||||||
--Behavior
|
|
||||||
walkable = false,
|
|
||||||
pointable = false,
|
|
||||||
buildable_to = true,
|
|
||||||
diggable = false,
|
|
||||||
is_ground_content = false,
|
|
||||||
|
|
||||||
--Properties
|
|
||||||
liquid_range = 6,
|
|
||||||
liquid_viscosity = 20,
|
|
||||||
drowning = 1,
|
|
||||||
liquidtype = "source",
|
|
||||||
liquid_alternative_flowing = "main:mud_flowing",
|
|
||||||
liquid_alternative_source = "main:mud_source",
|
|
||||||
groups = {liquid = 3},
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_node("main:mud_flowing", {
|
|
||||||
description = "Flowing Liquid Mud",
|
|
||||||
drawtype = "flowingliquid",
|
|
||||||
paramtype = "light",
|
|
||||||
|
|
||||||
tiles = {name = "main_mud_flowing.png"},
|
|
||||||
animation = {
|
|
||||||
type = "vertical_frames",
|
|
||||||
aspect_w = 16,
|
|
||||||
aspect_h = 16,
|
|
||||||
length = 1.0
|
|
||||||
},
|
|
||||||
|
|
||||||
special_tiles = {
|
|
||||||
{
|
|
||||||
name = "main_mud_flowing.png",
|
|
||||||
animation = {type = "vertical_frames", aspect_w = 16,
|
|
||||||
aspect_h = 16, length = 1.0},
|
|
||||||
backface_culling = true,
|
|
||||||
},
|
|
||||||
|
|
||||||
{
|
|
||||||
name = "main_mud_flowing.png",
|
|
||||||
animation = {type = "vertical_frames", aspect_w = 16,
|
|
||||||
aspect_h = 16, length = 1.0},
|
|
||||||
backface_culling = false,
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
post_effect_color = {r = 60, g = 40, b = 10},
|
|
||||||
|
|
||||||
--Behavior
|
|
||||||
walkable = false,
|
|
||||||
pointable = false,
|
|
||||||
buildable_to = true,
|
|
||||||
diggable = false,
|
|
||||||
is_ground_content = false,
|
|
||||||
|
|
||||||
--Properties
|
|
||||||
liquid_range = 6,
|
|
||||||
liquid_viscosity = 20,
|
|
||||||
drowning = 1,
|
|
||||||
liquidtype = "flowing",
|
|
||||||
liquid_alternative_flowing = "main:mud_flowing",
|
|
||||||
liquid_alternative_source = "main:mud_source",
|
|
||||||
groups = {liquid = 3},
|
|
||||||
})
|
|
||||||
|
|
Before Width: | Height: | Size: 337 B |
|
@ -0,0 +1,229 @@
|
||||||
|
-----------------
|
||||||
|
--Liquid hard mud
|
||||||
|
-----------------
|
||||||
|
minetest.register_node("quicksand:mud_hard_source", {
|
||||||
|
description = "Liquid Hard Mud Source",
|
||||||
|
drawtype = "liquid",
|
||||||
|
paramtype = "light",
|
||||||
|
|
||||||
|
tiles = {name = "quicksand_mud_hard_source.png"},
|
||||||
|
post_effect_color = {r = 60, g = 40, b = 10},
|
||||||
|
|
||||||
|
--Behavior
|
||||||
|
walkable = false,
|
||||||
|
pointable = false,
|
||||||
|
buildable_to = true,
|
||||||
|
diggable = false,
|
||||||
|
is_ground_content = false,
|
||||||
|
|
||||||
|
--Properties
|
||||||
|
liquid_range = 6,
|
||||||
|
liquid_viscosity = 20,
|
||||||
|
drowning = 1,
|
||||||
|
liquidtype = "source",
|
||||||
|
liquid_alternative_flowing = "quicksand:mud_hard_flowing",
|
||||||
|
liquid_alternative_source = "quicksand:mud_hard_source",
|
||||||
|
groups = {liquid = 3},
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_node("quicksand:mud_hard_flowing", {
|
||||||
|
description = "Flowing Liquid Hard Mud",
|
||||||
|
drawtype = "flowingliquid",
|
||||||
|
paramtype = "light",
|
||||||
|
|
||||||
|
tiles = {name = "quicksand_mud_hard_flowing.png"},
|
||||||
|
animation = {
|
||||||
|
type = "vertical_frames",
|
||||||
|
aspect_w = 16,
|
||||||
|
aspect_h = 16,
|
||||||
|
length = 1.0
|
||||||
|
},
|
||||||
|
|
||||||
|
special_tiles = {
|
||||||
|
{
|
||||||
|
name = "quicksand_mud_hard_flowing.png",
|
||||||
|
animation = {type = "vertical_frames", aspect_w = 16,
|
||||||
|
aspect_h = 16, length = 1.0},
|
||||||
|
backface_culling = true,
|
||||||
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
name = "quicksand_mud_hard_flowing.png",
|
||||||
|
animation = {type = "vertical_frames", aspect_w = 16,
|
||||||
|
aspect_h = 16, length = 1.0},
|
||||||
|
backface_culling = false,
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
post_effect_color = {r = 60, g = 40, b = 10},
|
||||||
|
|
||||||
|
--Behavior
|
||||||
|
walkable = false,
|
||||||
|
pointable = false,
|
||||||
|
buildable_to = true,
|
||||||
|
diggable = false,
|
||||||
|
is_ground_content = false,
|
||||||
|
|
||||||
|
--Properties
|
||||||
|
liquid_range = 6,
|
||||||
|
liquid_viscosity = 20,
|
||||||
|
drowning = 1,
|
||||||
|
liquidtype = "flowing",
|
||||||
|
liquid_alternative_flowing = "quicksand:mud_hard_flowing",
|
||||||
|
liquid_alternative_source = "quicksand:mud_hard_source",
|
||||||
|
groups = {liquid = 3},
|
||||||
|
})
|
||||||
|
|
||||||
|
------------
|
||||||
|
--Liquid mud
|
||||||
|
------------
|
||||||
|
minetest.register_node("quicksand:mud_med_source", {
|
||||||
|
description = "Liquid Mud Source",
|
||||||
|
drawtype = "liquid",
|
||||||
|
paramtype = "light",
|
||||||
|
|
||||||
|
tiles = {name = "quicksand_mud_med_source.png"},
|
||||||
|
post_effect_color = {r = 60, g = 40, b = 10},
|
||||||
|
|
||||||
|
--Behavior
|
||||||
|
walkable = false,
|
||||||
|
pointable = false,
|
||||||
|
buildable_to = true,
|
||||||
|
diggable = false,
|
||||||
|
is_ground_content = false,
|
||||||
|
|
||||||
|
--Properties
|
||||||
|
liquid_range = 6,
|
||||||
|
liquid_viscosity = 10,
|
||||||
|
drowning = 1,
|
||||||
|
liquidtype = "source",
|
||||||
|
liquid_alternative_flowing = "quicksand:mud_med_flowing",
|
||||||
|
liquid_alternative_source = "quicksand:mud_med_source",
|
||||||
|
groups = {liquid = 2},
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_node("quicksand:mud_med_flowing", {
|
||||||
|
description = "Flowing Liquid Mud",
|
||||||
|
drawtype = "flowingliquid",
|
||||||
|
paramtype = "light",
|
||||||
|
|
||||||
|
tiles = {name = "quicksand_mud_med_flowing.png"},
|
||||||
|
animation = {
|
||||||
|
type = "vertical_frames",
|
||||||
|
aspect_w = 16,
|
||||||
|
aspect_h = 16,
|
||||||
|
length = 1.0
|
||||||
|
},
|
||||||
|
|
||||||
|
special_tiles = {
|
||||||
|
{
|
||||||
|
name = "quicksand_mud_med_flowing.png",
|
||||||
|
animation = {type = "vertical_frames", aspect_w = 16,
|
||||||
|
aspect_h = 16, length = 1.0},
|
||||||
|
backface_culling = true,
|
||||||
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
name = "quicksand_mud_med_flowing.png",
|
||||||
|
animation = {type = "vertical_frames", aspect_w = 16,
|
||||||
|
aspect_h = 16, length = 1.0},
|
||||||
|
backface_culling = false,
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
post_effect_color = {r = 60, g = 40, b = 10},
|
||||||
|
|
||||||
|
--Behavior
|
||||||
|
walkable = false,
|
||||||
|
pointable = false,
|
||||||
|
buildable_to = true,
|
||||||
|
diggable = false,
|
||||||
|
is_ground_content = false,
|
||||||
|
|
||||||
|
--Properties
|
||||||
|
liquid_range = 7,
|
||||||
|
liquid_viscosity = 10,
|
||||||
|
drowning = 1,
|
||||||
|
liquidtype = "flowing",
|
||||||
|
liquid_alternative_flowing = "quicksand:mud_med_flowing",
|
||||||
|
liquid_alternative_source = "quicksand:mud_med_source",
|
||||||
|
groups = {liquid = 2},
|
||||||
|
})
|
||||||
|
|
||||||
|
------------
|
||||||
|
--Hard quicksand
|
||||||
|
------------
|
||||||
|
minetest.register_node("quicksand:quicksand_hard", {
|
||||||
|
description = "Hard Quicksand",
|
||||||
|
drawtype = "liquid",
|
||||||
|
paramtype = "light",
|
||||||
|
|
||||||
|
tiles = {name = "quicksand_quicksand_hard.png"},
|
||||||
|
post_effect_color = {r = 80, g = 50, b = 10},
|
||||||
|
|
||||||
|
--Behavior
|
||||||
|
walkable = false,
|
||||||
|
pointable = true,
|
||||||
|
buildable_to = false,
|
||||||
|
diggable = true,
|
||||||
|
is_ground_content = false,
|
||||||
|
|
||||||
|
--Properties
|
||||||
|
liquid_range = 0,
|
||||||
|
liquid_viscosity = 30,
|
||||||
|
liquid_renewable = false,
|
||||||
|
drowning = 1,
|
||||||
|
damage_per_second = 1,
|
||||||
|
liquidtype = "source",
|
||||||
|
liquid_alternative_flowing = "quicksand:quicksand_hard",
|
||||||
|
liquid_alternative_source = "quicksand:quicksand_hard",
|
||||||
|
groups = {quicksandy = 1},
|
||||||
|
})
|
||||||
|
|
||||||
|
------------
|
||||||
|
--Quicksand
|
||||||
|
----------
|
||||||
|
minetest.register_node("quicksand:quicksand", {
|
||||||
|
description = "Quicksand",
|
||||||
|
drawtype = "liquid",
|
||||||
|
paramtype = "light",
|
||||||
|
|
||||||
|
tiles = {name = "quicksand_quicksand_normal.png"},
|
||||||
|
post_effect_color = {r = 80, g = 50, b = 10},
|
||||||
|
|
||||||
|
--Behavior
|
||||||
|
walkable = false,
|
||||||
|
pointable = true,
|
||||||
|
buildable_to = false,
|
||||||
|
diggable = true,
|
||||||
|
is_ground_content = false,
|
||||||
|
|
||||||
|
--Properties
|
||||||
|
liquid_range = 0,
|
||||||
|
liquid_viscosity = 20,
|
||||||
|
liquid_renewable = false,
|
||||||
|
drowning = 1,
|
||||||
|
damage_per_second = 2,
|
||||||
|
liquidtype = "source",
|
||||||
|
liquid_alternative_flowing = "quicksand:quicksand",
|
||||||
|
liquid_alternative_source = "quicksand:quicksand",
|
||||||
|
groups = {crumbly = 1, quicksandy = 2},
|
||||||
|
})
|
||||||
|
|
||||||
|
-----------
|
||||||
|
--Longstick
|
||||||
|
-----------
|
||||||
|
minetest.register_item("quicksand:longstick", {
|
||||||
|
type = "none",
|
||||||
|
wield_image = "main_pickaxe_steel.png",
|
||||||
|
inventory_image = "main_pickaxe_steel.png",
|
||||||
|
wield_scale = {x=1, y=4, z=1},
|
||||||
|
range = 2,
|
||||||
|
|
||||||
|
on_use = function(itemstack, player, pointed_thing)
|
||||||
|
local newpos = pointed_thing.above
|
||||||
|
if newpos ~= nil then
|
||||||
|
player:set_pos(newpos)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
})
|
Before Width: | Height: | Size: 271 B After Width: | Height: | Size: 271 B |
Before Width: | Height: | Size: 163 B After Width: | Height: | Size: 163 B |
Before Width: | Height: | Size: 373 B After Width: | Height: | Size: 373 B |
After Width: | Height: | Size: 475 B |
Before Width: | Height: | Size: 340 B After Width: | Height: | Size: 340 B |