Edit: Releases now available: https://github.com/Katharsas/Overclocki ... S/releases
Hi,
i want to make a mod that replaces beacons with "Overclocking Stations (OCS)".
Unlike beacons those would only transfer their module effects to crafting machines built directly adjacent to the OCS. In particular, one side of the OCS building must fully touch a side of a crafting machine to connect. This would allow me to maybe even create an animation that shows the OCS building physically connecting to surrounding crafting machines.
My Problem:
It seems like the existing beacons always assume you want to have a rectangular effect transmission area (not allowing me to define the detailed positioning constraints i need).
My planned workaround:
- Implement positioning checker code myself in Lua
- Give the OCS building zero transmission range, so by itself it does not do anything.
- Listen to event when crafting building is placed/removed (on_built_entity, on_entity_destroyed?)
- Place an invisible helper building underneath each crafting building that takes over the module effects of any adjacent OCS building with a range so small that it only affects the building on top of itself
- Listen to events when player changes module configuration in OCS to update all adjacent helper buildings so that crafting machines are updated with new module effect
My questions:
- Is that an idea that could work? xD
- Is there an event for when player changes (module) slots in a building? I did not find one in the API docs.
I am happy for any information i can get before i really start with this
