summaryrefslogtreecommitdiff
path: root/shop2/items.lua
blob: 5f612b7b6d111857cea758b335bfbbdb7cd97bd9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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)

return items