
//Set icon item
setIcon(<industrialforegoing:mob_relocator>)

//Set title String
setTitle("Mob Farmin")

//Set description String
setDescription("The Mob Crusher kills any mobs in front of it, producing its mob drops and mob essence.")

//Add a parent advancement. The syntax is "modid:folder/path/to/the/advancement/then/filename"
addParent("triumph:nether/manyullyningot")

//Adds criteria named "hasFlint" with the trigger type "minecraft:inventory_changed". This function returns the criteria as an object
criteria = addCriteria("hasMobCrusher", "minecraft:inventory_changed")

//Adds the required item for the criteria. This is the item that needs to be in the player inventory.
criteria.addItem(<industrialforegoing:mob_relocator>)

drawDirectLines(true)

//Set the position
setPos(-49,-50)

//Rewards
setRewardExperience(4)