2013-08-15 15:24:35 +02:00
|
|
|
NYANLAND_HEIGHT=30688
|
|
|
|
NYANCAT_PROP=1
|
|
|
|
NYANLAND_TREESIZE=2
|
2013-08-15 15:26:48 +02:00
|
|
|
local info = true
|
2013-08-15 15:24:35 +02:00
|
|
|
|
|
|
|
local nyanland={}
|
|
|
|
|
|
|
|
--Cloudstone
|
|
|
|
minetest.register_node("nyanland:cloudstone", {
|
2013-08-24 12:36:41 +02:00
|
|
|
tiles = {"nyanland_cloudstone.png"},
|
2013-08-15 15:24:35 +02:00
|
|
|
inventory_image = minetest.inventorycube("nyanland_cloudstone.png"),
|
2013-08-15 15:26:48 +02:00
|
|
|
use_texture_alpha = true,
|
|
|
|
sunlight_propagates = true,
|
2013-08-15 15:24:35 +02:00
|
|
|
light_source = 10,
|
|
|
|
groups = {dig_immediate = 3},
|
|
|
|
})
|
|
|
|
|
2013-08-15 15:26:48 +02:00
|
|
|
minetest.register_node("nyanland:cloudstone_var", {
|
2013-08-24 12:36:41 +02:00
|
|
|
tiles = {"nyanland_cloudstone_var.png", "nyanland_cloudstone_var.png", "nyanland_cloudstone.png"},
|
2013-08-15 15:26:48 +02:00
|
|
|
inventory_image = minetest.inventorycube("nyanland_cloudstone_var.png"),
|
|
|
|
use_texture_alpha = true,
|
|
|
|
sunlight_propagates = true,
|
|
|
|
drop = '',
|
|
|
|
light_source = 10,
|
|
|
|
groups = {dig_immediate = 3},
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
minetest.register_node("nyanland:mesetree", {
|
|
|
|
description = "Mese Tree",
|
|
|
|
tiles = {"nyanland_mesetree_top.png", "nyanland_mesetree_top.png", "nyanland_mesetree.png"},
|
|
|
|
groups = {tree=1,cracky=1,level=2},
|
|
|
|
sounds = default.node_sound_stone_defaults(),
|
|
|
|
})
|
|
|
|
|
2013-08-15 15:24:35 +02:00
|
|
|
minetest.register_node("nyanland:meseleaves", {
|
|
|
|
drawtype = "allfaces_optional",
|
2013-08-24 12:36:41 +02:00
|
|
|
tiles = {"nyanland_meseleaves.png"},
|
2013-08-15 15:24:35 +02:00
|
|
|
inventory_image = minetest.inventorycube("nyanland_meseleaves.png"),
|
|
|
|
paramtype = "light",
|
|
|
|
furnace_burntime = 5,
|
2013-08-15 15:26:48 +02:00
|
|
|
groups = {snappy=3, flammable=2},
|
|
|
|
-- groups = {snappy=3, leafdecay=3, flammable=2},
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node("nyanland:mese_shrub", {
|
|
|
|
description = "Mese Shrub",
|
|
|
|
drawtype = "plantlike",
|
|
|
|
tiles = {"nyanland_mese_shrub.png"},
|
|
|
|
inventory_image = "nyanland_mese_shrub.png",
|
|
|
|
wield_image = "nyanland_mese_shrub.png",
|
|
|
|
paramtype = "light",
|
|
|
|
walkable = false,
|
|
|
|
buildable_to = true,
|
|
|
|
groups = {snappy=3,flammable=3,attached_node=1},
|
|
|
|
sounds = default.node_sound_leaves_defaults(),
|
|
|
|
selection_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {-0.5, -0.5, -0.5, 0.5, -5/16, 0.5},
|
|
|
|
},
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node("nyanland:mese_shrub_fruits", {
|
|
|
|
description = "Mese Shrub with fruits",
|
|
|
|
drawtype = "plantlike",
|
|
|
|
tiles = {"nyanland_mese_shrub_fruits.png"},
|
|
|
|
inventory_image = "nyanland_mese_shrub_fruits.png",
|
|
|
|
wield_image = "nyanland_mese_shrub_fruits.png",
|
|
|
|
paramtype = "light",
|
|
|
|
walkable = false,
|
|
|
|
buildable_to = true,
|
|
|
|
groups = {snappy=3,flammable=3,attached_node=1},
|
|
|
|
sounds = default.node_sound_leaves_defaults(),
|
|
|
|
selection_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {-0.5, -0.5, -0.5, 0.5, -5/16, 0.5},
|
|
|
|
},
|
2013-08-15 15:24:35 +02:00
|
|
|
})
|
|
|
|
|
|
|
|
-- Clonestone
|
2013-09-21 22:29:54 +02:00
|
|
|
local function clone_node(pos)
|
|
|
|
local node_over = minetest.get_node({x=pos.x, y=pos.y+1, z=pos.z}).name
|
|
|
|
if node_over ~= "air"
|
|
|
|
and node_over ~= "nyanland:clonestone" then
|
|
|
|
minetest.add_node(pos, {name=node_over})
|
|
|
|
end
|
|
|
|
-- nodeupdate(pos)
|
|
|
|
end
|
|
|
|
|
2013-08-15 15:24:35 +02:00
|
|
|
minetest.register_node("nyanland:clonestone", {
|
2013-08-24 12:36:41 +02:00
|
|
|
tiles = {"nyanland_clonestone.png"},
|
2013-08-15 15:24:35 +02:00
|
|
|
inventory_image = minetest.inventorycube("nyanland_clonestone.png"),
|
|
|
|
furnace_burntime = 100,
|
|
|
|
groups = {cracky = 1},
|
|
|
|
})
|
|
|
|
|
2013-08-15 15:26:48 +02:00
|
|
|
minetest.register_abm({
|
|
|
|
nodenames = {"nyanland:clonestone"},
|
2013-09-21 22:29:54 +02:00
|
|
|
interval = 5,
|
2013-08-15 15:24:35 +02:00
|
|
|
chance = 1,
|
2013-08-15 15:26:48 +02:00
|
|
|
action = function(pos)
|
2013-09-21 22:29:54 +02:00
|
|
|
clone_node(pos)
|
2013-08-15 15:24:35 +02:00
|
|
|
end,
|
|
|
|
})
|
|
|
|
|
|
|
|
-- Healstone
|
|
|
|
minetest.register_node("nyanland:healstone", {
|
2013-08-15 15:26:48 +02:00
|
|
|
description = "nyanland:healstone",
|
2013-08-24 12:36:41 +02:00
|
|
|
tiles = {"nyanland_healstone.png"},
|
2013-08-15 15:24:35 +02:00
|
|
|
inventory_image = minetest.inventorycube("nyanland_healstone.png"),
|
|
|
|
furnace_burntime = 100,
|
|
|
|
groups = {cracky = 1},
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_abm(
|
|
|
|
{nodenames = {"nyanland:healstone"},
|
|
|
|
interval = 1.0,
|
|
|
|
chance = 1,
|
2013-08-15 15:26:48 +02:00
|
|
|
action = function(pos)
|
2013-09-21 22:29:54 +02:00
|
|
|
local objs = minetest.get_objects_inside_radius(pos, 3)
|
2013-08-15 15:24:35 +02:00
|
|
|
for k, obj in pairs(objs) do
|
2013-08-15 15:26:48 +02:00
|
|
|
local hp = obj:get_hp()
|
|
|
|
if hp >= 20 then return end
|
|
|
|
obj:set_hp(hp+2)
|
2013-08-15 15:24:35 +02:00
|
|
|
end
|
|
|
|
end,
|
|
|
|
})
|
|
|
|
|
2013-08-15 15:26:48 +02:00
|
|
|
|
|
|
|
local c_cloudstone = minetest.get_content_id("nyanland:cloudstone")
|
|
|
|
local c_cloudstone2 = minetest.get_content_id("nyanland:cloudstone_var")
|
|
|
|
local c_clonestone = minetest.get_content_id("nyanland:clonestone")
|
|
|
|
local c_mese_shrub = minetest.get_content_id("nyanland:mese_shrub")
|
|
|
|
local c_mese_shrub_fruits = minetest.get_content_id("nyanland:mese_shrub_fruits")
|
|
|
|
local c_cloud = minetest.get_content_id("default:cloud")
|
|
|
|
|
|
|
|
local ypse = NYANLAND_HEIGHT
|
|
|
|
|
|
|
|
minetest.register_on_generated(function(minp, maxp, seed)
|
|
|
|
if (minp.y >= ypse+10 or maxp.y <= ypse-10) then
|
|
|
|
return
|
|
|
|
end
|
|
|
|
|
|
|
|
if info then
|
|
|
|
t1 = os.clock()
|
|
|
|
local geninfo = "[nyanland] generates: x=["..minp.x.."; "..maxp.x.."]; y=["..minp.y.."; "..maxp.y.."]; z=["..minp.z.."; "..maxp.z.."]"
|
|
|
|
print(geninfo)
|
|
|
|
minetest.chat_send_all(geninfo)
|
|
|
|
end
|
|
|
|
local pr = PseudoRandom(seed+112)
|
|
|
|
local vm, emin, emax = minetest.get_mapgen_object("voxelmanip")
|
|
|
|
local data = vm:get_data()
|
|
|
|
local area = VoxelArea:new{MinEdge=emin, MaxEdge=emax}
|
|
|
|
|
|
|
|
local perlin1 = minetest.get_perlin(13,3, 0.5, 500) --Get map specific perlin
|
|
|
|
local perlin2 = minetest.get_perlin(133,3, 0.5, 100)
|
|
|
|
|
|
|
|
local num = 1
|
|
|
|
local tab = {}
|
|
|
|
|
|
|
|
for x=minp.x, maxp.x, 1 do
|
|
|
|
for z=minp.z, maxp.z, 1 do
|
|
|
|
local test = math.floor(perlin1:get2d({x=x, y=z})*3+0.5)
|
|
|
|
local test2 = math.floor(perlin2:get2d({x=x, y=z})*1000+0.5)
|
|
|
|
local p_addpos = area:index(x, ypse+test, z)
|
|
|
|
local p_plantpos = area:index(x, ypse+test+1, z)
|
|
|
|
local d_p_addpos = data[p_addpos]
|
2013-10-18 22:05:00 +02:00
|
|
|
local tree_rn = pr:next(1, 1000)
|
|
|
|
if tree_rn == 1 then
|
2013-08-15 15:26:48 +02:00
|
|
|
tab[num] = {x=x, y=ypse+test, z=z}
|
|
|
|
num = num+1
|
|
|
|
data[p_addpos] = c_cloud
|
|
|
|
elseif pr:next(1, 5000) == 1 then
|
|
|
|
data[p_addpos] = c_clonestone
|
|
|
|
elseif pr:next(1, 300) == 1 then
|
|
|
|
data[p_addpos] = c_cloudstone2
|
|
|
|
else
|
|
|
|
data[p_addpos] = c_cloudstone
|
|
|
|
end
|
2013-10-18 22:05:00 +02:00
|
|
|
if tree_rn == 4 then
|
2013-08-15 15:26:48 +02:00
|
|
|
if pr:next(1, 1000) == 2 then
|
|
|
|
data[p_plantpos] = c_mese_shrub_fruits
|
|
|
|
else
|
|
|
|
data[p_plantpos] = c_mese_shrub
|
2013-08-15 15:24:35 +02:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
2013-08-15 15:26:48 +02:00
|
|
|
end
|
2013-08-15 15:24:35 +02:00
|
|
|
|
2013-08-15 15:26:48 +02:00
|
|
|
vm:set_data(data)
|
|
|
|
--vm:set_lighting({day=0, night=0})
|
|
|
|
vm:calc_lighting()
|
|
|
|
vm:update_liquids()
|
|
|
|
vm:write_to_map()
|
|
|
|
|
|
|
|
for _,v in ipairs(tab) do
|
|
|
|
nyanland:grow_mesetree(v)
|
2013-08-15 15:24:35 +02:00
|
|
|
end
|
|
|
|
|
2013-08-15 15:26:48 +02:00
|
|
|
if math.random(NYANCAT_PROP)==1 then
|
|
|
|
local nyan_headpos={}
|
|
|
|
nyan_headpos={x=minp.x+pr:next(1, 80), y=ypse+pr:next(1, 20)+10, z=minp.z+pr:next(1, 80)}
|
|
|
|
nyanland:add_nyancat(nyan_headpos, minp)
|
|
|
|
end
|
|
|
|
if info then
|
|
|
|
local geninfo = string.format("[nyanland] done after: %.2fs", os.clock() - t1)
|
|
|
|
print(geninfo)
|
|
|
|
minetest.chat_send_all(geninfo)
|
|
|
|
end
|
2013-08-15 15:24:35 +02:00
|
|
|
end)
|
|
|
|
|
|
|
|
function nyanland:add_nyancat(nyan_headpos)
|
|
|
|
local nyan_tailpos={}
|
2013-09-21 22:29:54 +02:00
|
|
|
minetest.add_node(nyan_headpos, {name="default:nyancat"})
|
2013-08-15 15:24:35 +02:00
|
|
|
local length=math.random(4,15)
|
|
|
|
for z=nyan_headpos.z+1, nyan_headpos.z+length, 1 do
|
|
|
|
nyan_tailpos={x=nyan_headpos.x, y=nyan_headpos.y, z=z}
|
2013-09-21 22:29:54 +02:00
|
|
|
minetest.add_node(nyan_tailpos, {name="default:nyancat_rainbow"})
|
2013-08-15 15:24:35 +02:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2013-08-15 15:26:48 +02:00
|
|
|
local get_volume = function(pos1, pos2)
|
|
|
|
return (pos2.x - pos1.x + 1) * (pos2.y - pos1.y + 1) * (pos2.z - pos1.z + 1)
|
|
|
|
end
|
|
|
|
|
2013-10-18 22:05:00 +02:00
|
|
|
local c_tree = minetest.get_content_id("nyanland:mesetree")
|
|
|
|
local c_hls = minetest.get_content_id("nyanland:healstone")
|
|
|
|
local c_apple = minetest.get_content_id("default:apple")
|
|
|
|
local c_leaves = minetest.get_content_id("nyanland:meseleaves")
|
|
|
|
local c_air = minetest.get_content_id("air")
|
|
|
|
|
2013-08-15 15:24:35 +02:00
|
|
|
function nyanland:grow_mesetree(pos)
|
2013-08-15 15:26:48 +02:00
|
|
|
local t1 = os.clock()
|
|
|
|
local manip = minetest.get_voxel_manip()
|
|
|
|
local vwidth = NYANLAND_TREESIZE
|
|
|
|
local vheight = 7+vwidth
|
|
|
|
local emerged_pos1, emerged_pos2 = manip:read_from_map({x=pos.x-vwidth, y=pos.y, z=pos.z-vwidth},
|
|
|
|
{x=pos.x+vwidth, y=pos.y+vheight, z=pos.z+vwidth})
|
|
|
|
local area = VoxelArea:new({MinEdge=emerged_pos1, MaxEdge=emerged_pos2})
|
|
|
|
|
2013-10-18 22:05:00 +02:00
|
|
|
local nodes = manip:get_data()
|
2013-08-15 15:26:48 +02:00
|
|
|
|
2013-08-15 15:24:35 +02:00
|
|
|
--TRUNK
|
|
|
|
pos.y=pos.y+1
|
2013-08-15 15:26:48 +02:00
|
|
|
local pr = PseudoRandom(math.abs(pos.x+pos.y*3+pos.z*5))
|
2013-08-15 15:24:35 +02:00
|
|
|
local trunkpos={x=pos.x, z=pos.z}
|
2013-08-15 15:26:48 +02:00
|
|
|
local tran=math.random(2)
|
|
|
|
for y=pos.y, pos.y+4+tran do
|
2013-08-15 15:24:35 +02:00
|
|
|
trunkpos.y=y
|
2013-08-15 15:26:48 +02:00
|
|
|
p_trunkpos=area:index(trunkpos.x, trunkpos.y, trunkpos.z)
|
2013-10-18 22:05:00 +02:00
|
|
|
if math.random(200) == 1 then
|
2013-08-15 15:26:48 +02:00
|
|
|
nodes[p_trunkpos] = c_hls
|
2013-10-18 22:05:00 +02:00
|
|
|
else
|
|
|
|
nodes[p_trunkpos] = c_tree
|
2013-08-15 15:24:35 +02:00
|
|
|
end
|
|
|
|
end
|
|
|
|
--LEAVES
|
|
|
|
local leafpos={}
|
|
|
|
for x=(trunkpos.x-NYANLAND_TREESIZE), (trunkpos.x+NYANLAND_TREESIZE), 1 do
|
2013-08-15 15:26:48 +02:00
|
|
|
for y=(trunkpos.y-NYANLAND_TREESIZE), (trunkpos.y+NYANLAND_TREESIZE), 1 do
|
|
|
|
for z=(trunkpos.z-NYANLAND_TREESIZE), (trunkpos.z+NYANLAND_TREESIZE), 1 do
|
|
|
|
if (x-trunkpos.x)^2+(y-trunkpos.y)^2+(z-trunkpos.z)^2<= NYANLAND_TREESIZE^2 + NYANLAND_TREESIZE then
|
2013-10-18 22:05:00 +02:00
|
|
|
p_leafpos=area:index(x, y, z)
|
|
|
|
if nodes[p_leafpos] == c_air then
|
|
|
|
if pr:next(1,5) ~= 1 then
|
2013-08-15 15:26:48 +02:00
|
|
|
nodes[p_leafpos] = c_leaves
|
2013-10-18 22:05:00 +02:00
|
|
|
elseif pr:next(1,11) == 1 then
|
|
|
|
nodes[p_leafpos] = c_apple
|
2013-08-15 15:26:48 +02:00
|
|
|
end
|
2013-08-15 15:24:35 +02:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
2013-08-15 15:26:48 +02:00
|
|
|
manip:set_data(nodes)
|
|
|
|
manip:write_to_map()
|
|
|
|
if info then
|
2013-10-18 22:05:00 +02:00
|
|
|
print(string.format("[nyanland] a mesetree grew at ("..pos.x.."|"..pos.y.."|"..pos.z..") in: %.2fs", os.clock() - t1))
|
2013-08-15 15:26:48 +02:00
|
|
|
end
|
|
|
|
manip:update_map() --calc shadows
|
2013-08-15 15:24:35 +02:00
|
|
|
end
|
|
|
|
|
|
|
|
--MOVING NYAN CATS
|
|
|
|
minetest.register_abm(
|
|
|
|
{nodenames = {"default:nyancat"},
|
2013-08-15 15:26:48 +02:00
|
|
|
interval = 10,
|
|
|
|
chance = 100,
|
2013-08-15 15:24:35 +02:00
|
|
|
action = function(pos, node, active_object_count, active_object_count_wider)
|
|
|
|
if pos.y>NYANLAND_HEIGHT then
|
2013-09-21 22:29:54 +02:00
|
|
|
minetest.remove_node(pos)
|
|
|
|
minetest.add_entity(pos, "nyanland:head_entity")
|
2013-09-02 00:42:00 +02:00
|
|
|
minetest.sound_play("nyanland_cat", {pos = pos, gain = 0.9, max_hear_distance = 35})
|
2013-08-15 15:24:35 +02:00
|
|
|
end
|
|
|
|
end,
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_entity("nyanland:head_entity", {
|
|
|
|
physical = false,
|
|
|
|
visual = "sprite",
|
|
|
|
timer=0,
|
|
|
|
textures = {"default_nc_side.png", "default_nc_side.png", "default_nc_side.png",
|
|
|
|
"default_nc_side.png", "default_nc_back.png", "default_nc_front.png"},
|
|
|
|
collisionbox = {-0.5,-0.5,-0.5, 0.5,0.5,0.5},
|
|
|
|
visual = "cube",
|
|
|
|
on_activate = function(self, staticdata)
|
|
|
|
self.object:setvelocity({x=0, y=0, z=-2})
|
|
|
|
end,
|
|
|
|
|
|
|
|
on_punch = function(self, hitter)
|
|
|
|
local mesepos=self.object:getpos()
|
|
|
|
mesepos.y=mesepos.y-1
|
2013-09-21 22:29:54 +02:00
|
|
|
minetest.add_entity(mesepos, "nyanland:mese")
|
2013-08-15 15:24:35 +02:00
|
|
|
end,
|
|
|
|
|
|
|
|
on_step = function(self, dtime)
|
2013-08-15 15:26:48 +02:00
|
|
|
local pos = self.object:getpos()
|
|
|
|
local pos = {x=math.floor(pos.x+0.5), y=math.floor(pos.y+0.5), z=math.floor(pos.z+0.5)}
|
2013-08-15 15:24:35 +02:00
|
|
|
self.timer=self.timer+dtime
|
|
|
|
if self.timer>=16 then
|
2013-09-21 22:29:54 +02:00
|
|
|
minetest.add_node(pos, {name="default:nyancat"})
|
2013-08-15 15:24:35 +02:00
|
|
|
self.object:remove()
|
2013-08-15 15:26:48 +02:00
|
|
|
return
|
|
|
|
end
|
2013-09-21 22:29:54 +02:00
|
|
|
if minetest.get_node(pos).name == "default:nyancat_rainbow" then
|
2013-08-15 15:26:48 +02:00
|
|
|
self.object:remove()
|
|
|
|
return
|
|
|
|
end
|
|
|
|
for i = math.random(6)+18,30,1 do
|
|
|
|
local p = {x=pos.x, y=pos.y, z=pos.z+i}
|
2013-09-21 22:29:54 +02:00
|
|
|
if minetest.get_node(p).name == "default:nyancat_rainbow" then
|
|
|
|
minetest.remove_node(p)
|
2013-08-15 15:26:48 +02:00
|
|
|
end
|
|
|
|
end
|
|
|
|
for i = 1,5,1 do
|
|
|
|
local p = {x=pos.x, y=pos.y, z=pos.z+i}
|
2013-09-21 22:29:54 +02:00
|
|
|
if minetest.get_node(p).name == "air" then
|
|
|
|
minetest.add_node(p, {name="default:nyancat_rainbow"})
|
2013-08-15 15:26:48 +02:00
|
|
|
else
|
|
|
|
return
|
|
|
|
end
|
2013-08-15 15:24:35 +02:00
|
|
|
end
|
|
|
|
end
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_entity("nyanland:tail_entity", {
|
|
|
|
physical = false,
|
|
|
|
visual = "sprite",
|
|
|
|
timer=0,
|
|
|
|
collisionbox = {-0.5,-0.5,-0.5, 0.5,0.5,0.5},
|
|
|
|
visual = "cube",
|
2013-08-15 15:26:48 +02:00
|
|
|
on_step = function(self)
|
|
|
|
self.object:remove()
|
2013-08-15 15:24:35 +02:00
|
|
|
end
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_entity("nyanland:mese", {
|
|
|
|
physical = true,
|
|
|
|
collisionbox = {-0.5,-0.5,-0.5, 0.5,0.5,0.5},
|
|
|
|
visual = "cube",
|
2013-08-15 15:26:48 +02:00
|
|
|
textures = {"default_mese_block.png", "default_mese_block.png", "default_mese_block.png", "default_mese_block.png", "default_mese_block.png", "default_mese_block.png"},
|
2013-08-15 15:24:35 +02:00
|
|
|
on_activate = function(self)
|
|
|
|
self.object:setvelocity({x=0, y=-.1, z =0})
|
|
|
|
end,
|
|
|
|
on_step = function(self, dtime)
|
|
|
|
self.object:setacceleration({x=0, y=-10, z=0})
|
|
|
|
local pos = self.object:getpos()
|
|
|
|
local bcp = {x=pos.x, y=pos.y-0.7, z=pos.z}
|
2013-09-21 22:29:54 +02:00
|
|
|
local bcn = minetest.get_node(bcp)
|
2013-08-15 15:24:35 +02:00
|
|
|
--if bcn.name ~= "air" then
|
|
|
|
-- local np = {x=bcp.x, y=bcp.y+1, z=bcp.z}
|
|
|
|
if self.object:getvelocity().y == 0 then
|
2013-09-21 22:29:54 +02:00
|
|
|
minetest.add_node(self.object:getpos(), {name="default:mese_block"})
|
2013-08-15 15:24:35 +02:00
|
|
|
self.object:remove()
|
|
|
|
end
|
|
|
|
--
|
|
|
|
--end
|
|
|
|
end
|
|
|
|
})
|
2013-09-21 22:29:54 +02:00
|
|
|
|
|
|
|
dofile(minetest.get_modpath("nyanland").."/portal.lua")
|