new dirt top textures (thanks RQWorldblender) and falling node check for 0.4.14/15
@ -105,15 +105,15 @@ local function more_tree(pos, object)
|
|||||||
-- grow L-system tree
|
-- grow L-system tree
|
||||||
minetest.remove_node(pos)
|
minetest.remove_node(pos)
|
||||||
minetest.spawn_tree(pos, object)
|
minetest.spawn_tree(pos, object)
|
||||||
print ("--- table")
|
|
||||||
elseif type(object) == "string" and minetest.registered_nodes[object] then
|
elseif type(object) == "string" and minetest.registered_nodes[object] then
|
||||||
-- place node
|
-- place node
|
||||||
minetest.set_node(pos, {name = object})
|
minetest.set_node(pos, {name = object})
|
||||||
print ("--- string")
|
|
||||||
elseif type(object) == "function" then
|
elseif type(object) == "function" then
|
||||||
-- function
|
-- function
|
||||||
object(pos)
|
object(pos)
|
||||||
print ("--- function")
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -193,8 +193,7 @@ minetest.register_tool("ethereal:shovel_crystal", {
|
|||||||
|
|
||||||
minetest.remove_node(pointed_thing.under)
|
minetest.remove_node(pointed_thing.under)
|
||||||
|
|
||||||
nodeupdate(pos)
|
ethereal.check_falling(pos)
|
||||||
--minetest.check_for_falling(pos)
|
|
||||||
|
|
||||||
if minetest.setting_getbool("creative_mode") then
|
if minetest.setting_getbool("creative_mode") then
|
||||||
|
|
||||||
|
5
init.lua
@ -1,6 +1,6 @@
|
|||||||
--[[
|
--[[
|
||||||
|
|
||||||
Minetest Ethereal Mod (7th January 2017)
|
Minetest Ethereal Mod (12th January 2017)
|
||||||
|
|
||||||
Created by ChinChow
|
Created by ChinChow
|
||||||
|
|
||||||
@ -52,6 +52,9 @@ else
|
|||||||
end
|
end
|
||||||
ethereal.intllib = S
|
ethereal.intllib = S
|
||||||
|
|
||||||
|
-- Falling node function
|
||||||
|
ethereal.check_falling = minetest.check_for_falling or nodeupdate
|
||||||
|
|
||||||
local path = minetest.get_modpath("ethereal")
|
local path = minetest.get_modpath("ethereal")
|
||||||
|
|
||||||
dofile(path .. "/plantlife.lua")
|
dofile(path .. "/plantlife.lua")
|
||||||
|
Before Width: | Height: | Size: 754 B After Width: | Height: | Size: 390 B |
Before Width: | Height: | Size: 716 B After Width: | Height: | Size: 390 B |
Before Width: | Height: | Size: 735 B After Width: | Height: | Size: 390 B |
Before Width: | Height: | Size: 677 B After Width: | Height: | Size: 316 B |
Before Width: | Height: | Size: 384 B After Width: | Height: | Size: 390 B |
Before Width: | Height: | Size: 749 B After Width: | Height: | Size: 390 B |
Before Width: | Height: | Size: 601 B After Width: | Height: | Size: 390 B |
Before Width: | Height: | Size: 702 B After Width: | Height: | Size: 316 B |
Before Width: | Height: | Size: 829 B After Width: | Height: | Size: 461 B |
@ -74,7 +74,7 @@ minetest.register_abm({
|
|||||||
},
|
},
|
||||||
neighbors = {
|
neighbors = {
|
||||||
"fire:basic_fire", "default:lava_source", "default:lava_flowing",
|
"fire:basic_fire", "default:lava_source", "default:lava_flowing",
|
||||||
"default:furnace_active", "default:torch"
|
"default:furnace_active", "group:torch", "default:torch"
|
||||||
},
|
},
|
||||||
interval = 5,
|
interval = 5,
|
||||||
chance = 4,
|
chance = 4,
|
||||||
@ -100,8 +100,7 @@ minetest.register_abm({
|
|||||||
minetest.swap_node(pos, {name = "default:dirt_with_grass"})
|
minetest.swap_node(pos, {name = "default:dirt_with_grass"})
|
||||||
end
|
end
|
||||||
|
|
||||||
nodeupdate(pos)
|
ethereal.check_falling(pos)
|
||||||
--minetest.check_for_falling(pos)
|
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
|
||||||
|