Commit Graph

87 Commits

Author SHA1 Message Date
flux
053c30b8b1 don't trigger armor:punch when max_hp decreases 2023-04-20 07:36:24 +02:00
tenplus1
dc7fbce09a
Change Fire Protection Function (#100)
* Tweak Fire Protect

This change tweaks the fire protection function so that it no longer needs to override nodes and hence rely on additional dependencies like ethereal mod.

* Remove ethereal and fire dependencies

Remove fire and ethereal dependencies as they are no longer needed since fire protection doesn't override items inside those mods.

* Re-add Torch Damage

This re-adds torch damage of 1 per second if fire protection is enabled.

* Remove nether dependency

Nether dependency isn't required as well.
2023-02-05 17:44:17 +01:00
fluxionary
72970b3da1
add animations for use w/ the emote mod (#98) 2023-01-14 21:44:41 +01:00
ROllerozxa
400745dd0c
Swedish translation (+refresh translations and remove outdated meta) (#97)
* Refresh translations
* Add Swedish translations
* Remove outdated depends.txt and description.txt
2022-12-25 18:23:49 +01:00
Crystalwarrior
9444afd722
Refactor armors to be mods rather than hardcoded into API (#78)
* Begin work on "armors as modpack" refactor letting anyone to enable/disable any armors they want as mods rather than obscure settings

* Fix some steel armor mishaps, remove pointless dependency on "default"

* Move admin armor into mod

* Make wood armor into a mod

* More consistent steel description text etc.

* remove wood references from 3d_armor api locale

* remove admin armor reference from 3d_armor locale template.txt

* Remove steel textures from api

* Bronze armor as mod

* Fix admin, wood armor missing local S translator var
Fix wood locale missing template.txt

* Fix bronze missing locale

* Cactus as mod

* Crystal into mod

* Diamond into mod

* Mithril and Gold as mods

* Register armor fix

* Nether as mod

* Clean-up, add optional depends for mod armors, remove armor.lua from 3d_armor

* Fix badly named mod.conf for admin, gold, nether armors
Fix attempt to register crafting recipe even though the armor is disabled via setting

* Fix steel and wood having bad globals for crafting section, turned them to locals

* Fix brazilian translation getting deleted
Fix cactus armor locales being incorrectly named
2022-09-06 21:06:27 +02:00
tenplus1
e1a262ba20
add feather falling (#73)
* add feather falling

add feather falling

* add feather falling to init.lua

add feather falling routine to globalstep

* add feather falling to readme

add feather falling to readme
2022-04-02 17:16:23 +02:00
BuckarooBanzay
ac445a6cd0 use player_api to register player model 2022-03-25 23:23:25 +01:00
lortas
44778d7861
add nether armor and nether shield (#65)
* add texture files for nether based 3d_armor
* add texture files for nether based shield
* perpare for nether armor
* add nether armor
* add translation for nether armor
* add translation for nether armor
* add nether shield
* add nether shield translation
* add nether armor texture preview info
* add nether shield texture preview info
* add nether to settingtypes.txt
* add german translation for armor
* add german translation for shields
* Nether armor stats modified.
* Modify Nether Shield Stats

* Update inline documentation
2021-11-10 10:15:55 +01:00
Jordan Irwin
ac7615212b
Reduce skin_mod visibility (#53) 2021-07-13 20:50:22 +02:00
SmallJoker
e75af55f7e Fix translation nonsense in minetest.log
.. and document the armor warning when used with skinsdb
2021-03-24 19:21:39 +01:00
tenplus1
42f7dac4d0
Update fire and water protection (#42)
Update fire protection to use register_on_player_hpchange instead of overriding node damage, move water protection into different globalstep.
2021-02-07 09:47:23 +01:00
Sirrobzeroone
e7abacc94e
Add armor set and armor set bonus setting (#41)
- Add settingtypes of:
  -  armor_set_elements
  - armor_set_multiplier
- Add check to armor.registration_armor for "_materialname", print msg to debug if not found
- Complete change to how an armor set is calculated
- Set elements linked to settingtypes no longer hard linked to num armor.elements
- Set multiplier linked to settingtypes no longer hard coded
- Readme.MD updated:
  - Addition of the 2 new settingtypes
  - Addition of "Armor Material" topic
2021-01-11 15:34:28 +01:00
BuckarooBanzay
724a3df50f call "set_player_armor" on respawn 2020-12-23 15:40:44 +01:00
Sirrobzeroone
33e9ac8e23 Minor improvement to fix #13
Picked up while testing  #34 and #30 that this needed to be adjusted from hitter name to hitter is player.

Hitter name was resolving to true even when mob was attacking...nil being counted as a value.

I should have picked this up before and not sure how I missed this.
2020-12-23 15:31:51 +01:00
Sirrobzeroone
06aaaf4bca whitespace removal 2020-12-20 21:26:33 +01:00
Sirrobzeroone
d515480370 fix for #13
Tested PVP inside and outside protected - passed as expected

Tested PvsM inside and outside protected - passed as expected
2020-12-20 21:26:33 +01:00
Sirrobzeroone
291f0eb23a
Torch Damage Switchable (#29)
Turn torch fire damage off if fire damage/protection enabled
Minor fixes to README.MD after further testing.
2020-12-13 13:07:39 +01:00
Maksim
5958b312ac
Fix detached inventory vulnerability (#23) 2020-11-03 22:22:14 +01:00
Thomas--S
7436fcdffe
Improve API for third party mods (#21)
* Add `armor:update_skin(player_name)` function (useful for skin mods)
* Add option to prevent physics override (useful for Techage Jetpack mod)
* Add documentation
2020-10-12 07:47:57 +02:00
Olivier Dragon
7fc9966945 Move armor.get_translator to API 2020-08-31 07:41:59 +02:00
Olivier Dragon
4dc9a81ec2 Change intllib for v5 minetest.get_translator 2020-08-31 07:41:59 +02:00
BuckarooBanzay
0da0088889 Merge branch 'master' of https://github.com/Panquesito7/minetest-3d_armor 2020-05-01 16:30:35 +02:00
orbea
acd8b2647d Don't damage armor when drowning, eating or starving. 2020-04-30 08:15:37 +02:00
BuckarooBanzay
f81cb10f20 add luacheck and integration test workflows / fix luacheck errors
partially attends to https://github.com/pandorabox-io/pandorabox.io/issues/444 (the ObjectRef issue)
2020-02-13 12:26:32 +01:00
OgelGames
f3ad7ec6f1 add armor breakage alerts
something I've wanted for a while...
2019-12-28 23:13:41 +11:00
BuckarooBanzay
d2608351f6 extend bone search radius
hopefully fixes https://github.com/pandorabox-io/pandorabox.io/issues/364
2019-12-09 11:04:11 +01:00
Brian Rahardi
2ac90f8d19
drop invalid item instead of erase it 2019-07-16 09:40:28 +07:00
Panquesito7
e248752ee4
Use newer functions from MT/MTG 5.0.0+
These commits create more compatibility with MT/MTG 5.0.0+.
However, these commits (may) break compatibility with the 0.4-series.
2019-06-16 15:17:21 -05:00
stujones11
3fe7dd2249 Replace deprecated getpos call 2019-03-05 19:40:54 +00:00
Eugen Wesseloh
c96ba7ef34 Cleanup locales (#155)
* use localization function in formspecs

* remove unused translations

* remove F keyword from updatepo tool

* add tool readme
2018-07-26 20:05:50 +01:00
tenplus1
c0d45ceaa1 show fire: value
this fixes the Fire: value in formspec so it shows a number instead of "Fire: armor_fire".
2018-06-18 20:21:58 +01:00
stujones11
6f99803d2d Return invalid items in singleplayer mode 2018-06-02 20:46:44 +01:00
stujones11
f960fc1a41 Only validate armor inventory after user changes 2018-06-02 18:59:32 +01:00
stujones11
1f11a28ad4 More armor callback fixes 2018-05-24 19:06:27 +01:00
stujones11
83f3e01efa Run callbacks based on validated inventory 2018-05-23 20:15:09 +01:00
SmallJoker
7d30bc25a3 Allow replacing similar armor in the same slot 2018-05-22 18:40:24 +01:00
stujones11
21b5c68505 Validate and clean armor inventory before saving 2018-05-19 20:25:27 +01:00
stujones11
21716ffd31 Display correct heal attribute level, fixes #137 2018-05-13 16:52:29 +01:00
micheal65536
59b26b37f9 Fix item duplication vulnerability 2018-02-11 16:12:22 +00:00
fat115
ae448c150c added complete intllib support (i18n)
added french translation
2017-08-08 18:09:27 +01:00
AntumDeluge
cc26d04345 Replace deprecated function 'intllib.Getter':
- Check first for 'intllib.make_gettext_pair', otherwise continue using
function 'intllib.Getter'.
2017-07-09 14:29:11 +01:00
AntumDeluge
38d79b91a1 Replace deprecated methods:
- 'setting_get' with 'settings:get'
- 'setting_getbool' with 'settings:get_bool'
- 'setting_set' with 'settings:set'
2017-06-21 17:48:18 +01:00
Alexander Weber
2150fcea8d return the png suffix in get_player_skin for complete texture definition to support more complex textures
Note the armor.get_player_skin() could be redefined in other mods to privide the more complex textures
2017-06-21 17:47:24 +01:00
stujones11
ea29ec6f6f Register armor after mod compat tests, fixes #106 2017-05-10 20:33:49 +01:00
stujones11
a11b3302e1 Move armor initialization back out of the api 2017-04-19 21:53:13 +01:00
stujones11
7566ecccee Initialize armor after all on_joinplayer callbacks have run 2017-04-16 16:52:49 +01:00
stujones11
99bc8cf2d3 Reverse order of stack and index in callbacks for consistency 2017-04-15 20:44:05 +01:00
stujones11
065815eec1 Include stack index it armor item callbacks 2017-04-15 17:54:39 +01:00
stujones11
de2c47f334 More protection from un-initialized player crashes 2017-04-13 19:47:43 +01:00
stujones11
888fbacb49 Prevent potentially bogus warning 2017-04-11 21:26:06 +01:00