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,35 +1,35 @@
|
|||
local S = minetest.get_translator("testfood")
|
||||
local S = core.get_translator("testfood")
|
||||
|
||||
minetest.register_craftitem("testfood:good1", {
|
||||
core.register_craftitem("testfood:good1", {
|
||||
description = S("Good Food (+1)").."\n"..
|
||||
S("Punch: Eat"),
|
||||
inventory_image = "testfood_good.png",
|
||||
on_use = minetest.item_eat(1),
|
||||
on_use = core.item_eat(1),
|
||||
})
|
||||
minetest.register_craftitem("testfood:good5", {
|
||||
core.register_craftitem("testfood:good5", {
|
||||
description = S("Good Food (+5)").."\n"..
|
||||
S("Punch: Eat"),
|
||||
inventory_image = "testfood_good2.png",
|
||||
on_use = minetest.item_eat(5),
|
||||
on_use = core.item_eat(5),
|
||||
})
|
||||
|
||||
minetest.register_craftitem("testfood:bad1", {
|
||||
core.register_craftitem("testfood:bad1", {
|
||||
description = S("Bad Food (-1)").."\n"..
|
||||
S("Punch: Eat"),
|
||||
inventory_image = "testfood_bad.png",
|
||||
on_use = minetest.item_eat(-1),
|
||||
on_use = core.item_eat(-1),
|
||||
})
|
||||
minetest.register_craftitem("testfood:bad5", {
|
||||
core.register_craftitem("testfood:bad5", {
|
||||
description = S("Bad Food (-5)").."\n"..
|
||||
S("Punch: Eat"),
|
||||
inventory_image = "testfood_bad2.png",
|
||||
on_use = minetest.item_eat(-5),
|
||||
on_use = core.item_eat(-5),
|
||||
})
|
||||
|
||||
minetest.register_craftitem("testfood:replace1", {
|
||||
core.register_craftitem("testfood:replace1", {
|
||||
description = S("Replacing Food (+1)").."\n"..
|
||||
S("Punch: Eat and replace with 'Good Food (+1)'"),
|
||||
inventory_image = "testfood_replace.png",
|
||||
on_use = minetest.item_eat(1, "testfood:good1"),
|
||||
on_use = core.item_eat(1, "testfood:good1"),
|
||||
})
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue