forked from mtcontrib/x_enchanting
Add API method for getting glint texture
This commit is contained in:
parent
ecdf5a83d1
commit
82973b6462
4
api.lua
4
api.lua
@ -517,6 +517,10 @@ function XEnchanting.get_enchanted_descriptions(self, enchantments)
|
|||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function XEnchanting.get_glint_texture_modifier(self, image)
|
||||||
|
return image .. '^((' .. image .. '^[contrast:127:127)^[mask:x_enchanting_glint.png^[opacity:80)'
|
||||||
|
end
|
||||||
|
|
||||||
function XEnchanting.set_enchanted_tool(self, pos, itemstack, level, player_name)
|
function XEnchanting.set_enchanted_tool(self, pos, itemstack, level, player_name)
|
||||||
local data = self.form_context[player_name].data
|
local data = self.form_context[player_name].data
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user