Suppose you are playing an adventure map and you walk into a shop with a sign on the wall showing what is for sale. However this shop only contains one item because you have to pay for the item by dropping the currency of the map down a hole. This is such a waste of time and space because nobody wants to do this and a shop with one item is useless space. Here is where a new command comes into play. The "take command". When this command is activated it takes a specific item out of a players inventory. For example "/take @p 266 10" this would take 10 pieces of gold ingots (266) from closest players inventory. When put into a command block this could make shops be able to sell more. Another way this could be used, to ensure nobody cheats, there is a way to allow the command block to first make sure the person actually has 10 gold, same way the command block checks for if a person is in the correct gamemode for some commands. For example "/take @p 266 20 [i266<19]" this would this time take 20 gold ingots but before it took the gold, the command block would check if the person had more than 19 gold, where "i" stands for inventory and the "266" stands for the item id required and "<19" stands for the greater than 19 gold required to perform this command. Now the person would receive there item but how? Well this is where the command block works. As long as the command block stated that there inventory was true for the command, the command block will then perform the command and then set off a redstone signal from the sides that then lead to another command block that uses the give command to give the closest person the item they just paid for. In Adventure maps this could also become useful for quests. Say you found the required quest item/items then the command will take these items and again the redstone siginal will be triggered giving the player there reward.
Paragraphs are your friend. This thing is an eyesore to get through.
However, the idea isn't bad. I wouldn't mind its addition. The more commands available for command blocks, the better. They should be incredibly versatile, because the more versatile they are the more uses mapmakers can have out of them.
Rollback Post to RevisionRollBack
If you want to see a great idea for Minecraft, click the banner! Over 400 supporters and counting!
Pretty cool. Actually, if you use experience as money, all this is already possible. But I also prefer to use gold ingots, so I can see why this should be added. +1!
I can see how this command could also be very useful if used for certain things like a gathering quest on an adventure map such as having to collect so many of glistering melons. The checking system would be great for these types of quests.
However, the idea isn't bad. I wouldn't mind its addition. The more commands available for command blocks, the better. They should be incredibly versatile, because the more versatile they are the more uses mapmakers can have out of them.
If you want to see a great idea for Minecraft, click the banner! Over 400 supporters and counting!
No reason for it to not exist.
If you want to talk privately, click me...
Support.