mirror of
https://github.com/minetest-mods/mesecons.git
synced 2024-11-05 06:53:44 +01:00
Fix lightstone drop.
This commit is contained in:
parent
86f69d9f52
commit
cbd77d8f3d
@ -3,15 +3,15 @@ function mesecon:lightstone_add(name, base_item, texture_off, texture_on)
|
|||||||
tile_images = {texture_off},
|
tile_images = {texture_off},
|
||||||
inventory_image = minetest.inventorycube(texture_off),
|
inventory_image = minetest.inventorycube(texture_off),
|
||||||
material = minetest.digprop_stonelike(0.5),
|
material = minetest.digprop_stonelike(0.5),
|
||||||
description=name.." Lightstone",
|
description=name.." Lightstone",
|
||||||
})
|
})
|
||||||
minetest.register_node("jeija:lightstone_" .. name .. "_on", {
|
minetest.register_node("jeija:lightstone_" .. name .. "_on", {
|
||||||
tile_images = {texture_on},
|
tile_images = {texture_on},
|
||||||
inventory_image = minetest.inventorycube(texture_on),
|
inventory_image = minetest.inventorycube(texture_on),
|
||||||
material = minetest.digprop_stonelike(0.5),
|
material = minetest.digprop_stonelike(0.5),
|
||||||
drop = "jeija:lightstone_" .. name .. "_off 1",
|
drop = "node jeija:lightstone_" .. name .. "_off 1",
|
||||||
light_source = LIGHT_MAX-2,
|
light_source = LIGHT_MAX-2,
|
||||||
description=name.." Lightstone",
|
description=name.." Lightstone",
|
||||||
})
|
})
|
||||||
assert(loadstring('mesecon:register_on_signal_on(function(pos, node) \n \
|
assert(loadstring('mesecon:register_on_signal_on(function(pos, node) \n \
|
||||||
if node.name == "jeija:lightstone_' .. name .. '_off" then \n \
|
if node.name == "jeija:lightstone_' .. name .. '_off" then \n \
|
||||||
|
Loading…
Reference in New Issue
Block a user