summaryrefslogtreecommitdiff
path: root/shop2/items.lua
blob: 1d5780695f618722c01e765991c191e1129a0282 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
local items = {}
local function i(adr,itname,hname,price,colour,check)
	table.insert(items,{itname=itname,hname=hname,price=price,adr=adr,colour=colour or colors.white,check=check})
end
i("dmn","minecraft:diamond","Diamond",1,colors.cyan)
i("blz","minecraft:blaze_rod","Blaze Rod",0.5,colors.yellow)
--i("ely","minecraft:elytra","Elytra",100,colors.purple)
i("mnd","minecraft:enchanted_book","Mending Book",10,colors.green,function(idetail)
	for _,ench in ipairs(idetail.enchantments or {}) do
		if ench.name == "minecraft:mending" then return true end
	end
	return false
end)
--i("nth","minecraft:nether_star","Nether Star",200,colors.white)
i("zbh","minecraft:zombie_head","Zombie Head",40,colors.lime)

return items