Minecraft:Commands/transfer (Education): Difference between revisions
From SAS Gaming Wiki
More actions
imported>TigerZhang mNo edit summary |
Fix template calls: add MC/ prefix |
||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
{{For|the new server transfer command on [[Minecraft:Bedrock Edition]]|Commands/transferserver}} | {{MC/For|the new server transfer command on [[Minecraft:Bedrock Edition]]|Commands/transferserver}} | ||
{{For|the new server transfer command on [[Minecraft:Java Edition]]|Commands/transfer}} | {{MC/For|the new server transfer command on [[Minecraft:Java Edition]]|Commands/transfer}} | ||
{{Outdated|edition=education}} | {{Outdated|edition=education}} | ||
| Line 34: | Line 34: | ||
== History == | == History == | ||
{{HistoryTable | {{HistoryTable | ||
|{{HistoryLine|education}} | |{{MC/HistoryLine|education}} | ||
|{{HistoryLine||?|Added {{ | |{{HistoryLine||?|Added {{MC/Cd|/transfer}}.}} | ||
}} | }} | ||
== Navigation == | == Navigation == | ||
{{Navbox commands}} | {{MC/Navbox commands}} | ||
lzh:令/transfer(教育版) | |||
pt:Comandos/transfer (Education) | |||
zh:命令/transfer(教育版) | |||
Latest revision as of 20:14, 9 April 2026
Template:Hatnote Template:Hatnote
Template:Outdated Template:Infobox command
Transfers a specified quantity of items from one slot to another of your Minecraft:Agent's inventory.
Syntax
transfer <srcSlotNum: int> <quantity: int> <dstSlotNum: int>
Arguments
srcSlotNum: int
- Specifies the source of slot number to be transferred, slots are numbered from 1 to 27.
quantity: int
- Specifies the number of items to be transferred from the Agent's inventory slot.
srcSlotNum: int
- Specifies the destination of slot number to be transferred, slots are numbered from 1 to 27.
Result
Fails if the arguments are not specified correctly, or returns false if the destination already has items of a different type, and if the source slot was empty.
On success, returns true if there was a room for the items to be transferred.
History
lzh:令/transfer(教育版) pt:Comandos/transfer (Education) zh:命令/transfer(教育版)