Advancement/JSON format - Minecraft Wiki - Fandom

文章推薦指數: 80 %
投票人數:10人

Custom advancements in data packs of a Minecraft world store the advancement data for that world as separate JSON files. All advancement JSON files are ... MinecraftWiki Explore MainPage AllPages InteractiveMaps MinecraftWiki Mainpage Communityportal Projects Wikirules Styleguide Recentchanges Randompage Sandbox Adminnoticeboard Directorspage WikiDiscord Games Minecraft MinecraftEarth MinecraftDungeons Usefulpages Trading Brewing Enchanting Mobs Blocks Items Crafting Smelting Tutorials Resourcepacks Redstonecircuits Minecraftlinks Website MinecraftDiscord Support Bugtracker Feedback Twitter Facebook YouTube MinecraftTwitch Gamepedia Gamepediasupport Reportabadad HelpWiki Contactus FANDOM Games Anime Movies TV Video Wikis ExploreWikis CommunityCentral StartaWiki Register Don'thaveanaccount? SignIn Advertisement in: JavaEdition English Deutsch Français Português 中文 Advancement/JSONformat :Auniquenamegiventothecriterion.  trigger*:Thetriggerforthisadvancement,specifieswhenthisadvancementshouldhaveitsconditionscheckedandbecompleted.  conditions:Objectcontainingconditionsthatneedtobemetwhenthetriggergetsactivated.Thecriterionismarkedcompletedwhenthetriggeractivatesandallconditionspassed. Contentsdependonselected trigger,seebelowfordetails.  requirements:Defineswhichcriteriaabovemustbecompletedtogranttheadvancement.Containssublists,whichinturncontainnamesofcriteriafromthisadvancement(allthes).Optional,defaultstorequiringallcriteriacompleted. Sublistwithin requirements,containsstringsofs.Theadvancementisgrantedwhenallsublistshaveatleastonecriterionwithinthemcompleted.  rewards:Anobjectrepresentingtherewardsprovidedwhenthisadvancementisobtained.  recipes:Tounlockrecipes. AnamespacedIDforarecipe.  loot:Togiveitemsfromloottablestotheplayer. AnamespacedIDforaloottable.  experience:Togiveanamountofexperience.  function:Torunafunction.Functiontagsarenotallowed. Display[] WithintheroottagofanadvancementJSONobject,the displayobjectandthe parentstring,bothoptional,arerelatedtothedisplayoftheadvancement. Ifthe displaytagispresent,itmusthavethe title, descriptionand iconfieldspresentinordertobeconsideredasvalidadvancementdisplaydata. The parentfield,albeitnotdirectlyassociatedwiththedisplaydataofanadvancement,affectsonlythedisplaydataeffectively.Whenanadvancementdoesnothaveadisplaydataandnoneofitschildrenhasadisplaydata,theparentoftheadvancementonlyaffects/advancement...through|from|untilusage. Advancementtabs[] Creatingarootadvancement(no parent)withvalid displaydataautomaticallycreatesatabintheadvancementmenu.Whenloaded,therootadvancementshowsasatabinthemenuwhenanyadvancementinitsadvancementtreeisgrantedtotheplayerviewingthemenu. Themissingtexturedisplaysonthetab'sbackgroundiftherootadvancementdoesnothaveabackground. Ifarootadvancementsuccessfullycreatesatab,childadvancementsoftherootwillshowinsideofthattab,providedtheyalsohavevalid displaydata. Positioning[] Thegameautomaticallyarrangesadvancements,positionthemwhenitloadsadvancementsfromdatapacks,andsendsthearrangementtotheclient.Eachadvancementhasanarrowfromitsclosestvisibleancestor(i.e.ifitsparentdoesnothaveadisplay,ithasalinkfromitsgrandparent,andsoon).Therootadvancementappearsontheleftmostcolumnwhileeacharrowpointstoanadvancementinthenextcolumn.Thearrangementofadvancementswithinacolumnisbasedonfilename. Lackofdisplay[] Someadvancements,suchasthevanillarecipeunlockingadvancements,maylackadisplaysothattheycanutilizetriggersandrewardsinsteadofexcessivecommandsorfunctionsformorefunctionalitiesandamoreflexiblecontrol.Theseadvancementsshouldnothavethe displayfielddefinedinordertohidefromusersandenjoyabetterloadingperformance. Listoftriggers[] AllJSONfieldsintheconditionsareoptionalunlessstatedasrequired. minecraft:allay_drop_item_on_block‌[upcoming:JE1.19][] Triggerswhenanallaydropsanitemonablock.Availableconditions:  conditions:  location:Thelocationatthecenteroftheblocktheitemwasdroppedon. Tagscommontoalllocations  item:Theitemdroppedontheblock. Tagscommontoallitems  player:Theplayerthatwouldgettheadvancement.Mayalsobealistofpredicatesthatmustpassinorderforthecriteriontobegranted. Allpossibleconditionsforentities Anexample { "criteria":{ "example":{ "trigger":"minecraft:allay_drop_item_on_block", "conditions":{ "location":{ "biome":"minecraft:meadow", "block":{ "blocks":[ "minecraft:note_block" ] } }, "item":{ "items":[ "minecraft:cookie" ] } } } } } minecraft:avoid_vibration‌[upcoming:JE1.19][] Triggerswhenavibrationeventisignoredbecausethesourceplayeriscrouching.Availableconditions:  conditions:  player:Theplayerthatwouldgettheadvancement.Mayalsobealistofpredicatesthatmustpassinorderforthecriteriontobegranted. Allpossibleconditionsforentities Anexample { "criteria":{ "example":{ "trigger":"minecraft:avoid_vibration", "conditions":{ "player":{ "location":{ "biome":"minecraft:deep_dark" } } } } } } minecraft:bee_nest_destroyed[] Triggerswhentheplayerbreaksabeenestorbeehive.Availableconditions:  conditions:  block:Checkstheblockthatwasdestroyed.AcceptsblockIDs.  item:Theitemusedtobreaktheblock. Tagscommontoallitems  num_bees_inside:Thenumberofbeesthatwereinsidethebeenest/beehivebeforeitwasbroken.  player:Checkspropertiesoftheplayerthatactivatedthetrigger.Eitheranentitypredicatewiththecontentsshownbelow,oranarraycontainingpredicateconditions. Allpossibleconditionsforentities Anexample { "criteria":{ "example":{ "trigger":"minecraft:bee_nest_destroyed", "conditions":{ "block":"minecraft:beehive", "item":{ "items":[ "minecraft:wooden_axe" ] }, "num_bees_inside":3 } } } } minecraft:bred_animals[] Triggersaftertheplayerbreeds2animals.Availableconditions:  conditions:  child:Thechildthatresultsfromthebreeding.Mayalsobealistofpredicatesthatmustpassinorderforthecriteriontobegranted. Allpossibleconditionsforentities  parent:Theparent.Mayalsobealistofpredicatesthatmustpassinorderforthecriteriontobegranted. Allpossibleconditionsforentities  partner:Thepartner.(Theentitytheparentwasbredwith)Mayalsobealistofpredicatesthatmustpassinorderforthecriteriontobegranted. Allpossibleconditionsforentities  player:Theplayerthatwouldgettheadvancement.Mayalsobealistofpredicatesthatmustpassinorderforthecriteriontobegranted. Allpossibleconditionsforentities Anexample { "criteria":{ "example":{ "trigger":"minecraft:bred_animals", "conditions":{ "child":{ "type":"minecraft:mule" }, "parent":{ "location":{ "biome":"minecraft:beach" } }, "partner":{ "effects":{ "minecraft:speed":{ "amplifier":{ "min":2 } } } } } } } } minecraft:brewed_potion[] Triggersaftertheplayertakesanyitemoutofabrewingstand.Availableconditions:  conditions:  potion:AbrewedpotionID.  player:Theplayerthatwouldgettheadvancement.Mayalsobealistofpredicatesthatmustpassinorderforthecriteriontobegranted. Allpossibleconditionsforentities Anexample { "criteria":{ "example":{ "trigger":"minecraft:brewed_potion", "conditions":{ "potion":"minecraft:strong_swiftness" } } } } minecraft:changed_dimension[] Triggersaftertheplayertravelsbetweentwodimensions.Availableconditions:  conditions:  from:Thedimensiontheentitytraveledfrom.Thistagisaresourcelocationforadimension(onlytheseinvanilla;morecanbeaddedwithdatapacks).  to:Thedimensiontheentitytraveledto.Sameacceptedvaluesasabove.  player:Theplayerthatwouldgettheadvancement.Mayalsobealistofpredicatesthatmustpassinorderforthecriteriontobegranted. Allpossibleconditionsforentities Anexample { "criteria":{ "example":{ "trigger":"minecraft:changed_dimension", "conditions":{ "from":"minecraft:the_end", "to":"minecraft:overworld" } } } } minecraft:channeled_lightning[] TriggersaftertheplayersuccessfullyusestheChannelingenchantmentonanentityoralightningrod.Availableconditions:  conditions:  victims:ThevictimshitbythelightningsummonedbytheChannelingenchantment.Allentitiesinthislistmustbehit.Eachentrymayalsobealistofpredicatesthatmustpassinorderforthecriteriontobegranted.Thechecksareappliedtothevictimhitbytheenchantedtrident. :Avictim. Allpossibleconditionsforentities  player:Theplayerthatwouldgettheadvancement.Mayalsobealistofpredicatesthatmustpassinorderforthecriteriontobegranted. Allpossibleconditionsforentities Anexample { "criteria":{ "example":{ "trigger":"minecraft:channeled_lightning", "conditions":{ "victims":[ { "type":"minecraft:skeleton_horse", "nbt":"{SkeletonTrap:true}" } ] } } } } minecraft:construct_beacon[] Triggersaftertheplayerchangesthestructureofabeacon.(Whenthebeaconupdatesitself).Availableconditions:  conditions:  level:Thetieroftheupdatedbeaconstructure.  level:  max:Themaximumvalue.  min:Theminimumvalue.  player:Theplayerthatwouldgettheadvancement.Mayalsobealistofpredicatesthatmustpassinorderforthecriteriontobegranted. Allpossibleconditionsforentities Anexample { "criteria":{ "example":{ "trigger":"minecraft:construct_beacon", "conditions":{ "level":{ "min":3 } } } } } minecraft:consume_item[] Triggerswhentheplayerconsumesanitem.Availableconditions:  conditions:  item:Theitemthatwasconsumed Tagscommontoallitems  player:Theplayerthatwouldgettheadvancement.Mayalsobealistofpredicatesthatmustpassinorderforthecriteriontobegranted. Allpossibleconditionsforentities Anexample { "criteria":{ "example":{ "trigger":"minecraft:consume_item", "conditions":{ "item":{ "items":[ "minecraft:enchanted_golden_apple" ], "nbt":"{display:{Name:\"Example\"}}" } } } } } minecraft:cured_zombie_villager[] Triggerswhentheplayercuresazombievillager.Availableconditions:  conditions:  villager:Thevillagerthatistheresultoftheconversion.The'type'tagisredundantsinceitwillalwaysbe"villager".Mayalsobealistofpredicatesthatmustpassinorderforthecriteriontobegranted. Allpossibleconditionsforentities  zombie:Thezombievillagerrightbeforetheconversioniscomplete(notwhenitisinitiated).The'type'tagisredundantsinceitwillalwaysbe"zombie_villager".Mayalsobealistofpredicatesthatmustpassinorderforthecriteriontobegranted. Allpossibleconditionsforentities  player:Theplayerthatwouldgettheadvancement.Mayalsobealistofpredicatesthatmustpassinorderforthecriteriontobegranted. Allpossibleconditionsforentities Anexample { "criteria":{ "example":{ "trigger":"minecraft:cured_zombie_villager", "conditions":{ "villager":{ "location":{ "biome":"minecraft:plains" } }, "zombie":{ "distance":{ "horizontal":{ "max":10 } } } } } } } minecraft:effects_changed[] Triggersaftertheplayergetsastatuseffectappliedortakenfromthem.Availableconditions:  conditions:  effects:Alistofstatuseffectstheplayerhas.  :Astatuseffectwiththekeynamebeingthestatuseffectname.  ambient:Whethertheeffectisfromabeacon.  amplifier:Theeffectamplifier.  amplifier:  max:Themaximumvalue.  min:Theminimumvalue.  duration:Theeffectdurationinticks.  duration:  max:Themaximumvalue.  min:Theminimumvalue.  visible:Whethertheeffecthasvisibleparticles.  source:Theentitythatwasthesourceofthestatuseffect.Emptywhenthereisnoentityorwhentheeffectwasself-appliedorremoved.Mayalsobealistofpredicatesthatmustpassinorderforthecriteriontobegranted. Allpossibleconditionsforentities  player:Theplayerthatwouldgettheadvancement.Mayalsobealistofpredicatesthatmustpassinorderforthecriteriontobegranted. Allpossibleconditionsforentities Anexample { "criteria":{ "example":{ "trigger":"minecraft:effects_changed", "conditions":{ "effects":{ "minecraft:weakness":{}, "minecraft:slowness":{ "amplifier":2, "duration":{ "min":100, "max":500 } } } } } } } minecraft:enchanted_item[] Triggersaftertheplayerenchantsanitemthroughanenchantingtable(doesnotgettriggeredthroughananvil,orthroughcommands).Availableconditions:  conditions:  item:Theitemafterithasbeenenchanted. Tagscommontoallitems  levels:Thelevelsspentbytheplayerontheenchantment.  levels:  max:Themaximumvalue.  min:Theminimumvalue.  player:Theplayerthatwouldgettheadvancement.Mayalsobealistofpredicatesthatmustpassinorderforthecriteriontobegranted. Allpossibleconditionsforentities Anexample { "criteria":{ "example":{ "trigger":"minecraft:enchanted_item", "conditions":{ "item":{ "items":[ "minecraft:wooden_sword" ], "enchantments":[ { "enchantment":"minecraft:sharpness", "levels":{ "min":2 } } ] }, "levels":{ "min":3 } } } } } minecraft:enter_block[] Everytick,triggersonceforeachblocktheplayer'shitboxisinside(upto12blocks,themaximumnumberofblockstheplayercanstandin).Availableconditions:  conditions:  block:Theblockthattheplayerisstandingin.AcceptsblockIDs.  state:Theblockstatesoftheblock.  :Asingleblockstate,withthekeynamebeingthestatenameandthevaluebeingtherequiredvalueofthatstate.  player:Theplayerthatwouldgettheadvancement.Mayalsobealistofpredicatesthatmustpassinorderforthecriteriontobegranted. Allpossibleconditionsforentities Anexample { "criteria":{ "example":{ "trigger":"minecraft:enter_block", "conditions":{ "block":"minecraft:rose_bush", "state":{ "half":"lower" } } } } } minecraft:entity_hurt_player[] Triggersafteraplayergetshurt,evenwithoutasourceentity.Availableconditions:  conditions:  damage:Checksthedamagedonetotheplayer.Missingcorrespondinglistofpredicates. Damagetags  player:Theplayerthatwouldgettheadvancement.Mayalsobealistofpredicatesthatmustpassinorderforthecriteriontobegranted. Allpossibleconditionsforentities Anexample { "criteria":{ "example":{ "trigger":"minecraft:entity_hurt_player", "conditions":{ "damage":{ "type":{ "source_entity":{ "type":"minecraft:skeleton" }, "direct_entity":{ "type":"minecraft:arrow" } }, "taken":{ "min":4.0 } } } } } } minecraft:entity_killed_player[] Triggersafteralivingentitykillsaplayer.Availableconditions:  conditions:  entity:Checkstheentitythatwasthesourceofthedamagethatkilledtheplayer(forexample:Theskeletonthatshotthearrow).Mayalsobealistofpredicatesthatmustpassinorderforthecriteriontobegranted. Allpossibleconditionsforentities  killing_blow:Checksthetypeofdamagethatkilledtheplayer. Tagscommontoalldamagetypes  player:Theplayerthatwouldgettheadvancement.Mayalsobealistofpredicatesthatmustpassinorderforthecriteriontobegranted. Allpossibleconditionsforentities Anexample { "criteria":{ "example":{ "trigger":"minecraft:entity_killed_player", "conditions":{ "entity":{ "type":"minecraft:skeleton" }, "killing_blow":{ "is_projectile":true } } } } } minecraft:fall_from_height[] Triggerswhenaplayerlandsafterfalling.Availableconditions:  conditions:  player:Theplayerthatwouldgettheadvancement.Mayalsobealistofpredicatesthatmustpassinorderforthecriteriontobegranted. Allpossibleconditionsforentities  start_position:Alocationpredicateforthelastpositionbeforethefallingstarted. Tagscommontoalllocations  distance:Thedistancebetweenthestartpositionandtheplayer'sposition. Distancepredicatetags Anexample { "criteria":{ "example":{ "trigger":"minecraft:fall_from_height", "conditions":{ "start_position":{ "position":{ "y":{ "min":-13, "max":256 } } }, "distance":{ "y":{ "min":50, "max":320 } } } } } } minecraft:filled_bucket[] Triggersaftertheplayerfillsabucket.Availableconditions:  conditions:  item:Theitemresultingfromfillingthebucket. Tagscommontoallitems  player:Theplayerthatwouldgettheadvancement.Mayalsobealistofpredicatesthatmustpassinorderforthecriteriontobegranted. Allpossibleconditionsforentities Anexample { "criteria":{ "example":{ "trigger":"minecraft:filled_bucket", "conditions":{ "item":{ "items":[ "minecraft:lava_bucket" ] } } } } } minecraft:fishing_rod_hooked[] Triggersaftertheplayersuccessfullycatchesanitemwithafishingrodorpullsanentitywithafishingrod.Availableconditions:  conditions:  entity:Theentitythatwaspulled.Mayalsobealistofpredicatesthatmustpassinorderforthecriteriontobegranted. Allpossibleconditionsforentities  item:Theitemthatwascaught. Tagscommontoallitems  rod:Thefishingrodused. Tagscommontoallitems  player:Theplayerthatwouldgettheadvancement.Mayalsobealistofpredicatesthatmustpassinorderforthecriteriontobegranted. Allpossibleconditionsforentities Anexample { "criteria":{ "example":{ "trigger":"minecraft:fishing_rod_hooked", "conditions":{ "item":{ "items":[ "minecraft:bamboo" ] } } } } } minecraft:hero_of_the_village[] Triggerswhenaraidendsinvictoryandtheplayerhasattackedatleastoneraiderfromthatraid.Availableconditions:  conditions:  location‌[untilJE1.19]:Thelocationoftheplayer. Tagscommontoalllocations  player:Theplayerthatwouldgettheadvancement.Mayalsobealistofpredicatesthatmustpassinorderforthecriteriontobegranted. Allpossibleconditionsforentities Anexample { "criteria":{ "example":{ "trigger":"minecraft:hero_of_the_village", "conditions":{ "location":{ "biome":"minecraft:plains", "dimension":"minecraft:overworld", "position":{ "x":0, "y":60, "z":{ "min":-10, "max":10 } } } } } } } minecraft:impossible[] Nevertriggers. Anexample { "criteria":{ "example":{ "trigger":"minecraft:impossible" } } } minecraft:inventory_changed[] Triggersafteranychangeshappentotheplayer'sinventory.Availableconditions:  conditions:  items:Alistofitemsintheplayer'sinventory.Allitemsinthelistmustbeintheplayer'sinventory,butnotallitemsintheplayer'sinventoryhavetobeinthislist. : Tagscommontoallitems  slots:  empty:Theamountofslotsemptyintheinventory.  empty:  max:Themaximumvalue.  min:Theminimumvalue.  full:Theamountofslotscompletelyfilled(stacksize)intheinventory.  full:  max:Themaximumvalue.  min:Theminimumvalue.  occupied:Theamountofslotsoccupiedintheinventory.  occupied:  max:Themaximumvalue.  min:Theminimumvalue.  player:Theplayerthatwouldgettheadvancement.Mayalsobealistofpredicatesthatmustpassinorderforthecriteriontobegranted. Allpossibleconditionsforentities Anexample { "criteria":{ "example":{ "trigger":"minecraft:inventory_changed", "conditions":{ "items":[ { "items":[ "minecraft:polished_granite" ], "count":{ "min":5, "max":10 } }, { "items":[ "minecraft:lime_wool" ] }, { "items":[ "minecraft:wooden_sword" ], "durability":{ "min":50 }, "nbt":"{display:{Name:\"Example\"}}" } ], "slots":{ "occupied":3 } } } } } minecraft:item_durability_changed[] Triggersafteranyitemintheinventoryhasbeendamagedinanyform.Availableconditions:  conditions:  delta:Thechangeindurability(negativenumbersareusedtoindicateadecreaseindurability).  delta:  max:Themaximumvalue.  min:Theminimumvalue.  durability:Theremainingdurabilityoftheitem.  durability:  max:Themaximumvalue.  min:Theminimumvalue.  item:Theitembeforeitwasdamaged,allowsyoutocheckthedurabilitybeforetheitemwasdamaged. Tagscommontoallitems  player:Theplayerthatwouldgettheadvancement.Mayalsobealistofpredicatesthatmustpassinorderforthecriteriontobegranted. Allpossibleconditionsforentities Anexample { "criteria":{ "example":{ "trigger":"minecraft:item_durability_changed", "conditions":{ "delta":-2, "item":{ "items":[ "minecraft:wooden_axe" ], "durability":{ "max":1 } } } } } } minecraft:item_used_on_block[] Triggerswhentheplayerusestheirhandoranitemonablock.Availableconditions:  conditions:  location:Thelocationatthecenteroftheblocktheitemwasusedon. Tagscommontoalllocations  item:Theitemusedontheblock. Tagscommontoallitems  player:Theplayerthatwouldgettheadvancement.Mayalsobealistofpredicatesthatmustpassinorderforthecriteriontobegranted. Allpossibleconditionsforentities Anexample { "criteria":{ "example":{ "trigger":"minecraft:item_used_on_block", "conditions":{ "location":{ "biome":"minecraft:gravelly_hills", "block":{ "tag":"minecraft:campfires" } }, "item":{ "items":[ "minecraft:porkchop" ] } } } } } minecraft:kill_mob_near_sculk_catalyst‌[upcoming:JE1.19][] Triggersafteraplayeristhesourceofamoborplayerbeingkilledwithintherangeofasculkcatalyst.Availableconditions:  conditions:  entity:Theentitythatwaskilled.Maybealistofpredicatesthatmustpassinorderforthecriteriontobegranted. Allpossibleconditionsforentities  killing_blow:Thetypeofdamagethatkilledanentity. Tagscommontoalldamagetypes  player:Theplayerthatwouldgettheadvancement.Mayalsobealistofpredicatesthatmustpassinorderforthecriteriontobegranted. Allpossibleconditionsforentities Anexample { "criteria":{ "example":{ "trigger":"minecraft:kill_mob_near_sculk_catalyst", "conditions":{ "entity":{ "type":"minecraft:creeper", "nbt":"{powered:1b}", "location":{ "biome":"minecraft:the_void" }, "effects":{ "minecraft:slowness":{}, "minecraft:weakness":{ "amplifier":{ "min":2 } } } }, "killing_blow":{ "source_entity":{ "nbt":"{SelectedItem:{id:\"minecraft:wooden_sword\"}}" } } } } } } minecraft:killed_by_crossbow[] Triggersaftertheplayerkillsamoborplayerusingacrossbowinrangedcombat.Availableconditions:  conditions:  unique_entity_types:Theexactcountoftypesofentitieskilled.  unique_entity_types:Theacceptablerangeofcountoftypesofentitieskilled.  max:Themaximumvalue.  min:Theminimumvalue.  victims:Alistofpredicatesforanyofthekilledentities.Allofthepredicatesmustbematched,andonekilledentitymaymatchonlyonepredicate. :Apredicateforanyofthekilledentities.Mayalsobealistofpredicatesthatmustpassinorderforthecriteriontobegranted. Allpossibleconditionsforentities  player:Theplayerthatwouldgettheadvancement.Mayalsobealistofpredicatesthatmustpassinorderforthecriteriontobegranted. Allpossibleconditionsforentities Anexample { "criteria":{ "example":{ "trigger":"minecraft:killed_by_crossbow", "conditions":{ "victims":[ { "type":"minecraft:phantom" }, { "type":"minecraft:phantom" } ], "unique_entity_types":5 } } } } minecraft:levitation[] Triggerswhentheplayerhasthelevitationstatuseffect.Availableconditions:  conditions:  distance:Thedistancebetweenthepositionwheretheplayerstartedlevitatingandtheplayer'scurrentposition. Distancepredicatetags  duration:Thedurationofthelevitationinticks.  duration:  max:Themaximumvalue.  min:Theminimumvalue.  player:Theplayerthatwouldgettheadvancement.Mayalsobealistofpredicatesthatmustpassinorderforthecriteriontobegranted. Allpossibleconditionsforentities Anexample { "criteria":{ "example":{ "trigger":"minecraft:levitation", "conditions":{ "distance":{ "horizontal":{ "min":5 }, "y":{ "min":2 } }, "duration":{ "min":100 } } } } } minecraft:lightning_strike[] Triggerswhenalightningboltdisappearsfromtheworld,onlyforplayerswithina256blockradiusofthelightningbolt.Availableconditions:  conditions:  lightning:Thelightningboltthatdisappeared.Mayalsobealistofpredicatesthatmustpassinorderforthecriteriontobegranted. Allpossibleconditionsforentities  bystander:Anentitynothurtbythelightningstrikebutinacertainareaaroundit.Mayalsobealistofpredicatesthatmustpassinorderforthecriteriontobegranted. Allpossibleconditionsforentities  player:Theplayerthatwouldgettheadvancement.Mayalsobealistofpredicatesthatmustpassinorderforthecriteriontobegranted. Allpossibleconditionsforentities Anexample { "criteria":{ "example":{ "trigger":"minecraft:lightning_strike", "conditions":{ "lightning":[ { "condition":"minecraft:entity_properties", "entity":"this", "predicate":{ "lightning_bolt":{ "entity_struck":{ "type":"minecraft:creeper" } } } } ], "bystander":[ { "condition":"minecraft:entity_properties", "entity":"this", "predicate":{ "type":"minecraft:pig" } } ] } } } } minecraft:location[] Triggersevery20ticks(1second).Availableconditions:  conditions:  location‌[untilJE1.19]:Thelocationoftheplayer. Tagscommontoalllocations  player:Theplayerthatwouldgettheadvancement.Mayalsobealistofpredicatesthatmustpassinorderforthecriteriontobegranted. Allpossibleconditionsforentities Anexample { "criteria":{ "example":{ "trigger":"minecraft:location", "conditions":{ "location":{ "biome":"minecraft:jungle", "feature":"minecraft:jungle_pyramid", "dimension":"minecraft:overworld", "position":{ "x":0, "y":60, "z":{ "min":-10, "max":10 } } } } } } } minecraft:nether_travel[] TriggerswhentheplayertravelstotheNetherandthenreturnstotheOverworld.Availableconditions:  conditions:  player:Theplayerthatwouldgettheadvancement.Mayalsobealistofpredicatesthatmustpassinorderforthecriteriontobegranted. Allpossibleconditionsforentities  start_position:AlocationpredicateforthelastpositionbeforetheplayerteleportedtotheNether. Tagscommontoalllocations  distance:ThedistancebetweenthepositionwheretheplayerteleportedtotheNetherandtheplayer'spositionwhentheyreturned. Distancepredicatetags Anexample { "criteria":{ "example":{ "trigger":"minecraft:nether_travel", "conditions":{ "distance":{ "horizontal":{ "min":1000 }, "absolute":{ "min":1100 } } } } } } minecraft:placed_block[] Triggerswhentheplayerplacesablock.Availableconditions:  conditions:  block:Theblockthatwasplaced.AcceptsblockIDs.  item:Theitemthatwasusedtoplacetheblockbeforetheitemwasconsumed. Tagscommontoallitems  location:Thelocationoftheblockthatwasplaced. Tagscommontoalllocations  state:Theblockstatesoftheblock.  :Asingleblockstate,withthekeynamebeingthestatenameandthevaluebeingtherequiredvalueofthatstate.  player:Theplayerthatwouldgettheadvancement.Mayalsobealistofpredicatesthatmustpassinorderforthecriteriontobegranted. Allpossibleconditionsforentities Anexample { "criteria":{ "example":{ "trigger":"minecraft:placed_block", "conditions":{ "block":"minecraft:wall_torch", "state":{ "facing":"west" }, "location":{ "position":{ "x":10, "z":14 }, "biome":"minecraft:plains" }, "item":{ "items":[ "minecraft:torch" ] } } } } } minecraft:player_generates_container_loot[] Triggerswhentheplayergeneratesthecontentsofacontainerwithaloottableset.Availableconditions:  conditions:  loot_table*:Theresourcelocationofthegeneratedloottable.  player:Theplayerthatwouldgettheadvancement.Mayalsobealistofpredicatesthatmustpassinorderforthecriteriontobegranted. Allpossibleconditionsforentities Anexample { "criteria":{ "example":{ "trigger":"minecraft:player_generates_container_loot", "conditions":{ "loot_table":"minecraft:chests/jungle_temple_dispenser" } } } } minecraft:player_hurt_entity[] Triggersaftertheplayerhurtsamoborplayer.Availableconditions:  conditions:  damage:Thedamagethatwasdealt.Missingcorrespondinglistofpredicatesforthedirectentity. Damagetags  entity:Theentitythatwasdamaged.Maybealistofpredicatesthatmustpassinorderforthecriteriontobegranted. Allpossibleconditionsforentities  player:Theplayerthatwouldgettheadvancement.Mayalsobealistofpredicatesthatmustpassinorderforthecriteriontobegranted. Allpossibleconditionsforentities Anexample { "criteria":{ "example":{ "trigger":"minecraft:player_hurt_entity", "conditions":{ "damage":{ "blocked":true, "type":{ "direct_entity":{ "type":"minecraft:arrow" } } }, "entity":{ "type":"minecraft:player", "nbt":"{Tags:[\"example\"]}" } } } } } minecraft:player_interacted_with_entity[] Triggerswhentheplayerinteractswithanentity.Availableconditions:  conditions:  item:Theitemwhichwasintheplayer'shandduringinteraction. Tagscommontoallitems  entity:Theentitywhichwasinteractedwith.Maybealistofpredicatesthatmustpassinorderforthecriteriontobegranted. Allpossibleconditionsforentities  player:Theplayerthatwouldgettheadvancement.Mayalsobealistofpredicatesthatmustpassinorderforthecriteriontobegranted. Allpossibleconditionsforentities Anexample { "criteria":{ "example":{ "trigger":"minecraft:player_interacted_with_entity", "conditions":{ "item":{ "items":[ "minecraft:iron_ingot" ] }, "entity":{ "type":"minecraft:iron_golem" } } } } } minecraft:player_killed_entity[] Triggersafteraplayeristhesourceofamoborplayerbeingkilled.Availableconditions:  conditions:  entity:Theentitythatwaskilled.Maybealistofpredicatesthatmustpassinorderforthecriteriontobegranted. Allpossibleconditionsforentities  killing_blow:Thetypeofdamagethatkilledanentity. Tagscommontoalldamagetypes  player:Theplayerthatwouldgettheadvancement.Mayalsobealistofpredicatesthatmustpassinorderforthecriteriontobegranted. Allpossibleconditionsforentities Anexample { "criteria":{ "example":{ "trigger":"minecraft:player_killed_entity", "conditions":{ "entity":{ "type":"minecraft:creeper", "nbt":"{powered:1b}", "location":{ "biome":"minecraft:the_void" }, "effects":{ "minecraft:slowness":{}, "minecraft:weakness":{ "amplifier":{ "min":2 } } } }, "killing_blow":{ "source_entity":{ "nbt":"{SelectedItem:{id:\"minecraft:wooden_sword\"}}" } } } } } } minecraft:recipe_unlocked[] Triggersaftertheplayerunlocksarecipe(usingaknowledgebookforexample).Availableconditions:  conditions:  recipe*:Therecipethatwasunlocked.  player:Theplayerthatwouldgettheadvancement.Mayalsobealistofpredicatesthatmustpassinorderforthecriteriontobegranted. Allpossibleconditionsforentities Anexample { "criteria":{ "example":{ "trigger":"minecraft:recipe_unlocked", "conditions":{ "recipe":"minecraft:wooden_sword" } } } } minecraft:ride_entity_in_lava[] Triggerswhenaplayermountsanentitywalkingonlavaandwhiletheentitymoveswiththem.Availableconditions:  conditions:  player:Theplayerthatwouldgettheadvancement.Mayalsobealistofpredicatesthatmustpassinorderforthecriteriontobegranted. Allpossibleconditionsforentities  start_position:Alocationpredicateforthelastpositionbeforetheplayermountedtheentity. Tagscommontoalllocations  distance:Thedistancebetweenthestartpositionandtheplayer'sposition. Distancepredicatetags Anexample { "criteria":{ "example":{ "trigger":"minecraft:ride_entity_in_lava", "conditions":{ "distance":{ "horizontal":{ "min":10, "max":100 } } } } } } minecraft:shot_crossbow[] Triggerswhentheplayershootsacrossbow.Availableconditions:  conditions:  item:Theitemthatwasused. Tagscommontoallitems  player:Theplayerthatwouldgettheadvancement.Mayalsobealistofpredicatesthatmustpassinorderforthecriteriontobegranted. Allpossibleconditionsforentities Anexample { "criteria":{ "example":{ "trigger":"minecraft:shot_crossbow", "conditions":{ "item":{ "items":[ "minecraft:crossbow" ] } } } } } minecraft:slept_in_bed[] Triggerswhentheplayerentersabed.Availableconditions:  conditions:  location‌[untilJE1.19]:Thelocationoftheplayer. Tagscommontoalllocations  player:Theplayerthatwouldgettheadvancement.Mayalsobealistofpredicatesthatmustpassinorderforthecriteriontobegranted. Allpossibleconditionsforentities Anexample { "criteria":{ "example":{ "trigger":"minecraft:slept_in_bed", "conditions":{ "location":{ "biome":"minecraft:desert", "feature":"minecraft:village", "position":{ "y":{ "min":50, "max":100 } } } } } } } minecraft:slide_down_block[] Triggerswhentheplayerslidesdownablock.Availableconditions:  conditions:  block:Theblockthattheplayerslidon.  player:Theplayerthatwouldgettheadvancement.Mayalsobealistofpredicatesthatmustpassinorderforthecriteriontobegranted. Allpossibleconditionsforentities Anexample { "criteria":{ "example":{ "trigger":"minecraft:slide_down_block", "conditions":{ "block":"minecraft:honey_block" } } } } minecraft:started_riding[] Triggerswhentheplayerstartsridingavehicleoranentitystartsridingavehiclecurrentlyriddenbytheplayer.Availableconditions:  conditions:  player:Theplayerthatwouldgettheadvancement.Mayalsobealistofpredicatesthatmustpassinorderforthecriteriontobegranted. Allpossibleconditionsforentities Anexample { "criteria":{ "example":{ "trigger":"minecraft:started_riding", "conditions":{ "player":[ { "condition":"minecraft:entity_properties", "entity":"this", "predicate":{ "vehicle":{ "type":"minecraft:strider" } } } ] } } } } minecraft:summoned_entity[] Triggersafteranentityhasbeensummoned.Workswithirongolems(pumpkinandironblocks),snowgolems(pumpkinandsnowblocks),theenderdragon(endcrystals)andthewither(witherskullsandsoulsand/soulsoil).Usingdispenserstoplacethewitherskullsorpumpkinswillstillactivatethistrigger.Spawneggs,commandsandmobspawnerswillnotworkhowever.Availableconditions:  conditions:  entity:Thesummonedentity.Maybealistofpredicatesthatmustpassinorderforthecriteriontobegranted. Allpossibleconditionsforentities  player:Theplayerthatwouldgettheadvancement.Mayalsobealistofpredicatesthatmustpassinorderforthecriteriontobegranted. Allpossibleconditionsforentities Anexample { "criteria":{ "example":{ "trigger":"minecraft:summoned_entity", "conditions":{ "entity":{ "type":"minecraft:snow_golem" } } } } } minecraft:tame_animal[] Triggersaftertheplayertamesananimal.Availableconditions:  conditions:  entity:Checkstheentitythatwastamed.Maybealistofpredicatesthatmustpassinorderforthecriteriontobegranted. Allpossibleconditionsforentities  player:Theplayerthatwouldgettheadvancement.Mayalsobealistofpredicatesthatmustpassinorderforthecriteriontobegranted. Allpossibleconditionsforentities Anexample { "criteria":{ "example":{ "trigger":"minecraft:tame_animal", "conditions":{ "entity":{ "type":"minecraft:parrot", "nbt":"{Variant:2}" } } } } } minecraft:target_hit[] Triggerswhentheplayershootsatargetblock.Availableconditions:  conditions:  signal_strength:Theredstonesignalthatwillcomeoutofthetargetblock.  projectile:Theprojectileusedtohitthetargetblock.  shooter:Theplayerwhoshotorthrewtheprojectile.Mayalsobealistofpredicatesthatmustpassinorderforthecriteriontobegranted. Allpossibleconditionsforentities  player:Theplayerthatwouldgettheadvancement.Mayalsobealistofpredicatesthatmustpassinorderforthecriteriontobegranted. Allpossibleconditionsforentities Anexample { "criteria":{ "example":{ "trigger":"minecraft:target_hit", "conditions":{ "signal_strength":15, "projectile":[ { "condition":"minecraft:entity_properties", "predicate":{ "type":"minecraft:snowball" }, "entity":"this" } ] } } } } minecraft:thrown_item_picked_up_by_entity[] Triggersaftertheplayerthrowsanitemandanotherentitypicksitup.Availableconditions:  conditions:  item:Thethrownitemwhichwaspickedup. Tagscommontoallitems  entity:Theentitywhichpickeduptheitem.Maybealistofpredicatesthatmustpassinorderforthecriteriontobegranted. Allpossibleconditionsforentities  player:Theplayerthatwouldgettheadvancement.Mayalsobealistofpredicatesthatmustpassinorderforthecriteriontobegranted. Allpossibleconditionsforentities Anexample { "criteria":{ "example":{ "trigger":"minecraft:thrown_item_picked_up_by_entity", "conditions":{ "item":{ "items":[ "minecraft:diamond" ] }, "entity":[ { "condition":"minecraft:entity_properties", "predicate":{ "type":"minecraft:player" }, "entity":"this" } ] } } } } minecraft:thrown_item_picked_up_by_player‌[upcoming:JE1.19][] Triggerswhenaplayerpicksupanitemthrownbyanotherentity.Availableconditions:  conditions:  player:Theplayerthatwouldgettheadvancement.Mayalsobealistofpredicatesthatmustpassinorderforthecriteriontobegranted. Allpossibleconditionsforentities  entity:Theentitythatthrewtheitem.Mayalsobealistofpredicatesthatmustpassinorderforthecriteriontobegranted. Allpossibleconditionsforentities  item:Theitemthrown. Tagscommontoallitems Anexample { "criteria":{ "example":{ "trigger":"minecraft:thrown_item_picked_up_by_player", "conditions":{ "item":{ "items":[ "minecraft:cookie" ] }, "entity":[ { "condition":"minecraft:entity_properties", "predicate":{ "type":"minecraft:allay" }, "entity":"this" } ] } } } } minecraft:tick[] Triggerseverytick(20timesasecond).Availableconditions:  conditions:  player:Theplayerthatwouldgettheadvancement.Mayalsobealistofpredicatesthatmustpassinorderforthecriteriontobegranted. Allpossibleconditionsforentities Anexample { "criteria":{ "example":{ "trigger":"minecraft:tick", "conditions":{ "player":[ { "condition":"minecraft:entity_properties", "predicate":{ "team":"red" }, "entity":"this" } ] } } } } minecraft:used_ender_eye[] Triggerswhentheplayerusesaneyeofender(inaworldwherestrongholdsgenerate).Availableconditions:  conditions:  distance:Thehorizontaldistancebetweentheplayerandthestronghold.  distance:  max:Amaximumvalue.  min:Aminimumvalue.  player:Theplayerthatwouldgettheadvancement.Mayalsobealistofpredicatesthatmustpassinorderforthecriteriontobegranted. Allpossibleconditionsforentities Anexample { "criteria":{ "example":{ "trigger":"minecraft:used_ender_eye", "conditions":{ "distance":{ "min":100, "max":200 } } } } } minecraft:used_totem[] Triggerswhentheplayerusesatotem.Availableconditions:  conditions:  item:Theitem,onlyworkswithtotemitems. Tagscommontoallitems  player:Theplayerthatwouldgettheadvancement.Mayalsobealistofpredicatesthatmustpassinorderforthecriteriontobegranted. Allpossibleconditionsforentities Anexample { "criteria":{ "example":{ "trigger":"minecraft:used_totem", "conditions":{ "item":{ "items":[ "minecraft:totem_of_undying" ] } } } } } minecraft:using_item[] Triggersforeverytickthattheplayerusesanitemthatisusedcontinuously.Itisknowntotriggerforbows,crossbows,honeybottles,milkbuckets,potions,shields,spyglasses,tridents,fooditemsandeyesofender.Mostitemsthatactivatefromasingleclick,suchasfishingrods,donotaffectthistrigger.Availableconditions:  conditions:  item:Theitemthatisused Tagscommontoallitems  player:Theplayerthatwouldgettheadvancement.Mayalsobealistofpredicatesthatmustpassinorderforthecriteriontobegranted. Allpossibleconditionsforentities Anexample { "criteria":{ "example":{ "trigger":"minecraft:using_item", "conditions":{ "item":{ "items":[ "minecraft:enchanted_golden_apple" ], "nbt":"{display:{Name:\"Example\"}}" } } } } } minecraft:villager_trade[] Triggersaftertheplayertradeswithavillagerorawanderingtrader.Availableconditions:  conditions:  item:Theitemthatwaspurchased.The"count"tagchecksthecountfromonetrade,notmultiple. Tagscommontoallitems  villager:Thevillagertheitemwaspurchasedfrom.Maybealistofpredicatesthatmustpassinorderforthecriteriontobegranted. Allpossibleconditionsforentities  player:Theplayerthatwouldgettheadvancement.Mayalsobealistofpredicatesthatmustpassinorderforthecriteriontobegranted. Allpossibleconditionsforentities Anexample { "criteria":{ "example":{ "trigger":"minecraft:villager_trade", "conditions":{ "item":{ "items":[ "minecraft:emerald" ], "count":{ "min":1 } }, "villager":{ "nbt":"{VillagerData:{career:\"minecraft:librarian\"}}" } } } } } minecraft:voluntary_exile[] Triggerswhentheplayercausesaraid.Availableconditions:  conditions:  location‌[untilJE1.19]:Thelocationoftheplayer. Tagscommontoalllocations  player:Theplayerthatwouldgettheadvancement.Mayalsobealistofpredicatesthatmustpassinorderforthecriteriontobegranted. Allpossibleconditionsforentities Anexample { "criteria":{ "example":{ "trigger":"minecraft:voluntary_exile", "conditions":{ "location":{ "biome":"minecraft:savanna", "dimension":"minecraft:overworld", "position":{ "x":0, "y":60, "z":{ "min":-10, "max":10 } } } } } } } Removedtriggers[] minecraft:arbitrary_player_tick[] Triggerseverytickforoneplayeronly. Removedin1.12-pre1. minecraft:item_delivered_to_player[] Triggerswhenanallaydeliversanitemtotheplayer.Availableconditions:  conditions:  player:Theplayerthatwouldgettheadvancement.Mayalsobealistofpredicatesthatmustpassinorderforthecriteriontobegranted. Allpossibleconditionsforentities Anexample { "criteria":{ "example":{ "trigger":"minecraft:item_delivered_to_player", "conditions":{ "player":[ { "condition":"minecraft:entity_properties", "predicate":{ "location":{ "dimension":"minecraft:the_nether" } }, "entity":"this" } ] } } } } Onlyexistsin22w14a. minecraft:player_damaged[] Triggerswhentheplayerreceivesdamage.Availableconditions:  conditions:  damage:Damagesourcepredicate. Damagetags Removedin17w14a. minecraft:safely_harvest_honey[] Triggerswhentheplayerharvestshoneyfromabeenest/beehivewithacampfirebelowit.Availableconditions:  conditions:  block:Theblockthattheplayerharvestedthehoneyfrom.  block:AblockID.  tag:Ablocktag.  item:Theitemthattheplayerusedtoharvestthehoney. Tagscommontoallitems  player:Theplayerthatwouldgettheadvancement.Mayalsobealistofpredicatesthatmustpassinorderforthecriteriontobegranted. Allpossibleconditionsforentities Anexample { "criteria":{ "example":{ "trigger":"minecraft:safely_harvest_honey", "conditions":{ "block":{ "tag":"minecraft:beehives" }, "item":{ "item":"minecraft:shears" } } } } } Thistriggerwasmaderedundantbytheitem_used_on_blocktrigger.Removedin20w20a. Versions Demo Locations PCGamerDemo(Beta1.3) Development Versionhistory Pre-Classic Classic EarlyClassicCreative MultiplayerTest SurvivalTest LateClassicCreative Indev Infdev Alpha Beta FullRelease Developmentversions Removedfeatures Blocks Items Unusedfeatures Exclusivefeatures Mentionedfeatures Skydimension Plannedversions Technical Knownbugs MinecraftLauncher Hardwarerequirements al_version Blockentity Commands Functions Crashes Datavalues Classic Indev Pre-flattening Dataversion Debugscreen Formattingcodes Keycodes MinecraftLauncher Protocolversion Resourcelocation Screenshot Seed Statistics Tick Spawnchunk Coordinates .minecraft client.jar client.json launcher_profiles.json options.txt Developmentresources Anvilfileformat Chunkformat Commandstorageformat Generatedstructuresformat Levelformat Loottables Mapitemformat Model NBTformat Obfuscationmap Playerformat raids.datformat RawJSONtextformat Regionfileformat Structureblockfileformat Schematicfileformat Scoreboardformat Serverlistformat sounds.json Subtitles villages.datformat Legacydevelopmentresources Classiclevelformat Classicserverprotocol Indevlevelformat Alphalevelformat server_level.dat Multiplayer Server MinecraftRealms Serverlist server.properties Serverrequirements Gamecustomization Skins Capes Resourcepacks Datapacks Categories JavaEdition Addcategory Cancel Save Deutsch Français Português 中文 CommunitycontentisavailableunderCCBY-NC-SA3.0unlessotherwisenoted. Advertisement FanFeed 1 Trading 2 Brewing 3 JavaEdition1.19 UniversalConquestWiki Let'sGoLuna!Wiki Club57Wiki FollowonIG TikTok JoinFanLab



請為這篇文章評分?