Added back the example scripts into the triumph directory for reference. They are not enabled in-game.

master
YandolsZX 5 years ago
parent 4b5665f57a
commit d90bb65c6c
  1. 30
      config/triumph/_example_script_/botania_tweaks/example_flower_generated_mana.txt
  2. 28
      config/triumph/_example_script_/botania_tweaks/example_total_generated_mana.txt
  3. 39
      config/triumph/_example_script_/example_all_rewards.txt
  4. 32
      config/triumph/_example_script_/example_better_advancement_colors.txt
  5. 24
      config/triumph/_example_script_/example_break_block.txt
  6. 30
      config/triumph/_example_script_/example_bred_animals.txt
  7. 26
      config/triumph/_example_script_/example_brewed_potion.txt
  8. 31
      config/triumph/_example_script_/example_completed_advancement.txt
  9. 26
      config/triumph/_example_script_/example_construct_beacon.txt
  10. 24
      config/triumph/_example_script_/example_consume_item.txt
  11. 26
      config/triumph/_example_script_/example_count.txt
  12. 24
      config/triumph/_example_script_/example_destroy_block.txt
  13. 24
      config/triumph/_example_script_/example_enchanted_item.txt
  14. 24
      config/triumph/_example_script_/example_enter_biome.txt
  15. 24
      config/triumph/_example_script_/example_enter_block.txt
  16. 26
      config/triumph/_example_script_/example_enter_dimension.txt
  17. 24
      config/triumph/_example_script_/example_harvest_block.txt
  18. 24
      config/triumph/_example_script_/example_hurt_entity.txt
  19. 22
      config/triumph/_example_script_/example_impossible.txt
  20. 24
      config/triumph/_example_script_/example_inventory_changed.txt
  21. 26
      config/triumph/_example_script_/example_item_crafted.txt
  22. 24
      config/triumph/_example_script_/example_killed_by_entity.txt
  23. 24
      config/triumph/_example_script_/example_killed_entity.txt
  24. 24
      config/triumph/_example_script_/example_left_click_block.txt
  25. 24
      config/triumph/_example_script_/example_location_dimID.txt
  26. 24
      config/triumph/_example_script_/example_location_worldtype.txt
  27. 24
      config/triumph/_example_script_/example_placed_block.txt
  28. 24
      config/triumph/_example_script_/example_recipe_unlocked.txt
  29. 27
      config/triumph/_example_script_/example_repeatable.txt
  30. 24
      config/triumph/_example_script_/example_right_click_block.txt
  31. 24
      config/triumph/_example_script_/example_right_click_item.txt
  32. 24
      config/triumph/_example_script_/example_slept_in_bed.txt
  33. 24
      config/triumph/_example_script_/example_tame_animal.txt
  34. 27
      config/triumph/_example_script_/example_villager_trade.txt
  35. 27
      config/triumph/_example_script_/immersiveengineering/example_multiblock_formed.txt
  36. 26
      config/triumph/_example_script_/root.txt
  37. 27
      config/triumph/_example_script_/totemic/example_ceremony_performed.txt

@ -0,0 +1,30 @@
//This tells the script parser that the script requires Botania Tweaks. If the mod is not loaded, the script will be canceled.
Parser.addRequiredMod("botania_tweaks")
//Set the icon item
setIcon(<botania:specialflower, nbt:{type:"endoflame"}>)
//Set the title String
setTitle("Flower Generation")
//Set the description String
setDescription("Generate 250k mana with endoflames.")
//Add a parent advancement. The syntax is "modid:folder/path/to/the/advancement/then/filename"
addParent("triumph:example/root")
//Set the position
setPos(103,113)
//Hide the connection lines, so I can have a pretty shape
hideLines()
//Adds criteria named "generated" with the trigger type "botania_tweaks:flower_generated_mana". This function returns the criteria as an object
criteria = addCriteria("generated", "botania_tweaks:flower_generated_mana")
//Sets the flower the mana must be generated from.
criteria.setFlower("endoflame")
//Sets the required mana to be generated by the flower.
criteria.setRequiredMana(250000)

@ -0,0 +1,28 @@
//This tells the script parser that the script requires Botania Tweaks. If the mod is not loaded, the script will be canceled.
Parser.addRequiredMod("botania_tweaks")
//Set the icon item
setIcon(<botania:pool>)
//Set the title String
setTitle("Mana Generation")
//Set the description String
setDescription("Generate 500k mana.")
//Add a parent advancement. The syntax is "modid:folder/path/to/the/advancement/then/filename"
addParent("triumph:example/root")
//Set the position
setPos(126,113)
//Hide the connection lines, so I can have a pretty shape
hideLines()
//Adds criteria named "generated" with the trigger type "botania_tweaks:total_generated_mana". This function returns the criteria as an object
criteria = addCriteria("generated", "botania_tweaks:total_generated_mana")
//Sets the required mana to be generated.
criteria.setRequiredMana(500000)

@ -0,0 +1,39 @@
//Set icon item
setIcon(<minecraft:flint>)
//Set title String
setTitle("All Rewards")
//Set description String
setDescription("Acquire flint")
//Add a parent advancement. The syntax is "modid:folder/path/to/the/advancement/then/filename"
addParent("triumph:example/root")
//Set the position
setPos(80,65)
//Hide the connection lines, so I can have a pretty shape
hideLines()
//Adds criteria named "hasFlint" with the trigger type "minecraft:inventory_changed". This function returns the criteria as an object
criteria = addCriteria("hasFlint", "minecraft:inventory_changed")
//Adds the required item for the criteria. This is the item that needs to be in the player inventory.
criteria.addItem(<minecraft:flint>)
//Adds a recipe to reward upon completion. Multiple of these can be added.
addRewardRecipe("minecraft:ender_eye")
//Adds a function to fire upon completion. Any number of these can be added.
addRewardFunction("triumph:happy_birthday")
//Sets the experience to reward upon completion. This can only be set once.
setRewardExperience(42)
//Adds a Skillable mod skill level up to be rewarded upon completion. Multiple of these can be added.
addRewardSkillable("mining", 1)
//Adds an item to be rewarded upon completion. Only one of these can be set currently.
setRewardItem(<minecraft:stick, nbt:{ench:[{lvl:1s,id:51s}],display:{Name:"The Stick of Truth"}}>)

@ -0,0 +1,32 @@
//Set the icon item
setIcon(<minecraft:wooden_button>)
//Set the title String
setTitle("Pretty Colors!")
//Set the description String
setDescription("Craft a wooden button")
//Set Better Advancements icon/title/line colors. Supports single color int, 3 rgb ints, and hex.
setUncompletedIconColor(16744448)
setCompletedIconColor(128, 0, 255)
setUncompletedTitleColor(65535)
setCompletedTitleColor(#00FF80)
setUncompletedLineColor(#ff0000)
setCompletedLineColor(#ff00ff)
//Add a parent advancement. The syntax is "modid:folder/path/to/the/advancement/then/filename"
addParent("triumph:example/root")
//Set the position
setPos(34,17)
//Hide the connection lines, so I can have a pretty shape
hideLines()
//Adds criteria named "crafted" with the trigger type "triumph:player_crafted_item". This function returns the criteria as an object
criteria = addCriteria("crafted", "triumph:player_crafted_item")
//Sets the required item for the criteria. This is the item that needs to be crafted.
criteria.setItem(<minecraft:wooden_button>)

@ -0,0 +1,24 @@
//Set icon item
setIcon(<minecraft:log>)
//Set title String
setTitle("Caveman hate tree!")
//Set description String
setDescription("Break a log")
//Add a parent advancement. The syntax is "modid:folder/path/to/the/advancement/then/filename"
addParent("triumph:example/root")
//Set the position
setPos(57,89)
//Hide the connection lines, so I can have a pretty shape
hideLines()
//Adds criteria named "brokeLog" with the trigger type "triumph:player_break_block". This function returns the criteria as an object
criteria = addCriteria("brokeLog", "triumph:player_break_block")
//Sets the required block for the criteria. This is the block that needs to be broken by the player.
criteria.setBlock(<ore:logWood>)

@ -0,0 +1,30 @@
//Set icon item
setIcon(<minecraft:wool>)
//Set title String
setTitle("How is babby formed?")
//Set description String
setDescription("Breed a sheep, with a sheep, to produce... a sheep.")
//Add a parent advancement. The syntax is "modid:folder/path/to/the/advancement/then/filename"
addParent("triumph:example/root")
//Set the position
setPos(34,89)
//Hide the connection lines, so I can have a pretty shape
hideLines()
//Adds criteria named "bred_sheep" with the trigger type "minecraft:bred_animals". This function returns the criteria as an object
criteria = addCriteria("bred_sheep", "minecraft:bred_animals")
//Sets the required parent entity type for the criteria. This is the entity that the player must breed with the partner entity.
criteria.setParentType("minecraft:sheep")
//Sets the required partner entity type for the criteria. This is the entity that the player must breed with the parent entity.
criteria.setPartnerType("minecraft:sheep")
//Sets the required child entity type for the criteria. This is the entity that the player must produce by breeding the parent and partner together.
criteria.setChildType("minecraft:sheep")

@ -0,0 +1,26 @@
//Set icon item
setIcon(<minecraft:brewing_stand>)
//Set title String
setTitle("Liquid health!")
//Set description String
setDescription("Brew a healing potion")
//Add a parent advancement. The syntax is "modid:folder/path/to/the/advancement/then/filename"
addParent("triumph:example/root")
//Set the position
setPos(126,41)
//Hide the connection lines, so I can have a pretty shape
hideLines()
//Adds criteria named "brewedPotion" with the trigger type "minecraft:brewed_potion". This function returns the criteria trigger as an object
criteria = addCriteria("brewedPotion", "minecraft:brewed_potion")
//Sets the required potion type for the criteria. This is the potion type that needs to be brewed.
criteria.setPotionType("minecraft:healing")
//By not setting anything about requirements here, all criteria are automatically required

@ -0,0 +1,31 @@
//Set icon item
setIcon(<minecraft:netherrack>)
//Set title String
setTitle("Caveman smash red rock!")
//Set description String
setDescription("Break a netherrack block")
//Add a parent advancement. The syntax is "modid:folder/path/to/the/advancement/then/filename"
addParent("triumph:example/example_enter_dimension")
//Set the position
setPos(103,89)
//Hide the connection lines, so I can have a pretty shape
hideLines()
//Adds criteria named "brokeNetherrack" with the trigger type "triumph:player_break_block". This function returns the criteria as an object
criteria = addCriteria("brokeNetherrack", "triumph:player_break_block")
//Sets the required block for the criteria. This is the block that needs to be broken by the player.
criteria.setBlock(<minecraft:netherrack>)
//Sets the parent advancements to be required. This is just a helper method, which adds criterion named "completedParent"/"completedParent2"/etc with the trigger type "triumph:completed_advancement" and sets the parent advancement as the requirement. The long form version of this is written in the two commented lines below.
setRequiresParents()
//criteria = addCriteria("completedParent", "triumph:completed_advancement")
//criteria.setAdvancement("triumph:example/example_enter_dimension")
//By not setting anything about requirements here, all criteria are automatically required

@ -0,0 +1,26 @@
//Set icon item
setIcon(<minecraft:beacon>)
//Set title String
setTitle("Better Beacons")
//Set description String
setDescription("Construct a 2 to 4 layer beacon")
//Add a parent advancement. The syntax is "modid:folder/path/to/the/advancement/then/filename"
addParent("triumph:example/root")
//Set the position
setPos(11,65)
//Hide the connection lines, so I can have a pretty shape
hideLines()
//Adds criteria named "beacon" with the trigger type "minecraft:construct_beacon". This function returns the criteria trigger as an object
criteria = addCriteria("beacon", "minecraft:construct_beacon")
//Sets the required beacon levels for the criteria.
criteria.setLevelsMinMax(2, 4)
//By not setting anything about requirements here, all criteria are automatically required

@ -0,0 +1,24 @@
//Set the icon item
setIcon(<minecraft:melon>)
//Set the title String
setTitle("Mmmmmmmmmm, melon")
//Set the description String
setDescription("Eat delicious melon")
//Add a parent advancement. The syntax is "modid:folder/path/to/the/advancement/then/filename"
addParent("triumph:example/root")
//Set the position
setPos(11,41)
//Hide the connection lines, so I can have a pretty shape
hideLines()
//Adds criteria named "consumed" with the trigger type "minecraft:consume_item". This function returns the criteria as an object
criteria = addCriteria("consumed", "minecraft:consume_item")
//Sets the required item for the criteria. This is the item that needs to be consumed.
criteria.setItem(<minecraft:melon>)

@ -0,0 +1,26 @@
//Set icon item
setIcon(<minecraft:iron_ore>)
//Set title String
setTitle("Right clicking a block multiple times")
//Set description String
setDescription("Right click an iron ore block 5 times")
//Add a parent advancement. The syntax is "modid:folder/path/to/the/advancement/then/filename"
addParent("triumph:example/root")
//Set the position
setPos(126,17)
//Hide the connection lines, so I can have a pretty shape
hideLines()
//Adds criteria named "clickedBlock" with the trigger type "triumph:right_click_block". This function returns the criteria as an object
criteria = addCriteria("clickedBlock", "triumph:right_click_block")
//Sets the required block for the criteria. This is the block that needs to be right clicked by the player.
criteria.setBlock(<minecraft:iron_ore>)
criteria.setCount(5)

@ -0,0 +1,24 @@
//Set icon item
setIcon(<minecraft:netherrack>)
//Set title String
setTitle("Destroying a block")
//Set description String
setDescription("Destroy a netherrack block")
//Add a parent advancement. The syntax is "modid:folder/path/to/the/advancement/then/filename"
addParent("triumph:example/root")
//Set the position
setPos(103,17)
//Hide the connection lines, so I can have a pretty shape
hideLines()
//Adds criteria named "destroyedBlock" with the trigger type "triumph:player_destroy_block". This function returns the criteria as an object
criteria = addCriteria("destroyedBlock", "triumph:player_destroy_block")
//Sets the required block for the criteria. This is the block that needs to be destroyed by the player.
criteria.setBlock(<minecraft:netherrack>)

@ -0,0 +1,24 @@
//Set the icon item
setIcon(<minecraft:enchanted_book>)
//Set the title String
setTitle("Enchanting")
//Set the description String
setDescription("Enchant a golden sword")
//Add a parent advancement. The syntax is "modid:folder/path/to/the/advancement/then/filename"
addParent("triumph:example/root")
//Set the position
setPos(80,41)
//Hide the connection lines, so I can have a pretty shape
hideLines()
//Adds criteria named "enchanted" with the trigger type "minecraft:enchanted_item". This function returns the criteria as an object
criteria = addCriteria("enchanted", "minecraft:enchanted_item")
//Sets the required item for the criteria. This is the item that needs to be enchanted.
criteria.setItem(<minecraft:golden_sword>)

@ -0,0 +1,24 @@
//Set icon item
setIcon(<minecraft:map>)
//Set title String
setTitle("To the forest!")
//Set description String
setDescription("Enter a forest biome")
//Add a parent advancement. The syntax is "modid:folder/path/to/the/advancement/then/filename"
addParent("triumph:example/root")
//Set the position
setPos(57,113)
//Hide the connection lines, so I can have a pretty shape
hideLines()
//Adds criteria named "entered_forest" with the trigger type "minecraft:location". This function returns the criteria as an object
criteria = addCriteria("entered_forest", "minecraft:location")
//Sets the required biome for the criteria. This is the biome the player must be in.
criteria.setBiome("minecraft:forest")

@ -0,0 +1,24 @@
//Set the icon item
setIcon(<minecraft:sapling, meta:4>)
//Set the title String
setTitle("I'm a tree!")
//Set the description String
setDescription("Enter a sapling block")
//Add a parent advancement. The syntax is "modid:folder/path/to/the/advancement/then/filename"
addParent("triumph:example/root")
//Set the position
setPos(149,17)
//Hide the connection lines, so I can have a pretty shape
hideLines()
//Adds criteria named "entered" with the trigger type "minecraft:enter_block". This function returns the criteria as an object
criteria = addCriteria("entered", "minecraft:enter_block")
//Sets the required block for the criteria. This is the block that needs to be entered.
criteria.setBlock(<ore:treeSapling>)

@ -0,0 +1,26 @@
//Set icon item
setIcon(<minecraft:obsidian>)
//Set title String
setTitle("Caveman no like red rocks.")
//Set description String
setDescription("Enter the nether")
//Add a parent advancement. The syntax is "modid:folder/path/to/the/advancement/then/filename"
addParent("triumph:example/root")
//Set the position
setPos(103,65)
//Hide the connection lines, so I can have a pretty shape
hideLines()
//Adds criteria named "entered_nether" with the trigger type "minecraft:changed_dimension". This function returns the criteria as an object
criteria = addCriteria("entered_nether", "minecraft:changed_dimension")
//Sets the required destination dimension type for the criteria. Overworld is "overworld", Nether is "the_nether", End is "the_end".
criteria.setDimensionDestination("the_nether")
//By not setting anything about requirements here, all criteria are automatically required

@ -0,0 +1,24 @@
//Set icon item
setIcon(<minecraft:netherrack>)
//Set title String
setTitle("Harvesting a block")
//Set description String
setDescription("Harvest a netherrack block")
//Add a parent advancement. The syntax is "modid:folder/path/to/the/advancement/then/filename"
addParent("triumph:example/root")
//Set the position
setPos(103,41)
//Hide the connection lines, so I can have a pretty shape
hideLines()
//Adds criteria named "harvestedBlock" with the trigger type "triumph:player_harvest_block". This function returns the criteria as an object
criteria = addCriteria("harvestedBlock", "triumph:player_harvest_block")
//Sets the required block for the criteria. This is the block that needs to be harvested by the player.
criteria.setBlock(<minecraft:netherrack>)

@ -0,0 +1,24 @@
//Set icon item
setIcon(<minecraft:wooden_sword>)
//Set title String
setTitle("Evil wolf!")
//Set description String
setDescription("Damage a wolf.")
//Add a parent advancement. The syntax is "modid:folder/path/to/the/advancement/then/filename"
addParent("triumph:example/root")
//Set the position
setPos(34,65)
//Hide the connection lines, so I can have a pretty shape
hideLines()
//Adds criteria named "hurt_wolf" with the trigger type "minecraft:player_hurt_entity". This function returns the criteria as an object
criteria = addCriteria("hurt_wolf", "minecraft:player_hurt_entity")
//Sets the required entity type for the criteria. This is the entity that the player must damage.
criteria.setEntityType("minecraft:wolf")

@ -0,0 +1,22 @@
//Set icon item
setIcon(<minecraft:bedrock>)
//Set title String
setTitle("Impossible!")
//Set description String
setDescription("This cannot be completed")
//Add a parent advancement. The syntax is "modid:folder/path/to/the/advancement/then/filename"
addParent("triumph:example/root")
//Set the position
setPos(149,65)
//Hide the connection lines, so I can have a pretty shape
hideLines()
//Adds criteria named "impossible" with the trigger type "minecraft:impossible". This function returns the criteria as an object
//This trigger type is impossible to complete. It is useful as the trigger for a root when you want to have a page of permanently hidden advancements. Vanilla uses this for the root of its recipes page.
criteria = addCriteria("impossible", "minecraft:impossible")

@ -0,0 +1,24 @@
//Set icon item
setIcon(<minecraft:stick, nbt:{ench:[{lvl:1s,id:51s}],display:{Name:"The Stick of Truth"}}>)
//Set title String
setTitle("The Stick of Truth")
//Set description String
setDescription("Acquire the The Stick of Truth")
//Add a parent advancement. The syntax is "modid:folder/path/to/the/advancement/then/filename"
addParent("triumph:example/root")
//Set the position
setPos(149,41)
//Hide the connection lines, so I can have a pretty shape
hideLines()
//Adds criteria named "hasStickOfTruth" with the trigger type "minecraft:inventory_changed". This function returns the criteria as an object
criteria = addCriteria("hasStickOfTruth", "minecraft:inventory_changed")
//Adds the required item for the criteria. This is the item that needs to be in the player inventory.
criteria.addItem(<minecraft:stick, nbt:{ench:[{lvl:1s,id:51s}],display:{Name:"The Stick of Truth"}}>)

@ -0,0 +1,26 @@
//Set the icon item
setIcon(<minecraft:chest>)
//Set the title String
setTitle("Chests!")
//Set the description String
setDescription("Craft a chest")
//Add a parent advancement. The syntax is "modid:folder/path/to/the/advancement/then/filename"
addParent("triumph:example/root")
//Set the position
setPos(57,17)
//Hide the connection lines, so I can have a pretty shape
hideLines()
//Adds criteria named "crafted" with the trigger type "triumph:player_crafted_item". This function returns the criteria as an object
criteria = addCriteria("crafted", "triumph:player_crafted_item")
//Sets the item for the criteria. This is the item that needs to be crafted.
criteria.setItem(<ore:chest>)
//By not setting anything about requirements here, all criteria are automatically required

@ -0,0 +1,24 @@
//Set icon item
setIcon(<minecraft:skull>)
//Set title String
setTitle("What is hiss?")
//Set description String
setDescription("Get killed by a creeper.")
//Add a parent advancement. The syntax is "modid:folder/path/to/the/advancement/then/filename"
addParent("triumph:example/root")
//Set the position
setPos(57,41)
//Hide the connection lines, so I can have a pretty shape
hideLines()
//Adds criteria named "killed_by_creeper" with the trigger type "minecraft:entity_killed_player". This function returns the criteria as an object
criteria = addCriteria("killed_by_creeper", "minecraft:entity_killed_player")
//Sets the required entity type for the criteria. This is the entity that the player must be killed by.
criteria.setEntityType("minecraft:creeper")

@ -0,0 +1,24 @@
//Set icon item
setIcon(<minecraft:iron_sword>)
//Set title String
setTitle("Caveman hate spider!")
//Set description String
setDescription("Crush a spider.")
//Add a parent advancement. The syntax is "modid:folder/path/to/the/advancement/then/filename"
addParent("triumph:example/root")
//Set the position
setPos(34,41)
//Hide the connection lines, so I can have a pretty shape
hideLines()
//Adds criteria named "killed_spider" with the trigger type "minecraft:player_killed_entity". This function returns the criteria as an object
criteria = addCriteria("killed_spider", "minecraft:player_killed_entity")
//Sets the required entity type for the criteria. This is the entity that the player must kill.
criteria.setEntityType("minecraft:spider")

@ -0,0 +1,24 @@
//Set icon item
setIcon(<minecraft:grass>)
//Set title String
setTitle("Left clicking a block")
//Set description String
setDescription("Left click a grass block")
//Add a parent advancement. The syntax is "modid:folder/path/to/the/advancement/then/filename"
addParent("triumph:example/root")
//Set the position
setPos(57,65)
//Hide the connection lines, so I can have a pretty shape
hideLines()
//Adds criteria named "clickedBlock" with the trigger type "triumph:left_click_block". This function returns the criteria as an object
criteria = addCriteria("clickedBlock", "triumph:left_click_block")
//Sets the required block for the criteria. This is the block that needs to be left clicked by the player.
criteria.setBlock(<minecraft:grass>)

@ -0,0 +1,24 @@
//Set icon item
setIcon(<minecraft:map>)
//Set title String
setTitle("Be in the nether")
//Set description String
setDescription("Be in dimension -1")
//Add a parent advancement. The syntax is "modid:folder/path/to/the/advancement/then/filename"
addParent("triumph:example/root")
//Set the position
setPos(80,89)
//Hide the connection lines, so I can have a pretty shape
hideLines()
//Adds criteria named "entered_nether" with the trigger type "minecraft:location". This function returns the criteria as an object
criteria = addCriteria("entered_nether", "minecraft:location")
//Sets the required dimension id for the criteria. This is the dimension the player must be in.
criteria.setDimID(-1)

@ -0,0 +1,24 @@
//Set icon item
setIcon(<minecraft:map>)
//Set title String
setTitle("Superflat")
//Set description String
setDescription("Enter a superflat world.")
//Add a parent advancement. The syntax is "modid:folder/path/to/the/advancement/then/filename"
addParent("triumph:example/root")
//Set the position
setPos(126,65)
//Hide the connection lines, so I can have a pretty shape
hideLines()
//Adds criteria named "superflat" with the trigger type "minecraft:location". This function returns the criteria as an object
criteria = addCriteria("superflat", "minecraft:location")
//Sets the required WorldType for the criteria.
criteria.setWorldType("flat")

@ -0,0 +1,24 @@
//Set icon item
setIcon(<minecraft:dirt>)
//Set title String
setTitle("That's dirty!")
//Set description String
setDescription("Place a dirt, coarse dirt or podzol block")
//Add a parent advancement. The syntax is "modid:folder/path/to/the/advancement/then/filename"
addParent("triumph:example/root")
//Set the position
setPos(34,113)
//Hide the connection lines, so I can have a pretty shape
hideLines()
//Adds criteria named "placedDirt" with the trigger type "minecraft:placed_block". This function returns the criteria as an object
criteria = addCriteria("placedDirt", "minecraft:placed_block")
//Sets the required block for the criteria. This is the block that needs to be placed by the player.
criteria.setBlock(<minecraft:dirt>)

@ -0,0 +1,24 @@
//Set icon item
setIcon(<minecraft:crafting_table>)
//Set title String
setTitle("Recipe Unlocked!")
//Set description String
setDescription("Unlock the recipe for diamonds")
//Add a parent advancement. The syntax is "modid:folder/path/to/the/advancement/then/filename"
addParent("triumph:example/root")
//Set the position
setPos(149,89)
//Hide the connection lines, so I can have a pretty shape
hideLines()
//Adds criteria named "unlocked_recipe" with the trigger type "minecraft:recipe_unlocked". This function returns the criteria as an object
criteria = addCriteria("unlocked_recipe", "minecraft:recipe_unlocked")
//Sets the required recipe for the criteria. This is the recipe that the player must unlock.
criteria.setRecipe("minecraft:diamond")

@ -0,0 +1,27 @@
//Set icon item
setIcon(<minecraft:emerald_ore>)
//Set title String
setTitle("Repeatable")
//Set description String
setDescription("Right click an emerald ore block. Advancement completion resets every 10 seconds, allowing it to be completed again.")
//Add a parent advancement. The syntax is "modid:folder/path/to/the/advancement/then/filename"
addParent("triumph:example/root")
//Set the position
setPos(126,89)
//Hide the connection lines, so I can have a pretty shape
hideLines()
//Adds criteria named "clickedBlock" with the trigger type "triumph:right_click_block". This function returns the criteria as an object
criteria = addCriteria("clickedBlock", "triumph:right_click_block")
//Sets the required block for the criteria. This is the block that needs to be right clicked by the player.
criteria.setBlock(<minecraft:emerald_ore>)
//Sets the repeat timer for the advancement. This is in IRL seconds.
setRepeatTime(10)

@ -0,0 +1,24 @@
//Set icon item
setIcon(<minecraft:diamond_ore>)
//Set title String
setTitle("Right clicking a block")
//Set description String
setDescription("Right click a diamond ore block")
//Add a parent advancement. The syntax is "modid:folder/path/to/the/advancement/then/filename"
addParent("triumph:example/root")
//Set the position
setPos(80,17)
//Hide the connection lines, so I can have a pretty shape
hideLines()
//Adds criteria named "clickedBlock" with the trigger type "triumph:right_click_block". This function returns the criteria as an object
criteria = addCriteria("clickedBlock", "triumph:right_click_block")
//Sets the required block for the criteria. This is the block that needs to be right clicked by the player.
criteria.setBlock(<minecraft:diamond_ore>)

@ -0,0 +1,24 @@
//Set icon item
setIcon(<minecraft:diamond>)
//Set title String
setTitle("Right clicking with an item")
//Set description String
setDescription("Right click with a diamond")
//Add a parent advancement. The syntax is "modid:folder/path/to/the/advancement/then/filename"
addParent("triumph:example/root")
//Set the position
setPos(172,41)
//Hide the connection lines, so I can have a pretty shape
hideLines()
//Adds criteria named "clickedItem" with the trigger type "triumph:right_click_item". This function returns the criteria as an object
criteria = addCriteria("clickedItem", "triumph:right_click_item")
//Sets the required item for the criteria. This is the item that needs to be right clicked with by the player.
criteria.setItem(<minecraft:diamond>)

@ -0,0 +1,24 @@
//Set icon item
setIcon(<minecraft:bed>)
//Set title String
setTitle("Nap time in the forest!")
//Set description String
setDescription("Sleep in a bed in a forest biome")
//Add a parent advancement. The syntax is "modid:folder/path/to/the/advancement/then/filename"
addParent("triumph:example/example_enter_biome")
//Set the position
setPos(80,113)
//Hide the connection lines, so I can have a pretty shape
hideLines()
//Adds criteria named "slept_in_bed" with the trigger type "minecraft:slept_in_bed". This function returns the criteria as an object
criteria = addCriteria("slept_in_bed", "minecraft:slept_in_bed")
//Sets the required biome for the criteria. This is the biome the player must be in.
criteria.setBiome("minecraft:forest")

@ -0,0 +1,24 @@
//Set icon item
setIcon(<minecraft:saddle>)
//Set title String
setTitle("Caveman like horse")
//Set description String
setDescription("Tame a horse")
//Add a parent advancement. The syntax is "modid:folder/path/to/the/advancement/then/filename"
addParent("triumph:example/root")
//Set the position
setPos(11,89)
//Hide the connection lines, so I can have a pretty shape
hideLines()
//Adds criteria named "tamed_horse" with the trigger type "minecraft:tame_animal". This function returns the criteria as an object
criteria = addCriteria("tamed_horse", "minecraft:tame_animal")
//Sets the required entity type for the criteria. This is the entity that the player must tame.
criteria.setEntityType("minecraft:horse")

@ -0,0 +1,27 @@
//Set icon item
setIcon(<minecraft:emerald>)
//Set title String
setTitle("Weird Man give Shinies")
//Set description String
setDescription("Trade for an emerald with a villager")
//Add a parent advancement. The syntax is "modid:folder/path/to/the/advancement/then/filename"
addParent("triumph:example/root")
//Set the position
setPos(11,113)
//Hide the connection lines, so I can have a pretty shape
hideLines()
//Adds criteria named "traded" with the trigger type "minecraft:villager_trade". This function returns the criteria as an object
criteria = addCriteria("traded", "minecraft:villager_trade")
//Sets the required entity type for the criteria. This is the entity that the player must trade with.
criteria.setEntityType("minecraft:villager")
//Sets the required item for the criteria. This is the item that must be traded for.
criteria.setItem(<minecraft:emerald>)

@ -0,0 +1,27 @@
//This tells the script parser that the script requires Immersive Engineering. If the mod is not loaded, the script will be canceled.
Parser.addRequiredMod("immersiveengineering")
//Set the icon item
setIcon(<immersiveengineering:metal_multiblock, meta:1>)
//Set the title String
setTitle("Multiblock")
//Set the description String
setDescription("Form a crusher multiblock")
//Add a parent advancement. The syntax is "modid:folder/path/to/the/advancement/then/filename"
addParent("triumph:example/root")
//Set the position
setPos(149,113)
//Hide the connection lines, so I can have a pretty shape
hideLines()
//Adds criteria named "formed" with the trigger type "immersiveengineering:multiblock_formed". This function returns the criteria as an object
criteria = addCriteria("formed", "immersiveengineering:multiblock_formed")
//Sets the required multiblock for the criteria. This is the multiblock that needs to be formed.
criteria.setMultiblock("IE:Crusher")

@ -0,0 +1,26 @@
//This is a root advancement. It is the base advancement for a page. As such, it has no parent and has to set a background.
//Set icon item
setIcon(<minecraft:map>)
//Set title String
setTitle("This is a title")
//Set description String
setDescription("This is a description")
//Set background String. This is a path to any texture in a resource pack, so you can set it to fun things.
setBackground("minecraft:textures/gui/advancements/backgrounds/adventure.png")
//Set the toast notification in the top right corner of the screen to not show up when this advancement is achieved.
setShowToast(false)
//Set the advancement to not send a chat message when it is achieved.
setAnnounceToChat(false)
//Set the position
setPos(11,17)
//Adds a single location criteria. Since this has nothing specific set, it will be completed the instant the player is added to the world, thus unlocking the page instantly.
addCriteria("location", "minecraft:location")

@ -0,0 +1,27 @@
//This tells the script parser that the script requires Totemic. If the mod is not loaded, the script will be canceled.
Parser.addRequiredMod("totemic")
//Set the icon item
setIcon(<totemic:buffalo_items>)
//Set the title String
setTitle("Ceremony")
//Set the description String
setDescription("Perform the buffalo dance ceremony")
//Add a parent advancement. The syntax is "modid:folder/path/to/the/advancement/then/filename"
addParent("triumph:example/root")
//Set the position
setPos(172,17)
//Hide the connection lines, so I can have a pretty shape
hideLines()
//Adds criteria named "performed" with the trigger type "totemic:perform_ceremony". This function returns the criteria as an object
criteria = addCriteria("performed", "totemic:perform_ceremony")
//Sets the ceremony that must be performed.
criteria.setCeremony("totemic:buffalo_dance")
Loading…
Cancel
Save