[ create a new paste ] login | about

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

Lua, pasted on Jul 28:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
minetest.register_node("shields:wooden_shield",{	
	drawtype = "signlike",
	tile_images = {"shields_wooden_shield.png"},
	inventory_image = "shields_wooden_shield.png",
	paramtype = "light",
	sunlight_propagates = true,
	walkable = false,
	paramtype = 'light',
	paramtype2 = 'wallmounted',
	drop = 'shields:wooden_shield',
	selection_box = {
		type = "wallmounted",
		--wall_top = <default>
		--wall_bottom = <default>
		--wall_side = <default>
	},
	legacy_wallmounted = true,
	groups = {oddly_breakable_by_hand=1},
	on_use = start(1),
	on_timer = minetest.item_eat(1),
})


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: