YAY!!! If you've been following the features for 1.7, then you may notice that a bunch of this stuff (or something similar to it) is being added to 1.7! It may be because I sent this thread to Dinnerbone and Jeb on Twitter, so this is either a coincidence, or they saw it! (Also, there is a variation of the Mesa biome, called the Bryce Mesa. My name is Bryce, so that is pretty awesome! This could also be just a coincidence. I'll ask to make sure! )
Command Overhaul
This thread is about a set of targeting commands and arguments that could be added for a BUNCH of new options. So check it out!
Also, it is suggested that you have a good knowledge of command/argument/selector mechanics and structure. It will help with your comprehension regarding the topic.
Slot Targeting Arguments
Inventory Targeters:
(Works with: /give, /enchant, /clear)
[hot_bar=<1-9> or or <r> or • 1-9: Selects slot in the hotbar, farthest left being 1, farthest right being 9 • p: selects the closest unoccupied slot in accordance to slot 1 in the hotbar (if there is one) • r: selects a random unoccupied slot in the hotbar • a: selects all slots in the hotbar
Examples /enchant @p 231 48 4 [hot_bar=3] - Enchants a bow with Power V if it is in the third hotbar slot
/give @p 231 [hot_bar=p/r/a] - Used in a similar fashion to the player selectors, @p, @r, and @a. These arguments will not carry out if there is not an open slot in the hotbar.
[inventory_slot=<rows 1-3 columns 1-9> or or <r> or ] • Row column: Like a grid. Rows are horizontal going from top to bottom (1-3 respectively) and columns (vertical) go by 1-9 (left to right respectively). Put the numbers directly next to each other when used • p: selects the closest unoccupied slot in accordance to slot 1 in the inventory (if there is one) • r: selects a random unoccupied slot in the inventory • a: selects all slots in the inventory
Examples /give @p 232 32 [inventory_slot=33] - Puts 32 arrows in the third row, third column of the player’s inventory
/clear @p [inventory_slot=p/r/a] - Used in a similar fashion to the player selectors, @p, @r, and @a. These arguments will not carry out if there is not an open slot in the hotbar. It will either clear the nearest slot, a random slot, or all slots.
[armor_slot=<head/1> <chest/2> <legs/3> <feet/4> or or <r> or ] • Armor slot: selects head, chest, legs, or feet, or 1, 2, 3, and 4, respectively. If the item is not compatible, or if the slot is occupied, the item will not be equipped. • p: selects the closest unoccupied armor slot (if there is one) • r: selects a random unoccupied armor slot • a: selects all armor slots
Examples /clear @p 311 [armor_slot=2/head] - Gives the player a diamond chestplate and equips it to their chest
/enchant @p 0 4 [armor_slot=a] - Enchants all armor that the player is wearing with Protection V
Uses:
• Can be used to organize/customize a player’s inventory with vanilla commands • Can be used to give a specific layout to a player’s inventory in adventure maps and minigames • Can be used to give and enchant an item without having to be holding that item • Can be used to clear a specific slot in the player’s inventory
Notes:
• When referring to a mob that can hold/wear items, these arguments can be used with mob targeters (explained below). In these cases, all non armor inventory targeters will automatically target the mobs held item. • If targeting an already-occupied slot, the command will not carry out (exception for mobs. This can be used to replace their possessions.)
More Targeters
Mobs:
@pm: Targets the closest mob @rm: Targets a random mob within a range @am: Targets all mobs within the area
Mob Targeter Arguments
[mob=<Savegame ID of mob type>] • Argument used to target a mob of a specific type or name
[mob=!<mobs other than the specified type>] • Argument used to target any mobs other than the listed mob of a specific type or name
[mob_name=<given name of a mob (mob’s name)>] • Argument used to target a mob by given name
[mob_name=!<mobs not of given name (mob’s name)>] • Argument used to target mobs not by the given name
Examples /give @pm 276 [mob=PigZombie] - Gives the closest Zombie Pigman a Diamond Sword
/tp @rm <xyz> [mob=!Pig] - Teleports a random mob that is not a pig to the given coordinates
/tp @am jeb [mob=Cow,mob_name=(Notch)] - Teleports all cows named Notch to Jeb
/effect @a 1 60 1 [mob=!Pig,mob_name=!(Jeffrey Jinks)] - Gives all non-pig mobs that are not named Jeffrey Jinks Speed II for one minute
Mobs and Players:
@po: Targets the closest mob OR player @ro: Targets a random mob OR player @ao: Targets all mobs AND players within the area
This feature is fairly self explanatory, and as you may be able to guess, it targets both players and mobs. But for the heck of it, I will give a few example commands to show how it is used.
Examples /tp @po <xyz> [player_name=Jeb,mob=EntityHorse] - Teleports a horse, or Jeb to given coordinates depending on whichever is closer to the source of the command
/tp @ao notch [player_name=!Notch] - Teleports all players and mobs except for Notch, to Notch
/tp @ro <xyz> - Teleports a random player or mob to given coordinates
Pathways Paved for New Commands:
The /name Command /name <mob/player> [name] [arguments] • When targeting a mob, this simply names the mob (unless an inventory editing command is used) • When targeting a player, it will by default name the item they are holding, but inventory arguments can be used to name specific items
Examples /name @am [Dinnerbone] - Names all mobs Dinnerbone
/name @p [Death Blade] [hot_bar=1] - Names the first item in the closest player’s hotbar “Death Blade”
The /spawnmob Command /spawnmob <SavegameID> <# of Mobs> [arguments] • This command can spawn mobs (derp)
Example /spawnmob PigZombie 4 [xyz] - Spawns 4 Zombie Pigmen at given coordinates
Ok, let me know if I either missed some details, or if you have any ideas to expand this topic. Please be polite on this thread. Even if someone “derps” out, be kind and understanding.
The Meaning of Life, the Universe, and Everything.
Join Date:
5/29/2011
Posts:
320
Minecraft:
Machina
Member Details
Rollback Post to RevisionRollBack
Hello darkness, my old friend I've come to talk with you again because a vision softly creeping left its seeds while I was sleeping and the vision that was planted in my brain still remains within the sound of silence
Looks good, I mean they are adding more and more commands with each update. This would make adventure maps more fun. A little complicated for the average player though. Support.
P.S. For some reason I couldn't open the spoilers :c
Looks good, I mean they are adding more and more commands with each update. This would make adventure maps more fun. A little complicated for the average player though. Support.
P.S. For some reason I couldn't open the spoilers :c
Thanks!
See if the spoilers will work in this reply box. You never know. . . /enchant @p 231 48 4 [hot_bar=3] - Enchants a bow with Power V if it is in the third hotbar slot
/give @p 231 [hot_bar=p/r/a] - Used in a similar fashion to the player selectors, @p, @r, and @a. These arguments will not carry out if there is not an open slot in the hotbar. /give @p 232 32 [inventory_slot=33] - Puts 32 arrows in the third row, third column of the player’s inventory
/clear @p [inventory_slot=p/r/a] - Used in a similar fashion to the player selectors, @p, @r, and @a. These arguments will not carry out if there is not an open slot in the hotbar. It will either clear the nearest slot, a random slot, or all slots. /clear @p 311 [armor_slot=2/head] - Gives the player a diamond chestplate and equips it to their chest
/enchant @p 0 4 [armor_slot=a] - Enchants all armor that the player is wearing with Protection V /give @pm 276 [mob=PigZombie] - Gives the closest Zombie Pigman a Diamond Sword
/tp @rm <xyz> [mob=!Pig] - Teleports a random mob that is not a pig to the given coordinates
/tp @am jeb [mob=Cow,mob_name=(Notch)] - Teleports all cows named Notch to Jeb
/effect @a 1 60 1 [mob=!Pig,mob_name=!(Jeffrey Jinks)] - Gives all non-pig mobs that are not named Jeffrey Jinks Speed II for one minute /tp @po <xyz> [player_name=Jeb,mob=EntityHorse] - Teleports a horse, or Jeb to given coordinates depending on whichever is closer to the source of the command
/tp @ao notch [player_name=!Notch] - Teleports all players and mobs except for Notch, to Notch
/tp @ro <xyz> - Teleports a random player or mob to given coordinates /name @am [Dinnerbone] - Names all mobs Dinnerbone
/name @p [Death Blade] [hot_bar=1] - Names the first item in the closest player’s hotbar “Death Blade” /spawnmob PigZombie 4 [xyz] - Spawns 4 Zombie Pigmen at given coordinates
YAY!!! If you've been following the features for 1.7, then you may notice that a bunch of this stuff (or something similar to it) is being added to 1.7! It may be because I sent this thread to Dinnerbone and Jeb on Twitter, so this is either a coincidence, or they saw it! (Also, there is a variation of the Mesa biome, called the Bryce Mesa. My name is Bryce, so that is pretty awesome! This could also be just a coincidence. I'll ask to make sure! )
Command Overhaul
This thread is about a set of targeting commands and arguments that could be added for a BUNCH of new options. So check it out!
Also, it is suggested that you have a good knowledge of command/argument/selector mechanics and structure. It will help with your comprehension regarding the topic.
Slot Targeting Arguments
Inventory Targeters:
(Works with: /give, /enchant, /clear)
[hot_bar=<1-9> or or <r> or
• 1-9: Selects slot in the hotbar, farthest left being 1, farthest right being 9
• p: selects the closest unoccupied slot in accordance to slot 1 in the hotbar (if there is one)
• r: selects a random unoccupied slot in the hotbar
• a: selects all slots in the hotbar
Examples
/enchant @p 231 48 4 [hot_bar=3]
- Enchants a bow with Power V if it is in the third hotbar slot
/give @p 231 [hot_bar=p/r/a]
- Used in a similar fashion to the player selectors, @p, @r, and @a. These arguments will not carry out if there is not an open slot in the hotbar.
[inventory_slot=<rows 1-3 columns 1-9> or or <r> or ]
• Row column: Like a grid. Rows are horizontal going from top to bottom (1-3 respectively) and columns (vertical) go by 1-9 (left to right respectively). Put the numbers directly next to each other when used
• p: selects the closest unoccupied slot in accordance to slot 1 in the inventory (if there is one)
• r: selects a random unoccupied slot in the inventory
• a: selects all slots in the inventory
Examples
/give @p 232 32 [inventory_slot=33]
- Puts 32 arrows in the third row, third column of the player’s inventory
/clear @p [inventory_slot=p/r/a]
- Used in a similar fashion to the player selectors, @p, @r, and @a. These arguments will not carry out if there is not an open slot in the hotbar. It will either clear the nearest slot, a random slot, or all slots.
[armor_slot=<head/1> <chest/2> <legs/3> <feet/4> or or <r> or ]
• Armor slot: selects head, chest, legs, or feet, or 1, 2, 3, and 4, respectively. If the item is not compatible, or if the slot is occupied, the item will not be equipped.
• p: selects the closest unoccupied armor slot (if there is one)
• r: selects a random unoccupied armor slot
• a: selects all armor slots
Examples
/clear @p 311 [armor_slot=2/head]
- Gives the player a diamond chestplate and equips it to their chest
/enchant @p 0 4 [armor_slot=a]
- Enchants all armor that the player is wearing with Protection V
Uses:
• Can be used to organize/customize a player’s inventory with vanilla commands
• Can be used to give a specific layout to a player’s inventory in adventure maps and minigames
• Can be used to give and enchant an item without having to be holding that item
• Can be used to clear a specific slot in the player’s inventory
Notes:
• When referring to a mob that can hold/wear items, these arguments can be used with mob targeters (explained below). In these cases, all non armor inventory targeters will automatically target the mobs held item.
• If targeting an already-occupied slot, the command will not carry out (exception for mobs. This can be used to replace their possessions.)
More Targeters
Mobs:
@pm: Targets the closest mob
@rm: Targets a random mob within a range
@am: Targets all mobs within the area
Mob Targeter Arguments
[mob=<Savegame ID of mob type>]
• Argument used to target a mob of a specific type or name
[mob=!<mobs other than the specified type>]
• Argument used to target any mobs other than the listed mob of a specific type or name
[mob_name=<given name of a mob (mob’s name)>]
• Argument used to target a mob by given name
[mob_name=!<mobs not of given name (mob’s name)>]
• Argument used to target mobs not by the given name
Examples
/give @pm 276 [mob=PigZombie]
- Gives the closest Zombie Pigman a Diamond Sword
/tp @rm <xyz> [mob=!Pig]
- Teleports a random mob that is not a pig to the given coordinates
/tp @am jeb [mob=Cow,mob_name=(Notch)]
- Teleports all cows named Notch to Jeb
/effect @a 1 60 1 [mob=!Pig,mob_name=!(Jeffrey Jinks)]
- Gives all non-pig mobs that are not named Jeffrey Jinks Speed II for one minute
Mobs and Players:
@po: Targets the closest mob OR player
@ro: Targets a random mob OR player
@ao: Targets all mobs AND players within the area
This feature is fairly self explanatory, and as you may be able to guess, it targets both players and mobs. But for the heck of it, I will give a few example commands to show how it is used.
Examples
/tp @po <xyz> [player_name=Jeb,mob=EntityHorse]
- Teleports a horse, or Jeb to given coordinates depending on whichever is closer to the source of the command
/tp @ao notch [player_name=!Notch]
- Teleports all players and mobs except for Notch, to Notch
/tp @ro <xyz>
- Teleports a random player or mob to given coordinates
Pathways Paved for New Commands:
The /name Command
/name <mob/player> [name] [arguments]
• When targeting a mob, this simply names the mob (unless an inventory editing command is used)
• When targeting a player, it will by default name the item they are holding, but inventory arguments can be used to name specific items
Examples
/name @am [Dinnerbone]
- Names all mobs Dinnerbone
/name @p [Death Blade] [hot_bar=1]
- Names the first item in the closest player’s hotbar “Death Blade”
The /spawnmob Command
/spawnmob <SavegameID> <# of Mobs> [arguments]
• This command can spawn mobs (derp)
Example
/spawnmob PigZombie 4 [xyz]
- Spawns 4 Zombie Pigmen at given coordinates
Ok, let me know if I either missed some details, or if you have any ideas to expand this topic. Please be polite on this thread. Even if someone “derps” out, be kind and understanding.
Thanks!
http://www.minecraft...orld-version-3/
http://www.minecraft...orld-version-3/
Hello darkness, my old friend I've come to talk with you again because a vision softly creeping left its seeds while I was sleeping and the vision that was planted in my brain still remains within the sound of silence
P.S. For some reason I couldn't open the spoilers :c
Thanks!
See if the spoilers will work in this reply box. You never know. . .
/enchant @p 231 48 4 [hot_bar=3]
- Enchants a bow with Power V if it is in the third hotbar slot
/give @p 231 [hot_bar=p/r/a]
- Used in a similar fashion to the player selectors, @p, @r, and @a. These arguments will not carry out if there is not an open slot in the hotbar.
/give @p 232 32 [inventory_slot=33]
- Puts 32 arrows in the third row, third column of the player’s inventory
/clear @p [inventory_slot=p/r/a]
- Used in a similar fashion to the player selectors, @p, @r, and @a. These arguments will not carry out if there is not an open slot in the hotbar. It will either clear the nearest slot, a random slot, or all slots.
/clear @p 311 [armor_slot=2/head]
- Gives the player a diamond chestplate and equips it to their chest
/enchant @p 0 4 [armor_slot=a]
- Enchants all armor that the player is wearing with Protection V
/give @pm 276 [mob=PigZombie]
- Gives the closest Zombie Pigman a Diamond Sword
/tp @rm <xyz> [mob=!Pig]
- Teleports a random mob that is not a pig to the given coordinates
/tp @am jeb [mob=Cow,mob_name=(Notch)]
- Teleports all cows named Notch to Jeb
/effect @a 1 60 1 [mob=!Pig,mob_name=!(Jeffrey Jinks)]
- Gives all non-pig mobs that are not named Jeffrey Jinks Speed II for one minute
/tp @po <xyz> [player_name=Jeb,mob=EntityHorse]
- Teleports a horse, or Jeb to given coordinates depending on whichever is closer to the source of the command
/tp @ao notch [player_name=!Notch]
- Teleports all players and mobs except for Notch, to Notch
/tp @ro <xyz>
- Teleports a random player or mob to given coordinates
/name @am [Dinnerbone]
- Names all mobs Dinnerbone
/name @p [Death Blade] [hot_bar=1]
- Names the first item in the closest player’s hotbar “Death Blade”
/spawnmob PigZombie 4 [xyz]
- Spawns 4 Zombie Pigmen at given coordinates
http://www.minecraft...orld-version-3/
Oh well.
http://www.minecraft...orld-version-3/
http://www.minecraft...orld-version-3/