{
  "parent": "nitco:nitco/ach5.1",
  "display": {
    "icon": {
      "item": "minecraft:shulker_box"
    },
    "title": "Refugee",
    "description": "Save the Endermen and start their new home.",
    "frame": "task",
	"background": "minecraft:textures/block/purpur_pillar_top.png",
    "show_toast": true,
    "announce_to_chat": true,
    "hidden": false
  },
  "rewards": {
    "function": "nitref:invasion/cleanup",
	"loot": [
	  "nitref:command/getbook"
	]
  },
  "criteria": {
    "invasion_ended": {
      "trigger": "minecraft:impossible"
    }
  }
}