mirror of
https://codeberg.org/tenplus1/mob_horse.git
synced 2025-01-08 17:00:20 +01:00
use 'texture_mods' to overlay horseshoes
This commit is contained in:
parent
e6fbb585ad
commit
d32cc582c6
8
init.lua
8
init.lua
@ -181,12 +181,8 @@ mobs:register_mob("mob_horse:horse", {
|
|||||||
|
|
||||||
-- apply horseshoe overlay to current horse texture
|
-- apply horseshoe overlay to current horse texture
|
||||||
if overlay then
|
if overlay then
|
||||||
|
self.texture_mods = "^" .. overlay
|
||||||
local ov = self.base_texture
|
self.object:set_texture_mod(self.texture_mods)
|
||||||
|
|
||||||
ov[1] = ov[1] .. "^" .. overlay
|
|
||||||
|
|
||||||
self.object:set_properties({textures = ov})
|
|
||||||
end
|
end
|
||||||
|
|
||||||
-- show horse speed and jump stats with shoes fitted
|
-- show horse speed and jump stats with shoes fitted
|
||||||
|
Loading…
Reference in New Issue
Block a user