Gerold55 / laptop

Introducing the MineTest Laptop Mod
Other
26 stars 14 forks source link

Light when on #24

Closed Gerold55 closed 6 years ago

Gerold55 commented 6 years ago

Can we add light emission when the computers are on?

bell07 commented 6 years ago

We can try to set different light_source attribute to the "on" nodes. By the way paramtype = "light" can be removed from all nodes because it is standard for all nodes. Second one: We can manipulate the node.param value on node (values 0-14) but this may cause problems

Gerold55 commented 6 years ago

Oh ok I had suggested it because it makes sense to add light to the nodes when on. And someone also suggested it on the forums 😊

bell07 commented 6 years ago

@Gerold55, Do you like to do it? I tested it now and it works fine. Just add to the "on" node definitions the light_source = 4, bellow the "hwstate" line, like

        ["open_on"] = {
            hw_state = "resume",
            light_source = 4,
            tiles = {

The value can be between 0 - 14. So you can adjust the values for each computer to more realistic effect

Gerold55 commented 6 years ago

OK I will ☺ I'll take a look and make careful edits to the lighting

bell07 commented 6 years ago

I see it is already done in your master ;-) I tested it. I think this issue is solved :+1: