I want to set a Command Block that is hidden so when the player activates it by a button it'll give them an enchanted item based off their input. (the first part of a greater system)
so far I can use /give @p iron_sword 1 0 {ench:[{id:16,lvl:10}]}
to give an Iron Sword with a Level 10 Sharpness Enchantment.
What I want to do is alter the above command so iron_sword
, 16
and 10
can be inputted by the player (who will have a guide), so when the player activates the command block from a button they'll be asked to input these values. however when I google search minecraft command block player input i'm either getting "player input" as in the interface of the command block you create the commands or using /testfor
So how can I alter the command above so the player is asked to input the values?
NOTE: this is for 1.7.10