Whenever I purchase something all it does is make a noise and doesn't give me the stuff and it doesn't take away my stuff I looked over the commands 5 times and looked in my inventory to see if I have the right amount and I do idk why it's not working
Is there a limit of how many items one NPC can sell? And, do the command blocks have to be right where the shop is or can I put them like somewhere else
It’s not random, it gives it to the closest person to the command block. To fix this to make it sorta better you can add a radius to the command block but even then, if you and another player are standing together it’ll pick whoever is closest to
Double check one of the command block settings! The command block that gives you the item should be a conditional setting. Meaning that the block can’t work unless the block in front of it triggers.
This method is way more complex than it needs to be. Here's a buy/sell shop setup that is WAY easier and has been completely tested already. ruclips.net/video/Wkkcm_p74fI/видео.htmlsi=ItM7KLSP7EP0Qb4t
Make sure the command blocks are facing the same direction. Make sure they are the correct way like conditional unconditional etc etc. Turn on the toggle under the command input to see if there are any errors when you active it
Check out my vid that has an EASY shop setup with no command blocks. Only one npc and a few commands. Fully customizable, plus I have a nice command screen that you can pause that even has markers for the things you can change to your liking. ruclips.net/video/Wkkcm_p74fI/видео.htmlsi=ItM7KLSP7EP0Qb4t
Double check commands and make sure command blocks are facing the same way. Check if the command settings (like condition and unconditional) are correct!
I have successfully set up 2 shops without any issues however during setting up the 3rd, I noticed that the command blocks internally aren’t showing what they actually are.. as in I have one set as chain but it’s showing as impulse & so on. Is there any way to fix this? I’ve just planned out a whole shop with currency and prices and now I’m unsure if I’ll be able to make it 😂
@@gabedala I’m doing the exact same thing as I had done for the previous two that are working that’s the only thing I’m confused about, I’m rinse and repeating the process whilst obviously altering the amount it cost per item and also changing said item. I’ve tried moving the blocks somewhere else, changing item, setting world to offline, changing npc and closing / opening the game again and it’s still the same. I’m just a little confused. As I said the first 2 worked perfectly fine so you’re video did its job and thank you for that but now I’m stuck 😂😂
@@xsdmk3061 are the blocks facing the same directions? And I also forgot to mention that the 3rd block will work once the first 2 go off. If the 3rd block is conditional it will only change when the 2nd block goes off
@@gabedala yeah all of the blocks are correct, they have the arrows facing up so I’m not sure what the issue is, I had a long search on google but couldn’t find any fixes so thought I’d check here. And ah okay, do you mean as in I should attempt the trade before setting up an item to get in return or?
I know this issue your on about when you have for instance a repeating command block in front of you but it says impulse what you can do is pick block that repeating block and place it back down the game doesn't know that the block has changed so it thinks that it is still the same
I have a problem, and that is that on my server, for example, I have 5 emeralds for 1 diamond, but the problem is that if I do not have emeralds in my inventory, they are taken from another player and the diamond is given to me. How do I fix it?
Hey bro how to fix, i summoned a npc but when i edit it there is no advance setting only dialogue, like i cant edit it or even put a command on it please help (p.s my version is 1.20.72)
It multiplayer friendly also. Works great because other players can be right there and not get anything of yours. It takes your money and gives you the items you bought without having to worry about a safety system
It does check if the closet player has a diamond, that’s what the 2nd command block does. It checks for the closet player to have a specific amount of diamonds (in my case it was iron) and if the player doesn’t have the right amount then it won’t go through with the command
any help on how to solve the iron ingot clearing command? i have it the same as yours but once i put the redstone block i still get the blocks without having to spend any iron
I wonder if you can do this so if you have 4 gold blocks and an obsidian block that it triggers the buy or whatever event. I understand it being able to trigger if you have 4 gold blocks, but not sure about multiple items.
@@gabedala so. The one with the 4 gold would trigger if I have 4 gold. But the one with 1 obsidian doesn’t trigger since I don’t have obsidian? And I would just lose my gold and not get what I needed? Or would I need all the items for it to all trigger and receive an item or payment?
In 1.20 you can just put /clear @p the blocks you want 0 what ever number you want
e.g. /clear @p emerald 0 20
Thank you
It still gives you item if you don't have the buying items
Yo why r u vids so helpful UR THE BEST TY
Glad you like them! Thank you!!
Damn your a hero thx man, next can I show how to make custom command like /sethome
There’s no possible way to make a /sethome command but you can do a different way with tags where you can only be teleported to your base
Whenever I purchase something all it does is make a noise and doesn't give me the stuff and it doesn't take away my stuff I looked over the commands 5 times and looked in my inventory to see if I have the right amount and I do idk why it's not working
Double check the commands and the command block settings like if it’s impulse and or conditional or not
@@gabedalaI figured it out I did () instead of {} and a , instead of .
Is there a limit of how many items one NPC can sell? And, do the command blocks have to be right where the shop is or can I put them like somewhere else
I think only 4 things at once? And you don’t need to but then you would need to add the cords to the command blocks so it knows who to give them too
@@gabedala ohh I see, thanx♡♡
@gabedala what section do you add the cords to?
Bro when 2 player are at shop it randomly give to any one
It’s not random, it gives it to the closest person to the command block. To fix this to make it sorta better you can add a radius to the command block but even then, if you and another player are standing together it’ll pick whoever is closest to
Any solution to Give only specific player who uses the npc
On the clear command it says syntax error: Unexpected "(item": at p[hasitem= (item =iron_ingot
@@TotallyCrisps it looks like you used a ( instead of { which is a wavy bracket
@@gabedala thx
@@gabedala bro i use /clear @p Gold_ingot 0 5 command but it still gives you item if you dont have gold
why does he keep giving me item?, when I don't have iron?
You have a command block wrong
@@gabedala it works now 😅, btw do you know how to make npc sell items that we have changed the name of?
Did you use texture packs or shaders in this vid?
Yes I have a shaders called Kelly RTX
I've been looking for a tutorial like this. Thanks dude.
No problem!!
Is there a way to do it with a shoulker box?
Not sure yet
I have a problem so basically it works but even if idont have the item it still gave me the purchased item how do i fix that? Or its just normal?
Double check one of the command block settings! The command block that gives you the item should be a conditional setting. Meaning that the block can’t work unless the block in front of it triggers.
Its works now! Thank you i can finally finish my horror map!
This method is way more complex than it needs to be. Here's a buy/sell shop setup that is WAY easier and has been completely tested already. ruclips.net/video/Wkkcm_p74fI/видео.htmlsi=ItM7KLSP7EP0Qb4t
When I purchased the diamond sword it cleared my whole inventory
Thanks bro
No problem!!
I really need this to work for my smp, i tripple checked all the commands please help
Make sure the command blocks are facing the same direction. Make sure they are the correct way like conditional unconditional etc etc. Turn on the toggle under the command input to see if there are any errors when you active it
Check out my vid that has an EASY shop setup with no command blocks. Only one npc and a few commands. Fully customizable, plus I have a nice command screen that you can pause that even has markers for the things you can change to your liking. ruclips.net/video/Wkkcm_p74fI/видео.htmlsi=ItM7KLSP7EP0Qb4t
I keep getting a syntax error from the "clear command block" any idea why?
Double check commands and make sure command blocks are facing the same way. Check if the command settings (like condition and unconditional) are correct!
@@gabedala thank👍
All good, but when I did it, it gave me an item even if I had an item or not. Please help.
you messed up a command then
I have successfully set up 2 shops without any issues however during setting up the 3rd, I noticed that the command blocks internally aren’t showing what they actually are.. as in I have one set as chain but it’s showing as impulse & so on.
Is there any way to fix this? I’ve just planned out a whole shop with currency and prices and now I’m unsure if I’ll be able to make it 😂
The reason why it shows it’s old command block settings is because it’s not working or you’re not doing something to active it
@@gabedala I’m doing the exact same thing as I had done for the previous two that are working that’s the only thing I’m confused about, I’m rinse and repeating the process whilst obviously altering the amount it cost per item and also changing said item. I’ve tried moving the blocks somewhere else, changing item, setting world to offline, changing npc and closing / opening the game again and it’s still the same. I’m just a little confused. As I said the first 2 worked perfectly fine so you’re video did its job and thank you for that but now I’m stuck 😂😂
@@xsdmk3061 are the blocks facing the same directions? And I also forgot to mention that the 3rd block will work once the first 2 go off. If the 3rd block is conditional it will only change when the 2nd block goes off
@@gabedala yeah all of the blocks are correct, they have the arrows facing up so I’m not sure what the issue is, I had a long search on google but couldn’t find any fixes so thought I’d check here. And ah okay, do you mean as in I should attempt the trade before setting up an item to get in return or?
I know this issue your on about when you have for instance a repeating command block in front of you but it says impulse what you can do is pick block that repeating block and place it back down the game doesn't know that the block has changed so it thinks that it is still the same
Hey does it work with addon/mod item?
I’m not sure, it should though because it is just a band of an item
I have a problem, and that is that on my server, for example, I have 5 emeralds for 1 diamond, but the problem is that if I do not have emeralds in my inventory, they are taken from another player and the diamond is given to me. How do I fix it?
To fix you just add the cords after the @p! So like /give @p 10 142 13 [item]
Does this work for pocket edition
bedrock is pocket edition
So instead of it taking the materials it insteada give me the item what do I do?
Double check your commands
@@gabedala I've managed to get it to work ty
THANK YOU SO MUCH, YOU SAVED HOURS
Glad it helped!
Can you help me please!
I’ll already tryit but still doesn’t work bro, what i must supposed to do?
Please i need your help quickly!!
Double check your command blocks. Make sure they are the same, like conditional / unconditional and make sure they are facing the same way!
@@gabedala i’ll already tryit but still doesn’t work
@@kanue6734CHECK IF U MADE A , OR A . CUZ IF U MAKE THE WRONG THEN IT WILL NOT WORK
Will you post again?
What do you mean?
Mine keeps saying syntax error: unexpected "item": at" [hasitem=>>(item
Double check, things can be missed easily
Hey bro how to fix, i summoned a npc but when i edit it there is no advance setting only dialogue, like i cant edit it or even put a command on it please help
(p.s my version is 1.20.72)
Version doesn’t matter, you also need to be in creative to have it show
How do you do an npc shop but with kits?
I’ll have to look into this
Theres an easier way. You can actually put all the commands in the npc command instead of the redstone block command. No command blocks needed
/scoreboard players add @initiator[hasitem={item=coal, quantity=10..}] Gold 10
/playsound random.orb @initiator[hasitem={item=coal, quantity=10..}]
/tellraw @initiator[hasitem={item=coal, quantity=..9}]{"rawtext":[{"text": "Not Enough Coal!"}]}
/playsound note.didgeridoo @initiator[hasitem={item=coal,quantity=..9}]
/clear @initiator[hasitem={item=coal,quantity=10..}] coal 0 10
/dialogue open @s @initiator
That's from a sell shop in my server
/give @initiator[scores={Gold=50..}] iron_sword 1
/playsound random.levelup @initiator[scores={Gold=50..}]
/tellraw @initiator[scores={Gold=..49}] ("rawtext":[{"text":"Not Enough Gold!"}])
/playsound note.didgeridoo @initiator[scores={Gold=..49}]
/scoreboard players remove @initiator[scores={Gold=50..}] Gold 50
/dialogue open @s @initiator
Oh wow I didn’t know you could do that without command blocks!
It multiplayer friendly also. Works great because other players can be right there and not get anything of yours. It takes your money and gives you the items you bought without having to worry about a safety system
Thank you so much for this ive been wanting an npc shop that wasnt scoreboard focused
Glad I could help!!
Ive tried this and even my friend tried this and it doesnt work. Its probably because i just am too dumb to understand but i cant do it
Double check your command block settings and make sure they are facing the same direction
@@gabedala if I was to do this on a flat world, how and where should I put the command blocks?
@@gamingvszombies937 place them sideways
It gives me the item even if i dont have the item, any idea why?
Im getting the same issue
it clears a diamond from the closest player with a diamond and doesnt check if the closest player has a diamond wadido
It’ll always be the closet player with a diamond
@@gabedala so then it doesn't work as an effective shop?
It does check if the closet player has a diamond, that’s what the 2nd command block does. It checks for the closet player to have a specific amount of diamonds (in my case it was iron) and if the player doesn’t have the right amount then it won’t go through with the command
It works as an effective shop
The command gives me the item even though i don't have the required item to purchase it, how can i fix that?
Look at the 2nd command block and make sure it says unconditional, but the 3rd one needs to be conditional
@@gabedala it works now!! Thank you very much!
Can i sell xp for a item using the npc?
Yes you can, there is a way and I can definitely make a tutorial on that
any help on how to solve the iron ingot clearing command? i have it the same as yours but once i put the redstone block i still get the blocks without having to spend any iron
I have this same issue, you can get the item without actually having the item in your inventory. You can just buy stuff without the money
does not take any iron
How do you remove negative scoreboard?
/scoreboard objectives remove
It's working 💪
Great 👍!!
Thanks to share this video
How? Can you explaining this to me?
I’ll already tryit but still doesn’t work
Anyway to do this with command blocks and not Npcs
Yes, I have a video on my channel with like 95k views that is with command blocks! It’s like my 3rd video?
@@gabedalaAlr thank u do u know the title of the vid? Cause I don’t know what ur third vid is lol srry
Make a Save Spot
Wdym?
@@gabedala To save your game
I wonder if you can do this so if you have 4 gold blocks and an obsidian block that it triggers the buy or whatever event. I understand it being able to trigger if you have 4 gold blocks, but not sure about multiple items.
It would trigger it, as long as you have the item in the command block it’ll trigger
@@gabedala so. The one with the 4 gold would trigger if I have 4 gold. But the one with 1 obsidian doesn’t trigger since I don’t have obsidian? And I would just lose my gold and not get what I needed? Or would I need all the items for it to all trigger and receive an item or payment?
@@gabedala What do I do if i want to buy a stack of food?
Can you make a spawn egg gen please im a big fan
Spawn egg gen? Like a build or command block? Like where it spawns mobs??
@@gabedala with spawn egg
it doesnt work for me and i dont know hy
Double check everything, that’s all it takes
@@gabedala I quad checked everything with my friend and myself and it still doesnt work
@@pixelfaree if its a problem with the NPC then yeah its also happening to me and idk why, but I'm searching through RUclips on how to fix it
Its not working
Double check it
/clear @p[hasitem={item=iron_ingot,quantity=5..}] iron_ingot 0 5
Command to cntr C, cntr V