diff --git a/config/triumph/_example_script_/botania_tweaks/example_flower_generated_mana.txt b/config/triumph/_example_script_/botania_tweaks/example_flower_generated_mana.txt new file mode 100644 index 0000000..4bd3997 --- /dev/null +++ b/config/triumph/_example_script_/botania_tweaks/example_flower_generated_mana.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() + +//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) \ No newline at end of file diff --git a/config/triumph/_example_script_/botania_tweaks/example_total_generated_mana.txt b/config/triumph/_example_script_/botania_tweaks/example_total_generated_mana.txt new file mode 100644 index 0000000..9bf2e73 --- /dev/null +++ b/config/triumph/_example_script_/botania_tweaks/example_total_generated_mana.txt @@ -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() + +//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) \ No newline at end of file diff --git a/config/triumph/_example_script_/example_all_rewards.txt b/config/triumph/_example_script_/example_all_rewards.txt new file mode 100644 index 0000000..a0508d4 --- /dev/null +++ b/config/triumph/_example_script_/example_all_rewards.txt @@ -0,0 +1,39 @@ + +//Set icon item +setIcon() + +//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() + +//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() \ No newline at end of file diff --git a/config/triumph/_example_script_/example_better_advancement_colors.txt b/config/triumph/_example_script_/example_better_advancement_colors.txt new file mode 100644 index 0000000..dc19257 --- /dev/null +++ b/config/triumph/_example_script_/example_better_advancement_colors.txt @@ -0,0 +1,32 @@ + +//Set the icon item +setIcon() + +//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() \ No newline at end of file diff --git a/config/triumph/_example_script_/example_break_block.txt b/config/triumph/_example_script_/example_break_block.txt new file mode 100644 index 0000000..b89a232 --- /dev/null +++ b/config/triumph/_example_script_/example_break_block.txt @@ -0,0 +1,24 @@ + +//Set icon item +setIcon() + +//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() \ No newline at end of file diff --git a/config/triumph/_example_script_/example_bred_animals.txt b/config/triumph/_example_script_/example_bred_animals.txt new file mode 100644 index 0000000..d913b1b --- /dev/null +++ b/config/triumph/_example_script_/example_bred_animals.txt @@ -0,0 +1,30 @@ + +//Set icon item +setIcon() + +//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") \ No newline at end of file diff --git a/config/triumph/_example_script_/example_brewed_potion.txt b/config/triumph/_example_script_/example_brewed_potion.txt new file mode 100644 index 0000000..edf87f2 --- /dev/null +++ b/config/triumph/_example_script_/example_brewed_potion.txt @@ -0,0 +1,26 @@ + +//Set icon item +setIcon() + +//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 \ No newline at end of file diff --git a/config/triumph/_example_script_/example_completed_advancement.txt b/config/triumph/_example_script_/example_completed_advancement.txt new file mode 100644 index 0000000..cf360ba --- /dev/null +++ b/config/triumph/_example_script_/example_completed_advancement.txt @@ -0,0 +1,31 @@ + +//Set icon item +setIcon() + +//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() + +//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 \ No newline at end of file diff --git a/config/triumph/_example_script_/example_construct_beacon.txt b/config/triumph/_example_script_/example_construct_beacon.txt new file mode 100644 index 0000000..5c27729 --- /dev/null +++ b/config/triumph/_example_script_/example_construct_beacon.txt @@ -0,0 +1,26 @@ + +//Set icon item +setIcon() + +//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 \ No newline at end of file diff --git a/config/triumph/_example_script_/example_consume_item.txt b/config/triumph/_example_script_/example_consume_item.txt new file mode 100644 index 0000000..b84530a --- /dev/null +++ b/config/triumph/_example_script_/example_consume_item.txt @@ -0,0 +1,24 @@ + +//Set the icon item +setIcon() + +//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() \ No newline at end of file diff --git a/config/triumph/_example_script_/example_count.txt b/config/triumph/_example_script_/example_count.txt new file mode 100644 index 0000000..3a33a8a --- /dev/null +++ b/config/triumph/_example_script_/example_count.txt @@ -0,0 +1,26 @@ + +//Set icon item +setIcon() + +//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() + +criteria.setCount(5) \ No newline at end of file diff --git a/config/triumph/_example_script_/example_destroy_block.txt b/config/triumph/_example_script_/example_destroy_block.txt new file mode 100644 index 0000000..275a2f4 --- /dev/null +++ b/config/triumph/_example_script_/example_destroy_block.txt @@ -0,0 +1,24 @@ + +//Set icon item +setIcon() + +//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() \ No newline at end of file diff --git a/config/triumph/_example_script_/example_enchanted_item.txt b/config/triumph/_example_script_/example_enchanted_item.txt new file mode 100644 index 0000000..6081ae3 --- /dev/null +++ b/config/triumph/_example_script_/example_enchanted_item.txt @@ -0,0 +1,24 @@ + +//Set the icon item +setIcon() + +//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() \ No newline at end of file diff --git a/config/triumph/_example_script_/example_enter_biome.txt b/config/triumph/_example_script_/example_enter_biome.txt new file mode 100644 index 0000000..cf5b67c --- /dev/null +++ b/config/triumph/_example_script_/example_enter_biome.txt @@ -0,0 +1,24 @@ + +//Set icon item +setIcon() + +//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") \ No newline at end of file diff --git a/config/triumph/_example_script_/example_enter_block.txt b/config/triumph/_example_script_/example_enter_block.txt new file mode 100644 index 0000000..76c2e7d --- /dev/null +++ b/config/triumph/_example_script_/example_enter_block.txt @@ -0,0 +1,24 @@ + +//Set the icon item +setIcon() + +//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() \ No newline at end of file diff --git a/config/triumph/_example_script_/example_enter_dimension.txt b/config/triumph/_example_script_/example_enter_dimension.txt new file mode 100644 index 0000000..11ac4d0 --- /dev/null +++ b/config/triumph/_example_script_/example_enter_dimension.txt @@ -0,0 +1,26 @@ + +//Set icon item +setIcon() + +//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 \ No newline at end of file diff --git a/config/triumph/_example_script_/example_harvest_block.txt b/config/triumph/_example_script_/example_harvest_block.txt new file mode 100644 index 0000000..9d7b3de --- /dev/null +++ b/config/triumph/_example_script_/example_harvest_block.txt @@ -0,0 +1,24 @@ + +//Set icon item +setIcon() + +//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() \ No newline at end of file diff --git a/config/triumph/_example_script_/example_hurt_entity.txt b/config/triumph/_example_script_/example_hurt_entity.txt new file mode 100644 index 0000000..22ab940 --- /dev/null +++ b/config/triumph/_example_script_/example_hurt_entity.txt @@ -0,0 +1,24 @@ + +//Set icon item +setIcon() + +//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") \ No newline at end of file diff --git a/config/triumph/_example_script_/example_impossible.txt b/config/triumph/_example_script_/example_impossible.txt new file mode 100644 index 0000000..374a44c --- /dev/null +++ b/config/triumph/_example_script_/example_impossible.txt @@ -0,0 +1,22 @@ + +//Set icon item +setIcon() + +//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") \ No newline at end of file diff --git a/config/triumph/_example_script_/example_inventory_changed.txt b/config/triumph/_example_script_/example_inventory_changed.txt new file mode 100644 index 0000000..7b3dc16 --- /dev/null +++ b/config/triumph/_example_script_/example_inventory_changed.txt @@ -0,0 +1,24 @@ + +//Set icon item +setIcon() + +//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() \ No newline at end of file diff --git a/config/triumph/_example_script_/example_item_crafted.txt b/config/triumph/_example_script_/example_item_crafted.txt new file mode 100644 index 0000000..0c7bd70 --- /dev/null +++ b/config/triumph/_example_script_/example_item_crafted.txt @@ -0,0 +1,26 @@ + +//Set the icon item +setIcon() + +//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() + +//By not setting anything about requirements here, all criteria are automatically required \ No newline at end of file diff --git a/config/triumph/_example_script_/example_killed_by_entity.txt b/config/triumph/_example_script_/example_killed_by_entity.txt new file mode 100644 index 0000000..6cae1eb --- /dev/null +++ b/config/triumph/_example_script_/example_killed_by_entity.txt @@ -0,0 +1,24 @@ + +//Set icon item +setIcon() + +//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") \ No newline at end of file diff --git a/config/triumph/_example_script_/example_killed_entity.txt b/config/triumph/_example_script_/example_killed_entity.txt new file mode 100644 index 0000000..9a1e721 --- /dev/null +++ b/config/triumph/_example_script_/example_killed_entity.txt @@ -0,0 +1,24 @@ + +//Set icon item +setIcon() + +//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") \ No newline at end of file diff --git a/config/triumph/_example_script_/example_left_click_block.txt b/config/triumph/_example_script_/example_left_click_block.txt new file mode 100644 index 0000000..12d5bba --- /dev/null +++ b/config/triumph/_example_script_/example_left_click_block.txt @@ -0,0 +1,24 @@ + +//Set icon item +setIcon() + +//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() \ No newline at end of file diff --git a/config/triumph/_example_script_/example_location_dimID.txt b/config/triumph/_example_script_/example_location_dimID.txt new file mode 100644 index 0000000..411aa1d --- /dev/null +++ b/config/triumph/_example_script_/example_location_dimID.txt @@ -0,0 +1,24 @@ + +//Set icon item +setIcon() + +//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) \ No newline at end of file diff --git a/config/triumph/_example_script_/example_location_worldtype.txt b/config/triumph/_example_script_/example_location_worldtype.txt new file mode 100644 index 0000000..c5a67e8 --- /dev/null +++ b/config/triumph/_example_script_/example_location_worldtype.txt @@ -0,0 +1,24 @@ + +//Set icon item +setIcon() + +//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") \ No newline at end of file diff --git a/config/triumph/_example_script_/example_placed_block.txt b/config/triumph/_example_script_/example_placed_block.txt new file mode 100644 index 0000000..135d12e --- /dev/null +++ b/config/triumph/_example_script_/example_placed_block.txt @@ -0,0 +1,24 @@ + +//Set icon item +setIcon() + +//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() \ No newline at end of file diff --git a/config/triumph/_example_script_/example_recipe_unlocked.txt b/config/triumph/_example_script_/example_recipe_unlocked.txt new file mode 100644 index 0000000..c8ebaf6 --- /dev/null +++ b/config/triumph/_example_script_/example_recipe_unlocked.txt @@ -0,0 +1,24 @@ + +//Set icon item +setIcon() + +//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") \ No newline at end of file diff --git a/config/triumph/_example_script_/example_repeatable.txt b/config/triumph/_example_script_/example_repeatable.txt new file mode 100644 index 0000000..ca90e55 --- /dev/null +++ b/config/triumph/_example_script_/example_repeatable.txt @@ -0,0 +1,27 @@ + +//Set icon item +setIcon() + +//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() + +//Sets the repeat timer for the advancement. This is in IRL seconds. +setRepeatTime(10) \ No newline at end of file diff --git a/config/triumph/_example_script_/example_right_click_block.txt b/config/triumph/_example_script_/example_right_click_block.txt new file mode 100644 index 0000000..2dbf91e --- /dev/null +++ b/config/triumph/_example_script_/example_right_click_block.txt @@ -0,0 +1,24 @@ + +//Set icon item +setIcon() + +//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() \ No newline at end of file diff --git a/config/triumph/_example_script_/example_right_click_item.txt b/config/triumph/_example_script_/example_right_click_item.txt new file mode 100644 index 0000000..2868fab --- /dev/null +++ b/config/triumph/_example_script_/example_right_click_item.txt @@ -0,0 +1,24 @@ + +//Set icon item +setIcon() + +//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() \ No newline at end of file diff --git a/config/triumph/_example_script_/example_slept_in_bed.txt b/config/triumph/_example_script_/example_slept_in_bed.txt new file mode 100644 index 0000000..9682227 --- /dev/null +++ b/config/triumph/_example_script_/example_slept_in_bed.txt @@ -0,0 +1,24 @@ + +//Set icon item +setIcon() + +//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") \ No newline at end of file diff --git a/config/triumph/_example_script_/example_tame_animal.txt b/config/triumph/_example_script_/example_tame_animal.txt new file mode 100644 index 0000000..00a9c1a --- /dev/null +++ b/config/triumph/_example_script_/example_tame_animal.txt @@ -0,0 +1,24 @@ + +//Set icon item +setIcon() + +//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") \ No newline at end of file diff --git a/config/triumph/_example_script_/example_villager_trade.txt b/config/triumph/_example_script_/example_villager_trade.txt new file mode 100644 index 0000000..31ae0f4 --- /dev/null +++ b/config/triumph/_example_script_/example_villager_trade.txt @@ -0,0 +1,27 @@ + +//Set icon item +setIcon() + +//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() \ No newline at end of file diff --git a/config/triumph/_example_script_/immersiveengineering/example_multiblock_formed.txt b/config/triumph/_example_script_/immersiveengineering/example_multiblock_formed.txt new file mode 100644 index 0000000..2ac923a --- /dev/null +++ b/config/triumph/_example_script_/immersiveengineering/example_multiblock_formed.txt @@ -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() + +//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") \ No newline at end of file diff --git a/config/triumph/_example_script_/root.txt b/config/triumph/_example_script_/root.txt new file mode 100644 index 0000000..f16c369 --- /dev/null +++ b/config/triumph/_example_script_/root.txt @@ -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() + +//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") \ No newline at end of file diff --git a/config/triumph/_example_script_/totemic/example_ceremony_performed.txt b/config/triumph/_example_script_/totemic/example_ceremony_performed.txt new file mode 100644 index 0000000..ad01ac2 --- /dev/null +++ b/config/triumph/_example_script_/totemic/example_ceremony_performed.txt @@ -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() + +//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") \ No newline at end of file