Add the Lights #2359

Closed
opened 2022-06-24 03:55:34 +02:00 by kneekoo · 1 comment
Contributor

// These are technically possible, Minetest Game has them

This one is very useful for multiplayer servers, where the spawning area could have some buildings and even a safe area around it, without using normal light sources that alter the visual design of whatever needs to be lit at all times.

The wiki says the following about the Lights:

Lights are invisible blocks, primarily intended for map makers, that can produce any light level from 0 to 15. The light block is also the only light-emitting block capable of producing light level 8.

Light blocks cannot be mined, similar to air, and can be targeted only if the player is holding a Light item in the main hand. Light blocks with a light level of 0 are functionally identical to air.

screenshot of the lights

They do not attach to any block, meaning that breaking an adjacent block does not remove the light block. However, they can be broken by replacing them with another block. The exception is water, which can occupy the same space as a light block. See Waterlogging for more information.

Light blocks are not in the player's Creative inventory. They can be obtained using commands such as /give. The command is: /give <target> minecraft:light{BlockStateTag: {level:"<int>"}} can give a light block with a specific light level and corresponding model. If the level is below 0, the non-bulb texture is used, and above 15 the level 15 texture. If the block state is not specified or not between 0 and 15, the light block emits a light level of 15.

*// These are technically possible, Minetest Game has them* This one is very useful for multiplayer servers, where the spawning area could have some buildings and even a safe area around it, without using normal light sources that alter the visual design of whatever needs to be lit at all times. The wiki says the following about the [Lights](https://minecraft.fandom.com/wiki/Light_Block#History): > Lights are invisible blocks, primarily intended for map makers, that can produce any light level from 0 to 15. The light block is also the only light-emitting block capable of producing light level 8. > Light blocks cannot be mined, similar to air, and can be targeted only if the player is holding a Light item in the main hand. Light blocks with a light level of 0 are functionally identical to air. ![screenshot of the lights](https://i.imgur.com/9SNeTty.png) > They do not attach to any block, meaning that breaking an adjacent block does not remove the light block. However, they can be broken by replacing them with another block. The exception is water, which can occupy the same space as a light block. See [Waterlogging](https://minecraft.fandom.com/wiki/Waterlogging) for more information. > Light blocks are not in the player's Creative inventory. They can be obtained using commands such as /give. The command is: `/give <target> minecraft:light{BlockStateTag: {level:"<int>"}}` can give a light block with a specific light level and corresponding model. If the level is below 0, the non-bulb texture is used, and above 15 the level 15 texture. If the block state is not specified or not between 0 and 15, the light block emits a light level of 15.
kneekoo added the
missing feature
#P6: low
labels 2022-06-24 03:56:07 +02:00
Contributor

minetest.register_node(":mcl_cora:magic_light", {drawtype="airlike", walkable = false, pointable = false,light_source=15})

untested

`minetest.register_node(":mcl_cora:magic_light", {drawtype="airlike", walkable = false, pointable = false,light_source=15})` untested
Ghost added the
Media missing
label 2022-11-20 00:11:21 +01:00
AFCMS added the
Minecraft >= 1.13
label 2023-01-08 21:10:48 +01:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: VoxeLibre/VoxeLibre#2359
No description provided.