Vanessa Dannenberg 333a65785a Allow using aux1 (usually "E") to auto-place a digiline distributor 2 meters
below the pole (the usual location for such a thing, but only if you're using a
digilines-enabled spawner). Sneak (usually "shift") still places concrete right
below the pole, so sneak + aux1 will place both.

As usual, if you're in survival mode, you must have distributors in your
inventory in order to place them, as with concrete and the pole and light
items; the mod will warn you if you have none.
2019-05-30 03:08:29 -04:00

14 lines
461 B
Lua

-- simple streetlight spawner mod
local modpath = minetest.get_modpath("simple_streetlights")
streetlights = {}
streetlights.basic_materials = minetest.get_modpath("basic_materials")
streetlights.concrete = "basic_materials:concrete_block"
streetlights.distributor = "streets:digiline_distributor"
dofile(modpath.."/simple.lua")
if minetest.get_modpath("homedecor_lighting") and minetest.get_modpath("streetspoles") then
dofile(modpath.."/minedot.lua")
end