Minecraft Wiki
Advertisement
[ Inhalt => MCW, TW ] [ Testseite => MCW, TW ] [ Notizseite => MCW ] [ Linkliste => MCW, TW ] [ Spezialseite => MCW, TW ]

Nethonos => MCW, TW


Syntax-Test

Aktuell

/data remove entity|block|storage <Objekt|x y z|Wertspeicher> <Pfad>
/data merge entity|block|storage <Objekt|x y z|Wertspeicher> <NBT-Daten>
/data get entity|block|storage <Objekt|x y z|Wertspeicher> [<Pfad>] [<Skalierung>]
/data modify entity|block|storage <Objekt|x y z|Wertspeicher> <Pfad> <Operation> from entity|block <Objekt|x y z> <Pfad>
/data modify entity|block|storage <Objekt|x y z|Wertspeicher> <Pfad> <Operation> value <NBT-Daten>

Variante

/data ...
... get
... (block <Position>|entity <Selektor>|storage <Datenspeicher>) [<Pfad>] [<Skalierung>]
... merge
... (block <Position>|entity <Selektor>|storage <Datenspeicher>) <nbt>
... modify (block <Position>|entity <Selektor>|storage <Datenspeicher>) <Pfad> ...
... append from (block <Position>|entity <Selektor>|storage <Datenspeicher>) [<Pfad>]
... append value <Wert>
... insert <index> from (block <Position>|entity <Selektor>|storage <Datenspeicher>) [<Pfad>]
... insert <index> value <Wert>
... merge from (block <Position>|entity <Selektor>|storage <Datenspeicher>) [<Pfad>]
... merge value <Wert>
... prepend from (block <Position>|entity <Selektor>|storage <Datenspeicher>) [<Pfad>]
... prepend value <Wert>
... set from (block <Position>|entity <Selektor>|storage <Datenspeicher>) [<Pfad>]
... set value <Wert>
... remove
... (block <Position>|entity <Selektor>|storage <Datenspeicher>) <path>

Argumente-Test

Aktuell

  • Objekt ist eine Zielauswahl mit @e, die kein Spieler sein darf und maximal ein Objekt umfassen darf.
  • x y z sind die Koordinaten des Blockes. Für absolute Koordinaten kann man die Koordinaten-Schnelleingabe nutzen. Wird ein "~" vor eine Koordinate geschrieben, ist der Koordinatenwert nicht absolut, sondern relativ zur Position der Befehlsquelle (Spieler oder Befehlsblock), wobei deren Standort ~0 ~0 ~0 mit ~ ~ ~ abgekürzt werden kann. Für die Höhe y sind nur Werte zwischen 0 und 255 möglich.
  • Wertspeicher ist ein Name des Speichers für NBT-Daten. Er ist unabhängig von der Dimension in der man sich befindet immer zugreifbar.
  • NBT-Daten sind die Eigenschaften des Objektes, Blockes oder Wertspeichers, die geändert werden sollen. Eine ausführliche Beschreibung steht hier.
  • Pfad gibt die NBT-Eigenschaft an. Siehe Abschnitt Beispiele für die genaue Pfad Angabe
  • Skalierung sagt aus, um welchen Faktor der NBT-Wert multipliziert werden soll.
  • Operation bestimmt die Art der Änderung:
set Ersetzt den Wert.
merge Verändert die Daten von Blöcken oder Objekten.
prepend Nur für Listen: Fügt die Daten vor allen anderen Einträgen der Liste hinzu, alte Einträge werden nach hinten verschoben.
append Nur für Listen: Fügt die Daten nach allen anderen Einträgen der Liste hinzu, alte Einträge bleiben unverändert.
insert <Index> Nur für Listen: Fügt die Daten an dieser Position der Liste hinzu, alte Einträge bis zu dieser Position bleiben unverändert, alte Einträge ab dieser Position werden nach hinten verschoben.

Zur Eingabe eines Befehls siehe Befehl#Eingabe.

Variante

Position block_pos

The position of the target Blockobjekt whose NBT is to be operated on.
{{arg desc|je=block_pos}}

target entity (in entity <target> mode)

Specifies an entity whose NBT is to be operated on.
{{arg desc|je=entity|amount=single|type=entities}}

target resource_location (in storage <target> mode)

Specifies a storage to be operated on.
{{arg desc|je=resource_location}}

path nbt_path

Specifies the NBT to retrieve or remove.
{{arg desc|je=nbt_path}}

scale double

Scalar for the command's return value.
{{arg desc|je=double}}

nbt nbt_compound_tag

Specifies a compound tag to be merged into somewhere.
{{arg desc|je=nbt_compound_tag}}

targetPath nbt_path

Specifies target NBT to modify.
{{arg desc|je=nbt_path}}

index integer

Specifies an item's index within a list.
{{arg desc|je=integer}}

sourcePos block_pos

The position of the target Blockobjekt whose NBT is to be used.
{{arg desc|je=block_pos}}

source entity (in entity <source> mode)

Speciafies an entity whose NBT is to be used by modify.
{{arg desc|je=entity|amount=single|type=entities}}

source resource_location (in storage <source> mode)

Specifies a storage to be used by modify.
{{arg desc|je=resource_location}}

sourcePath nbt_path

Specifies the source NBT to be used by modify.
{{arg desc|je=nbt_path}}

value nbt_tag

Value used in modifying the target NBT. Should match its data type.
{{arg desc|je=nbt_tag}}

Rückgabe-Test

Variante

{{Result table|onlyje=1}}
{{Result table|the arguments are not specified correctly|unparseable}}
{{Result table|<code><targetPos></code> is unloaded or out of the world|fail}}
{{Result table|the block at <code><targetPos></code> is not a block entity}}
{{Result table|<code><target></code> (in {{cd|entity <target>}} mode) fails to resolve to an entity (named player must be online)}}
{{Result table|cmd=/data get ...|more than one tag is got}}
{{Result table|cmd=/data get ... <path>|<code><path></code> does not exist}}
{{Result table|cmd=/data get ... <path> <scale>|the obtained tag is not a numeric tag}}
{{Result table|cmd=/data merge ...<br>/data remove ...<br>/data modify ...|nothing is changed}}
{{Result table|try to edit player's data}}
{{Result table|cmd=/data remove ...<br>/data modify ... set ...|<code><path></code> is the root compound tag}}
{{Result table|cmd=/data modify ... from block ...|<code><sourcePos></code> is unloaded or out of the world}}
{{Result table|the block at <code><sourcePos></code> is not a block entity}}
{{Result table|cmd=/data modify ... from entity ...|<code><sourceEntity></code> fails to resolve to an entity (named player must be online)}}
{{Result table|cmd=/data modify ... from ... <sourcePath>|<code><sourcePath></code> does not exist}}
{{Result table|cmd=/data modify ... append ...<br>/data modify ... insert <index> ...<br>/data modify ... prepend ...|the target tag isn't a list or array}}
{{Result table|source data isn't of an item type appropriate for the list}}
{{Result table|cmd=/data modify ... insert <index> ...|the index is invalid}}
{{Result table|cmd=/data modify ... merge ...|the target path does not specify a compound tag}}
{{Result table|the source data is not a compound tag}}
{{Result table|cmd=|succeed|Get, merge, modify, and remove NBT data.}}
{{Result table}}
Advertisement