mirror of
https://github.com/luanti-org/luanti.git
synced 2025-09-15 18:57:08 +00:00
Rename minetest.*
to core.*
in devtest
This commit is contained in:
parent
d849d51c2d
commit
88c7a54e08
78 changed files with 914 additions and 914 deletions
|
@ -1,30 +1,30 @@
|
|||
-- Registering some dummy items and recipes for the crafting tests
|
||||
|
||||
minetest.register_craftitem("unittests:torch", {
|
||||
core.register_craftitem("unittests:torch", {
|
||||
description = "Crafting Test Item: Torch",
|
||||
inventory_image = "unittests_torch.png",
|
||||
|
||||
groups = { dummy = 1 },
|
||||
})
|
||||
minetest.register_craftitem("unittests:coal_lump", {
|
||||
core.register_craftitem("unittests:coal_lump", {
|
||||
description = "Crafting Test Item: Coal Lump",
|
||||
inventory_image = "unittests_coal_lump.png",
|
||||
|
||||
groups = { dummy = 1 },
|
||||
})
|
||||
minetest.register_craftitem("unittests:stick", {
|
||||
core.register_craftitem("unittests:stick", {
|
||||
description = "Crafting Test Item: Stick",
|
||||
inventory_image = "unittests_stick.png",
|
||||
|
||||
groups = { dummy = 1 },
|
||||
})
|
||||
minetest.register_craftitem("unittests:iron_lump", {
|
||||
core.register_craftitem("unittests:iron_lump", {
|
||||
description = "Crafting Test Item: Iron Lump",
|
||||
inventory_image = "unittests_iron_lump.png",
|
||||
|
||||
groups = { dummy = 1 },
|
||||
})
|
||||
minetest.register_craftitem("unittests:steel_ingot", {
|
||||
core.register_craftitem("unittests:steel_ingot", {
|
||||
description = "Crafting Test Item: Steel Ingot",
|
||||
inventory_image = "unittests_steel_ingot.png",
|
||||
|
||||
|
@ -33,13 +33,13 @@ minetest.register_craftitem("unittests:steel_ingot", {
|
|||
|
||||
-- Use aliases in recipes for more complete testing
|
||||
|
||||
minetest.register_alias("unittests:steel_ingot_alias", "unittests:steel_ingot")
|
||||
minetest.register_alias("unittests:coal_lump_alias", "unittests:coal_lump")
|
||||
minetest.register_alias("unittests:iron_lump_alias", "unittests:iron_lump")
|
||||
core.register_alias("unittests:steel_ingot_alias", "unittests:steel_ingot")
|
||||
core.register_alias("unittests:coal_lump_alias", "unittests:coal_lump")
|
||||
core.register_alias("unittests:iron_lump_alias", "unittests:iron_lump")
|
||||
|
||||
-- Recipes for tests: Normal crafting, cooking and fuel
|
||||
|
||||
minetest.register_craft({
|
||||
core.register_craft({
|
||||
output = 'unittests:torch 4',
|
||||
recipe = {
|
||||
{'unittests:coal_lump_alias'},
|
||||
|
@ -47,26 +47,26 @@ minetest.register_craft({
|
|||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
core.register_craft({
|
||||
type = "cooking",
|
||||
output = "unittests:steel_ingot_alias",
|
||||
recipe = "unittests:iron_lump_alias",
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
core.register_craft({
|
||||
type = "fuel",
|
||||
recipe = "unittests:coal_lump_alias",
|
||||
burntime = 40,
|
||||
})
|
||||
|
||||
-- Test tool repair
|
||||
minetest.register_craft({
|
||||
core.register_craft({
|
||||
type = "toolrepair",
|
||||
additional_wear = -0.05,
|
||||
})
|
||||
|
||||
-- Test the disable_repair=1 group
|
||||
minetest.register_tool("unittests:unrepairable_tool", {
|
||||
core.register_tool("unittests:unrepairable_tool", {
|
||||
description = "Crafting Test Item: Unrepairable Tool",
|
||||
inventory_image = "unittests_unrepairable_tool.png",
|
||||
tool_capabilities = {
|
||||
|
@ -79,7 +79,7 @@ minetest.register_tool("unittests:unrepairable_tool", {
|
|||
groups = { disable_repair = 1, dummy = 1 }
|
||||
})
|
||||
|
||||
minetest.register_tool("unittests:repairable_tool", {
|
||||
core.register_tool("unittests:repairable_tool", {
|
||||
description = "Crafting Test Item: Repairable Tool",
|
||||
inventory_image = "unittests_repairable_tool.png",
|
||||
tool_capabilities = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue