Actually after logging onto minecraft and checking, there is a even better way of removing the items that have 0 losses. **/clear @p[hasitem={item=gold_ingot,quantity=5},r=5]gold_ingot 1 5** What this does is clears 5 gold from the closest player THAT HAS 5 gold. NOT the actual closest player. Obviously this system can be abused to force others to buy the items and waste 5 gold but thats why the **r=5** is there (this number can be increased or decreased). Instead of abusing it cross map, it clears gold from the closest player within a 5 block radius RELATIVE to the COMMAND BLOCK (CHANGING the place its relative from can be done with **/execute**). This is NOT a PERFECT system but at least its better then clearing from the closest player and wasting their resources.
If you guys don’t know how to get a NPC heres the command: */give @p spawn_egg 1 51* Enjoy your NPC and @Legend’s tutorial is very useful, thanks @Legend!
The way to get an npc spawn egg has changed, used to you could do this but now you have to do /summon npc, then have a key bind set to “pick block” then click on the npc with that button.
i did a little testing, and i you want to short with space and not have so many chain command blocks in a row, first place a command block just like he does and add the command, but when you place the chain command block do the exact code he does but instead of one you can put one number lower then you need. for instance, shears for 20 iron so do the chain command block as /clear @p iron_ingot 0 19 and then place another command block and type /clear @p iron_ingot 01 and then add another block with the shears. you can save 20 blocks of space. but thank you Legendcraft for the amazing video!! liked and subscribed :)
I had the same idea but your design and my design both randomly get rid of a random amount of iron, gold, ect when I try to execute the shop keepers so it’s the person nearest to the shop keeper gets the item
Well I know that this comment won’t get many views but instead of making 5 command blocks for 5 gold you can make 2 one clearing 4 gold and the other one clearing 1.
Very good tutorial (which is onto date) just to remind everyone when they do this if you use this if you click the button it will actually show what the command did in chat, the way to fix this is do /gamerule sendcommandfeedback false
I searched a while to find what i was looking for. Needed this for upcoming additions to a survival server of mine. It works well! There is just one problem. If you dont have the right amount of an item to buy another item, say 3 gold and theres 5 bread for 5, if you try to buy the bread, it will take the gold away and the chain ends. Basically scamming the player of gold in exchange for nothing. Wether this can be fixed im not sure. But the commands work and the probability someone will not bring the right amount of gold is very low!
I guess you could make a another command block bellow it that gets activated when it stops so if you have one gold for something like a 3 gold chest plate it will take away the one gold but then it will activate the other command block giving you one gold back
The problem is when you buy a Diamond sword, (it's cost 5 Gold ingot) and you only have 4 gold and you buy it's, just clear your gold ingot because the command block is clearing 1 gold ingot 5 times and because you have 4 gold ingot you can continue the command block chains.
The thing is that if you don’t have enough gold instead of not just getting the iron sword the entire system will take away from you gold without giving you the trade .
use clear @p[hasitem={item=gold,quantity=5..(price of your item)}] gold 1 5 The two dots after your price are important and this command will only remove your gold if you have atleast 5 gold
Damn you really are a legend thank you! Also is there a way to cancel the purchase if you dont have enough diamonds and make it give the diamonds you had back?
Can anybody help me? I have tried multiple different methods. Nothing works. The buttons on the npc appears but when I click the button it just exits me out the npc chat and doesn’t take my item for another item😭
I had a problem with the items. When for example, you will trade 5 gold nuggets to a cooked beef, the system will still give you the cooked beef even if you have no nuggets. The tutorial is perfect but i was shocked when i tried it. I'm using MCPE 1.18.2 version. i hope this'll get notice
If you have 3, it should start taking them away, but if you do not have enough, the chain should stop. Make sure all of the command blocks are set to conditional. Let me know if that helps!
@@legendcraftb_ Yes that works. My problem was even without the gold nuggets, the system still gives you the product even if you don’t have or if you lack quantity of the product you will exchange. But system does take away the nuggets.
Hey bro I'm a fellow subscriber. I'm making the setup far away from the NPC and apparently, it's not working could you tell me a solution would be a pleasure. By the way, love the video, and keep going.
Go into every command block except for the first one, then type in “/execute @e[type=npc,c=1,name=(name of npc)] ~ ~ ~” at the beginning of the command
The thing is, you lose resources, why don’t you make it clear all the resources at once and the next command block is conditional then you wouldn’t be able to buy something you can’t afford and you won’t lose anything, and if you want you can make it say you can’t afford
Hello! I'm new to your channel! Thanks for the tuturials!(commands,island and the custom villager trades) I want to help with subing. Enjoy your sub :D
I dont know I tried every step but I doesn't work it either is because I'm not on minecraft bedrock or I did something wrong I am on mobile and on minecraft not Java not bedrock only minecraft
Your last vid and the one before that about bedwarz the gold wouldn't spawn on the gold block? It just was shot out of the dropper and you had to collect it there ?!
Hey! Just wanted to tell that there’s an easier way. Instead of doing 1 of each chain command blocks for each gold that us replaced with (Example: Wool) you can just do a chain command block with: */clear @p 0 (Amount of ore taken away)*
And instead of doing @p (relative to the command block) you can use **/execute “[shop name]” ~~~ give @p……..”** that way its a bit more accurate to the player its giving the items to
Actually after logging onto minecraft and checking, there is a even better way of removing the items that have 0 losses. **/clear @p[hasitem={item=gold_ingot,quantity=5},r=5]gold_ingot 1 5** What this does is clears 5 gold from the closest player THAT HAS 5 gold. NOT the actual closest player. Obviously this system can be abused to force others to buy the items and waste 5 gold but thats why the **r=5** is there (this number can be increased or decreased). Instead of abusing it cross map, it clears gold from the closest player within a 5 block radius RELATIVE to the COMMAND BLOCK (CHANGING the place its relative from can be done with **/execute**). This is NOT a PERFECT system but at least its better then clearing from the closest player and wasting their resources.
Can't we just put in the chain blocks how many we want taken like in the 1st chain we say "/clear @p diamond 4" in the 1st block instead of drawing it out so it will only be 3 blocks in the line. 1 for redstone, 1 for taking away diamonds, and 1 for giving the item that was bought
@@legendcraftb_ Actually after logging onto minecraft and checking, there is a even better way of removing the items that have 0 losses. **/clear @p[hasitem={item=gold_ingot,quantity=5},r=5]gold_ingot 1 5** What this does is clears 5 gold from the closest player THAT HAS 5 gold. NOT the actual closest player. Obviously this system can be abused to force others to buy the items and waste 5 gold but thats why the **r=5** is there (this number can be increased or decreased). Instead of abusing it cross map, it clears gold from the closest player within a 5 block radius RELATIVE to the COMMAND BLOCK (CHANGING the place its relative from can be done with **/execute**). This is NOT a PERFECT system but at least its better then clearing from the closest player and wasting their resources.
@@NightMaree404 Actually after logging onto minecraft and checking, there is a even better way of removing the items that have 0 losses. **/clear @p[hasitem={item=gold_ingot,quantity=5},r=5]gold_ingot 1 5** What this does is clears 5 gold from the closest player THAT HAS 5 gold. NOT the actual closest player. Obviously this system can be abused to force others to buy the items and waste 5 gold but thats why the **r=5** is there (this number can be increased or decreased). Instead of abusing it cross map, it clears gold from the closest player within a 5 block radius RELATIVE to the COMMAND BLOCK (CHANGING the place its relative from can be done with **/execute**). This is NOT a PERFECT system but at least its better then clearing from the closest player and wasting their resources.
I have a problem with it. It's just I'm worried that other players will abuse it. Because even if you don't have diamond or other, the command blocks will still give it to you. It does take away your money but the problem is you can still have it for free T~T.
Actually after logging onto minecraft and checking, there is a even better way of removing the items that have 0 losses.
**/clear @p[hasitem={item=gold_ingot,quantity=5},r=5]gold_ingot 1 5**
What this does is clears 5 gold from the closest player THAT HAS 5 gold. NOT the actual closest player. Obviously this system can be abused to force others to buy the items and waste 5 gold but thats why the **r=5** is there (this number can be increased or decreased). Instead of abusing it cross map, it clears gold from the closest player within a 5 block radius RELATIVE to the COMMAND BLOCK (CHANGING the place its relative from can be done with **/execute**).
This is NOT a PERFECT system but at least its better then clearing from the closest player and wasting their resources.
Ty for the heart and pin good sir (:
Wow didn’t know about this… a solution to many comments!
Why he said no matched target selector?
@X Chase it's doesn't work
This only works if you have EXACTLY 5 gold, no more and no less, but other than that, it’s great!
If you guys don’t know how to get a NPC heres the command:
*/give @p spawn_egg 1 51*
Enjoy your NPC and @Legend’s tutorial is very useful, thanks @Legend!
So that is how you get
Or /summon Minecraft:npc
Do u need any mod for it??
@@hungeriscrazy nope
The way to get an npc spawn egg has changed, used to you could do this but now you have to do /summon npc, then have a key bind set to “pick block” then click on the npc with that button.
i did a little testing, and i you want to short with space and not have so many chain command blocks in a row, first place a command block just like he does and add the command, but when you place the chain command block do the exact code he does but instead of one you can put one number lower then you need. for instance, shears for 20 iron so do the chain command block as /clear @p iron_ingot 0 19 and then place another command block and type /clear @p iron_ingot 01 and then add another block with the shears. you can save 20 blocks of space.
but thank you Legendcraft for the amazing video!! liked and subscribed :)
thx
my price is 128 diamonds for car (addon)
This should be the pinned comment tbh
Subscribe if this was helpful!
I had the same idea but your design and my design both randomly get rid of a random amount of iron, gold, ect when I try to execute the shop keepers so it’s the person nearest to the shop keeper gets the item
Wait the others chain command block is the same command?
Im a new sub
@@ghostmc1262 yep
Thank You
Well I know that this comment won’t get many views but instead of making 5 command blocks for 5 gold you can make 2 one clearing 4 gold and the other one clearing 1.
W Comment
Or you could just do one that take away 5 right?
@@Atlas-loves-gamingI’m wondering the same. I haven’t started building but in case there’s an answer I’ll be here
@@Atlas-loves-gaming yea that also works
@@Atlas-loves-gaming then it will work even if you have 1 of the thing.
Thank you so much I started my own server with this 😊
can i get ip pls?
How many people joined? And also can I get it plz?
Hey I did the same thing
ip?
You know there is a easyer way to do this
Very good tutorial (which is onto date) just to remind everyone when they do this if you use this if you click the button it will actually show what the command did in chat, the way to fix this is do /gamerule sendcommandfeedback false
I'm good at commands in Minecraft
Thank you man, this was the only actual working tutorial. You earned a new sub :D
I searched a while to find what i was looking for. Needed this for upcoming additions to a survival server of mine. It works well! There is just one problem.
If you dont have the right amount of an item to buy another item, say 3 gold and theres 5 bread for 5, if you try to buy the bread, it will take the gold away and the chain ends. Basically scamming the player of gold in exchange for nothing.
Wether this can be fixed im not sure. But the commands work and the probability someone will not bring the right amount of gold is very low!
I can fix it but it's a big system
I dealt with that too I don’t understand why
I guess you could make a another command block bellow it that gets activated when it stops so if you have one gold for something like a 3 gold chest plate it will take away the one gold but then it will activate the other command block giving you one gold back
ur voice went from:
ALO GUYS WELCOME TO MY MINECRAP LET PLAY
to:
sup bois
Very, very helpful! Thank you so much, was having trouble figuring out how to do this.
The problem is when you buy a Diamond sword, (it's cost 5 Gold ingot) and you only have 4 gold and you buy it's, just clear your gold ingot because the command block is clearing 1 gold ingot 5 times and because you have 4 gold ingot you can continue the command block chains.
Even if you have 1 gold ingot or 0 it'll give the weapon anyway
The thing is that if you don’t have enough gold instead of not just getting the iron sword the entire system will take away from you gold without giving you the trade .
use clear @p[hasitem={item=gold,quantity=5..(price of your item)}] gold 1 5
The two dots after your price are important and this command will only remove your gold if you have atleast 5 gold
You can just take away one less than total and then take the final piece to check if there is enough gold
Thanks so much you don’t know how much I needed this. Sub deserved👌
Damn you really are a legend thank you! Also is there a way to cancel the purchase if you dont have enough diamonds and make it give the diamonds you had back?
Thank you so much I thought I would be up all night looking for how to do this. Thank you
WHAT A LEGEND THIS MAN IS
tysm i found another one of these vids and the problem was if u have 1 of that item it would still buy it tysm now i can fix it
You are the one person out of all the comments on this video that actually understands that lol
OMG THNAK YOU!!! For me everything still works, everything is perfect besides the take away items, other then that thank you.
Yo this is great thanks man
Thanks! You just helped me make my own smp for me and my friends
Can anybody help me? I have tried multiple different methods. Nothing works. The buttons on the npc appears but when I click the button it just exits me out the npc chat and doesn’t take my item for another item😭
I was making my own custom bedwars for me and my friends but i couldnt figure out any trading system so i resorted to buttons and signs.
This video is going to change that
Is there a way to get your gold back if you accidentally press a button but don't have enough?
Thank you legendcraft i say you are legend
Thank you so much! this helped me a lot you are a real legend.
Thanks sooo much this helped out alot!
Does this work on multiplayer?
If you buy the item on the npc, will other player get the item that you just bought?
The redstone block won't place for me and it won't disappear it's kinda sad :(
I can't get the NPC to spawn with a spawn egg, and if I try it with a command the NPC spawns, but doesn't do anything. Just a comment box
Thank you man I appreciate this
I had a problem with the items. When for example, you will trade 5 gold nuggets to a cooked beef, the system will still give you the cooked beef even if you have no nuggets. The tutorial is perfect but i was shocked when i tried it. I'm using MCPE 1.18.2 version. i hope this'll get notice
If you have 3, it should start taking them away, but if you do not have enough, the chain should stop. Make sure all of the command blocks are set to conditional. Let me know if that helps!
@@legendcraftb_ Yes that works. My problem was even without the gold nuggets, the system still gives you the product even if you don’t have or if you lack quantity of the product you will exchange. But system does take away the nuggets.
I have the same problem
u legend ty sooooo much this was so helpful
Bro thank u so much bro I gonna repay you back for this
wait isnt @p to closest player. So if anyone is closer to the command block, he will get the reward. Right?
Wait cant you just use one command block to clear all items at once?
Hey bro I'm a fellow subscriber. I'm making the setup far away from the NPC and apparently, it's not working could you tell me a solution would be a pleasure. By the way, love the video, and keep going.
Go into every command block except for the first one, then type in “/execute @e[type=npc,c=1,name=(name of npc)] ~ ~ ~” at the beginning of the command
Also there must be someone close enough to the command blocks or else the wont activate
Tysm this helped so much
1:54 i really though your gonna make a sus structure
You are a legend thank youn
The thing is, you lose resources, why don’t you make it clear all the resources at once and the next command block is conditional then you wouldn’t be able to buy something you can’t afford and you won’t lose anything, and if you want you can make it say you can’t afford
I'm making a map and I don't know how to sell enchanted stuff can u help me with that
Hello! I'm new to your channel! Thanks for the tuturials!(commands,island and the custom villager trades) I want to help with subing. Enjoy your sub :D
Thanks!
I dont know I tried every step but I doesn't work it either is because I'm not on minecraft bedrock or I did something wrong I am on mobile and on minecraft not Java not bedrock only minecraft
Your last vid and the one before that about bedwarz the gold wouldn't spawn on the gold block? It just was shot out of the dropper and you had to collect it there ?!
@Legend can you make command block tutorial about team deathmatch(tdm) system?,i really need it and cab you make it multiplayer friendly?
but if a player is standing like near the command block then it will give him a diamond sword.
Thx bro you are the best
No problem! Glad it helped!
But why when player dont have enough they buy and lost their emerald
Diamond sword for 4 diamonds
*sounds like a wandering trader trade-*
No offense
Feel So Happy : )
Can we make so we don't lose gold if we don't have enough gold?
Well before you get it you can clearly see the prices so if someone wants to see if they can cheat but then lose there gold it should be there fault
Sorry, bedrock doesn't really have the capabilities :(
I know, its quite annoying
Hey! Just wanted to tell that there’s an easier way. Instead of doing 1 of each chain command blocks for each gold that us replaced with (Example: Wool) you can just do a chain command block with: */clear @p 0 (Amount of ore taken away)*
And instead of doing @p (relative to the command block) you can use **/execute “[shop name]” ~~~ give @p……..”** that way its a bit more accurate to the player its giving the items to
Actually after logging onto minecraft and checking, there is a even better way of removing the items that have 0 losses.
**/clear @p[hasitem={item=gold_ingot,quantity=5},r=5]gold_ingot 1 5**
What this does is clears 5 gold from the closest player THAT HAS 5 gold. NOT the actual closest player. Obviously this system can be abused to force others to buy the items and waste 5 gold but thats why the **r=5** is there (this number can be increased or decreased). Instead of abusing it cross map, it clears gold from the closest player within a 5 block radius RELATIVE to the COMMAND BLOCK (CHANGING the place its relative from can be done with **/execute**).
This is NOT a PERFECT system but at least its better then clearing from the closest player and wasting their resources.
@@SubtotalCamp875 true
@@SubtotalCamp875 thx
It doesnt take the diamonds? What do ido
How can I make my own iron kit
doesnt work, even when you dont have the diamonds it still gives the item
Make sure the command blocks are set to conditional
@@legendcraftb_i didnt see u say it in the video, and i already knew that, i was just waiting for a response in case i didnt have to correct you
Can't we just put in the chain blocks how many we want taken like in the 1st chain we say "/clear @p diamond 4" in the 1st block instead of drawing it out so it will only be 3 blocks in the line. 1 for redstone, 1 for taking away diamonds, and 1 for giving the item that was bought
how do you even get an npc that you can edit?? nvm i got it
Thanks !!!
But how do i get the special villager
In chat you type
/summon npc
And the npc will spawn where you are standing
you can also type in chat
/give @p spawn_egg 1 51
it is still giving me the item even when i dont have enough for the item
Ummm can you make it that it gives you the diamonds back if you don't have enough
how do you make it that when yiu buy something the menu doesnt disappear
That is not possible in vanilla due to Minecraft mechanics
What if you want modded items plssss make a tutorial
Good morning
does it work on multiplayer?
Thier is an easier way you dont need five chain command blocks you only need one
How to always show their names???
Cause mine is only when you point them
eh legend u may not remember me my old name was pex i just want to congratulate you for coming so far from 100 subs
Thanks dude it means a lot :D
@@legendcraftb_ Welcome :D
Thanks
But the likes are 666
Me hmm if a do this the restone block is still going to be there but then i SEE i just needed to put air thanks You
He yo bro pls read this instead of using 5 command block for 5 ingots u can use 1 command block for 5
Tut
/clear gold_ingot 0 5
If we did that they would get the item even if they couldn’t afford
@@legendcraftb_The quantity 5 is the maximum amount to clear so he will receive the item if you just put /clear @p iron_ingot 0 5 isn't it?
@@legendcraftb_ btw I like your video you are doing great job man
Just trying to find where an actual villager appears in this video
Work on multiplayer?
Can u show how to do this on Nintendo switch
If you have less you will lose all of that item is there a way to fix that?
Sadly this is the best system for bedrock edition
@@legendcraftb_ Actually after logging onto minecraft and checking, there is a even better way of removing the items that have 0 losses.
**/clear @p[hasitem={item=gold_ingot,quantity=5},r=5]gold_ingot 1 5**
What this does is clears 5 gold from the closest player THAT HAS 5 gold. NOT the actual closest player. Obviously this system can be abused to force others to buy the items and waste 5 gold but thats why the **r=5** is there (this number can be increased or decreased). Instead of abusing it cross map, it clears gold from the closest player within a 5 block radius RELATIVE to the COMMAND BLOCK (CHANGING the place its relative from can be done with **/execute**).
This is NOT a PERFECT system but at least its better then clearing from the closest player and wasting their resources.
How do u get it to work
It's hard but good
But will the middle 3 chain command blocks be conditional
Yep! They will.
Ngl it’s not that great bc some people would get mad that they loose their gold bc of not having enough
But, you if it was a world or a server with only your friends you can tell them to make sure
@@NightMaree404 Actually after logging onto minecraft and checking, there is a even better way of removing the items that have 0 losses.
**/clear @p[hasitem={item=gold_ingot,quantity=5},r=5]gold_ingot 1 5**
What this does is clears 5 gold from the closest player THAT HAS 5 gold. NOT the actual closest player. Obviously this system can be abused to force others to buy the items and waste 5 gold but thats why the **r=5** is there (this number can be increased or decreased). Instead of abusing it cross map, it clears gold from the closest player within a 5 block radius RELATIVE to the COMMAND BLOCK (CHANGING the place its relative from can be done with **/execute**).
This is NOT a PERFECT system but at least its better then clearing from the closest player and wasting their resources.
If I wanted it to cost 100 does that mean I have to place 100 command blocks?
Check the pinned comment :)
What is the command to clear 1 item?
Tem pra mobile?
Noice
Only Legends know How much time does it take to make a video and editing
It takes your even when you dont have enough
i did it all and it didnt work
Oof, about to build my own maps…
Can you teach me how can I give specific enchantment books? If you do, I’ll sub :)
you should still sub
@@r1cknasty567 no
I have a problem with it. It's just I'm worried that other players will abuse it. Because even if you don't have diamond or other, the command blocks will still give it to you. It does take away your money but the problem is you can still have it for free T~T.
it wont, i think you need to make the chain command blocks conditional
Same
Now can you do a tutorial on making the generators
Already have one! ruclips.net/video/uCBa_RI0lJU/видео.html
Shit doesn't even work the command block just turns to air what a waist of time
Fun Fact: If you use a command block, you don't need to use the slash.
It’s the 15th time I tried it! It doesn’t work
I follos anx like you video
0:00