VOOZH about

URL: https://minecraft.wiki/w/Template:Json_ref

⇱ Template:Json ref – Minecraft Wiki


Template:Json ref

From Minecraft Wiki
Jump to navigation Jump to search
Documentation[view] [edit] [history] [purge]

This template is used to represent references in json files to other registry entries. The reference can optionally also be included inline or be a reference to a tag or list.

  • |1= is the name of the type
  • |2= is the page name to link to, defaults to the name
  • |inline= whether it is possible to inline the objects
  • |inline_type= the type of the inline object, defaults to {{nbt|compound}}
  • |list= whether the field accepts a list of objects
  • |tag= whether the field accepts tag of objects, implies |list=1
  • |no_single= whether the field only accepts a list or tag of objects and not a single entry

Examples

[edit source]
{{json ref|type name|type link (optional)}}

One (an [String] ID)

{{json ref|type name|type link (optional)|inline=1}}

One (an [String] ID, or a new [NBT Compound / JSON Object] type name definition)

{{json ref|type name|type link (optional)|list=1}}

Any number of (s) (an [String] ID, or an [NBT List / JSON Array] array containing [String] IDs)

{{json ref|type name|type link (optional)|tag=1|tag_link=tag link (optional)}}

Any number of (s) (an [String] ID, or a [String] tag with #, or an [NBT List / JSON Array] array containing [String] IDs)

{{json ref|type name|type link (optional)|list=1|inline=1}}

Any number of (s) (an [String] ID, or a new [NBT Compound / JSON Object] type name definition, or an [NBT List / JSON Array] array containing [String] IDs and new [NBT Compound / JSON Object] definitions)

{{json ref|type name|type link (optional)|tag=1|tag_link=tag link (optional)|inline=1}}

Any number of (s) (an [String] ID, or a new [NBT Compound / JSON Object] type name definition, or a [String] tag with #, or an [NBT List / JSON Array] array containing either [String] IDs or new [NBT Compound / JSON Object] definitions in the same data type)

{{json ref|type name|type link (optional)|tag=1|tag_link=tag link (optional)|inline=1|inline_type={{nbt|string}}{{nbt|compound}}}}

Any number of (s) (an [String] ID, or a new [String][NBT Compound / JSON Object] type name definition, or a [String] tag with #, or an [NBT List / JSON Array] array containing either [String] IDs or new [String][NBT Compound / JSON Object] definitions in the same data type)

{{json ref|type name|type link (optional)|no_single=1|tag=1|tag_link=tag link (optional)|inline=1}}

Any number of (s) (a [String] tag with #, or an [NBT List / JSON Array] array containing either [String] IDs or new [NBT Compound / JSON Object] definitions in the same data type)

[view] [edit] [history] [purge]The above documentation is transcluded from Template:Json ref/doc.
Retrieved from "https://minecraft.wiki/w/Template:Json_ref?oldid=3223303"

Navigation menu