[API] [Discontinued] Register poles and lamps (modpack) [streetlights_api]

Post Reply
User avatar
Linuxdirk
Member
Posts: 3218
Joined: Wed Sep 17, 2014 11:21
In-game: Linuxdirk
Location: Germany
Contact:

[API] [Discontinued] Register poles and lamps (modpack) [streetlights_api]

by Linuxdirk » Post

Info: This modpack is discontinued!

See latest version as attachment to this post.





Register streetlight poles and lamps via an API

The API provides two functions that allow registering conductive poles as well as lamps. The API registers them with all the necessary functionality for conducting the Mesecons signal. The two other mods in the modpack are examples on how to use the API.

For using the API all you need to do is depend on it and register anything you want. Or simply get the modpack as a whole since it contains two more mods that utilize the API to register a basic set of lamps and poles.

Image Image
Left: All lamps are toggleable; Right: Some poles are disguised as other nodes

For connecting the Mesecons signal to the poles a receiver is used as shown in the first screenshot. To craft the receiver you just need some stone and other material.

The receiver is provided by the API and does not need to be registered manually.

Obtaining the modpack

Info: Only streetlights_api is needed for registering own lamps and poles!
Depends (API): default, mesecons, mesecons_extrawires
Depends (poles): streetlights_api, walls?
Depends (lamps): streetlights_api
License (all): GPLv3 or later
Attachments
streetlights_api.zip
Last release
(575.02 KiB) Downloaded 64 times
Last edited by Linuxdirk on Thu Mar 18, 2021 22:42, edited 4 times in total.

User avatar
LegoLogger
Member
Posts: 39
Joined: Thu Sep 01, 2016 16:08
GitHub: BakerPrime
IRC: BakerPrime
In-game: BakerPrime
Location: Somewhere on mars.....
Contact:

Re: [API] Register poles and lamps (modpack) [streetlights]

by LegoLogger » Post

This is Awesome! Thank you for this API!
~~BakerPrime
For those who complain about radiation, I should remind you that every time you leave your house, you step into
the worlds largest radiation beam. (Why else do you think us programmers hide in basements? ;P )

if you need to speak to me, you can catch me on #VE-Minetest-Servers, #RRH-Servers, ##Minetestwithunk, or #Minetest

User avatar
Phoenixflo44
Member
Posts: 639
Joined: Fri Jul 28, 2017 15:01
In-game: EvilPhoenix
Location: Behind my PC, in Germany

Re: [API] Register poles and lamps (modpack) [streetlights]

by Phoenixflo44 » Post

Good job. +10000000000000000000000000000000000000000000000
Spoiler
I hate my life

User avatar
Linuxdirk
Member
Posts: 3218
Joined: Wed Sep 17, 2014 11:21
In-game: Linuxdirk
Location: Germany
Contact:

Re: [API] Register poles and lamps (modpack) [streetlights]

by Linuxdirk » Post

API (and reference implementation) are fully compatible with Minetest 5.1+.

No changes are needed and no updates are planned so far.

User avatar
Linuxdirk
Member
Posts: 3218
Joined: Wed Sep 17, 2014 11:21
In-game: Linuxdirk
Location: Germany
Contact:

Re: [API] Register poles and lamps (modpack) [streetlights]

by Linuxdirk » Post

Everything is fully compatible with Minetest 5.2.x and a properly flagged release was added to the CDB and will be rolled out soon.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest