]> git.lizzy.rs Git - minetest.git/commitdiff
DevTest: Restore callback item descriptions
authorWuzzy <Wuzzy@disroot.org>
Sun, 9 Oct 2022 12:34:10 +0000 (14:34 +0200)
committersfan5 <sfan5@live.de>
Sun, 23 Oct 2022 19:58:56 +0000 (21:58 +0200)
games/devtest/mods/callbacks/items.lua

index 83c52f2ac5bf040515bc8eec68d7d217f1052d50..fb9f6b675740a312fa1a87bf8057d336d0d95be2 100644 (file)
@@ -3,7 +3,10 @@
 --
 
 minetest.register_craftitem("callbacks:callback_item_1", {
-       description = "Callback test item 1\n(Use/Drop + Sneak to switch to item 2)",
+       description = "Callback Test Item 1".."\n"..
+               "Tests callbacks: on_secondary_use, on_drop, on_pickup, on_use, after_use".."\n"..
+               "Punch/Drop + Sneak: Switch to Callback Test Item 2".."\n"..
+               "Aux1 + pickup item: Print additional on_pickup arguments",
        inventory_image = "callbacks_callback_item_1.png",
        wield_image = "callbacks_callback_item_1.png",
        groups = { callback_test = 1 },
@@ -79,7 +82,8 @@ minetest.register_craftitem("callbacks:callback_item_1", {
 })
 
 minetest.register_craftitem("callbacks:callback_item_2", {
-       description = "Callback test item 2\n(Use to switch to item 1)",
+       description = "Callback Test Item 2".."\n"..
+               "Punch to switch to Callback Test Item 1",
        inventory_image = "callbacks_callback_item_2.png",
        wield_image = "callbacks_callback_item_2.png",
        groups = { callback_test = 1 },