For the shop part you can also add extra commands to ensure the player executing the command gets the item and pays for it Such as adding a tag in the npc then removing it at the end of the chain Or maybe using execute if entity or something But I didn’t wanna make the video even longer as realised it’s already quite long and confusing for new players
It doesn’t work for me because if I don’t have the diamonds I can still get the emerald for free same with the other way around and with any other custom trade, can you fix this please?
It’s like I’m about to start doing NPC for my private realm and boom you drop a vid, so glad I found your videos the other week when I was searching for command tutorials you and like 3 others have actual good videos that WORK
Hello, thank you for this wonderful tutorial. It has been helpful for my world to have this. But as experiment goes success. I found that the scoreboard thing can still function in the npc system that made it easier and saved up space. Thank you so much for showing that npc mob existed.
Do you know if there’s a way to make levels? Like you must reach a level to be able to unlock future trades? I want to make an arena and the mobs only drops 1 of the currency (emeralds) but make it be that they must beat a certain amount of waves to be able to then trade for better items
4:40 how can I make scoreboard go up whenever you pick up a specific item? And make it go down when they trade with the npc and lose that item? And how do I give points to whoever killed a mob?
Just gotten the hang of doing the shop system using the old execute commands and blocks. Now they go and change it, and for some reason I can't get this to work.... Screwed up my whole realm....
When I use an item that has two words in it, for example iron ingot, it doesn’t work. I have tried many different things, like using _ to separate the words but it just isn’t working. Is there anything I am doing wrong?
I was trying to do this and for some reason it didn't work at all? I know this video is a little old but could the version of the game cause this? Can experiments break this?
Yep doesn't work for me, it's been 2 days that i chercj and nothing, is this cause im on switch? Or the 1.20 modified command ? Pls help i had enough of cherching
I have a question, I tested it out for me with a full inventory and it took the emerald and said it gave me 5 bread though I have no bread in my inventory and that slot in my hotbar is now empty. is there a way for it to do this without me needing 1 spare inventory slot open?
I tried it and it’s not working. I’m on the Xbox bedrock the most recent edition for Xbox bedrock too but it still just isn’t working I put the command in right and I tried some solutions from the commons and it’s just not working someone please help
my command isn't working : /give @initiator[hasitem={item=netherite_block,quantity=5..}] nether_star 1 /clear @initiator[hasitem={item=netherite_block,quantity=5..}] netherite_block 0 5 how ido i fix it it
the diamknd shop was wrong,idk abt the other command block chain cuz i havent watched it all but it executes if theres IS a player with 16 or more diamonds
@@someone94949 your wrong 2.. means 2 or more so this would execute if a player has 2 or more your system would only work if the player had no diamonds on them your thing is completely incorrect 😂
@@jackdellwood8929 rethink before posting a reply, he was right, it executes it as ANY PLAYER, who has 16 or more diamonds, so even if the one who is actually trying to buy stuff doesn't have enough, the money will be added. Also, he said quantity=amount, he didn't tell anyone not to use the 2 dots. Another thing - you said it would only work if they had NO diamonds on them. That makes no sense, the subcommand if would fail if you don't have enough diamonds, that also happens when you have none at all. Judging by the laughing emoji, you were probably trying to mock them, so this is kind of embarrassing.
Man, this is perfect, this is exactly what I'm looking for! I love that you put two different options as well. This is huge for my minecraft server. Thank you so much :)
I'm doing one chunk and superflat challenges right now. I have been finding a way to make wandering trader sell lava and end portal frames (customize their trade list somehow). I know I can just spawn the lava and throw my emerald away as a pretending purchase but I kinda want to make it so I have to wait for the wandering trader to show up with the trades I need. Is there a way to do that in Bedrock?
Hey. Me and my friends made a world together. I was on the sever alone and I thought I should make a shop. So I had the idea to look on the internet to see if I could make my own villager trades and I found this vid. So I watch it and as soon as I did the command. It did not work. Its 2025 so it could be the age but if not please help me
This is good… but it seems there’s a few problems with the code. 1, the money still adds it into people’s “money” account even if they do not have enough diamonds to sell. 2, if someone tries to sell diamonds and does not have enough, it will put it in everyone else’s account. Any way to fix this? I quadruple checked my code and everything seems to be the same as yours. Maybe I am executing it wrong somehow?
these should not be issues, with the way the system is setup as far as I remember. Do you have discord? If so join mine and open a post in command block help and i'll try help! As it's a lot easier than here.
that's odd, im not overly sure on this one without knowing what you typed exactly, do you use discord? If so, could you please send a screenshot or photo of the command block and error? thanks!
not a ques: tell us ALL ALL ALL every single one of the secret block and how can we empty block (example 64x78x64 and Make more videos and where is the discord link
Sorry to hear you're having issues. What errors are you getting? also if you have discord & can open a post in the command block help channel, you will be able to send screenshots / pictures of the command and get a quicker reply. My discord is on my about me page! if not, reply to this & ill try reply though replying to replies of comments can be hard
@@VIPmanYT srry im responding so late but im trying to make a prison server and i need to make a command in the npc to were 32 dirt for a wooded shovel I tried to just replace words and quantities but did not work.
i dont know whats going on can someone pls help me because this command doesnt seem to work, can somebosy let me know if this is right or wrong pls give @initiator[hasitem={item=diamond,quantity=2..}] emerald 1 clear @initiator[hasitem={item=diamond,quantity=2..}] diamond 0 2
Sorry to hear you're having issues. What errors are you getting? They should stay spawned in at all times. I'm confused. also if you have discord & can open a post in the command block help channel, you will be able to send screenshots / pictures of the command and get a quicker reply. My discord is on my about me page! if not, reply to this & ill try reply though replying to replies of comments can be hard
Just do /give @initiator and (and then the item u want) And down below just do /clear @initiator (the thing u want to remove) and how much u wanna remove just do this 0 and then the amount (All in the same command)
@@Mysteriousindividualguy the definition of a npc and I quote a non playable character that's what a villager is, bruv you acting like a npc 💀 villagers are a npc nub
For the shop part you can also add extra commands to ensure the player executing the command gets the item and pays for it
Such as adding a tag in the npc then removing it at the end of the chain
Or maybe using execute if entity or something
But I didn’t wanna make the video even longer as realised it’s already quite long and confusing for new players
It doesn’t work for me because if I don’t have the diamonds I can still get the emerald for free same with the other way around and with any other custom trade, can you fix this please?
I have another problem...
The Npc takes my emeralds and gives me no diamonds
@@Louis-ex9hq yeah that happens to me too
How abt that adventure tool? That u can break certain block?
@Zong_The_Fox I used to use it all the time but after they updated the commands I just stayed away from them because they are different now
It’s like I’m about to start doing NPC for my private realm and boom you drop a vid, so glad I found your videos the other week when I was searching for command tutorials you and like 3 others have actual good videos that WORK
Hello, thank you for this wonderful tutorial.
It has been helpful for my world to have this. But as experiment goes success. I found that the scoreboard thing can still function in the npc system that made it easier and saved up space. Thank you so much for showing that npc mob existed.
Do you know if there’s a way to make levels? Like you must reach a level to be able to unlock future trades? I want to make an arena and the mobs only drops 1 of the currency (emeralds) but make it be that they must beat a certain amount of waves to be able to then trade for better items
give @initiator[hasitem={item=diamond,quantity=2..}] emerald 1 clear @initiator[hasitem={item=diamond,quantity=2..}] diamond 0 2
thank you
Thank you
@@prinlgetastic2same l:
0:31
3:10
4:40 how can I make scoreboard go up whenever you pick up a specific item? And make it go down when they trade with the npc and lose that item? And how do I give points to whoever killed a mob?
Just gotten the hang of doing the shop system using the old execute commands and blocks. Now they go and change it, and for some reason I can't get this to work.... Screwed up my whole realm....
When I use an item that has two words in it, for example iron ingot, it doesn’t work. I have tried many different things, like using _ to separate the words but it just isn’t working. Is there anything I am doing wrong?
Same, I’m making bedwars and when I try to make a iron for wool trade I can’t use iron ingots
Did you ever figure it out???
@rowan-jw9id I'm doing the same thing and it is not working for me either even with one word items.
give @initiator[hasitem={item=iron_ingot,quantity=?quantity?..}] ?item? ?quantity?
The question marks are for you to add an amount 😊
Guys, just put it like this: "iron ingot"
I was trying to do this and for some reason it didn't work at all? I know this video is a little old but could the version of the game cause this? Can experiments break this?
I am t 1.21.31.04 and it still works maybe u should disable experiments or u just got the command wrong
@@Fivenightplayz6644 it's fine, I found a different method but gave up doing this stuff anyway
@@crimsonshadowz1008 alr
Does it work with modded items! Like if I added a custom item and wanted it to be traded for something in the game, like bread?
Thankyou SO much! This was exactly what I was looking for and so many other videos just didn't have the right commands. Thanks dude
I did everything correctly. But I can't trade with the npc, also it has no hp so a misclick can delete all ur progress. Thanks anyway
It would be nice if in the description or pinned comment it shows the command so you can just copy that then edit to what you need
I don’t do that because the retention of my videos are already super low so if I did that no one would watch at all.
@@VIPmanYTI respect that
does the @p in the buy and sell commands target around the npc or the command block
This is cool as hell
glad you enjoyed it!
Yep doesn't work for me, it's been 2 days that i chercj and nothing, is this cause im on switch? Or the 1.20 modified command ? Pls help i had enough of cherching
Same
I saw your other vid about this and both helped so much thanks
I have a question, I tested it out for me with a full inventory and it took the emerald and said it gave me 5 bread though I have no bread in my inventory and that slot in my hotbar is now empty. is there a way for it to do this without me needing 1 spare inventory slot open?
You can try adding tick deley to the give block. Maybe set it to 10 tick deley.
Do you think that will fix the issue or help at least get around it
Dude thank you so much, this has helped me get my server started.
I got the part where it takes away the item but it wont give the other item to me
did it the way you did it
I tried it and it’s not working. I’m on the Xbox bedrock the most recent edition for Xbox bedrock too but it still just isn’t working I put the command in right and I tried some solutions from the commons and it’s just not working someone please help
Hey does this work with items that have spaces in their names, like the Pottery Sherds
I'm pretty sure it's called "pottery_shards" put an underscore to indicate thats space
Dumb
How do you do this with names items?
Im tried the command but it is not working, please help
my command isn't working : /give @initiator[hasitem={item=netherite_block,quantity=5..}] nether_star 1 /clear @initiator[hasitem={item=netherite_block,quantity=5..}] netherite_block 0 5 how ido i fix it it
initiar is his name
No, initiator is the person that opened the dialog. I believe your problem is that you put "/give", not "give"
"clear" Just cleared my whole inventory
the diamknd shop was wrong,idk abt the other command block chain cuz i havent watched it all but it executes if theres IS a player with 16 or more diamonds
yep second one too
do execute at @e[tag=DiamondShop] if entity @p[hasitem={item=...?,quantity=...?}] run command
@@someone94949 your wrong 2.. means 2 or more so this would execute if a player has 2 or more your system would only work if the player had no diamonds on them your thing is completely incorrect 😂
@@jackdellwood8929 rethink before posting a reply, he was right, it executes it as ANY PLAYER, who has 16 or more diamonds, so even if the one who is actually trying to buy stuff doesn't have enough, the money will be added. Also, he said quantity=amount, he didn't tell anyone not to use the 2 dots. Another thing - you said it would only work if they had NO diamonds on them. That makes no sense, the subcommand if would fail if you don't have enough diamonds, that also happens when you have none at all. Judging by the laughing emoji, you were probably trying to mock them, so this is kind of embarrassing.
Trade commands do not work
It works well in my case, thank you so much. I just can't help looking at some comments, and the only thing I can say is that it must be a typo..
The befor last command doesnt work for me
???
The first part did not work
Man, this is perfect, this is exactly what I'm looking for! I love that you put two different options as well. This is huge for my minecraft server. Thank you so much :)
Glad it was helpful! Thanks for such a positive comment 👍
I'm doing one chunk and superflat challenges right now. I have been finding a way to make wandering trader sell lava and end portal frames (customize their trade list somehow). I know I can just spawn the lava and throw my emerald away as a pretending purchase but I kinda want to make it so I have to wait for the wandering trader to show up with the trades I need. Is there a way to do that in Bedrock?
doesn't work for me is there anything im doing wrong?
how do i make it so for example you spend 2 diamonds to get multiple things like a leather armor set
For the NPC shop - Can u place the commands block anywhere? also Great Video Btw. :)
Yes, u can, u just have to get the right quards
He just did it to make it easier to get to
Tried the first one. Doesnt work for me. Coppied it completely and cant get it to work.
use @p instead it worked for me when I changed it
how do I get them to only purchase one stack at a time if I have multiple?
It’s not working for me and I followed everything you did I’m on bedrock too so I don’t know what I am doing wrong
You might be doing the commands wrong cause I was stuff with the scoreboard commands and coudent do them because you have to do them in a specific way
What version is this for?
bedrock
can i have someone put a copy and pastable version in
Lets go its the new vid
Thank you sir
Nice
I have a problem. When I do the tag command they say no target.
Hey. Me and my friends made a world together. I was on the sever alone and I thought I should make a shop. So I had the idea to look on the internet to see if I could make my own villager trades and I found this vid. So I watch it and as soon as I did the command. It did not work. Its 2025 so it could be the age but if not please help me
For me even if the play has 0 they can buy the item, not get it and be in the negatives
If @initator doesn’t work do @p it gives it to the closest player which should work just as fine
Your insane.
what does the 0 2 at the end do
How do you do this with enchanted items?
This is good… but it seems there’s a few problems with the code. 1, the money still adds it into people’s “money” account even if they do not have enough diamonds to sell. 2, if someone tries to sell diamonds and does not have enough, it will put it in everyone else’s account. Any way to fix this? I quadruple checked my code and everything seems to be the same as yours. Maybe I am executing it wrong somehow?
these should not be issues, with the way the system is setup as far as I remember. Do you have discord? If so join mine and open a post in command block help and i'll try help! As it's a lot easier than here.
hey, why does mine give " No targets matched selector " may you please help me?
that's odd, im not overly sure on this one without knowing what you typed exactly, do you use discord? If so, could you please send a screenshot or photo of the command block and error? thanks!
You play on bedrock?
What if you cannot afford it? Like I only have one diamond and I trade.
THANKS SO MUCH FOR THE
Could you add a warning if you don’t have the price? Basically an insufficient funds system.
Is it work on 1.16?
Does this work in mcpe?
People who want the commands also in description
👇
I can’t find the command for large fern
Dont work
its not working for me i think it might be because im suspended from multiplayer will try again soon
Can't you just use give and clear commands instead of all that?
Dosen t work?
not a ques: tell us ALL ALL ALL every single one of the secret block and how can we empty block (example 64x78x64 and Make more videos and where is the discord link
Can you pls help it is not working
It did not work for me
try doing @p instead of @initiator
Why mine no work I did mine right but no work
does this work on bedrock? i cant get it to work
yeah I recorded on bedrock
this isn't working for me can I ge some help😕
Wont let me do multiple commands
It does not work
Sorry to hear you're having issues.
What errors are you getting?
also if you have discord & can open a post in the command block help channel, you will be able to send screenshots / pictures of the command and get a quicker reply. My discord is on my about me page!
if not, reply to this & ill try reply though replying to replies of comments can be hard
@@VIPmanYT srry im responding so late but im trying to make a prison server and i need to make a command in the npc to were 32 dirt for a wooded shovel I tried to just replace words and quantities but did not work.
This is huge for my drugs shop in my gta city
could anybody put the commands in the comments because most of us cant do two things at once
can someone type in the commands?
no
i dont know whats going on can someone pls help me because this command doesnt seem to work, can somebosy let me know if this is right or wrong pls
give @initiator[hasitem={item=diamond,quantity=2..}] emerald 1 clear @initiator[hasitem={item=diamond,quantity=2..}] diamond 0 2
doesn't work.
Van someone give me a working comand
Trade 1 iron pickaxe for 15 emeralds?
Please?
I spent a hour and could not get it to work
He wrote that dialogue wrong XD
HOW DO MAKE IT ON A SERVER AND THEY DONT DESPAWN AFTER WHILE AND HOW DO YOU MAKE THEM KEEP SPAWN (typed it in all caps to get a answer asap
Sorry to hear you're having issues.
What errors are you getting? They should stay spawned in at all times. I'm confused.
also if you have discord & can open a post in the command block help channel, you will be able to send screenshots / pictures of the command and get a quicker reply. My discord is on my about me page!
if not, reply to this & ill try reply though replying to replies of comments can be hard
does this still work
the hasitem part syntax has likely changed. If you edit it to the new one, yes.
@@VIPmanYT what's the new one
It’s doesn’t work for ffs
This is NPC shop not villager
First
Nonsense WHY DO I NEED A SCOREBOARD THIS SUCKS
Can someone chat the commands so we can copy and paste them? I'm too lazy to do it myself lol.
People there is a easier way
Just do /give @initiator and (and then the item u want)
And down below just do /clear @initiator (the thing u want to remove) and how much u wanna remove just do this 0 and then the amount
(All in the same command)
Btw y’all don’t need to follow mine
@@QuitSorry123 thanks for trying to help, but the clear does not work whatso ever
@@QuitSorry123can u do an example?
Tangan ke atas
I love how he said custom villager trade but says to use a npc 💀
The NPC is a villager and a villager is a npc
@@JkrTheExiled bruh npc doesn't live on village so they don't have the rights to be called a villager
@@Mysteriousindividualguy the definition of a npc and I quote a non playable character that's what a villager is, bruv you acting like a npc 💀 villagers are a npc nub
@@Mysteriousindividualguy sure it's not a villager but it acts just like a villager so technically it's counts as a villager as well
It's so much COMMANDS
/give @initiator[hasitem={it=item, quantity=2..}] item 1 clear
thank you so much bro
/give @p spawn_egg 1 51
give @initiator[hasitem=(item=diamond.quantity
what would the command be for iron instead of diamonds? for the life of me its not working
/give @spawn_egg 1 51
309 60 2
Thanks bro
No problem thanks for watching!
doesnt work
its working now
How@@unfinishedart7797
Give @initiator[hasitem={item=diamond,quantity=2..}] emerald 1
clear @initiator[hasitem={item=diamond,quantity=2..}] diamond 0 2
It doesn't work