Skip to content

Instantly share code, notes, and snippets.

@PilzAdam
Created September 9, 2012 10:52
Show Gist options
  • Save PilzAdam/3683769 to your computer and use it in GitHub Desktop.
Save PilzAdam/3683769 to your computer and use it in GitHub Desktop.
--[[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]
end
end
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