HI.
I have a question.
This is a bug or a feature?
How can I get a stable operating node (bubble_sand) in my mod?
Thank you.
Video link:
https://youtu.be/sYw6Emfdumg
Sorry for my English
minetest.register_node("bubble_sand:bubbles", {
description = "Bubbles",
drawtype = "plantlike",
tiles = {{ name = "bubble_basic_flame_animated.png",
animation = { type = "vertical_frames",
aspect_w = 16,
aspect_h = 16,
length = 0.5,
},
},},
-- New-style water source material (mostly unused)
special_tiles = {{ name = "bubble_basic_flame_animated.png",
animation = { type = "vertical_frames",
aspect_w = 16,
aspect_h = 16,
length = 0.5,
},
backface_culling = true,
},},
alpha = 255,
paramtype = "light",
walkable = false,
pointable = false,
diggable = false,
buildable_to = true,
is_ground_content = false,
drop = "",
drowning = 1, -
liquidtype = "source",
liquid_alternative_flowing = "default:water_flowing",
-- liquid_alternative_flowing = "bubble_sand:bubbles",
liquid_alternative_source = "bubble_sand:bubbles",
-- liquid_alternative_source = "default:water_source",
liquid_viscosity = 1,
liquid_renewable = false,
liquid_range = 0,
post_effect_color = {a = 103, r = 30, g = 60, b = 90},
groups = {water = 3, liquid = 3, puts_out_fire = 1, cools_lava = 1},
-- freezemelt = "default:water_source",
})
minetest.register_node("bubble_sand:bubblesand", {
description = "Bubble Sand",
tiles = {"default_sand.png"},
groups = {crumbly = 3, falling_node = 1, sand = 1},
sounds = default.node_sound_sand_defaults(),
on_timer = function(pos)
local offset_x = math.random(-10, 10) / 20
local offset_z = math.random(-10, 10) / 20
local pos2 = {
x = pos.x + offset_x,
y = pos.y + 0.5,
z = pos.z + offset_z,
}
minetest.add_particle({
pos = pos2,
velocity = {x = 0, y = 0, z = 0},
acceleration = {x = 0, y = 1, z = 0},
expirationtime = 2,
collisiondetection = false,
texture = "bubble.png",
size = math.random(1, 2),
})
minetest.get_node_timer(pos):start(1)
end,
on_construct = function(pos)
minetest.get_node_timer(pos):start(1)
end,
})
Users browsing this forum: No registered users and 3 guests