mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2025-01-11 18:40:25 +01:00
Added quicksands
- Added suffocating quicksands' sources and buckets - Referenced needed textures to #43
This commit is contained in:
parent
1e62709268
commit
927263ee3c
@ -181,7 +181,15 @@ bucket.register_liquid(
|
|||||||
"bucket_acid.png",
|
"bucket_acid.png",
|
||||||
"Acid Bucket"
|
"Acid Bucket"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
bucket.register_liquid(
|
||||||
|
"default:sand_source",
|
||||||
|
"default:sand_flowing",
|
||||||
|
"bucket:bucket_sand",
|
||||||
|
"bucket_sand.png",
|
||||||
|
"Sand Bucket"
|
||||||
|
)
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
type = "fuel",
|
type = "fuel",
|
||||||
recipe = "bucket:bucket_lava",
|
recipe = "bucket:bucket_lava",
|
||||||
@ -189,6 +197,15 @@ minetest.register_craft({
|
|||||||
replacements = {{"bucket:bucket_lava", "bucket:bucket_empty"}},
|
replacements = {{"bucket:bucket_lava", "bucket:bucket_empty"}},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
output = "bucket:bucket_sand",
|
||||||
|
recipe = {
|
||||||
|
{"group:sand"},
|
||||||
|
{"group:sand"},
|
||||||
|
{"bucket:bucket_water"},
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
if minetest.setting_getbool("log_mods") then
|
if minetest.setting_getbool("log_mods") then
|
||||||
minetest.log("action", "Carbone: [bucket] loaded.")
|
minetest.log("action", "Carbone: [bucket] loaded.")
|
||||||
end
|
end
|
||||||
|
@ -977,6 +977,72 @@ minetest.register_node("default:water_source", {
|
|||||||
groups = {water= 3, liquid = 3, puts_out_fire = 1, freezes = 1},
|
groups = {water= 3, liquid = 3, puts_out_fire = 1, freezes = 1},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
minetest.register_node("default:sand_flowing", {
|
||||||
|
description = "Flowing Sand",
|
||||||
|
inventory_image = minetest.inventorycube("default_sand.png"),
|
||||||
|
drawtype = "flowingliquid",
|
||||||
|
tiles = {"default_sand.png"},
|
||||||
|
special_tiles = {
|
||||||
|
{
|
||||||
|
image = "default_sand_flowing_animated.png",
|
||||||
|
backface_culling=false,
|
||||||
|
animation={type = "vertical_frames", aspect_w= 16, aspect_h = 16, length = 0.6}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
image = "default_sand_flowing_animated.png",
|
||||||
|
backface_culling=true,
|
||||||
|
animation={type = "vertical_frames", aspect_w= 16, aspect_h = 16, length = 0.6}
|
||||||
|
},
|
||||||
|
},
|
||||||
|
alpha = 160,
|
||||||
|
paramtype = "light",
|
||||||
|
paramtype2 = "flowingliquid",
|
||||||
|
walkable = false,
|
||||||
|
pointable = false,
|
||||||
|
diggable = false,
|
||||||
|
buildable_to = true,
|
||||||
|
drop = "",
|
||||||
|
drowning = 4,
|
||||||
|
liquidtype = "flowing",
|
||||||
|
liquid_alternative_flowing = "default:sand_flowing",
|
||||||
|
liquid_alternative_source = "default:sand_source",
|
||||||
|
liquid_viscosity = 20,
|
||||||
|
post_effect_color = {a = 220, r = 187, g = 187, b = 0},
|
||||||
|
groups = {liquid = 3, not_in_creative_inventory = 1},
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_node("default:sand_source", {
|
||||||
|
description = "Sand Source",
|
||||||
|
inventory_image = minetest.inventorycube("default_sand.png"),
|
||||||
|
drawtype = "liquid",
|
||||||
|
tiles = {
|
||||||
|
{name = "default_sand_source_animated.png", animation={type = "vertical_frames", aspect_w= 16, aspect_h = 16, length = 1.5}}
|
||||||
|
},
|
||||||
|
special_tiles = {
|
||||||
|
-- New-style water source material (mostly unused)
|
||||||
|
{
|
||||||
|
name = "default_sand_source_animated.png",
|
||||||
|
animation = {type = "vertical_frames", aspect_w= 16, aspect_h = 16, length = 1.5},
|
||||||
|
backface_culling = false,
|
||||||
|
}
|
||||||
|
},
|
||||||
|
alpha = 160,
|
||||||
|
paramtype = "light",
|
||||||
|
walkable = false,
|
||||||
|
pointable = false,
|
||||||
|
diggable = false,
|
||||||
|
buildable_to = true,
|
||||||
|
drop = "",
|
||||||
|
drowning = 4,
|
||||||
|
liquidtype = "source",
|
||||||
|
liquid_alternative_flowing = "default:sand_flowing",
|
||||||
|
liquid_alternative_source = "default:sand_source",
|
||||||
|
liquid_viscosity = 20,
|
||||||
|
liquid_renewable = false,
|
||||||
|
post_effect_color = {a = 220, r = 187, g = 187, b = 0},
|
||||||
|
groups = {liquid = 3},
|
||||||
|
})
|
||||||
|
|
||||||
--[[
|
--[[
|
||||||
function default.get_water_area_p0p1(pos)
|
function default.get_water_area_p0p1(pos)
|
||||||
local p0 = {
|
local p0 = {
|
||||||
|
Loading…
Reference in New Issue
Block a user