package Ġcom . mine in aby ss . ge ary . minecraft . events . conditions Ċ Ċ import Ġcom . mine in aby ss . ge ary . ecs . access ors . Event Scope Ċ import Ġcom . mine in aby ss . ge ary . ecs . access ors . building . get Ċ import Ġcom . mine in aby ss . ge ary . ecs . api . autos can . Auto Scan Ċ import Ġcom . mine in aby ss . ge ary . ecs . api . autos can . Handler Ċ import Ġcom . mine in aby ss . ge ary . ecs . api . systems . Ge ary Listener Ċ import Ġkotlin . random . Random Ċ Ċ @ Auto Scan Ċ class ĠCh ance Checker Ġ: ĠGe ary Listener () Ġ{ ĊĠĠĠ Ġval ĠEvent Scope . chance Ġby Ġget < Chance >() ĊĊĠĠĠ Ġ@ Handler ĊĠĠĠ Ġfun Ġcheck ( event Scope : ĠEvent Scope ): ĠBoolean Ġ= ĊĠĠĠĠĠĠĠ ĠRandom . next Double () Ġ< Ġevent Scope . chance . percentage Ċ } Ċ