Guest User

Untitled

a guest
Jul 27th, 2014
233
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. wieldview.get_item_texture = function(self, item)
  2. local texture = "3d_armor_trans.png"
  3. if item ~= "" then
  4. if minetest.registered_items[item] then
  5. if minetest.registered_items[item].inventory_image ~= "" then
  6. texture = minetest.registered_items[item].inventory_image
  7. elseif node_tiles == true and minetest.registered_items[item].tiles
  8. and type(minetest.registered_items[item].tiles[1]) == "string"
  9. and minetest.registered_items[item].tiles[1] ~= "" then
  10. texture = minetest.inventorycube(minetest.registered_items[item].tiles[1])
  11. end
  12. end
  13. if wieldview.transform[item] then
  14. texture = texture.."^[transform"..wieldview.transform[item]
  15. end
  16. end
  17. return texture
  18. end
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×