Add Carrots and Farming!
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
PyuTest.registered_lootboxes = {}
|
||||
PyuTest.make_lootbox = function (name, dname, items)
|
||||
PyuTest.spawning_lootboxes = {}
|
||||
PyuTest.make_lootbox = function (name, dname, items, spawn)
|
||||
local id = name.."_lootbox"
|
||||
minetest.register_node(id, {
|
||||
description = Translate(dname .. " Lootbox"),
|
||||
@@ -26,13 +27,17 @@ PyuTest.make_lootbox = function (name, dname, items)
|
||||
id = id,
|
||||
items = items
|
||||
}
|
||||
|
||||
if spawn == true then
|
||||
PyuTest.spawning_lootboxes[#PyuTest.spawning_lootboxes+1] = name
|
||||
end
|
||||
end
|
||||
|
||||
PyuTest.make_lootbox("pyutest_lootboxes:trash", "Trash", {
|
||||
ItemStack("pyutest_flowers:deadbush 6"),
|
||||
ItemStack("pyutest_tools:bone 3"),
|
||||
ItemStack("pyutest_tools:ash 2")
|
||||
})
|
||||
}, true)
|
||||
|
||||
PyuTest.make_lootbox("pyutest_lootboxes:resource", "Resource", {
|
||||
ItemStack("pyutest_tools:gunpowder 3"),
|
||||
@@ -40,17 +45,17 @@ PyuTest.make_lootbox("pyutest_lootboxes:resource", "Resource", {
|
||||
ItemStack("pyutest_tools:sugar 2"),
|
||||
ItemStack("pyutest_tools:apple 3"),
|
||||
ItemStack("pyutest_tools:string 5")
|
||||
})
|
||||
}, true)
|
||||
|
||||
PyuTest.make_lootbox("pyutest_lootboxes:griefer", "Griefer's Dream", {
|
||||
ItemStack("pyutest_blocks:tnt 3"),
|
||||
ItemStack("pyutest_tools:bomb 2")
|
||||
})
|
||||
}, true)
|
||||
|
||||
PyuTest.make_lootbox("pyutest_lootboxes:lighting", "Lighting", {
|
||||
ItemStack("pyutest_blocks:light 2"),
|
||||
ItemStack("pyutest_blocks:torch 5")
|
||||
})
|
||||
}, true)
|
||||
|
||||
PyuTest.make_lootbox("pyutest_lootboxes:color", "Color", {
|
||||
ItemStack("pyutest_wool:green_dye 2"),
|
||||
@@ -59,3 +64,8 @@ PyuTest.make_lootbox("pyutest_lootboxes:color", "Color", {
|
||||
ItemStack("pyutest_wool:black_dye 3"),
|
||||
ItemStack("pyutest_wool:brown_dye 2")
|
||||
})
|
||||
|
||||
PyuTest.make_lootbox("pyutest_lootboxes:farming", "Farmer's", {
|
||||
ItemStack("pyutest_farming:wheat_seeds 5"),
|
||||
ItemStack("pyutest_farming:carrot_seeds 3")
|
||||
}, true)
|
||||
|
Reference in New Issue
Block a user