EntityEvents.checkSpawn(event => {
    const entity = event.entity;

    // Check for the specific default Goatman entity ID
    if (entity.type === 'goat_man:goat_man') {
        // Blocks the entity if its spawn coordinate is below Y = 60
        if (event.y < 60) {
            event.cancel();
        }
    }
});
