1
0
Fork 0

Basic light blocks

This commit is contained in:
AFCMS 2022-12-06 20:35:13 +01:00 committed by Gitea
parent 79876635af
commit 302970d220
16 changed files with 27 additions and 0 deletions

View File

@ -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. -- The void below the bedrock. Void damage is handled in mcl_playerplus.

Binary file not shown.

After

Width:  |  Height:  |  Size: 210 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 220 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 291 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 287 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 291 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 267 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 249 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 211 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 212 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 214 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 370 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 354 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 310 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 310 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 314 B