Minecraft:Commands/setfixedinvslot: Difference between revisions
From SAS Gaming Wiki
More actions
imported>ProBot m Bot: Adding de:Entwickler-Befehle#/setfixedinvslot |
Remove broken links to missing pages |
||
| Line 18: | Line 18: | ||
: ''itemName: string'' | : ''itemName: string'' | ||
:: Specifies the item for the fixed slot. Must be a valid | :: Specifies the item for the fixed slot. Must be a valid item id (for example, <code>iron_shovel</code>), or block id for which items exist. | ||
: ''data: int'' (optional) | : ''data: int'' (optional) | ||
:: Specifies the | :: Specifies the item data of the item. Must be an integer between -2,147,483,648 and 2,147,483,647 (inclusive, without the commas), but values which are invalid for the specified item id revert to 0. If not specified, defaults to 0. | ||
;Result | ;Result | ||
| Line 39: | Line 39: | ||
{{Navbox commands}} | {{Navbox commands}} | ||
de:Entwickler-Befehle | |||
lzh:令/setfixedinvslot | |||
pt:Comandos/setfixedinvslot | |||
ru:Команды консоли/setfixedinvslot | |||
zh:命令/setfixedinvslot | |||
Revision as of 15:45, 9 April 2026
Template:Outdated feature Template:Exclusive Template:Infobox command
Sets fixed Minecraft:inventory slot with a specific Minecraft:item.
- Syntax
setfixedinvslot <fixedinvslotnum: int> <itemName: string> [data: int]
- Arguments
- fixedinvslotnum: int
- Specifies the number of fixed inventory slot.
- itemName: string
- Specifies the item for the fixed slot. Must be a valid item id (for example,
iron_shovel), or block id for which items exist.
- Specifies the item for the fixed slot. Must be a valid item id (for example,
- data: int (optional)
- Specifies the item data of the item. Must be an integer between -2,147,483,648 and 2,147,483,647 (inclusive, without the commas), but values which are invalid for the specified item id revert to 0. If not specified, defaults to 0.
- Result
- Fails if arguments are not specified correctly.
- On success, players are given the specified items in the fixed inventory slot.
History
de:Entwickler-Befehle lzh:令/setfixedinvslot pt:Comandos/setfixedinvslot ru:Команды консоли/setfixedinvslot zh:命令/setfixedinvslot