Called before a platform mines an entity.
platform: LuaSpacePlatform — The platform that's about to do the mining.entity: LuaEntity — The entity which is about to be mined.name: defines.events — Identifier of the eventtick: uint32 — Tick the event was generated.