[ create a new paste ] login | about

Link: http://codepad.org/PsdHqKrp    [ raw code | output | fork ]

Lua, pasted on Aug 29:
1
2
3
4
5
6
7
8
9
10
11
12
13
minetest.register_abm({ 
    nodenames = {"default:dirt_with_grass"},
    interval = 2, 
    chance = 1, 
    action = function(pos, node) 
        
        if not minetest.find_node_near(pos, math.random(2, 5), "default:desert_sand") then
        	 return
        end    

 	minetest.add_node(pos,{name="default:drygrass"}) 
end, 
}) 


Output:
1
2
3
4
line 1: attempt to index global 'minetest' (a nil value)
stack traceback:
	t.lua:1: in main chunk
	[C]: ?


Create a new paste based on this one


Comments: