Regenerate and update Triumph documentation and files.

master
YandolsZX 6 years ago
parent 99c73d5933
commit ee80834cbf
  1. 2
      config/triumph/Triumph.txt
  2. 60
      config/triumph/documentation/Triumph.txt
  3. 16
      config/triumph/documentation/criteria/triggers/botania_tweaks/flower_generated_mana.txt
  4. 12
      config/triumph/documentation/criteria/triggers/minecraft/bred_animals.txt
  5. 16
      config/triumph/documentation/criteria/triggers/minecraft/construct_beacon.txt
  6. 8
      config/triumph/documentation/criteria/triggers/minecraft/cured_zombie_villager.txt
  7. 16
      config/triumph/documentation/criteria/triggers/minecraft/enchanted_item.txt
  8. 8
      config/triumph/documentation/criteria/triggers/minecraft/entity_killed_player.txt
  9. 50
      config/triumph/documentation/criteria/triggers/minecraft/inventory_changed.txt
  10. 46
      config/triumph/documentation/criteria/triggers/minecraft/item_durability_changed.txt
  11. 16
      config/triumph/documentation/criteria/triggers/minecraft/levitation.txt
  12. 24
      config/triumph/documentation/criteria/triggers/minecraft/location.txt
  13. 88
      config/triumph/documentation/criteria/triggers/minecraft/nether_travel.txt
  14. 36
      config/triumph/documentation/criteria/triggers/minecraft/placed_block.txt
  15. 24
      config/triumph/documentation/criteria/triggers/minecraft/slept_in_bed.txt
  16. 96
      config/triumph/documentation/criteria/triggers/triumph/left_click_block.txt
  17. 36
      config/triumph/documentation/criteria/triggers/triumph/player_break_block.txt
  18. 36
      config/triumph/documentation/criteria/triggers/triumph/player_destroy_block.txt
  19. 36
      config/triumph/documentation/criteria/triggers/triumph/player_harvest_block.txt
  20. 96
      config/triumph/documentation/criteria/triggers/triumph/right_click_block.txt
  21. 30
      config/triumph/documentation/criteria/triggers/triumph/right_click_item.txt
  22. 48
      config/triumph/documentation/dataObjects/DamageData.txt
  23. 44
      config/triumph/documentation/dataObjects/DamageSourceData.txt
  24. 16
      config/triumph/documentation/dataObjects/DimensionData.txt
  25. 86
      config/triumph/documentation/dataObjects/DistanceData.txt
  26. 32
      config/triumph/documentation/dataObjects/EntityData.txt
  27. 76
      config/triumph/documentation/dataObjects/LocationData.txt
  28. 52
      config/triumph/documentation/dataObjects/PotionEffectData.txt
  29. 300
      config/triumph/documentation/script/ScriptAdvancement.txt
  30. 30
      config/triumph/example_script/botania_tweaks/example_flower_generated_mana.txt
  31. 28
      config/triumph/example_script/botania_tweaks/example_total_generated_mana.txt
  32. 39
      config/triumph/example_script/example_all_rewards.txt
  33. 32
      config/triumph/example_script/example_better_advancement_colors.txt
  34. 24
      config/triumph/example_script/example_break_block.txt
  35. 30
      config/triumph/example_script/example_bred_animals.txt
  36. 26
      config/triumph/example_script/example_brewed_potion.txt
  37. 31
      config/triumph/example_script/example_completed_advancement.txt
  38. 26
      config/triumph/example_script/example_construct_beacon.txt
  39. 24
      config/triumph/example_script/example_consume_item.txt
  40. 26
      config/triumph/example_script/example_count.txt
  41. 24
      config/triumph/example_script/example_destroy_block.txt
  42. 24
      config/triumph/example_script/example_enchanted_item.txt
  43. 24
      config/triumph/example_script/example_enter_biome.txt
  44. 24
      config/triumph/example_script/example_enter_block.txt
  45. 26
      config/triumph/example_script/example_enter_dimension.txt
  46. 24
      config/triumph/example_script/example_harvest_block.txt
  47. 24
      config/triumph/example_script/example_hurt_entity.txt
  48. 22
      config/triumph/example_script/example_impossible.txt
  49. 24
      config/triumph/example_script/example_inventory_changed.txt
  50. 26
      config/triumph/example_script/example_item_crafted.txt
  51. 24
      config/triumph/example_script/example_killed_by_entity.txt
  52. 24
      config/triumph/example_script/example_killed_entity.txt
  53. 24
      config/triumph/example_script/example_left_click_block.txt
  54. 24
      config/triumph/example_script/example_location_dimID.txt
  55. 24
      config/triumph/example_script/example_location_worldtype.txt
  56. 24
      config/triumph/example_script/example_placed_block.txt
  57. 24
      config/triumph/example_script/example_recipe_unlocked.txt
  58. 27
      config/triumph/example_script/example_repeatable.txt
  59. 24
      config/triumph/example_script/example_right_click_block.txt
  60. 24
      config/triumph/example_script/example_slept_in_bed.txt
  61. 24
      config/triumph/example_script/example_tame_animal.txt
  62. 27
      config/triumph/example_script/example_villager_trade.txt
  63. 27
      config/triumph/example_script/immersiveengineering/example_multiblock_formed.txt
  64. 26
      config/triumph/example_script/root.txt
  65. 1
      config/triumph/script/triumph/vanilla/adventure/kill_all_mobs.txt
  66. 3
      config/triumph/script/triumph/vanilla/adventure/root.txt
  67. 3
      config/triumph/script/triumph/vanilla/adventure/trade.txt
  68. 3
      config/triumph/script/triumph/vanilla/end/levitate.txt
  69. 3
      config/triumph/script/triumph/vanilla/nether/all_potions.txt
  70. 3
      config/triumph/script/triumph/vanilla/story/mine_stone.txt
  71. 3
      config/triumph/script/triumph/vanilla/story/upgrade_tools.txt

@ -4,6 +4,6 @@ removeVanillaAdvancements(true)
removeModAdvancements(false)
keepAdvancements([""])
removeAdvancements(["bonsaitrees", "bettermuffling"])
allowDragging(true)
allowDragging(false)
useNewParentCompletionCriteriaNames()
pageOrder([""])

@ -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.

@ -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

@ -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:

@ -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

@ -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

@ -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

@ -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

@ -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:

@ -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:

@ -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:

@ -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

@ -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:

@ -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

@ -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

@ -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:

@ -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

@ -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

@ -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

@ -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:

@ -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:

@ -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.

@ -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.

@ -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"

@ -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.

@ -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:

@ -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:

@ -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.

@ -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.

@ -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(<botania:specialflower, nbt:{type:"endoflame"}>)
//Set the title String
setTitle("Flower Generation")
//Set the description String
setDescription("Generate 250k mana with endoflames.")
//Add a parent advancement. The syntax is "modid:folder/path/to/the/advancement/then/filename"
addParent("triumph:example/root")
//Set the position
setPos(103,113)
//Hide the connection lines, so I can have a pretty shape
hideLines()
//Adds criteria named "generated" with the trigger type "botania_tweaks:flower_generated_mana". This function returns the criteria as an object
criteria = addCriteria("generated", "botania_tweaks:flower_generated_mana")
//Sets the flower the mana must be generated from.
criteria.setFlower("endoflame")
//Sets the required mana to be generated by the flower.
criteria.setRequiredMana(250000)

@ -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(<botania:pool>)
//Set the title String
setTitle("Mana Generation")
//Set the description String
setDescription("Generate 500k mana.")
//Add a parent advancement. The syntax is "modid:folder/path/to/the/advancement/then/filename"
addParent("triumph:example/root")
//Set the position
setPos(126,113)
//Hide the connection lines, so I can have a pretty shape
hideLines()
//Adds criteria named "generated" with the trigger type "botania_tweaks:total_generated_mana". This function returns the criteria as an object
criteria = addCriteria("generated", "botania_tweaks:total_generated_mana")
//Sets the required mana to be generated.
criteria.setRequiredMana(500000)

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

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

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

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

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

@ -1,31 +0,0 @@
//Set icon item
setIcon(<minecraft:netherrack>)
//Set title String
setTitle("Caveman smash red rock!")
//Set description String
setDescription("Break a netherrack block")
//Add a parent advancement. The syntax is "modid:folder/path/to/the/advancement/then/filename"
addParent("triumph:example/example_enter_dimension")
//Set the position
setPos(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(<minecraft:netherrack>)
//Sets the parent advancements to be required. This is just a helper method, which adds criterion named "completedParent"/"completedParent2"/etc with the trigger type "triumph:completed_advancement" and sets the parent advancement as the requirement. The long form version of this is written in the two commented lines below.
setRequiresParents()
//criteria = addCriteria("completedParent", "triumph:completed_advancement")
//criteria.setAdvancement("triumph:example/example_enter_dimension")
//By not setting anything about requirements here, all criteria are automatically required

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

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

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

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

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

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

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

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

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

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

@ -1,22 +0,0 @@
//Set icon item
setIcon(<minecraft:bedrock>)
//Set title String
setTitle("Impossible!")
//Set description String
setDescription("This cannot be completed")
//Add a parent advancement. The syntax is "modid:folder/path/to/the/advancement/then/filename"
addParent("triumph:example/root")
//Set the position
setPos(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")

@ -1,24 +0,0 @@
//Set icon item
setIcon(<minecraft:stick, nbt:{ench:[{lvl:1s,id:51s}],display:{Name:"The Stick of Truth"}}>)
//Set title String
setTitle("The Stick of Truth")
//Set description String
setDescription("Acquire the The Stick of Truth")
//Add a parent advancement. The syntax is "modid:folder/path/to/the/advancement/then/filename"
addParent("triumph:example/root")
//Set the position
setPos(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(<minecraft:stick, nbt:{ench:[{lvl:1s,id:51s}],display:{Name:"The Stick of Truth"}}>)

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

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

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

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

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

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

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

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

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

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

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

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

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

@ -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(<immersiveengineering:metal_multiblock, meta:1>)
//Set the title String
setTitle("Multiblock")
//Set the description String
setDescription("Form a crusher multiblock")
//Add a parent advancement. The syntax is "modid:folder/path/to/the/advancement/then/filename"
addParent("triumph:example/root")
//Set the position
setPos(149,113)
//Hide the connection lines, so I can have a pretty shape
hideLines()
//Adds criteria named "formed" with the trigger type "immersiveengineering:multiblock_formed". This function returns the criteria as an object
criteria = addCriteria("formed", "immersiveengineering:multiblock_formed")
//Sets the required multiblock for the criteria. This is the multiblock that needs to be formed.
criteria.setMultiblock("IE:Crusher")

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

@ -73,4 +73,3 @@ criteria.setEntityType("zombie")
criteria = addCriteria("zombie_villager", "minecraft:player_killed_entity")
criteria.setEntityType("zombie_villager")
setPos(123,54)

@ -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)
addRequirements(["killed_something", "killed_by_something"])

@ -5,5 +5,4 @@ setTranslatedDescription("advancements.adventure.trade.description")
addParent("triumph:vanilla/adventure/root")
addCriteria("traded", "minecraft:villager_trade")
setPos(-30,76)
addCriteria("traded", "minecraft:villager_trade")

@ -11,5 +11,4 @@ setRewardExperience(50)
criteria = addCriteria("levitated", "minecraft:levitation")
distance = criteria.getDistanceData()
distance.setYMin(50)
setPos(128,40)
distance.setYMin(50)

@ -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)
criteria.addEffect("minecraft:poison")

@ -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)
criteria.addItem("minecraft:cobblestone")

@ -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)
criteria.addItem("minecraft:stone_pickaxe")
Loading…
Cancel
Save