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

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