mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-09 13:01:49 +00:00
update drop-item model
This commit is contained in:
parent
48b5be6bc9
commit
7c5f8107de
4 changed files with 98 additions and 33 deletions
|
|
@ -17,6 +17,7 @@ do -- setup visuals
|
|||
local bid = block.index(icon:sub(16))
|
||||
if block.get_model(bid) == "X" then
|
||||
entity:set_rig("drop-item")
|
||||
body:set_size(vec3.mul(body:get_size(), {1.0, 0.3, 1.0}))
|
||||
rig:set_texture("$0", icon)
|
||||
else
|
||||
local textures = block.get_textures(bid)
|
||||
|
|
@ -26,6 +27,7 @@ do -- setup visuals
|
|||
end
|
||||
else
|
||||
entity:set_rig("drop-item")
|
||||
body:set_size(vec3.mul(body:get_size(), {1.0, 0.3, 1.0}))
|
||||
rig:set_texture("$0", icon)
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue