Browse Source

use 'texture_mods' to overlay horseshoes

master
tenplus1 2 weeks ago
parent
commit
d32cc582c6
1 changed files with 2 additions and 6 deletions
  1. +2
    -6
      init.lua

+ 2
- 6
init.lua View File

@@ -181,12 +181,8 @@ mobs:register_mob("mob_horse:horse", {

-- apply horseshoe overlay to current horse texture
if overlay then

local ov = self.base_texture

ov[1] = ov[1] .. "^" .. overlay

self.object:set_properties({textures = ov})
self.texture_mods = "^" .. overlay
self.object:set_texture_mod(self.texture_mods)
end

-- show horse speed and jump stats with shoes fitted


Loading…
Cancel
Save