Visible player armor & wielded items for minetest https://forum.minetest.net/viewtopic.php?t=4654
Go to file
Zweihorn 04f9123e98 improved load print patch
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.
2022-12-21 19:20:04 +01:00
.github/workflows Some Fixes for HTML Docs Generated by LDoc (#60) 2021-07-31 14:03:20 +02:00
.ldoc Update LDoc helper scripts for separating armor into mods (#80) 2022-09-07 21:58:12 +02:00
3d_armor improved load print patch 2022-12-21 19:20:04 +01:00
3d_armor_ip improved load print patch 2022-12-21 19:20:04 +01:00
3d_armor_sfinv improved load print patch 2022-12-21 19:20:04 +01:00
3d_armor_stand improved load print patch 2022-12-21 19:20:04 +01:00
3d_armor_ui improved load print patch 2022-12-21 19:20:04 +01:00
armor_admin improved load print patch 2022-12-21 19:20:04 +01:00
armor_bronze improved load print patch 2022-12-21 19:20:04 +01:00
armor_cactus improved load print patch 2022-12-21 19:20:04 +01:00
armor_crystal improved load print patch 2022-12-21 19:20:04 +01:00
armor_diamond improved load print patch 2022-12-21 19:20:04 +01:00
armor_gold improved load print patch 2022-12-21 19:20:04 +01:00
armor_mithril improved load print patch 2022-12-21 19:20:04 +01:00
armor_nether improved load print patch 2022-12-21 19:20:04 +01:00
armor_steel improved load print patch 2022-12-21 19:20:04 +01:00
armor_wood improved load print patch 2022-12-21 19:20:04 +01:00
shields improved load print patch 2022-12-21 19:20:04 +01:00
wieldview improved load print patch 2022-12-21 19:20:04 +01:00
.gitattributes Exclude some files & directories from archives & releases (#61) 2021-07-31 14:03:33 +02:00
.gitignore Ignore Eclipse project files & directories 2017-05-14 19:29:08 +01:00
.luacheckrc use `player_api` to register player model 2022-03-25 23:23:25 +01:00
LICENSE.md new armor and shield textures 2019-12-15 19:03:25 +01:00
README.md Update README.md (#94) 2022-12-19 08:45:53 +01:00
description.txt Add support for mod managers 2016-03-25 19:52:00 +00:00
integration-test.sh update integration test to minetest 5.2.0 2020-05-14 21:37:09 +02:00
modpack.conf remove `name` attribute from modpack.conf 2021-07-31 15:29:28 +02:00
preview_gen.py Add preview generator and update preview textures 2017-03-11 20:02:55 +00:00
screenshot.png Documentation and Screenshot Update (#26) 2020-12-03 08:38:41 +01:00
screenshot.xcf Documentation and Screenshot Update (#26) 2020-12-03 08:38:41 +01:00
settingtypes.txt add nether armor and nether shield (#65) 2021-11-10 10:15:55 +01:00

README.md

Modpack - 3d Armor

3d_armor screenshot

Table of Contents

[mod] Visible Player Armor [3d_armor]

Minetest Version: 5.0.0 and newer

Game: minetest_game and many derivatives

Depends: default

Adds craftable armor that is visible to other players. Each armor item worn contributes to a player's armor group level making them less vulnerable to attack.

Armor takes damage when a player is hurt, however, many armor items offer a 'stackable' percentage chance of restoring the lost health points. Overall armor level is boosted by 10% when wearing a full matching set (helmet, chestplate, leggings and boots of the same material)

Fire protection has been added by TenPlus1 and in use when ethereal mod is found and crystal armor has been enabled. each piece of armor offers 1 fire protection, level 1 protects against torches, level 2 against crystal spikes, 3 for fire and 5 protects when in lava.

Compatible with sfinv, inventory plus or unified inventory by enabling the appropriate inventory module, [3d_armor_sfinv], [3d_armor_ip] and [3d_armor_ui] respectively. Also compatible with [smart_inventory] without the need for additional modules.

built in support player skins [skins] by Zeg9 and Player Textures [player_textures] by PilzAdam and [simple_skins] by TenPlus1.

Armor can be configured by adding a file called armor.conf in 3d_armor mod or world directory. see armor.conf.example for all available options.

For mod installation instructions, please visit: http://wiki.minetest.com/wiki/Installing_Mods

The specific "armors as modpack" refactorization allows anyone to enable/disable any armors they want as mods rather than obscure settings of the past. (See #78 for further explanation.)

Currently, the modpack includes:

  • armor_admin
  • armor_bronze
  • armor_cactus
  • armor_crystal
  • armor_diamond
  • armor_gold
  • armor_mithril
  • armor_nether
  • armor_steel
  • armor_wood

as separate armor mods intentionally. All these mods depend on 3d_armor.

API Reference

[mod] Visible Wielded Items [wieldview]

Depends: 3d_armor

Makes hand wielded items visible to other players.

[mod] Shields [shields]

Depends: 3d_armor

Originally a part of 3d_armor, shields have been re-included as an optional extra. If you do not want shields then simply remove the shields folder from the modpack.

[mod] 3d Armor Stand [3d_armor_stand]

Depends: 3d_armor

Adds a chest-like armor stand for armor storage and display.