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

Nethonos => MCW, TW


Syntax

/data remove entity|block|storage <Selektor|Position|Datenspeicher> <Pfad>

/data merge entity|block|storage <Selektor|Position|Datenspeicher> <NBT-Daten>

/data get entity|block|storage <Selektor|Position|Datenspeicher> [<Pfad>] [<Skalierung>]

/data modify entity|block|storage <Selektor|Position|Datenspeicher> <Pfad> <Operation> from entity|block|storage <Selektor|Position|Datenspeicher> <Pfad>

/data modify entity|block|storage <Selektor|Position|Datenspeicher> <Pfad> <Operation> value <NBT-Daten>

Details

/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>) <Pfad>

Rückgabe

{{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}}
Befehl Auslöser Java Bedrock
Beliebig die Argumente sind nicht korrekt angegeben Ja Nein

Ausgabe

{{Output table}}
{{Output table|edition=je|On fail|0|0|0}}
{{Output table|cmd=/data get ...|On success|1|1|1}}
{{Output table|cmd=/data get ... <path>|a numeric tag is got|1|1|the obtained value after rounding down<ref>double n = (double)value;<br>int output = n < (int)n ? (int)n - 1 :(int)n;</ref>}}
{{Output table|a list or array tag is got|1|1|The number of elements in this list or array}}
{{Output table|a string tag is got|1|1|The length of the string}}
{{Output table|a compound tag is got|1|1|The number of tags that are direct children of that compound}}
{{Output table|cmd=/data get ... <path> <scale>|On success|1|1|the obtained value multiplied by <code><scale></code>, then rounded down<ref>double n = (double)value * scale;<br>int output = n < (int)n ? (int)n - 1 :(int)n;</ref>}}
{{Output table|cmd=/data merge ...|On success|1|1|1}}
{{Output table|cmd=/data remove ...|On success|1|1|1}}
{{Output table|cmd=/data modify ... append ...<br>/data modify ... insert <index> ...<br>/data modify ... prepend ...|On success|1|1|the number of lists or arrays to which new elements are added}}
{{Output table|cmd=/data modify ... set ...|On success|1|1|the number of target tags that was successfully modified}}
{{Output table|cmd=/data modify ... merge ...|On success|1|1|the number of target compound tags that was successfully modified}}
{{Output table}}
Befehl Edition Sitation SuccesCount /execute store success ... /execute store result ...
Beliebig Java Edition Bei Fehlschlag 0 0 0
Advertisement