import*as mc from"@minecraft/server";import{endTestInstant}from"./sculptor";import{startLoop}from"../misc/sculptorMusic";export function eventBehavior(t){if("register"!==t.eventId);else{const e=t.entity.getComponent("minecraft:variant");if(3===e.value){const e={sourceEntity:mc.world.getEntity(t.entity.getDynamicProperty("hf_mzs:sculptor")),id:"hf_mzs:end_test_instant"};endTestInstant(e)}else 2===e.value&&mc.system.runTimeout((()=>{startLoop(t.entity)}),80)}}