Skip to content

Instantly share code, notes, and snippets.

Created September 9, 2012 10:52
What would you like to do?
--[[prop.visual = "wielditem"
prop.textures = {itemname}
prop.visual_size = {x=0.20, y=0.20}
prop.automatic_rotate = math.pi * 0.25]]
prop.visual = "cube"
if minetest.registered_items[itemname] and minetest.registered_items[itemname].tiles then
prop.textures = minetest.registered_items[itemname].tiles
for i=6,#minetest.registered_items[itemname].tiles,-1 do
prop.textures[i] = minetest.registered_items[itemname].tiles[#minetest.registered_items[itemname].tiles]
prop.visual_size = {x=0.30, y=0.30}
prop.automatic_rotate = math.pi * 0.25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment