Type aliases
Callback
Callback<D>
: (context
: File<{}>) => DType parameters
CommandType
CommandType: "comment" | "space-line" | "difficulty" | "spawnpoint" | "summon" | "clear" | "tp" | "teleport" | "effect" | "tag" | "experience" | "enchant" | "debug" | "datapack" | "bossbar" | "defaultgamemode" | "deop" | "gamemode" | "gamerule" | "kick" | "kill" | "locate" | "op" | "pardon" | "pardon-ip" | "particle" | "playsound" | "publish" | "recipe" | "replaceitem" | "schedule" | "seed" | "setidletimeout" | "setworldspawn" | "spreadplayers" | "stop" | "stopsound" | "team" | "tell" | "msg" | "w" | "setblock" | "fill" | "clone" | "teammsg" | "time" | "trigger" | "title" | "weather" | "whitelist" | "worldborder" | "xp" | "scoreboard" | "execute" | "help" | "forceload" | "function" | "attribute" | "advancement" | "ban" | "ban-ip" | "ban-list" | "list" | "locatebiome" | "loot" | "me" | "reload" | "spectate" | "tellraw" | "say" | "data" | "save" | "save-all" | "save-off" | "save-on"
Criteria
Criteria: SingleCriteria | TeamKillCriteria | KilledByTeamCriteria | CustomCriteria
DataObject
DataObject: Record<string, unknown>
FileType
FileType: "functions" | "predicates" | "loottables" | "tags"
LiteralFuncType
LiteralFuncType: string | ((context: { filename: string; namespace: string }) => string)
LiteralType
LiteralType<T>: string | T
Type parameters
LiteralUnion
LiteralUnion<T, U>: T | (U & {})
Type parameters
ObjectMap
ObjectMap<T>: {}
Type parameters
ObjectiveProps
Objective
Props
: { criterion
: Criteria; displayName
?: string; name
: string }Type declaration
Optional displayName?: string
name: string
OperationType
OperationType: "+=" | "-=" | "*=" | "/=" | "%=" | ">" | "<" | "><" | "="
PredicateMap
Type parameters
RecipeItem
RecipeItem: { item: ItemId } | { tag: string } | { item: ItemId }[]
RecipeItemArray
RecipeItemArray: { item: ItemId }[]
RecipeResult
RecipeResult: { count?: number; item: ItemId }
Type declaration
Optional count?: number
item: ItemId
RecipeType
RecipeType: "crafting_shaped" | "crafting_shapeless" | "stonecutting" | "smelting" | "blasting" | "smoking" | "campfire_cooking" | "smithing"
SingleArrayResult
SingleArrayResult<T>: T | T[]
Type parameters
SmeltingType
SmeltingType: "smelting" | "blasting" | "smoking" | "campfire_cooking"
TagFileType
TagFileType: "blocks" | "entity_types" | "items" | "fluids" | "functions"
Text
Text: TextTokenType & TextFunction & { create: any }
参数错误