mirror of
https://github.com/minetest-mods/3d_armor.git
synced 2025-07-02 16:20:39 +02:00
From the start my prior PR was aiming at compatibility with legacy clients and servers. If you scan the MT forum you will become aware that there seem to be quite many MT 0.4 servers around which are actively used by many players. However, the best solution may be this example of a new piece of improved code, if I understand the MT Lua code correctly. ``` -- print to log after mod was loaded successfully local load_message = "[MOD] XXX loaded" if minetest.log then minetest.log("info", load_message) -- aims at state of the art MT software else print (load_message) -- aims at legacy MT software used in the field end ``` Hope this helps.
[mod] visible wielded items [wieldview] ======================================= Depends on: 3d_armor Makes hand wielded items visible to other players. default settings: [minetest.conf] # Set number of seconds between visible wielded item updates. wieldview_update_time = 2 # Show nodes as tiles, disabled by default wieldview_node_tiles = false Info for modders ################ Wield image transformation: To apply a simple transformation to the item in hand, add the group “wieldview_transform” to the item definition. The group rating equals one of the numbers used for the [transform texture modifier of the Lua API. Disabling the feature in-game: If you want to hide the wielded item you can add an INT metadata to the player called "show_wielded_item" and set it to 2 (any other value will show the wielded item again).