Basic light blocks
@ -249,6 +249,33 @@ minetest.register_node("mcl_core:realm_barrier", {
|
||||
})
|
||||
|
||||
|
||||
--- Light blocks
|
||||
|
||||
for i = 0, 14 do --minetest.LIGHT_MAX
|
||||
minetest.register_node("mcl_core:light_" .. i, {
|
||||
description = S("Light"),
|
||||
_doc_items_longdesc = S("Lights are invisble blocks. They are used to light up adventure maps and the like."),
|
||||
_doc_items_usagehelp = S("When you hold a light in hand, you reveal all placed lights in a short distance around you."),
|
||||
drawtype = "airlike",
|
||||
paramtype = "light",
|
||||
light_source = i,
|
||||
drop = "",
|
||||
inventory_image = "mcl_core_light_" .. i .. ".png",
|
||||
wield_image = "mcl_core_light_" .. i .. ".png",
|
||||
sunlight_propagates = true,
|
||||
is_ground_content = false,
|
||||
groups = {creative_breakable = 1, not_solid = 1},
|
||||
on_blast = function() end,
|
||||
on_use = function(itemstack, user, pointed_thing)
|
||||
itemstack:set_name("mcl_core:light_" .. ((i == 14) and 0 or i + 1))
|
||||
return itemstack
|
||||
end,
|
||||
_mcl_blast_resistance = 36000008,
|
||||
_mcl_hardness = -1,
|
||||
})
|
||||
end
|
||||
|
||||
|
||||
|
||||
|
||||
-- The void below the bedrock. Void damage is handled in mcl_playerplus.
|
||||
|
BIN
mods/ITEMS/mcl_core/textures/mcl_core_light_0.png
Normal file
After Width: | Height: | Size: 210 B |
BIN
mods/ITEMS/mcl_core/textures/mcl_core_light_1.png
Normal file
After Width: | Height: | Size: 220 B |
BIN
mods/ITEMS/mcl_core/textures/mcl_core_light_10.png
Normal file
After Width: | Height: | Size: 291 B |
BIN
mods/ITEMS/mcl_core/textures/mcl_core_light_11.png
Normal file
After Width: | Height: | Size: 287 B |
BIN
mods/ITEMS/mcl_core/textures/mcl_core_light_12.png
Normal file
After Width: | Height: | Size: 291 B |
BIN
mods/ITEMS/mcl_core/textures/mcl_core_light_13.png
Normal file
After Width: | Height: | Size: 267 B |
BIN
mods/ITEMS/mcl_core/textures/mcl_core_light_14.png
Normal file
After Width: | Height: | Size: 249 B |
BIN
mods/ITEMS/mcl_core/textures/mcl_core_light_2.png
Normal file
After Width: | Height: | Size: 211 B |
BIN
mods/ITEMS/mcl_core/textures/mcl_core_light_3.png
Normal file
After Width: | Height: | Size: 212 B |
BIN
mods/ITEMS/mcl_core/textures/mcl_core_light_4.png
Normal file
After Width: | Height: | Size: 214 B |
BIN
mods/ITEMS/mcl_core/textures/mcl_core_light_5.png
Normal file
After Width: | Height: | Size: 370 B |
BIN
mods/ITEMS/mcl_core/textures/mcl_core_light_6.png
Normal file
After Width: | Height: | Size: 354 B |
BIN
mods/ITEMS/mcl_core/textures/mcl_core_light_7.png
Normal file
After Width: | Height: | Size: 310 B |
BIN
mods/ITEMS/mcl_core/textures/mcl_core_light_8.png
Normal file
After Width: | Height: | Size: 310 B |
BIN
mods/ITEMS/mcl_core/textures/mcl_core_light_9.png
Normal file
After Width: | Height: | Size: 314 B |