forked from mtcontrib/3d_armor
Use b3d armor model export by ExeterDad
This commit is contained in:
parent
dd9c63e4ca
commit
195d138da5
@ -312,7 +312,7 @@ end
|
|||||||
|
|
||||||
-- Register Player Model
|
-- Register Player Model
|
||||||
|
|
||||||
default.player_register_model("3d_armor_character.x", {
|
default.player_register_model("3d_armor_character.b3d", {
|
||||||
animation_speed = 30,
|
animation_speed = 30,
|
||||||
textures = {
|
textures = {
|
||||||
armor.default_skin..".png",
|
armor.default_skin..".png",
|
||||||
@ -350,7 +350,7 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
|
|||||||
end)
|
end)
|
||||||
|
|
||||||
minetest.register_on_joinplayer(function(player)
|
minetest.register_on_joinplayer(function(player)
|
||||||
default.player_set_model(player, "3d_armor_character.x")
|
default.player_set_model(player, "3d_armor_character.b3d")
|
||||||
local name = player:get_player_name()
|
local name = player:get_player_name()
|
||||||
local player_inv = player:get_inventory()
|
local player_inv = player:get_inventory()
|
||||||
local armor_inv = minetest.create_detached_inventory(name.."_armor",{
|
local armor_inv = minetest.create_detached_inventory(name.."_armor",{
|
||||||
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user