6 Commits

Author SHA1 Message Date
3ae2529c9f Add physics_speed to mithril armor 2025-04-21 16:35:52 +02:00
a6779e7911 Merge remote-tracking branch 'upstream/master' 2025-03-19 18:57:29 +01:00
mal
a586aeee0c Update mod.conf (#157)
* Update mod.conf

description changed from wood to nether

* Update mod.conf

Fixed typo from my previous PR.
2025-03-04 15:59:08 +01:00
082e866274 Update player_api model registration
Ensures correct eye position and collision box.
Values taken from the player_api 'character.b3d' model.
2024-12-27 21:43:08 +01:00
c224a73df7 Add Polish translation (#151) 2024-12-14 18:22:09 +01:00
280165fada tweak feather falling (#150)
changed y_velocity check for player so thart feather falling only works when actually falling and not standing around.
2024-12-12 14:00:26 +01:00
4 changed files with 20 additions and 8 deletions

View File

@ -296,16 +296,21 @@ player_api.register_model("3d_armor_character.b3d", {
},
animations = {
stand = {x=0, y=79},
lay = {x=162, y=166},
lay = {x=162, y=166, eye_height = 0.3, override_local = true,
collisionbox = {-0.6, 0.0, -0.6, 0.6, 0.3, 0.6}},
walk = {x=168, y=187},
mine = {x=189, y=198},
walk_mine = {x=200, y=219},
sit = {x=81, y=160},
sit = {x=81, y=160, eye_height = 0.8, override_local = true,
collisionbox = {-0.3, 0.0, -0.3, 0.3, 1.0, 0.3}},
-- compatibility w/ the emote mod
wave = {x = 192, y = 196, override_local = true},
point = {x = 196, y = 196, override_local = true},
freeze = {x = 205, y = 205, override_local = true},
},
collisionbox = {-0.3, 0.0, -0.3, 0.3, 1.7, 0.3},
-- stepheight: use default
eye_height = 1.47,
})
minetest.register_on_player_receive_fields(function(player, formname, fields)
@ -444,7 +449,7 @@ minetest.register_globalstep(function(dtime)
local name = player:get_player_name()
if armor.def[name].feather > 0 then
local vel_y = player:get_velocity().y
if vel_y < 0 and vel_y < 3 then
if vel_y < -0.5 then
vel_y = -(vel_y * 0.05)
player:add_velocity({x = 0, y = vel_y, z = 0})
end

View File

@ -0,0 +1,7 @@
# textdomain: 3d_armor
Radiation=Promieniowanie
Level=Poziom
Heal=Uzdrawianie
Fire=Ogień
Your @1 is almost broken!=Twój @1 jest prawie zepsuty!
Your @1 got destroyed!=Twój @1 został zniszczony!

View File

@ -28,7 +28,7 @@ if armor.materials.mithril then
armor:register_armor(":3d_armor:helmet_mithril", {
description = S("Mithril Helmet"),
inventory_image = "3d_armor_inv_helmet_mithril.png",
groups = {armor_head=1, armor_heal=13, armor_use=66},
groups = {armor_head=1, armor_heal=13, armor_use=66, physics_speed=0.1},
armor_groups = {fleshy=16},
damage_groups = {cracky=2, snappy=1, level=3},
})
@ -46,7 +46,7 @@ if armor.materials.mithril then
armor:register_armor(":3d_armor:chestplate_mithril", {
description = S("Mithril Chestplate"),
inventory_image = "3d_armor_inv_chestplate_mithril.png",
groups = {armor_torso=1, armor_heal=13, armor_use=66},
groups = {armor_torso=1, armor_heal=13, armor_use=66, physics_speed=0.4},
armor_groups = {fleshy=21},
damage_groups = {cracky=2, snappy=1, level=3},
})
@ -64,7 +64,7 @@ if armor.materials.mithril then
armor:register_armor(":3d_armor:leggings_mithril", {
description = S("Mithril Leggings"),
inventory_image = "3d_armor_inv_leggings_mithril.png",
groups = {armor_legs=1, armor_heal=13, armor_use=66},
groups = {armor_legs=1, armor_heal=13, armor_use=66, physics_speed=0.3},
armor_groups = {fleshy=21},
damage_groups = {cracky=2, snappy=1, level=3},
})
@ -82,7 +82,7 @@ if armor.materials.mithril then
armor:register_armor(":3d_armor:boots_mithril", {
description = S("Mithril Boots"),
inventory_image = "3d_armor_inv_boots_mithril.png",
groups = {armor_feet=1, armor_heal=13, armor_use=66},
groups = {armor_feet=1, armor_heal=13, armor_use=66, physics_speed=0.1},
armor_groups = {fleshy=16},
damage_groups = {cracky=2, snappy=1, level=3},
})

View File

@ -1,4 +1,4 @@
name = armor_nether
depends = 3d_armor
optional_depends = nether
description = Adds craftable wood armor.
description = Adds craftable nether armor.