mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-22 10:31:06 +01:00
Make dropped items glow if light source node
This commit is contained in:
parent
41d7e513e7
commit
7f70acc8a4
1 changed files with 6 additions and 0 deletions
|
@ -359,6 +359,11 @@ core.register_entity(":__builtin:item", {
|
|||
item_type = core.registered_items[itemname].type
|
||||
description = core.registered_items[itemname].description
|
||||
end
|
||||
local ndef = core.registered_items[itemname]
|
||||
local glow
|
||||
if ndef then
|
||||
glow = ndef.light_source
|
||||
end
|
||||
local prop = {
|
||||
is_visible = true,
|
||||
visual = "wielditem",
|
||||
|
@ -367,6 +372,7 @@ core.register_entity(":__builtin:item", {
|
|||
collisionbox = {-c, -c, -c, c, c, c},
|
||||
automatic_rotate = math.pi * 0.5,
|
||||
infotext = description,
|
||||
glow = glow,
|
||||
}
|
||||
self.object:set_properties(prop)
|
||||
if item_drop_settings.random_item_velocity == true then
|
||||
|
|
Loading…
Reference in a new issue