Terasology / AdditionalRails

3 stars 11 forks source link

New Cart Type: Torch Placer #18

Open Meta-Maxim opened 6 years ago

Meta-Maxim commented 6 years ago

The Torch Placer Cart would place torches on walls in a ~5x5 area around itself. It would have an inventory in which torches are stored. It would possibly have a configurable "light level" (configured through GUI) at which it should place another torch. The cart would attempt to place a new torch on a surface if the light level at the block it is currently occupying falls below the cart's "light level" threshold.

This would be a useful cart to have with the tunnel-borer cart so that tunnels are illuminated.

pollend commented 6 years ago

👍 looks good to me. how would the be placed? if it's based on the light level then how would the ordering work. would there be a level at which torches or placed or is it at places where the light level below a certain point? This could produce some really weird placements.

Meta-Maxim commented 6 years ago

@pollend The minimum light level is the level of light that the block the cart is in, if it's in a dark block then it places a torch nearby. The torch surface can be selected going through some placement order, I don't think it matters much what that order is as long as it's consistent so that in the same tunnel it always places the torch in the same relative spot.

pollend commented 6 years ago

I was thinking it would place it on the first avalible surface that has a light level lower then some value. that sounds good.