;(() => {
  const root = global.cloudIslandBarnMission
  if (!root || typeof root.registerLogic !== 'function') return

  root.registerLogic('hold_dirt', player => {
    const held = player.mainHandItem
    if (!held || held.isEmpty()) return false
    return held.id === 'minecraft:dirt'
  })
})()
