},
after_destruct = function(pos, oldnode)
if math.random() > 0.95 then
- minetest.sound_play("tnt_ignite")
+ minetest.sound_play("tnt_ignite",{pos=pos,max_hear_distance=64})
minetest.after(1.5, function(pos)
tnt(pos,5)
end,pos)
minetest.register_node("main:ice", {
description = "Ice",
tiles = {"ice.png"},
- drawtype = "glasslike",
+ drawtype = "normal",
paramtype = "light",
sunlight_propagates = true,
sunlight_propagates = true,
footstep = {name = "glass_footstep", gain = 0.4},
dug = {name = "break_glass", gain = 0.4},
}),
- use_texture_alpha = false,
- alpha = 100,
+ --use_texture_alpha = false,
+ --alpha = 100,
drop = "",
after_destruct = function(pos, oldnode)
minetest.set_node(pos, {name="main:water"})
minetest.register_node("main:grass", {
description = "Grass",
- tiles = {"grass.png"},
+ tiles = season.pick({"grass_spring.png", "grass.png"}, {"grass.png"}, {"leaves_ground.png"}, {"snow.png"}),
groups = {grass = 1, soil=1,pathable = 1, farm_tillable=1},
sounds = main.dirtSound(),
drop="main:dirt",
}},
})
+local acceptable_soil = {
+ ["main:dirt"] = true,
+ ["main:grass"] = true,
+ ["aether:dirt"] = true,
+ ["aether:grass"] = true,
+}
minetest.register_node("main:tree", {
description = "Tree",
tiles = {"treeCore.png","treeCore.png","treeOut.png","treeOut.png","treeOut.png","treeOut.png"},
})
local name2 = minetest.get_node(vector.new(pos.x,pos.y+y-1,pos.z)).name
- if name2 == "main:dirt" or name2 == "main:grass" then
+ if acceptable_soil[name2] then
minetest.add_node(vector.new(pos.x,pos.y+y,pos.z),{name="main:sapling"})
end
end
climbable = true,
paramtype = "light",
is_ground_content = false,
- tiles = {"leaves.png"},
+ tiles = {season.pick("leaves_spring.png", "leaves.png", "leaves_dry.png", "branches.png")},
groups = {leaves = 1, leafdecay = 1,flammable=1},
sounds = main.grassSound(),
drop = {