From ee80834cbfbcf97696ed9e3e893aa6eb9688025e Mon Sep 17 00:00:00 2001 From: Yandols ZeonX Date: Thu, 2 May 2019 23:04:42 +0800 Subject: [PATCH] Regenerate and update Triumph documentation and files. --- config/triumph/Triumph.txt | 2 +- config/triumph/documentation/Triumph.txt | 60 ++-- .../botania_tweaks/flower_generated_mana.txt | 16 +- .../triggers/minecraft/bred_animals.txt | 12 +- .../triggers/minecraft/construct_beacon.txt | 16 +- .../minecraft/cured_zombie_villager.txt | 8 +- .../triggers/minecraft/enchanted_item.txt | 16 +- .../minecraft/entity_killed_player.txt | 8 +- .../triggers/minecraft/inventory_changed.txt | 50 +-- .../minecraft/item_durability_changed.txt | 46 +-- .../triggers/minecraft/levitation.txt | 16 +- .../criteria/triggers/minecraft/location.txt | 24 +- .../triggers/minecraft/nether_travel.txt | 88 ++--- .../triggers/minecraft/placed_block.txt | 36 +-- .../triggers/minecraft/slept_in_bed.txt | 24 +- .../triggers/triumph/left_click_block.txt | 96 +++--- .../triggers/triumph/player_break_block.txt | 36 +-- .../triggers/triumph/player_destroy_block.txt | 36 +-- .../triggers/triumph/player_harvest_block.txt | 36 +-- .../triggers/triumph/right_click_block.txt | 96 +++--- .../triggers/triumph/right_click_item.txt | 30 +- .../documentation/dataObjects/DamageData.txt | 48 +-- .../dataObjects/DamageSourceData.txt | 44 +-- .../dataObjects/DimensionData.txt | 16 +- .../dataObjects/DistanceData.txt | 86 ++--- .../documentation/dataObjects/EntityData.txt | 32 +- .../dataObjects/LocationData.txt | 76 ++--- .../dataObjects/PotionEffectData.txt | 52 +-- .../script/ScriptAdvancement.txt | 300 +++++++++--------- .../example_flower_generated_mana.txt | 30 -- .../example_total_generated_mana.txt | 28 -- .../example_script/example_all_rewards.txt | 39 --- .../example_better_advancement_colors.txt | 32 -- .../example_script/example_break_block.txt | 24 -- .../example_script/example_bred_animals.txt | 30 -- .../example_script/example_brewed_potion.txt | 26 -- .../example_completed_advancement.txt | 31 -- .../example_construct_beacon.txt | 26 -- .../example_script/example_consume_item.txt | 24 -- .../triumph/example_script/example_count.txt | 26 -- .../example_script/example_destroy_block.txt | 24 -- .../example_script/example_enchanted_item.txt | 24 -- .../example_script/example_enter_biome.txt | 24 -- .../example_script/example_enter_block.txt | 24 -- .../example_enter_dimension.txt | 26 -- .../example_script/example_harvest_block.txt | 24 -- .../example_script/example_hurt_entity.txt | 24 -- .../example_script/example_impossible.txt | 22 -- .../example_inventory_changed.txt | 24 -- .../example_script/example_item_crafted.txt | 26 -- .../example_killed_by_entity.txt | 24 -- .../example_script/example_killed_entity.txt | 24 -- .../example_left_click_block.txt | 24 -- .../example_script/example_location_dimID.txt | 24 -- .../example_location_worldtype.txt | 24 -- .../example_script/example_placed_block.txt | 24 -- .../example_recipe_unlocked.txt | 24 -- .../example_script/example_repeatable.txt | 27 -- .../example_right_click_block.txt | 24 -- .../example_script/example_slept_in_bed.txt | 24 -- .../example_script/example_tame_animal.txt | 24 -- .../example_script/example_villager_trade.txt | 27 -- .../example_multiblock_formed.txt | 27 -- config/triumph/example_script/root.txt | 26 -- .../vanilla/adventure/kill_all_mobs.txt | 1 - .../script/triumph/vanilla/adventure/root.txt | 3 +- .../triumph/vanilla/adventure/trade.txt | 3 +- .../script/triumph/vanilla/end/levitate.txt | 3 +- .../triumph/vanilla/nether/all_potions.txt | 3 +- .../triumph/vanilla/story/mine_stone.txt | 3 +- .../triumph/vanilla/story/upgrade_tools.txt | 3 +- 71 files changed, 709 insertions(+), 1621 deletions(-) delete mode 100644 config/triumph/example_script/botania_tweaks/example_flower_generated_mana.txt delete mode 100644 config/triumph/example_script/botania_tweaks/example_total_generated_mana.txt delete mode 100644 config/triumph/example_script/example_all_rewards.txt delete mode 100644 config/triumph/example_script/example_better_advancement_colors.txt delete mode 100644 config/triumph/example_script/example_break_block.txt delete mode 100644 config/triumph/example_script/example_bred_animals.txt delete mode 100644 config/triumph/example_script/example_brewed_potion.txt delete mode 100644 config/triumph/example_script/example_completed_advancement.txt delete mode 100644 config/triumph/example_script/example_construct_beacon.txt delete mode 100644 config/triumph/example_script/example_consume_item.txt delete mode 100644 config/triumph/example_script/example_count.txt delete mode 100644 config/triumph/example_script/example_destroy_block.txt delete mode 100644 config/triumph/example_script/example_enchanted_item.txt delete mode 100644 config/triumph/example_script/example_enter_biome.txt delete mode 100644 config/triumph/example_script/example_enter_block.txt delete mode 100644 config/triumph/example_script/example_enter_dimension.txt delete mode 100644 config/triumph/example_script/example_harvest_block.txt delete mode 100644 config/triumph/example_script/example_hurt_entity.txt delete mode 100644 config/triumph/example_script/example_impossible.txt delete mode 100644 config/triumph/example_script/example_inventory_changed.txt delete mode 100644 config/triumph/example_script/example_item_crafted.txt delete mode 100644 config/triumph/example_script/example_killed_by_entity.txt delete mode 100644 config/triumph/example_script/example_killed_entity.txt delete mode 100644 config/triumph/example_script/example_left_click_block.txt delete mode 100644 config/triumph/example_script/example_location_dimID.txt delete mode 100644 config/triumph/example_script/example_location_worldtype.txt delete mode 100644 config/triumph/example_script/example_placed_block.txt delete mode 100644 config/triumph/example_script/example_recipe_unlocked.txt delete mode 100644 config/triumph/example_script/example_repeatable.txt delete mode 100644 config/triumph/example_script/example_right_click_block.txt delete mode 100644 config/triumph/example_script/example_slept_in_bed.txt delete mode 100644 config/triumph/example_script/example_tame_animal.txt delete mode 100644 config/triumph/example_script/example_villager_trade.txt delete mode 100644 config/triumph/example_script/immersiveengineering/example_multiblock_formed.txt delete mode 100644 config/triumph/example_script/root.txt diff --git a/config/triumph/Triumph.txt b/config/triumph/Triumph.txt index c7ff194..7f8367d 100644 --- a/config/triumph/Triumph.txt +++ b/config/triumph/Triumph.txt @@ -4,6 +4,6 @@ removeVanillaAdvancements(true) removeModAdvancements(false) keepAdvancements([""]) removeAdvancements(["bonsaitrees", "bettermuffling"]) -allowDragging(true) +allowDragging(false) useNewParentCompletionCriteriaNames() pageOrder([""]) \ No newline at end of file diff --git a/config/triumph/documentation/Triumph.txt b/config/triumph/documentation/Triumph.txt index 0422027..81742c9 100644 --- a/config/triumph/documentation/Triumph.txt +++ b/config/triumph/documentation/Triumph.txt @@ -3,14 +3,6 @@ and documentation will be printed. -pageOrder: - Arguments: - String array - Usage: - Array of root advancement resource location - Notes: - Forces an order for advancement pages in the gui. Any not added to this array are ordered alphabetically. - allowDragging: Arguments: boolean @@ -19,17 +11,29 @@ allowDragging: Notes: Sets whether advancements can be dragged around in the gui. End positions will be saved to script files when the mouse button is released, but advancements must be reloaded to refresh positions after the gui is closed. -useNewParentCompletionCriteriaNames: +keepAdvancements: + Arguments: + String array + Default Values: + true Notes: - Tells the mod to use the new naming scheme for parent completion criteria generated with 'setRequiresParents()', instead of the old one. 'Completed Title' vs 'completedParent1' + Used to set advancements that should be kept. Can contain both mod ids and advancement ids. If anything is set in this array, everything else will be removed. -removeVanillaAdvancements: +removeAdvancements: + Arguments: + String array + Default Values: + true + Notes: + Used to set advancements that should be removed. Can contain both mod ids and advancement ids. If anything is set in this array, everything else will be kept. + +removeModAdvancements: Arguments: boolean Default Values: true Notes: - Used to set whether Triumph should remove vanilla advancements. + Used to set whether Triumph should remove mod advancements. printDefaultConfigs: Arguments: @@ -39,11 +43,17 @@ printDefaultConfigs: Notes: Used to set whether Triumph should print default config files. This will replace files. Always backup first! -forceReloadFunctions: +pageOrder: Arguments: - boolean + String array + Usage: + Array of root advancement resource location Notes: - No longer does anything. Simply here to avoid script errors. Will be removed fully in a future update. + Forces an order for advancement pages in the gui. Any not added to this array are ordered alphabetically. + +useNewParentCompletionCriteriaNames: + Notes: + Tells the mod to use the new naming scheme for parent completion criteria generated with 'setRequiresParents()', instead of the old one. 'Completed Title' vs 'completedParent1' printDocumentation: Arguments: @@ -53,27 +63,17 @@ printDocumentation: Notes: Used to set whether Triumph should print config documentation. -removeModAdvancements: +removeVanillaAdvancements: Arguments: boolean Default Values: true Notes: - Used to set whether Triumph should remove mod advancements. - -removeAdvancements: - Arguments: - String array - Default Values: - true - Notes: - Used to set advancements that should be removed. Can contain both mod ids and advancement ids. If anything is set in this array, everything else will be kept. + Used to set whether Triumph should remove vanilla advancements. -keepAdvancements: +forceReloadFunctions: Arguments: - String array - Default Values: - true + boolean Notes: - Used to set advancements that should be kept. Can contain both mod ids and advancement ids. If anything is set in this array, everything else will be removed. + No longer does anything. Simply here to avoid script errors. Will be removed fully in a future update. diff --git a/config/triumph/documentation/criteria/triggers/botania_tweaks/flower_generated_mana.txt b/config/triumph/documentation/criteria/triggers/botania_tweaks/flower_generated_mana.txt index 4ddf92e..9d69ad9 100644 --- a/config/triumph/documentation/criteria/triggers/botania_tweaks/flower_generated_mana.txt +++ b/config/triumph/documentation/criteria/triggers/botania_tweaks/flower_generated_mana.txt @@ -4,14 +4,6 @@ of mana with a certain flower. -setFlower: - Arguments: - String - Usage: - flower name - Notes: - Sets the required flower. - setRequiredMana: Arguments: long @@ -20,6 +12,14 @@ setRequiredMana: Notes: Sets the required mana for the flower to have generated. +setFlower: + Arguments: + String + Usage: + flower name + Notes: + Sets the required flower. + setCount: Arguments: int diff --git a/config/triumph/documentation/criteria/triggers/minecraft/bred_animals.txt b/config/triumph/documentation/criteria/triggers/minecraft/bred_animals.txt index b1d71d0..9930bcf 100644 --- a/config/triumph/documentation/criteria/triggers/minecraft/bred_animals.txt +++ b/config/triumph/documentation/criteria/triggers/minecraft/bred_animals.txt @@ -15,6 +15,10 @@ setParentType: Notes: Sets the parent entity type. +getPartnerData: + Notes: + Returns the EntityData object for the partner so functions can be called on it. + setChildType: Arguments: String @@ -23,10 +27,6 @@ setChildType: Notes: Sets the child entity type. -getChildData: - Notes: - Returns the EntityData object for the child so functions can be called on it. - setPartnerType: Arguments: String @@ -35,9 +35,9 @@ setPartnerType: Notes: Sets the partner entity type. -getPartnerData: +getChildData: Notes: - Returns the EntityData object for the partner so functions can be called on it. + Returns the EntityData object for the child so functions can be called on it. setCount: Arguments: diff --git a/config/triumph/documentation/criteria/triggers/minecraft/construct_beacon.txt b/config/triumph/documentation/criteria/triggers/minecraft/construct_beacon.txt index d7f85e4..38f57b5 100644 --- a/config/triumph/documentation/criteria/triggers/minecraft/construct_beacon.txt +++ b/config/triumph/documentation/criteria/triggers/minecraft/construct_beacon.txt @@ -3,6 +3,14 @@ trigger. +setLevelsMinMax: + Arguments: + float, float + Usage: + min, max + Notes: + Sets the min and max levels for the beacon. + setLevelsMax: Arguments: float @@ -19,14 +27,6 @@ setLevelsMin: Notes: Sets the min levels for the beacon. -setLevelsMinMax: - Arguments: - float, float - Usage: - min, max - Notes: - Sets the min and max levels for the beacon. - setCount: Arguments: int diff --git a/config/triumph/documentation/criteria/triggers/minecraft/cured_zombie_villager.txt b/config/triumph/documentation/criteria/triggers/minecraft/cured_zombie_villager.txt index c76d092..c8e3ac0 100644 --- a/config/triumph/documentation/criteria/triggers/minecraft/cured_zombie_villager.txt +++ b/config/triumph/documentation/criteria/triggers/minecraft/cured_zombie_villager.txt @@ -15,6 +15,10 @@ setVillagerType: Notes: Sets the villager entity type. +getZombieData: + Notes: + Returns the EntityData object for the zombie so functions can be called on it. + setZombieType: Arguments: String @@ -23,10 +27,6 @@ setZombieType: Notes: Sets the zombie entity type. -getZombieData: - Notes: - Returns the EntityData object for the zombie so functions can be called on it. - setCount: Arguments: int diff --git a/config/triumph/documentation/criteria/triggers/minecraft/enchanted_item.txt b/config/triumph/documentation/criteria/triggers/minecraft/enchanted_item.txt index ee86a89..4ff5582 100644 --- a/config/triumph/documentation/criteria/triggers/minecraft/enchanted_item.txt +++ b/config/triumph/documentation/criteria/triggers/minecraft/enchanted_item.txt @@ -11,6 +11,14 @@ setItem: Notes: Sets the required item. +setLevelsMinMax: + Arguments: + float, float + Usage: + min, max + Notes: + Sets the min and max level for the enchantment. + setLevelsMax: Arguments: float @@ -27,14 +35,6 @@ setLevelsMin: Notes: Sets the min level for the enchantment. -setLevelsMinMax: - Arguments: - float, float - Usage: - min, max - Notes: - Sets the min and max level for the enchantment. - setCount: Arguments: int diff --git a/config/triumph/documentation/criteria/triggers/minecraft/entity_killed_player.txt b/config/triumph/documentation/criteria/triggers/minecraft/entity_killed_player.txt index f5c2261..261d9f3 100644 --- a/config/triumph/documentation/criteria/triggers/minecraft/entity_killed_player.txt +++ b/config/triumph/documentation/criteria/triggers/minecraft/entity_killed_player.txt @@ -6,10 +6,6 @@ getEntityData: Notes: Returns the EntityData object so functions can be called on it. -getDamageSource: - Notes: - Returns the DamageSourceData object so functions can be called on it. - setEntityType: Arguments: String @@ -18,6 +14,10 @@ setEntityType: Notes: Sets the entity type. +getDamageSource: + Notes: + Returns the DamageSourceData object so functions can be called on it. + setCount: Arguments: int diff --git a/config/triumph/documentation/criteria/triggers/minecraft/inventory_changed.txt b/config/triumph/documentation/criteria/triggers/minecraft/inventory_changed.txt index 50edd1a..c2c310d 100644 --- a/config/triumph/documentation/criteria/triggers/minecraft/inventory_changed.txt +++ b/config/triumph/documentation/criteria/triggers/minecraft/inventory_changed.txt @@ -11,13 +11,13 @@ addItem: Notes: Adds a required item. -setFullMin: +setOccupiedMinMax: Arguments: - float + float, float Usage: - min + min, max Notes: - Sets the min value for full inventory slots. + Sets the min and max values for occupied inventory slots. setOccupiedMin: Arguments: @@ -27,21 +27,13 @@ setOccupiedMin: Notes: Sets the min value for occupied inventory slots. -setEmptyMinMax: - Arguments: - float, float - Usage: - min, max - Notes: - Sets the min and max values for empty inventory slots. - -setEmptyMax: +setOccupiedMax: Arguments: float Usage: max Notes: - Sets the max value for empty inventory slots. + Sets the max value for occupied inventory slots. setFullMinMax: Arguments: @@ -51,37 +43,45 @@ setFullMinMax: Notes: Sets the min and max values for full inventory slots. -setEmptyMin: +setEmptyMax: Arguments: float Usage: - min + max Notes: - Sets the min value for empty inventory slots. + Sets the max value for empty inventory slots. -setFullMax: +setEmptyMin: Arguments: float Usage: - max + min Notes: - Sets the max value for full inventory slots. + Sets the min value for empty inventory slots. -setOccupiedMax: +setFullMin: Arguments: float Usage: - max + min Notes: - Sets the max value for occupied inventory slots. + Sets the min value for full inventory slots. -setOccupiedMinMax: +setEmptyMinMax: Arguments: float, float Usage: min, max Notes: - Sets the min and max values for occupied inventory slots. + Sets the min and max values for empty inventory slots. + +setFullMax: + Arguments: + float + Usage: + max + Notes: + Sets the max value for full inventory slots. setCount: Arguments: diff --git a/config/triumph/documentation/criteria/triggers/minecraft/item_durability_changed.txt b/config/triumph/documentation/criteria/triggers/minecraft/item_durability_changed.txt index 4cf0e81..97faf67 100644 --- a/config/triumph/documentation/criteria/triggers/minecraft/item_durability_changed.txt +++ b/config/triumph/documentation/criteria/triggers/minecraft/item_durability_changed.txt @@ -3,61 +3,61 @@ criteria trigger. -setDurabilityMax: +setItem: Arguments: - float + ItemBlockData Usage: - max + item data Notes: - Sets the max item durability. + Sets the required item. -setDeltaMinMax: +setDurabilityMinMax: Arguments: float, float Usage: min, max Notes: - Sets the min and max delta. + Sets the min and max item durability. -setDeltaMin: +setDeltaMax: Arguments: float Usage: - min + max Notes: - Sets the min delta. + Sets the max delta. -setDurabilityMin: +setDurabilityMax: Arguments: float Usage: - min + max Notes: - Sets the min item durability. + Sets the max item durability. -setDeltaMax: +setDeltaMin: Arguments: float Usage: - max + min Notes: - Sets the max delta. + Sets the min delta. -setDurabilityMinMax: +setDurabilityMin: Arguments: - float, float + float Usage: - min, max + min Notes: - Sets the min and max item durability. + Sets the min item durability. -setItem: +setDeltaMinMax: Arguments: - ItemBlockData + float, float Usage: - item data + min, max Notes: - Sets the required item. + Sets the min and max delta. setCount: Arguments: diff --git a/config/triumph/documentation/criteria/triggers/minecraft/levitation.txt b/config/triumph/documentation/criteria/triggers/minecraft/levitation.txt index f68032d..5bea5ac 100644 --- a/config/triumph/documentation/criteria/triggers/minecraft/levitation.txt +++ b/config/triumph/documentation/criteria/triggers/minecraft/levitation.txt @@ -6,13 +6,13 @@ getDistanceData: Notes: Returns the DistanceData object so functions can be called on it. -setDurationMin: +setDurationMinMax: Arguments: - float + float, float Usage: - min + min, max Notes: - Sets the min duration. + Sets the min and max duration. setDurationMax: Arguments: @@ -22,13 +22,13 @@ setDurationMax: Notes: Sets the max duration. -setDurationMinMax: +setDurationMin: Arguments: - float, float + float Usage: - min, max + min Notes: - Sets the min and max duration. + Sets the min duration. setCount: Arguments: diff --git a/config/triumph/documentation/criteria/triggers/minecraft/location.txt b/config/triumph/documentation/criteria/triggers/minecraft/location.txt index 779eba4..546c022 100644 --- a/config/triumph/documentation/criteria/triggers/minecraft/location.txt +++ b/config/triumph/documentation/criteria/triggers/minecraft/location.txt @@ -10,18 +10,6 @@ setFeature: Notes: Sets the feature id. Used for things like structures. -setWorldType: - Arguments: - String - Usage: - WorldType id - Notes: - Sets the WorldType id. - -getLocationData: - Notes: - Returns the LocationData object so functions can be called on it. - setBiome: Arguments: Non_Null_Biome_ID @@ -30,6 +18,10 @@ setBiome: Notes: Sets the biome id. Can be an int or String. +getLocationData: + Notes: + Returns the LocationData object so functions can be called on it. + setDimID: Arguments: int @@ -38,6 +30,14 @@ setDimID: Notes: Sets the dimension id. +setWorldType: + Arguments: + String + Usage: + WorldType id + Notes: + Sets the WorldType id. + setGeneratorOptions: Arguments: String diff --git a/config/triumph/documentation/criteria/triggers/minecraft/nether_travel.txt b/config/triumph/documentation/criteria/triggers/minecraft/nether_travel.txt index 4498745..4da5b75 100644 --- a/config/triumph/documentation/criteria/triggers/minecraft/nether_travel.txt +++ b/config/triumph/documentation/criteria/triggers/minecraft/nether_travel.txt @@ -7,93 +7,93 @@ getDistanceData: Notes: Returns the DistanceData object so functions can be called on it. -setEnteredBiome: +setExitedGeneratorOptions: Arguments: - Non_Null_Biome_ID + String Usage: - biome id + generator string Notes: - Sets the biome id for the entered location. Can be an int or String. + Sets the generator options string. -setExitedFeature: +setEnteredFeature: Arguments: String Usage: feature id Notes: - Sets the feature id for the exited location. Used for things like structures. - -getEnteredData: - Notes: - Returns the LocationData object for the entered location so functions can be called on it. + Sets the feature id for the entered location. Used for things like structures. -setEnteredDimID: +setEnteredWorldType: Arguments: - int + String Usage: - dimension id + WorldType id Notes: - Sets the dimension id. + Sets the WorldType id. -setExitedBiome: +setEnteredGeneratorOptions: Arguments: - Non_Null_Biome_ID + String Usage: - biome id + generator string Notes: - Sets the biome id for the exited location. Can be an int or String. + Sets the generator options string. -getExitedData: +setExitedWorldType: + Arguments: + String + Usage: + WorldType id Notes: - Returns the LocationData object for the exited location so functions can be called on it. + Sets the WorldType id. -setExitedDimID: +setEnteredBiome: Arguments: - int + Non_Null_Biome_ID Usage: - dimension id + biome id Notes: - Sets the dimension id. + Sets the biome id for the entered location. Can be an int or String. -setEnteredFeature: +setExitedFeature: Arguments: String Usage: feature id Notes: - Sets the feature id for the entered location. Used for things like structures. + Sets the feature id for the exited location. Used for things like structures. -setEnteredWorldType: - Arguments: - String - Usage: - WorldType id +getEnteredData: Notes: - Sets the WorldType id. + Returns the LocationData object for the entered location so functions can be called on it. -setEnteredGeneratorOptions: +getExitedData: + Notes: + Returns the LocationData object for the exited location so functions can be called on it. + +setExitedBiome: Arguments: - String + Non_Null_Biome_ID Usage: - generator string + biome id Notes: - Sets the generator options string. + Sets the biome id for the exited location. Can be an int or String. -setExitedWorldType: +setExitedDimID: Arguments: - String + int Usage: - WorldType id + dimension id Notes: - Sets the WorldType id. + Sets the dimension id. -setExitedGeneratorOptions: +setEnteredDimID: Arguments: - String + int Usage: - generator string + dimension id Notes: - Sets the generator options string. + Sets the dimension id. setCount: Arguments: diff --git a/config/triumph/documentation/criteria/triggers/minecraft/placed_block.txt b/config/triumph/documentation/criteria/triggers/minecraft/placed_block.txt index 0ee50aa..6c63d0b 100644 --- a/config/triumph/documentation/criteria/triggers/minecraft/placed_block.txt +++ b/config/triumph/documentation/criteria/triggers/minecraft/placed_block.txt @@ -10,17 +10,21 @@ setFeature: Notes: Sets the feature id. Used for things like structures. -setWorldType: +setItem: Arguments: - String + ItemBlockData Usage: - WorldType id + item data Notes: - Sets the WorldType id. + Sets the required item. -getLocationData: +setBlock: + Arguments: + ItemBlockData + Usage: + block data Notes: - Returns the LocationData object so functions can be called on it. + Sets the required block. setBiome: Arguments: @@ -30,6 +34,10 @@ setBiome: Notes: Sets the biome id. Can be an int or String. +getLocationData: + Notes: + Returns the LocationData object so functions can be called on it. + setDimID: Arguments: int @@ -38,13 +46,13 @@ setDimID: Notes: Sets the dimension id. -setBlock: +setWorldType: Arguments: - ItemBlockData + String Usage: - block data + WorldType id Notes: - Sets the required block. + Sets the WorldType id. setGeneratorOptions: Arguments: @@ -54,14 +62,6 @@ setGeneratorOptions: Notes: Sets the generator options string. -setItem: - Arguments: - ItemBlockData - Usage: - item data - Notes: - Sets the required item. - setCount: Arguments: int diff --git a/config/triumph/documentation/criteria/triggers/minecraft/slept_in_bed.txt b/config/triumph/documentation/criteria/triggers/minecraft/slept_in_bed.txt index 8989716..0d44b95 100644 --- a/config/triumph/documentation/criteria/triggers/minecraft/slept_in_bed.txt +++ b/config/triumph/documentation/criteria/triggers/minecraft/slept_in_bed.txt @@ -10,18 +10,6 @@ setFeature: Notes: Sets the feature id. Used for things like structures. -setWorldType: - Arguments: - String - Usage: - WorldType id - Notes: - Sets the WorldType id. - -getLocationData: - Notes: - Returns the LocationData object so functions can be called on it. - setBiome: Arguments: Non_Null_Biome_ID @@ -30,6 +18,10 @@ setBiome: Notes: Sets the biome id. Can be an int or String. +getLocationData: + Notes: + Returns the LocationData object so functions can be called on it. + setDimID: Arguments: int @@ -38,6 +30,14 @@ setDimID: Notes: Sets the dimension id. +setWorldType: + Arguments: + String + Usage: + WorldType id + Notes: + Sets the WorldType id. + setGeneratorOptions: Arguments: String diff --git a/config/triumph/documentation/criteria/triggers/triumph/left_click_block.txt b/config/triumph/documentation/criteria/triggers/triumph/left_click_block.txt index 7c8d17f..3e85667 100644 --- a/config/triumph/documentation/criteria/triggers/triumph/left_click_block.txt +++ b/config/triumph/documentation/criteria/triggers/triumph/left_click_block.txt @@ -11,33 +11,13 @@ setFeature: Notes: Sets the feature id. Used for things like structures. -setWorldType: - Arguments: - String - Usage: - WorldType id - Notes: - Sets the WorldType id. - -getLocationData: - Notes: - Returns the LocationData object so functions can be called on it. - -setBiome: - Arguments: - Non_Null_Biome_ID - Usage: - biome id - Notes: - Sets the biome id. Can be an int or String. - -setDimID: +setItem: Arguments: - int + ItemBlockData Usage: - dimension id + item data Notes: - Sets the dimension id. + Sets the required item. setBlock: Arguments: @@ -47,21 +27,21 @@ setBlock: Notes: Sets the required block. -setHitXMinMax: +setHitZMinMax: Arguments: float, float Usage: min, max Notes: - Sets the min and max X coordinates for the interaction location on the block. + Sets the min and max Z coordinates for the interaction location on the block. -setHitXMin: +setHitZMax: Arguments: float Usage: - min + max Notes: - Sets the min X coordinate for the interaction location on the block. + Sets the max Z coordinate for the interaction location on the block. setHitXMax: Arguments: @@ -71,6 +51,14 @@ setHitXMax: Notes: Sets the max X coordinate for the interaction location on the block. +setHitXMin: + Arguments: + float + Usage: + min + Notes: + Sets the min X coordinate for the interaction location on the block. + setHitYMinMax: Arguments: float, float @@ -79,6 +67,14 @@ setHitYMinMax: Notes: Sets the min and max Y coordinates for the interaction location on the block. +setHitXMinMax: + Arguments: + float, float + Usage: + min, max + Notes: + Sets the min and max X coordinates for the interaction location on the block. + setHitYMin: Arguments: float @@ -95,45 +91,49 @@ setHitYMax: Notes: Sets the max Y coordinate for the interaction location on the block. -setHitZMinMax: +setHitZMin: Arguments: - float, float + float Usage: - min, max + min Notes: - Sets the min and max Z coordinates for the interaction location on the block. + Sets the min Z coordinate for the interaction location on the block. -setHitZMax: +setBiome: Arguments: - float + Non_Null_Biome_ID Usage: - max + biome id Notes: - Sets the max Z coordinate for the interaction location on the block. + Sets the biome id. Can be an int or String. -setHitZMin: +getLocationData: + Notes: + Returns the LocationData object so functions can be called on it. + +setDimID: Arguments: - float + int Usage: - min + dimension id Notes: - Sets the min Z coordinate for the interaction location on the block. + Sets the dimension id. -setGeneratorOptions: +setWorldType: Arguments: String Usage: - generator string + WorldType id Notes: - Sets the generator options string. + Sets the WorldType id. -setItem: +setGeneratorOptions: Arguments: - ItemBlockData + String Usage: - item data + generator string Notes: - Sets the required item. + Sets the generator options string. setCount: Arguments: diff --git a/config/triumph/documentation/criteria/triggers/triumph/player_break_block.txt b/config/triumph/documentation/criteria/triggers/triumph/player_break_block.txt index c88e72f..22cf238 100644 --- a/config/triumph/documentation/criteria/triggers/triumph/player_break_block.txt +++ b/config/triumph/documentation/criteria/triggers/triumph/player_break_block.txt @@ -12,17 +12,21 @@ setFeature: Notes: Sets the feature id. Used for things like structures. -setWorldType: +setItem: Arguments: - String + ItemBlockData Usage: - WorldType id + item data Notes: - Sets the WorldType id. + Sets the required item. -getLocationData: +setBlock: + Arguments: + ItemBlockData + Usage: + block data Notes: - Returns the LocationData object so functions can be called on it. + Sets the required block. setBiome: Arguments: @@ -32,6 +36,10 @@ setBiome: Notes: Sets the biome id. Can be an int or String. +getLocationData: + Notes: + Returns the LocationData object so functions can be called on it. + setDimID: Arguments: int @@ -40,13 +48,13 @@ setDimID: Notes: Sets the dimension id. -setBlock: +setWorldType: Arguments: - ItemBlockData + String Usage: - block data + WorldType id Notes: - Sets the required block. + Sets the WorldType id. setGeneratorOptions: Arguments: @@ -56,14 +64,6 @@ setGeneratorOptions: Notes: Sets the generator options string. -setItem: - Arguments: - ItemBlockData - Usage: - item data - Notes: - Sets the required item. - setCount: Arguments: int diff --git a/config/triumph/documentation/criteria/triggers/triumph/player_destroy_block.txt b/config/triumph/documentation/criteria/triggers/triumph/player_destroy_block.txt index 2317103..8753302 100644 --- a/config/triumph/documentation/criteria/triggers/triumph/player_destroy_block.txt +++ b/config/triumph/documentation/criteria/triggers/triumph/player_destroy_block.txt @@ -11,17 +11,21 @@ setFeature: Notes: Sets the feature id. Used for things like structures. -setWorldType: +setItem: Arguments: - String + ItemBlockData Usage: - WorldType id + item data Notes: - Sets the WorldType id. + Sets the required item. -getLocationData: +setBlock: + Arguments: + ItemBlockData + Usage: + block data Notes: - Returns the LocationData object so functions can be called on it. + Sets the required block. setBiome: Arguments: @@ -31,6 +35,10 @@ setBiome: Notes: Sets the biome id. Can be an int or String. +getLocationData: + Notes: + Returns the LocationData object so functions can be called on it. + setDimID: Arguments: int @@ -39,13 +47,13 @@ setDimID: Notes: Sets the dimension id. -setBlock: +setWorldType: Arguments: - ItemBlockData + String Usage: - block data + WorldType id Notes: - Sets the required block. + Sets the WorldType id. setGeneratorOptions: Arguments: @@ -55,14 +63,6 @@ setGeneratorOptions: Notes: Sets the generator options string. -setItem: - Arguments: - ItemBlockData - Usage: - item data - Notes: - Sets the required item. - setCount: Arguments: int diff --git a/config/triumph/documentation/criteria/triggers/triumph/player_harvest_block.txt b/config/triumph/documentation/criteria/triggers/triumph/player_harvest_block.txt index 62b3221..77d54b5 100644 --- a/config/triumph/documentation/criteria/triggers/triumph/player_harvest_block.txt +++ b/config/triumph/documentation/criteria/triggers/triumph/player_harvest_block.txt @@ -11,17 +11,21 @@ setFeature: Notes: Sets the feature id. Used for things like structures. -setWorldType: +setItem: Arguments: - String + ItemBlockData Usage: - WorldType id + item data Notes: - Sets the WorldType id. + Sets the required item. -getLocationData: +setBlock: + Arguments: + ItemBlockData + Usage: + block data Notes: - Returns the LocationData object so functions can be called on it. + Sets the required block. setBiome: Arguments: @@ -31,6 +35,10 @@ setBiome: Notes: Sets the biome id. Can be an int or String. +getLocationData: + Notes: + Returns the LocationData object so functions can be called on it. + setDimID: Arguments: int @@ -39,13 +47,13 @@ setDimID: Notes: Sets the dimension id. -setBlock: +setWorldType: Arguments: - ItemBlockData + String Usage: - block data + WorldType id Notes: - Sets the required block. + Sets the WorldType id. setGeneratorOptions: Arguments: @@ -55,14 +63,6 @@ setGeneratorOptions: Notes: Sets the generator options string. -setItem: - Arguments: - ItemBlockData - Usage: - item data - Notes: - Sets the required item. - setCount: Arguments: int diff --git a/config/triumph/documentation/criteria/triggers/triumph/right_click_block.txt b/config/triumph/documentation/criteria/triggers/triumph/right_click_block.txt index b9b39e9..9f84465 100644 --- a/config/triumph/documentation/criteria/triggers/triumph/right_click_block.txt +++ b/config/triumph/documentation/criteria/triggers/triumph/right_click_block.txt @@ -11,33 +11,13 @@ setFeature: Notes: Sets the feature id. Used for things like structures. -setWorldType: - Arguments: - String - Usage: - WorldType id - Notes: - Sets the WorldType id. - -getLocationData: - Notes: - Returns the LocationData object so functions can be called on it. - -setBiome: - Arguments: - Non_Null_Biome_ID - Usage: - biome id - Notes: - Sets the biome id. Can be an int or String. - -setDimID: +setItem: Arguments: - int + ItemBlockData Usage: - dimension id + item data Notes: - Sets the dimension id. + Sets the required item. setBlock: Arguments: @@ -47,21 +27,21 @@ setBlock: Notes: Sets the required block. -setHitXMinMax: +setHitZMinMax: Arguments: float, float Usage: min, max Notes: - Sets the min and max X coordinates for the interaction location on the block. + Sets the min and max Z coordinates for the interaction location on the block. -setHitXMin: +setHitZMax: Arguments: float Usage: - min + max Notes: - Sets the min X coordinate for the interaction location on the block. + Sets the max Z coordinate for the interaction location on the block. setHitXMax: Arguments: @@ -71,6 +51,14 @@ setHitXMax: Notes: Sets the max X coordinate for the interaction location on the block. +setHitXMin: + Arguments: + float + Usage: + min + Notes: + Sets the min X coordinate for the interaction location on the block. + setHitYMinMax: Arguments: float, float @@ -79,6 +67,14 @@ setHitYMinMax: Notes: Sets the min and max Y coordinates for the interaction location on the block. +setHitXMinMax: + Arguments: + float, float + Usage: + min, max + Notes: + Sets the min and max X coordinates for the interaction location on the block. + setHitYMin: Arguments: float @@ -95,45 +91,49 @@ setHitYMax: Notes: Sets the max Y coordinate for the interaction location on the block. -setHitZMinMax: +setHitZMin: Arguments: - float, float + float Usage: - min, max + min Notes: - Sets the min and max Z coordinates for the interaction location on the block. + Sets the min Z coordinate for the interaction location on the block. -setHitZMax: +setBiome: Arguments: - float + Non_Null_Biome_ID Usage: - max + biome id Notes: - Sets the max Z coordinate for the interaction location on the block. + Sets the biome id. Can be an int or String. -setHitZMin: +getLocationData: + Notes: + Returns the LocationData object so functions can be called on it. + +setDimID: Arguments: - float + int Usage: - min + dimension id Notes: - Sets the min Z coordinate for the interaction location on the block. + Sets the dimension id. -setGeneratorOptions: +setWorldType: Arguments: String Usage: - generator string + WorldType id Notes: - Sets the generator options string. + Sets the WorldType id. -setItem: +setGeneratorOptions: Arguments: - ItemBlockData + String Usage: - item data + generator string Notes: - Sets the required item. + Sets the generator options string. setCount: Arguments: diff --git a/config/triumph/documentation/criteria/triggers/triumph/right_click_item.txt b/config/triumph/documentation/criteria/triggers/triumph/right_click_item.txt index 695ffca..6261081 100644 --- a/config/triumph/documentation/criteria/triggers/triumph/right_click_item.txt +++ b/config/triumph/documentation/criteria/triggers/triumph/right_click_item.txt @@ -11,17 +11,13 @@ setFeature: Notes: Sets the feature id. Used for things like structures. -setWorldType: +setItem: Arguments: - String + ItemBlockData Usage: - WorldType id - Notes: - Sets the WorldType id. - -getLocationData: + item data Notes: - Returns the LocationData object so functions can be called on it. + Sets the required item. setBiome: Arguments: @@ -31,6 +27,10 @@ setBiome: Notes: Sets the biome id. Can be an int or String. +getLocationData: + Notes: + Returns the LocationData object so functions can be called on it. + setDimID: Arguments: int @@ -39,21 +39,21 @@ setDimID: Notes: Sets the dimension id. -setGeneratorOptions: +setWorldType: Arguments: String Usage: - generator string + WorldType id Notes: - Sets the generator options string. + Sets the WorldType id. -setItem: +setGeneratorOptions: Arguments: - ItemBlockData + String Usage: - item data + generator string Notes: - Sets the required item. + Sets the generator options string. setCount: Arguments: diff --git a/config/triumph/documentation/dataObjects/DamageData.txt b/config/triumph/documentation/dataObjects/DamageData.txt index d547321..102c738 100644 --- a/config/triumph/documentation/dataObjects/DamageData.txt +++ b/config/triumph/documentation/dataObjects/DamageData.txt @@ -2,6 +2,14 @@ These are the functions which can be called on a DamageData object. +getEntityData: + Notes: + Returns the EntityData object so functions can be called on it. + +getDamageSourceData: + Notes: + Returns the DamageSourceData object so functions can be called on it. + setBlocked: Arguments: boolean @@ -10,17 +18,13 @@ setBlocked: Notes: Sets if the damage was blocked. -getEntityData: - Notes: - Returns the EntityData object so functions can be called on it. - -setDealtMin: +setDealtMinMax: Arguments: - float + float, float Usage: - min + min, max Notes: - Sets the min damage dealt. + Sets the min and max damage dealt. setTakenMax: Arguments: @@ -30,21 +34,13 @@ setTakenMax: Notes: Sets the max damage taken. -setTakenMin: - Arguments: - float - Usage: - min - Notes: - Sets the min damage taken. - -setDealtMinMax: +setTakenMinMax: Arguments: float, float Usage: min, max Notes: - Sets the min and max damage dealt. + Sets the min and max damage taken. setDealtMax: Arguments: @@ -54,15 +50,19 @@ setDealtMax: Notes: Sets the max damage dealt. -setTakenMinMax: +setDealtMin: Arguments: - float, float + float Usage: - min, max + min Notes: - Sets the min and max damage taken. + Sets the min damage dealt. -getDamageSourceData: +setTakenMin: + Arguments: + float + Usage: + min Notes: - Returns the DamageSourceData object so functions can be called on it. + Sets the min damage taken. diff --git a/config/triumph/documentation/dataObjects/DamageSourceData.txt b/config/triumph/documentation/dataObjects/DamageSourceData.txt index 306d6de..c68a056 100644 --- a/config/triumph/documentation/dataObjects/DamageSourceData.txt +++ b/config/triumph/documentation/dataObjects/DamageSourceData.txt @@ -2,67 +2,67 @@ These are the functions which can be called on a DamageSourceData object. -bypassesArmor: +isExplosion: Arguments: boolean Usage: true/false Notes: - Sets if the damage source bypasses armor. - -getSourceData: - Notes: - Returns the EntityData object for the source entity (This would be for the player/skeleton/etc.) so functions can be called on it. + Sets if the damage source is an explosion. -isFire: +isProjectile: Arguments: boolean Usage: true/false Notes: - Sets if the damage source is fire. + Sets if the damage source is a projectile. -bypassesMagic: +isMagic: Arguments: boolean Usage: true/false Notes: - Sets if the damage source bypasses magic. + Sets if the damage source is magic. -isMagic: +getImmediateSourceData: + Notes: + Returns the EntityData object for the immediate source entity (This would be for things like projectiles.) so functions can be called on it. + +bypassesInvulnerability: Arguments: boolean Usage: true/false Notes: - Sets if the damage source is magic. + Sets if the damage source bypasses invulerability. -isExplosion: +bypassesMagic: Arguments: boolean Usage: true/false Notes: - Sets if the damage source is an explosion. + Sets if the damage source bypasses magic. -isProjectile: +getSourceData: + Notes: + Returns the EntityData object for the source entity (This would be for the player/skeleton/etc.) so functions can be called on it. + +bypassesArmor: Arguments: boolean Usage: true/false Notes: - Sets if the damage source is a projectile. - -getImmediateSourceData: - Notes: - Returns the EntityData object for the immediate source entity (This would be for things like projectiles.) so functions can be called on it. + Sets if the damage source bypasses armor. -bypassesInvulnerability: +isFire: Arguments: boolean Usage: true/false Notes: - Sets if the damage source bypasses invulerability. + Sets if the damage source is fire. diff --git a/config/triumph/documentation/dataObjects/DimensionData.txt b/config/triumph/documentation/dataObjects/DimensionData.txt index 54d4ad2..11ea9da 100644 --- a/config/triumph/documentation/dataObjects/DimensionData.txt +++ b/config/triumph/documentation/dataObjects/DimensionData.txt @@ -2,14 +2,6 @@ These are the functions which can be called on an DimensionData object. -setDimensionType: - Arguments: - String - Usage: - dimension type - Notes: - Sets the dimension type. Vanilla options are "overworld", "the_nether", "the_end" - setDimensionID: Arguments: int @@ -18,3 +10,11 @@ setDimensionID: Notes: Sets the dimension id. +setDimensionType: + Arguments: + String + Usage: + dimension type + Notes: + Sets the dimension type. Vanilla options are "overworld", "the_nether", "the_end" + diff --git a/config/triumph/documentation/dataObjects/DistanceData.txt b/config/triumph/documentation/dataObjects/DistanceData.txt index 2258e55..b8a9139 100644 --- a/config/triumph/documentation/dataObjects/DistanceData.txt +++ b/config/triumph/documentation/dataObjects/DistanceData.txt @@ -2,53 +2,69 @@ These are the functions which can be called on a DistanceData object. -setXMinMax: +setHorizontalMinMax: Arguments: float, float Usage: min, max Notes: - Sets the min and max distances on the X axis. + Sets the min and max distances on the horizontal axis. -setYMinMax: +setAbsoluteMinMax: Arguments: float, float Usage: min, max Notes: - Sets the min and max distances on the Y axis. + Sets the min and max distances for all directions combined. -setZMin: +setXMin: Arguments: float Usage: min Notes: - Sets the min distance on the Z axis. + Sets the min distance on the X axis. -setAbsoluteMin: +setXMinMax: + Arguments: + float, float + Usage: + min, max + Notes: + Sets the min and max distances on the X axis. + +setXMax: Arguments: float Usage: - min + max Notes: - Sets the min distance for all directions combined. + Sets the max distance on the X axis. -setHorizontalMin: +setYMinMax: + Arguments: + float, float + Usage: + min, max + Notes: + Sets the min and max distances on the Y axis. + +setYMin: Arguments: float Usage: min Notes: - Sets the min distance on the horizontal axis. + Sets the min distance on the Y axis. -setXMin: +setYMax: Arguments: float Usage: - min + max Notes: - Sets the min distance on the X axis. + Sets the max distance on the Y axis. setZMinMax: Arguments: @@ -58,6 +74,14 @@ setZMinMax: Notes: Sets the min and max distances on the Z axis. +setZMin: + Arguments: + float + Usage: + min + Notes: + Sets the min distance on the Z axis. + setZMax: Arguments: float @@ -66,13 +90,13 @@ setZMax: Notes: Sets the max distance on the Z axis. -setXMax: +setHorizontalMin: Arguments: float Usage: - max + min Notes: - Sets the max distance on the X axis. + Sets the min distance on the horizontal axis. setHorizontalMax: Arguments: @@ -90,35 +114,11 @@ setAbsoluteMax: Notes: Sets the max distance for all directions combined. -setYMin: +setAbsoluteMin: Arguments: float Usage: min Notes: - Sets the min distance on the Y axis. - -setYMax: - Arguments: - float - Usage: - max - Notes: - Sets the max distance on the Y axis. - -setHorizontalMinMax: - Arguments: - float, float - Usage: - min, max - Notes: - Sets the min and max distances on the horizontal axis. - -setAbsoluteMinMax: - Arguments: - float, float - Usage: - min, max - Notes: - Sets the min and max distances for all directions combined. + Sets the min distance for all directions combined. diff --git a/config/triumph/documentation/dataObjects/EntityData.txt b/config/triumph/documentation/dataObjects/EntityData.txt index 58c49eb..cb0befa 100644 --- a/config/triumph/documentation/dataObjects/EntityData.txt +++ b/config/triumph/documentation/dataObjects/EntityData.txt @@ -22,41 +22,41 @@ getDistanceData: Notes: Returns the DistanceData object so functions can be called on it. -setWorldType: +setBiome: Arguments: - String + Non_Null_Biome_ID Usage: - WorldType id + biome id Notes: - Sets the WorldType id. + Sets the biome id. Can be an int or String. getLocationData: Notes: Returns the LocationData object so functions can be called on it. -setDimensionType: +setDimID: Arguments: - String + int Usage: - dimension type + dimension id Notes: - Sets the dimension type. Vanilla options are "overworld", "the_nether", "the_end" + Sets the dimension id. -setBiome: +setWorldType: Arguments: - Non_Null_Biome_ID + String Usage: - biome id + WorldType id Notes: - Sets the biome id. Can be an int or String. + Sets the WorldType id. -setDimID: +setDimensionType: Arguments: - int + String Usage: - dimension id + dimension type Notes: - Sets the dimension id. + Sets the dimension type. Vanilla options are "overworld", "the_nether", "the_end" setGeneratorOptions: Arguments: diff --git a/config/triumph/documentation/dataObjects/LocationData.txt b/config/triumph/documentation/dataObjects/LocationData.txt index 2758dde..52d3bbe 100644 --- a/config/triumph/documentation/dataObjects/LocationData.txt +++ b/config/triumph/documentation/dataObjects/LocationData.txt @@ -10,22 +10,6 @@ setFeature: Notes: Sets the feature id. Used for things like structures. -setWorldType: - Arguments: - String - Usage: - WorldType id - Notes: - Sets the WorldType id. - -setDimensionType: - Arguments: - String - Usage: - dimension type - Notes: - Sets the dimension type. Vanilla options are "overworld", "the_nether", "the_end" - setBiome: Arguments: Non_Null_Biome_ID @@ -42,6 +26,22 @@ setDimID: Notes: Sets the dimension id. +setWorldType: + Arguments: + String + Usage: + WorldType id + Notes: + Sets the WorldType id. + +setXMin: + Arguments: + float + Usage: + min + Notes: + Sets the min X coordinate. + setXMinMax: Arguments: float, float @@ -50,6 +50,14 @@ setXMinMax: Notes: Sets the min and max X coordinates. +setXMax: + Arguments: + float + Usage: + max + Notes: + Sets the max X coordinate. + setYMinMax: Arguments: float, float @@ -58,21 +66,21 @@ setYMinMax: Notes: Sets the min and max Y coordinates. -setZMin: +setYMin: Arguments: float Usage: min Notes: - Sets the min Z coordinate. + Sets the min Y coordinate. -setXMin: +setYMax: Arguments: float Usage: - min + max Notes: - Sets the min X coordinate. + Sets the max Y coordinate. setZMinMax: Arguments: @@ -82,37 +90,29 @@ setZMinMax: Notes: Sets the min and max Z coordinates. -setZMax: - Arguments: - float - Usage: - max - Notes: - Sets the max Z coordinate. - -setXMax: +setZMin: Arguments: float Usage: - max + min Notes: - Sets the max X coordinate. + Sets the min Z coordinate. -setYMin: +setDimensionType: Arguments: - float + String Usage: - min + dimension type Notes: - Sets the min Y coordinate. + Sets the dimension type. Vanilla options are "overworld", "the_nether", "the_end" -setYMax: +setZMax: Arguments: float Usage: max Notes: - Sets the max Y coordinate. + Sets the max Z coordinate. setGeneratorOptions: Arguments: diff --git a/config/triumph/documentation/dataObjects/PotionEffectData.txt b/config/triumph/documentation/dataObjects/PotionEffectData.txt index 2f26bad..31e4969 100644 --- a/config/triumph/documentation/dataObjects/PotionEffectData.txt +++ b/config/triumph/documentation/dataObjects/PotionEffectData.txt @@ -10,29 +10,37 @@ setVisible: Notes: Sets if the effect is visible. -setDurationMin: +setAmbient: Arguments: - float + boolean Usage: - min + true/false Notes: - Sets the min duration for the effect. + Sets if the effect is ambient. -setDurationMax: +setDurationMinMax: Arguments: - float + float, float Usage: - max + min, max Notes: - Sets the max duration for the effect. + Sets the min and max duration for the effect. -setAmplifierMax: +setAmplifierMinMax: + Arguments: + float, float + Usage: + min, max + Notes: + Sets the min and max amplifier for the effect. + +setDurationMax: Arguments: float Usage: max Notes: - Sets the max amplifier for the effect. + Sets the max duration for the effect. setAmplifierMin: Arguments: @@ -42,27 +50,19 @@ setAmplifierMin: Notes: Sets the min amplifier for the effect. -setAmbient: - Arguments: - boolean - Usage: - true/false - Notes: - Sets if the effect is ambient. - -setDurationMinMax: +setDurationMin: Arguments: - float, float + float Usage: - min, max + min Notes: - Sets the min and max duration for the effect. + Sets the min duration for the effect. -setAmplifierMinMax: +setAmplifierMax: Arguments: - float, float + float Usage: - min, max + max Notes: - Sets the min and max amplifier for the effect. + Sets the max amplifier for the effect. diff --git a/config/triumph/documentation/script/ScriptAdvancement.txt b/config/triumph/documentation/script/ScriptAdvancement.txt index 2412454..c67c687 100644 --- a/config/triumph/documentation/script/ScriptAdvancement.txt +++ b/config/triumph/documentation/script/ScriptAdvancement.txt @@ -2,14 +2,6 @@ These are the functions which can be called directly in a script advancement fil -setHidden: - Arguments: - boolean - Usage: - if the advancement should be hidden - Notes: - Sets if the advancement should be hidden until it is completed. Not compatible with other visibility options. - setDescription: Arguments: String @@ -18,13 +10,13 @@ setDescription: Notes: Sets the description for the advancement. This or setTranslatedDescription is required. -addCriteria: +setTitle: Arguments: - String, String + String Usage: - criteria name, criteria trigger type + title Notes: - Adds a criteria to the advancement with the specified type. Returns the criteria object for use as a variable. + Sets the title for the advancement. This or setTranslatedTitle is required. hideLines: Notes: @@ -34,13 +26,13 @@ drawDirectLines: Notes: Sets the advancement to draw direct lines to parents. -setTitle: +setHidden: Arguments: - String + boolean Usage: - title + if the advancement should be hidden Notes: - Sets the title for the advancement. This or setTranslatedTitle is required. + Sets if the advancement should be hidden until it is completed. Not compatible with other visibility options. setIcon: Arguments: @@ -50,13 +42,11 @@ setIcon: Notes: Sets the item icon for the advancement. This is required. -setPos: +addParent: Arguments: - int, int - Usage: - x pos, y pos + String Notes: - Sets the x and y coordinates of the advancement. + Adds a parent for the advancement. This only effects its position on the advancement page and connection lines. By default parents are not required for the advancement to be completed. At least one parent is required for non-root advancements. If the string ends with a / it will be treated as a folder, and all advancements within that folder will be added as parents. setBackground: Arguments: @@ -66,59 +56,41 @@ setBackground: Notes: Sets the background for the advancement page. This is required and only used by root advancements. Be aware the background is tiled. -addParent: - Arguments: - String - Notes: - Adds a parent for the advancement. This only effects its position on the advancement page and connection lines. By default parents are not required for the advancement to be completed. At least one parent is required for non-root advancements. If the string ends with a / it will be treated as a folder, and all advancements within that folder will be added as parents. - -setCompletedIconColor: +setCompletedLineColor: Arguments: int Usage: - color + color int Notes: - Sets the completed icon color for the advancement. + Sets the completed line color for the advancement. -setCompletedIconColor: +setCompletedLineColor: Arguments: int, int, int Usage: red, green, blue Notes: - Sets the completed icon color for the advancement. - -addRewardLootTable: - Arguments: - String - Usage: - loottable resource location - Notes: - Adds a loot table reward. + Sets the completed line color for the advancement. -setUncompletedLineColor: +setAnnounceToChat: Arguments: - int + boolean Usage: - color int + if advancement completion should be announced in chat Notes: - Sets the uncompleted line color for the advancement. + Sets if the advancement completion should be announced in chat. -setUncompletedLineColor: +setTranslatedDescription: Arguments: - int, int, int + String Usage: - red, green, blue + description translation path Notes: - Sets the uncompleted line color for the advancement. + Sets the description for the advancement. Used for localization. This or setDescription is required. -setTranslatedTitle: - Arguments: - String - Usage: - title translation path +setRequiresParents: Notes: - Sets the translated title for the advancement. Used for localization. This or setTitle is required. + This is a helper method which adds criteria either named 'completedParent'/'completedParent2'/etc or if the 'useNewParentCompletionCriteriaNames' option is set in the main config named the same as their title or resource location (Example: "Completed Some Advancement Title") with type "triumph:completed_advancement", and makes them a requirement. This effectively makes the advancement require its parents to be completed before it can be completed. addRewardSkillable: Arguments: @@ -128,85 +100,89 @@ addRewardSkillable: Notes: Adds a Skillable skill level up reward. -setAnnounceToChat: - Arguments: - boolean - Usage: - if advancement completion should be announced in chat +pageAlwaysVisible: Notes: - Sets if the advancement completion should be announced in chat. + Only usable in root advancements. Makes the page always visible. All visibility options (alwaysVisible, alwaysHidden, visibleIf, hiddenIf, visibleUnless and hiddenUnless) are run in order of addition to the script. The first one in the list to be completed is the one which enforces its visibility option. -setUncompletedIconColor: +setUncompletedLineColor: Arguments: int Usage: color int Notes: - Sets the uncompleted icon color for the advancement. + Sets the uncompleted line color for the advancement. -setUncompletedIconColor: +setUncompletedLineColor: Arguments: int, int, int Usage: red, green, blue Notes: - Sets the uncompleted icon color for the advancement. + Sets the uncompleted line color for the advancement. -setUncompletedTitleColor: +pageVisibleUnless: + Arguments: + String + Usage: + Advancement resource location or gamestage name + Notes: + Only usable in root advancements. Makes the page visible if the provided advancement/gamestage is not completed. All visibility options (alwaysVisible, alwaysHidden, visibleIf, hiddenIf, visibleUnless and hiddenUnless) are run in order of addition to the script. The first one in the list to be completed is the one which enforces its visibility option. + +setRewardExperience: Arguments: int Usage: - color int + experience Notes: - Sets the uncompleted title color for the advancement. + Sets the experience amount for the reward for completing the advancement. This is in xp, not in levels. -setUncompletedTitleColor: +setTranslatedTitle: Arguments: - int, int, int + String Usage: - red, green, blue + title translation path Notes: - Sets the uncompleted title color for the advancement. + Sets the translated title for the advancement. Used for localization. This or setTitle is required. -setCompletedLineColor: +setUncompletedIconColor: Arguments: int, int, int Usage: red, green, blue Notes: - Sets the completed line color for the advancement. + Sets the uncompleted icon color for the advancement. -setCompletedLineColor: +setUncompletedIconColor: Arguments: int Usage: color int Notes: - Sets the completed line color for the advancement. - -pageAlwaysVisible: - Notes: - Only usable in root advancements. Makes the page always visible. All visibility options (alwaysVisible, alwaysHidden, visibleIf, hiddenIf, visibleUnless and hiddenUnless) are run in order of addition to the script. The first one in the list to be completed is the one which enforces its visibility option. + Sets the uncompleted icon color for the advancement. -pageVisibleUnless: +addRewardLootTable: Arguments: String Usage: - Advancement resource location or gamestage name + loottable resource location Notes: - Only usable in root advancements. Makes the page visible if the provided advancement/gamestage is not completed. All visibility options (alwaysVisible, alwaysHidden, visibleIf, hiddenIf, visibleUnless and hiddenUnless) are run in order of addition to the script. The first one in the list to be completed is the one which enforces its visibility option. + Adds a loot table reward. -setRewardExperience: +setCompletedIconColor: Arguments: int Usage: - experience + color Notes: - Sets the experience amount for the reward for completing the advancement. This is in xp, not in levels. + Sets the completed icon color for the advancement. -setRequiresParents: +setCompletedIconColor: + Arguments: + int, int, int + Usage: + red, green, blue Notes: - This is a helper method which adds criteria either named 'completedParent'/'completedParent2'/etc or if the 'useNewParentCompletionCriteriaNames' option is set in the main config named the same as their title or resource location (Example: "Completed Some Advancement Title") with type "triumph:completed_advancement", and makes them a requirement. This effectively makes the advancement require its parents to be completed before it can be completed. + Sets the completed icon color for the advancement. addRewardFunction: Arguments: @@ -216,13 +192,21 @@ addRewardFunction: Notes: Adds the function with the provided name as a reward for completing the advancement. -setCompletedTitleColor: +setUncompletedTitleColor: + Arguments: + int, int, int + Usage: + red, green, blue + Notes: + Sets the uncompleted title color for the advancement. + +setUncompletedTitleColor: Arguments: int Usage: - color + color int Notes: - Sets the completed title color for the advancement. + Sets the uncompleted title color for the advancement. setCompletedTitleColor: Arguments: @@ -232,49 +216,45 @@ setCompletedTitleColor: Notes: Sets the completed title color for the advancement. -setTranslatedDescription: +setCompletedTitleColor: Arguments: - String + int Usage: - description translation path - Notes: - Sets the description for the advancement. Used for localization. This or setDescription is required. - -pageRequiresRoot: + color Notes: - Convenience method to add a 'triumph:completed_advancement' criteria for this root to every advancement on the page. Can only be used in a root advancement. + Sets the completed title color for the advancement. -setShowToast: +setPos: Arguments: - boolean + int, int Usage: - if the toast should be shown + x pos, y pos Notes: - Sets if a toast should be shown to the player when the advancement is completed. + Sets the x and y coordinates of the advancement. -hiddenUnless: +addCriteria: Arguments: - String + String, String Usage: - Advancement resource location or gamestage name + criteria name, criteria trigger type Notes: - Makes the advancement hidden if the provided advancement/gamestage is not completed. All visibility options (alwaysVisible, alwaysHidden, visibleIf, hiddenIf, visibleUnless and hiddenUnless) are run in order of addition to the script. The first one in the list to be completed is the one which enforces its visibility option. + Adds a criteria to the advancement with the specified type. Returns the criteria object for use as a variable. -pageVisibleIf: +setFrameType: Arguments: - String + boolean Usage: - Advancement resource location or gamestage name + frame type Notes: - Only usable in root advancements. Makes the page visible if the provided advancement/gamestage is complete. All visibility options (alwaysVisible, alwaysHidden, visibleIf, hiddenIf, visibleUnless and hiddenUnless) are run in order of addition to the script. The first one in the list to be completed is the one which enforces its visibility option. + Sets the frame type for the advancement. Options are "TASK", "CHALLENGE", "GOAL". Default is TASK. -setRepeatTime: +addRewardRecipe: Arguments: - long + String Usage: - number of seconds before the advancement can be repeated + recipe name Notes: - Sets the number of seconds real time between advancement completion and when it will be completable again. + Adds a recipe as a reward for completing the advancement. You can get the name of the recipe you want to grant from NEI or JEI. addRequirements: Arguments: @@ -284,95 +264,115 @@ addRequirements: Notes: This is the manual way of adding requirements. The array of criteria requirements will be added as a requirement array. This is done in basically the same way as vanilla Json advancements, where an array of requirements is a group of criteria that, if all are completed, the advancement is completed. Multiple arrays can be added by calling this function multiple times. -setFrameType: +addRewardItem: Arguments: - boolean + ItemBlockData Usage: - frame type + item data Notes: - Sets the frame type for the advancement. Options are "TASK", "CHALLENGE", "GOAL". Default is TASK. + Adds the item as a reward for completing this advancement. -alwaysVisible: +setShowToast: + Arguments: + boolean + Usage: + if the toast should be shown Notes: - Makes the advancement always visible. All visibility options (alwaysVisible, alwaysHidden, visibleIf, hiddenIf, visibleUnless and hiddenUnless) are run in order of addition to the script. The first one in the list to be completed is the one which enforces its visibility option. + Sets if a toast should be shown to the player when the advancement is completed. -alwaysHidden: +pageRequiresRoot: Notes: - Makes the advancement always hidden. All visibility options (alwaysVisible, alwaysHidden, visibleIf, hiddenIf, visibleUnless and hiddenUnless) are run in order of addition to the script. The first one in the list to be completed is the one which enforces its visibility option. + Convenience method to add a 'triumph:completed_advancement' criteria for this root to every advancement on the page. Can only be used in a root advancement. -pageAlwaysHidden: +setRequirements: + Arguments: + String, String array + Usage: + Requirements type, criteria exception array Notes: - Only usable in root advancements. Makes the page always hidden. All visibility options (alwaysVisible, alwaysHidden, visibleIf, hiddenIf, visibleUnless and hiddenUnless) are run in order of addition to the script. The first one in the list to be completed is the one which enforces its visibility option. + This is a helper method designed to make setting criteria requirements easier. If set to "all" this will make all criteria required for completion. If set to "any" this will make any criteria complete the advancement. If set to "any" the array of criteria exceptions is used to configure the requirements where all exceptions are required plus any other single criteria. -addRewardRecipe: +setRequirements: Arguments: String Usage: - recipe name + Requirements type. This type can be either "any" or "all" Notes: - Adds a recipe as a reward for completing the advancement. You can get the name of the recipe you want to grant from NEI or JEI. + This is a helper method designed to make setting criteria requirements easier. If set to "all" this will make all criteria required for completion. If set to "any" this will make any criteria complete the advancement. -addRewardItem: +visibleIf: Arguments: - ItemBlockData + String Usage: - item data + Advancement resource location or gamestage name Notes: - Adds the item as a reward for completing this advancement. + Makes the advancement visible if the provided advancement/gamestage is complete. All visibility options (alwaysVisible, alwaysHidden, visibleIf, hiddenIf, visibleUnless and hiddenUnless) are run in order of addition to the script. The first one in the list to be completed is the one which enforces its visibility option. -visibleUnless: +setRepeatTime: Arguments: - String + long Usage: - Advancement resource location or gamestage name + number of seconds before the advancement can be repeated Notes: - Makes the advancement visible if the provided advancement/gamestage is not completed. All visibility options (alwaysVisible, alwaysHidden, visibleIf, hiddenIf, visibleUnless and hiddenUnless) are run in order of addition to the script. The first one in the list to be completed is the one which enforces its visibility option. + Sets the number of seconds real time between advancement completion and when it will be completable again. -visibleIf: +pageHiddenIf: Arguments: String Usage: Advancement resource location or gamestage name Notes: - Makes the advancement visible if the provided advancement/gamestage is complete. All visibility options (alwaysVisible, alwaysHidden, visibleIf, hiddenIf, visibleUnless and hiddenUnless) are run in order of addition to the script. The first one in the list to be completed is the one which enforces its visibility option. + Only usable in root advancements. Makes the page hidden if the provided advancement/gamestage is complete. All visibility options (alwaysVisible, alwaysHidden, visibleIf, hiddenIf, visibleUnless and hiddenUnless) are run in order of addition to the script. The first one in the list to be completed is the one which enforces its visibility option. -pageHiddenUnless: +hiddenUnless: Arguments: String Usage: Advancement resource location or gamestage name Notes: - Only usable in root advancements. Makes the page hidden if the provided advancement/gamestage is not completed. All visibility options (alwaysVisible, alwaysHidden, visibleIf, hiddenIf, visibleUnless and hiddenUnless) are run in order of addition to the script. The first one in the list to be completed is the one which enforces its visibility option. + Makes the advancement hidden if the provided advancement/gamestage is not completed. All visibility options (alwaysVisible, alwaysHidden, visibleIf, hiddenIf, visibleUnless and hiddenUnless) are run in order of addition to the script. The first one in the list to be completed is the one which enforces its visibility option. -setRequirements: +alwaysHidden: + Notes: + Makes the advancement always hidden. All visibility options (alwaysVisible, alwaysHidden, visibleIf, hiddenIf, visibleUnless and hiddenUnless) are run in order of addition to the script. The first one in the list to be completed is the one which enforces its visibility option. + +alwaysVisible: + Notes: + Makes the advancement always visible. All visibility options (alwaysVisible, alwaysHidden, visibleIf, hiddenIf, visibleUnless and hiddenUnless) are run in order of addition to the script. The first one in the list to be completed is the one which enforces its visibility option. + +pageAlwaysHidden: + Notes: + Only usable in root advancements. Makes the page always hidden. All visibility options (alwaysVisible, alwaysHidden, visibleIf, hiddenIf, visibleUnless and hiddenUnless) are run in order of addition to the script. The first one in the list to be completed is the one which enforces its visibility option. + +visibleUnless: Arguments: - String, String array + String Usage: - Requirements type, criteria exception array + Advancement resource location or gamestage name Notes: - This is a helper method designed to make setting criteria requirements easier. If set to "all" this will make all criteria required for completion. If set to "any" this will make any criteria complete the advancement. If set to "any" the array of criteria exceptions is used to configure the requirements where all exceptions are required plus any other single criteria. + Makes the advancement visible if the provided advancement/gamestage is not completed. All visibility options (alwaysVisible, alwaysHidden, visibleIf, hiddenIf, visibleUnless and hiddenUnless) are run in order of addition to the script. The first one in the list to be completed is the one which enforces its visibility option. -setRequirements: +hiddenIf: Arguments: String Usage: - Requirements type. This type can be either "any" or "all" + Advancement resource location or gamestage name Notes: - This is a helper method designed to make setting criteria requirements easier. If set to "all" this will make all criteria required for completion. If set to "any" this will make any criteria complete the advancement. + Makes the advancement hidden if the provided advancement/gamestage is complete. All visibility options (alwaysVisible, alwaysHidden, visibleIf, hiddenIf, visibleUnless and hiddenUnless) are run in order of addition to the script. The first one in the list to be completed is the one which enforces its visibility option. -pageHiddenIf: +pageHiddenUnless: Arguments: String Usage: Advancement resource location or gamestage name Notes: - Only usable in root advancements. Makes the page hidden if the provided advancement/gamestage is complete. All visibility options (alwaysVisible, alwaysHidden, visibleIf, hiddenIf, visibleUnless and hiddenUnless) are run in order of addition to the script. The first one in the list to be completed is the one which enforces its visibility option. + Only usable in root advancements. Makes the page hidden if the provided advancement/gamestage is not completed. All visibility options (alwaysVisible, alwaysHidden, visibleIf, hiddenIf, visibleUnless and hiddenUnless) are run in order of addition to the script. The first one in the list to be completed is the one which enforces its visibility option. -hiddenIf: +pageVisibleIf: Arguments: String Usage: Advancement resource location or gamestage name Notes: - Makes the advancement hidden if the provided advancement/gamestage is complete. All visibility options (alwaysVisible, alwaysHidden, visibleIf, hiddenIf, visibleUnless and hiddenUnless) are run in order of addition to the script. The first one in the list to be completed is the one which enforces its visibility option. + Only usable in root advancements. Makes the page visible if the provided advancement/gamestage is complete. All visibility options (alwaysVisible, alwaysHidden, visibleIf, hiddenIf, visibleUnless and hiddenUnless) are run in order of addition to the script. The first one in the list to be completed is the one which enforces its visibility option. 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 deleted file mode 100644 index 4bd3997..0000000 --- a/config/triumph/example_script/botania_tweaks/example_flower_generated_mana.txt +++ /dev/null @@ -1,30 +0,0 @@ - -//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 deleted file mode 100644 index 9bf2e73..0000000 --- a/config/triumph/example_script/botania_tweaks/example_total_generated_mana.txt +++ /dev/null @@ -1,28 +0,0 @@ - -//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 deleted file mode 100644 index a0508d4..0000000 --- a/config/triumph/example_script/example_all_rewards.txt +++ /dev/null @@ -1,39 +0,0 @@ - -//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 deleted file mode 100644 index dc19257..0000000 --- a/config/triumph/example_script/example_better_advancement_colors.txt +++ /dev/null @@ -1,32 +0,0 @@ - -//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 deleted file mode 100644 index b89a232..0000000 --- a/config/triumph/example_script/example_break_block.txt +++ /dev/null @@ -1,24 +0,0 @@ - -//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 deleted file mode 100644 index d913b1b..0000000 --- a/config/triumph/example_script/example_bred_animals.txt +++ /dev/null @@ -1,30 +0,0 @@ - -//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 deleted file mode 100644 index edf87f2..0000000 --- a/config/triumph/example_script/example_brewed_potion.txt +++ /dev/null @@ -1,26 +0,0 @@ - -//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 deleted file mode 100644 index 5802f73..0000000 --- a/config/triumph/example_script/example_completed_advancement.txt +++ /dev/null @@ -1,31 +0,0 @@ - -//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(124,123) - -//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 deleted file mode 100644 index 5c27729..0000000 --- a/config/triumph/example_script/example_construct_beacon.txt +++ /dev/null @@ -1,26 +0,0 @@ - -//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 deleted file mode 100644 index b84530a..0000000 --- a/config/triumph/example_script/example_consume_item.txt +++ /dev/null @@ -1,24 +0,0 @@ - -//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 deleted file mode 100644 index 3a33a8a..0000000 --- a/config/triumph/example_script/example_count.txt +++ /dev/null @@ -1,26 +0,0 @@ - -//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 deleted file mode 100644 index 275a2f4..0000000 --- a/config/triumph/example_script/example_destroy_block.txt +++ /dev/null @@ -1,24 +0,0 @@ - -//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 deleted file mode 100644 index 6081ae3..0000000 --- a/config/triumph/example_script/example_enchanted_item.txt +++ /dev/null @@ -1,24 +0,0 @@ - -//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 deleted file mode 100644 index cf5b67c..0000000 --- a/config/triumph/example_script/example_enter_biome.txt +++ /dev/null @@ -1,24 +0,0 @@ - -//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 deleted file mode 100644 index 76c2e7d..0000000 --- a/config/triumph/example_script/example_enter_block.txt +++ /dev/null @@ -1,24 +0,0 @@ - -//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 deleted file mode 100644 index 11ac4d0..0000000 --- a/config/triumph/example_script/example_enter_dimension.txt +++ /dev/null @@ -1,26 +0,0 @@ - -//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 deleted file mode 100644 index 9d7b3de..0000000 --- a/config/triumph/example_script/example_harvest_block.txt +++ /dev/null @@ -1,24 +0,0 @@ - -//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 deleted file mode 100644 index 22ab940..0000000 --- a/config/triumph/example_script/example_hurt_entity.txt +++ /dev/null @@ -1,24 +0,0 @@ - -//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 deleted file mode 100644 index c883e38..0000000 --- a/config/triumph/example_script/example_impossible.txt +++ /dev/null @@ -1,22 +0,0 @@ - -//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(173,-11) - -//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 deleted file mode 100644 index db42313..0000000 --- a/config/triumph/example_script/example_inventory_changed.txt +++ /dev/null @@ -1,24 +0,0 @@ - -//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(179,23) - -//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 deleted file mode 100644 index 0c7bd70..0000000 --- a/config/triumph/example_script/example_item_crafted.txt +++ /dev/null @@ -1,26 +0,0 @@ - -//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 deleted file mode 100644 index 6cae1eb..0000000 --- a/config/triumph/example_script/example_killed_by_entity.txt +++ /dev/null @@ -1,24 +0,0 @@ - -//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 deleted file mode 100644 index 9a1e721..0000000 --- a/config/triumph/example_script/example_killed_entity.txt +++ /dev/null @@ -1,24 +0,0 @@ - -//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 deleted file mode 100644 index 12d5bba..0000000 --- a/config/triumph/example_script/example_left_click_block.txt +++ /dev/null @@ -1,24 +0,0 @@ - -//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 deleted file mode 100644 index 411aa1d..0000000 --- a/config/triumph/example_script/example_location_dimID.txt +++ /dev/null @@ -1,24 +0,0 @@ - -//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 deleted file mode 100644 index c5a67e8..0000000 --- a/config/triumph/example_script/example_location_worldtype.txt +++ /dev/null @@ -1,24 +0,0 @@ - -//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 deleted file mode 100644 index 135d12e..0000000 --- a/config/triumph/example_script/example_placed_block.txt +++ /dev/null @@ -1,24 +0,0 @@ - -//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 deleted file mode 100644 index c8ebaf6..0000000 --- a/config/triumph/example_script/example_recipe_unlocked.txt +++ /dev/null @@ -1,24 +0,0 @@ - -//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 deleted file mode 100644 index ca90e55..0000000 --- a/config/triumph/example_script/example_repeatable.txt +++ /dev/null @@ -1,27 +0,0 @@ - -//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 deleted file mode 100644 index 2dbf91e..0000000 --- a/config/triumph/example_script/example_right_click_block.txt +++ /dev/null @@ -1,24 +0,0 @@ - -//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_slept_in_bed.txt b/config/triumph/example_script/example_slept_in_bed.txt deleted file mode 100644 index 9682227..0000000 --- a/config/triumph/example_script/example_slept_in_bed.txt +++ /dev/null @@ -1,24 +0,0 @@ - -//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 deleted file mode 100644 index 00a9c1a..0000000 --- a/config/triumph/example_script/example_tame_animal.txt +++ /dev/null @@ -1,24 +0,0 @@ - -//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 deleted file mode 100644 index 31ae0f4..0000000 --- a/config/triumph/example_script/example_villager_trade.txt +++ /dev/null @@ -1,27 +0,0 @@ - -//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 deleted file mode 100644 index 2ac923a..0000000 --- a/config/triumph/example_script/immersiveengineering/example_multiblock_formed.txt +++ /dev/null @@ -1,27 +0,0 @@ - -//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 deleted file mode 100644 index f16c369..0000000 --- a/config/triumph/example_script/root.txt +++ /dev/null @@ -1,26 +0,0 @@ - -//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/script/triumph/vanilla/adventure/kill_all_mobs.txt b/config/triumph/script/triumph/vanilla/adventure/kill_all_mobs.txt index a1d4915..5039970 100644 --- a/config/triumph/script/triumph/vanilla/adventure/kill_all_mobs.txt +++ b/config/triumph/script/triumph/vanilla/adventure/kill_all_mobs.txt @@ -73,4 +73,3 @@ criteria.setEntityType("zombie") criteria = addCriteria("zombie_villager", "minecraft:player_killed_entity") criteria.setEntityType("zombie_villager") -setPos(123,54) \ No newline at end of file diff --git a/config/triumph/script/triumph/vanilla/adventure/root.txt b/config/triumph/script/triumph/vanilla/adventure/root.txt index 9117fc1..75528b3 100644 --- a/config/triumph/script/triumph/vanilla/adventure/root.txt +++ b/config/triumph/script/triumph/vanilla/adventure/root.txt @@ -14,5 +14,4 @@ setAnnounceToChat(false) addCriteria("killed_something", "minecraft:player_killed_entity") addCriteria("killed_by_something", "minecraft:entity_killed_player") -addRequirements(["killed_something", "killed_by_something"]) -setPos(-74,54) \ No newline at end of file +addRequirements(["killed_something", "killed_by_something"]) \ No newline at end of file diff --git a/config/triumph/script/triumph/vanilla/adventure/trade.txt b/config/triumph/script/triumph/vanilla/adventure/trade.txt index 3008afd..4c6561f 100644 --- a/config/triumph/script/triumph/vanilla/adventure/trade.txt +++ b/config/triumph/script/triumph/vanilla/adventure/trade.txt @@ -5,5 +5,4 @@ setTranslatedDescription("advancements.adventure.trade.description") addParent("triumph:vanilla/adventure/root") -addCriteria("traded", "minecraft:villager_trade") -setPos(-30,76) \ No newline at end of file +addCriteria("traded", "minecraft:villager_trade") \ No newline at end of file diff --git a/config/triumph/script/triumph/vanilla/end/levitate.txt b/config/triumph/script/triumph/vanilla/end/levitate.txt index 5a772ac..597637c 100644 --- a/config/triumph/script/triumph/vanilla/end/levitate.txt +++ b/config/triumph/script/triumph/vanilla/end/levitate.txt @@ -11,5 +11,4 @@ setRewardExperience(50) criteria = addCriteria("levitated", "minecraft:levitation") distance = criteria.getDistanceData() -distance.setYMin(50) -setPos(128,40) \ No newline at end of file +distance.setYMin(50) \ No newline at end of file diff --git a/config/triumph/script/triumph/vanilla/nether/all_potions.txt b/config/triumph/script/triumph/vanilla/nether/all_potions.txt index f2a6c24..e2c947e 100644 --- a/config/triumph/script/triumph/vanilla/nether/all_potions.txt +++ b/config/triumph/script/triumph/vanilla/nether/all_potions.txt @@ -19,5 +19,4 @@ criteria.addEffect("minecraft:water_breathing") criteria.addEffect("minecraft:invisibility") criteria.addEffect("minecraft:night_vision") criteria.addEffect("minecraft:weakness") -criteria.addEffect("minecraft:poison") -setPos(129,0) \ No newline at end of file +criteria.addEffect("minecraft:poison") \ No newline at end of file diff --git a/config/triumph/script/triumph/vanilla/story/mine_stone.txt b/config/triumph/script/triumph/vanilla/story/mine_stone.txt index 7237971..fbf7d98 100644 --- a/config/triumph/script/triumph/vanilla/story/mine_stone.txt +++ b/config/triumph/script/triumph/vanilla/story/mine_stone.txt @@ -5,5 +5,4 @@ setTranslatedDescription("advancements.story.mine_stone.description") addParent("triumph:vanilla/story/root") criteria = addCriteria("get_stone", "minecraft:inventory_changed") -criteria.addItem("minecraft:cobblestone") -setPos(-71,-69) \ No newline at end of file +criteria.addItem("minecraft:cobblestone") \ No newline at end of file diff --git a/config/triumph/script/triumph/vanilla/story/upgrade_tools.txt b/config/triumph/script/triumph/vanilla/story/upgrade_tools.txt index 97aed5a..8dc5805 100644 --- a/config/triumph/script/triumph/vanilla/story/upgrade_tools.txt +++ b/config/triumph/script/triumph/vanilla/story/upgrade_tools.txt @@ -5,5 +5,4 @@ setTranslatedDescription("advancements.story.upgrade_tools.description") addParent("triumph:vanilla/story/mine_stone") criteria = addCriteria("stone_pickaxe", "minecraft:inventory_changed") -criteria.addItem("minecraft:stone_pickaxe") -setPos(214,-39) \ No newline at end of file +criteria.addItem("minecraft:stone_pickaxe") \ No newline at end of file