SANDBOX — this is a test environment. No servers are actually deployed and no real payments are charged.
Back to NxLabs

NxLabs / Factorio

Space Exploration - core miner efficiency updated event

QBy Quezler

For other mods to listen to when core mining drills get placed or removed.

Description

2.0%2F083se--core--miner--efficiency--updated--event-white?logo=github&label=github" alt="shield" loading="lazy" /> > once 2.1.x drops do not expect new 2.0.x mods here, mods will be slowly ported based on my needs and/or requests from the community, thx for playing!

how to listen:

local function register_events(event)
  script.on_event(remote.call("se-core-miner-efficiency-updated-event", "on_efficiency_updated"), function(event)
    log(serpent.block(event))
  end)
end

script.on_init(register_events)
script.on_load(register_events)

what you get:

{
  surface_index = 1,
  zone_index = 523,

  new_amount_for_one = 478148.66421992512,
  new_amount = 2138345.833092948,
  efficiency = 0.22360679774997898,
}

Ratings & reviews

No ratings yet

Sign in to leave a rating or comment.