How to Make an NPC Shop Minecraft *Bedrock*
Ойындар
How to Make an NPC Shop Minecraft Bedrock
in this video I will be showing you all how to make a simple buy shop for your minecraft realm or world using an npc! A lot of people have been having trouble making this shop with my last tutorial so I made it simpler without any command blocks! If this video helped you out, don't forget to leave a like and subscribe! If you have any problems just comment them down below! Thanks for the support! Much Love - Gabe
Commands -
/playsound mob.villager.haggle @initiator[hasitem={item=gold_nugget,quantity=..4}]
/title @initiator[hasitem={item=gold_nugget,quantity=..4}] actionbar Need more Nuggets!
/playsound random.orb @initiator[hasitem={item=gold_nugget,quantity=5..}]
/title @initiator[hasitem={item=gold_nugget,quantity=5..}] actionbar You just bought a Diamond Sword
/give @initiator[hasitem={item=gold_nugget,quantity=5..}] diamond_sword 1
/clear @initiator[hasitem={item=gold_nugget,quantity=5..}] gold_nugget 0 5
- You are able to customize the quantity and items!
Chapters -
0:00 Intro!
0:32 How it Works!
1:38 Start of Tutorial!
7:00 Testing It!
7:25 Outro!
Пікірлер: 130
I developed a similar system to this a while back, but it uses scoreboard money and is meant for bulk selling so it does not close out like yours. If you are interested, I would love to share it with you since you have a channel that can show people. Getting this kind of informational content out there is great!
i love how this tutorial opens up a lot more possibilities for things using npcs in a minecraft map than other npc tutorials have. the fact that @initiator (which i did NOT know existed) only applies to the person who clicked the button not only removes the problem of having to finness your way through using @p, but it also means i can set up a shop that sells extremely expensive passes for a vip area or something in my skygen and then use another npc to detect wether the initiator has said pass and then can teleport them there. overall amazing tutorial, thanks again gabe!
@gabedala
3 ай бұрын
Glad this tutorial helped!
For anyone who's still looking for a solution for the NPC here, learn the Tag Command first so no other player picks up the traded item when they are inside the NPC Dialogues. /tag @p add (tag you want to use) acts as a security on the Trades for the nearest player within the NPC range. The commands on this video is no longer working as we are now in 1.20. All of that commands were in the last 1.19 and the @initiator Command no longer works as it was swapped out with @p and other prompts for entities. Guide for the correct Command prompts you need to use inside the NPC Advance Settings. Just remove the parentheses and swap it out with the items you want to use as your Currency and trades. /execute if entity @p[hasitem=[{item=(currency),quantity=..(amount)}],tag=Trading] run playsound mob.villager.haggle @p /execute if entity @p[hasitem=[{item=(currency),quantity=..(amount)}],tag=Trading] run title @p actionbar (your message) /execute if entity @p[hasitem=[{item=(currency),quantity=(amount)..}],tag=Trading] run playsound random.orb @p /execute if entity @p[hasitem=[{item=(currency),quantity=(amount)..}],tag=Trading] run title @p actionbar (your message) /execute if entity @p[hasitem=[{item=(currency),quantity=(amount)..}],tag=Trading] run give @p (item) (quantity) /execute if entity @p[hasitem=[{item=(currency),quantity=(amount)..}]] run clear @p (currency) (data) (quantity)
@Quorrinth
2 ай бұрын
Also, remember to make a command prompt once the player leaves the area it removes the Tag Command. Hope this helps.
@JimmMwr
28 күн бұрын
@@Quorrinth how do i do that? i dont know how to make commands like that
this is very helpful video for my world! please do more videos like this :D
@gabedala
3 ай бұрын
Glad it helped!
Very nice video, you are very helpful and I appreciate your videos as always
@gabedala
3 ай бұрын
Thank you!
Dude you're a god for leaving those comomands in the description
Absolutely cool and simple!. i use to using commandblocks and it's so hard or let's say not advance like that. thanks for the video! ❤️❤️❤️
@gabedala
3 ай бұрын
No problem!!
Helped a lot man!
@gabedala
2 ай бұрын
Glad it did!
Nice vid man
@gabedala
3 ай бұрын
Thank you!!
YO THANK YOU! I SUBBED
@gabedala
3 ай бұрын
You’re welcome and thank you!!!
@user-ki2mf4vu5m
3 ай бұрын
@@gabedala oh is there a way to make a npc talk like you click yes or no and it shows a different text
This took me forever because I used the wrong kind of bracket, and I had to go through and change all of them😭😭😭 But it worked in the end so yay now i’m going to copy and paste it and only change how much it cost and what item you get from it
Thanks for this video can you make a quest claim system and gives out a reward if the quest is completed
@gabedala
3 ай бұрын
Seems interesting, that is possible I believe
Thank you so much i want to make a adventure map and this helps a lot
good video
@gabedala
3 ай бұрын
Thank you!!!
can you make an npc pet shop? e.g: you can't tame the animal unless you pay the npc then the animal is yours and out of the shop's possession ,after some minutes the animal respawns so we can buy again
@gabedala
3 ай бұрын
That seems very unlikely as this is bedrock edition and Java has a lot more features than bedrock
@ashv_n_
3 ай бұрын
@@gabedala yess😔😭
Please help I’m making a realm and you by a pass right? Everything goes well until the part where you actually get the item I pay for it then it takes my money but I don’t get the item
@gabedala
Ай бұрын
Double check your command block settings!
It works for the need more money but when i try to make it work it just takes my nuggets then doesnt day the /actionbar or give me my item
@CarterBright-ye3we
4 күн бұрын
I have the same problem dude
@Burnsboi
41 минут бұрын
Same :(
Awesome dude💪
Hey I have a question. Will it work for data item and what will be the command
@gabedala
Ай бұрын
Yeah I’m assuming it’ll work for data item I’m not sure the command off the top of my head
how to allow players to only buy a thing once?
It does work but when i tried it it doesnt remove my gold nuggets even if i did the commands correctly so may i ask why ?
@gabedala
19 күн бұрын
Double check your settings and the thing you type. It’s easy to have an error
Can u make a video of player trade system
@gabedala
3 ай бұрын
That would be interesting
Uh hey can you tell me how to make a npc teleport you in exchange for an item? Please also new subscriber
@gabedala
2 ай бұрын
Oh easy, you can use this tutorial but instead of giving an item just add the teleport command in
I did all commands correctly but for some reason i cannot get it to work i mean it kinda works because, When i have 5 Iron Ingot in my Inventory (which is my currency) And i buy a stone sword (in my shop) it makes the orb sound but it clears my whole inventory and doesnt give me anything. Do you know how to fix this?
@gabedala
Ай бұрын
You have something wrong with one of the command blocks, it shouldn’t clear your inventory. Double check the command blocks and their settings
@user-sr9pw5ex2v
Ай бұрын
Ok thanks
I dont get why but i cant seem to be able to make the sound effect work everything else work like a charm tho is there a way to fix that ?
@gabedala
2 ай бұрын
Turn up your sound effects volume or double check the command. There isn’t a bug or fix with this command, it’s just how it is
hi, can you pls help me? i have a problem with my world and when i spawn an npc it works just fine but then i can't toggle to the button mode, even pressing and trying to reset the world it won't work
@gabedala
3 ай бұрын
That’s weird? The button should work and you shouldn’t have to change any settings. Are you looking at it in creative mode and clicking it?
@Cogumelista
3 ай бұрын
@@gabedala yeah, i solved it, i Was playing on my Phone, and i forgot to update it so maybe it Was the lack of the update or something, anyway, thanks for the help, i finally will be able to complete my world
I have tried LOTTSSSS of shops all with different commands. Every time when I press the buy button on the npc, nothing happens it just exits me out of the npc dialogue HELP PLEASE
@gabedala
3 ай бұрын
Check out my most recent video with the npc shop! I posted it 2 weeks ago!
Question, how do I make it so that when I click a dialogue option they will say something new?
@gabedala
Ай бұрын
I will look into this
Okay, so when we tried to type in these commands, the command box is too small and it doesn't show all of what we're typing. We have no idea if we're even typing it all in correctly. We're playing on Xbox One.
@gabedala
3 ай бұрын
You don’t need to add the spaces like I did in the video! I made that mistake in the video and said you don’t need to hit enter after every command
Can you make a level system and how to enter the next page of an npc
@gabedala
3 ай бұрын
I don’t think there is such thing as a next page in an npc unless I’m wrong
@Quorrinth
2 ай бұрын
@@gabedala actually, there is. I'm currently making NPC Quests and it opens another Dialogues.
Is there a way to use it with named items ?
@gabedala
2 ай бұрын
I have a video on my page how to give named items to players. Use that video and this one combined
Can u tell me how to make shop by using scoreboard money from the npc
@gabedala
2 ай бұрын
Yeah I feel like I need an updated video on the scoreboard version for npc shops
Error not Working everything is Working but they need less money to give item When we take more Money item not Get and its not metter i set 9 Its takes One -10 Any fix it
@gabedala
23 күн бұрын
Can’t understand what you’re trying to say, you have broken English
I tried it, Everything works fine, However. The item doesn't spawn in the inventory or anywhere? Is there a way to fix this?
@gabedala
3 ай бұрын
If everything worked fine it should just give you the item in your inventory. It shouldn’t drop it anywhere besides your inventory. Double check the command and make sure it’s type correctly!
@JasharMandrakeReuelFlores
3 ай бұрын
@@gabedala Another question: Let’s say, i’m selling a Netherite Pickaxe. is there a way to have 2 items to buy the netherite pickaxe? Example: Netherite Pickaxe for 1 Netherite Ingot + 1 Diamond Pickaxe
@gabedala
3 ай бұрын
I’m sure you can! Just need to add a few more commands to the npc. Kinda the same as I have it but it would need to be both items.
@JasharMandrakeReuelFlores
3 ай бұрын
@@gabedala Understood. I’ll try to test
@JasharMandrakeReuelFlores
3 ай бұрын
@@gabedala Sorry for all the questions. But is there a way to open NPC’s with an item?
How would I do this with XP as currency
@gabedala
2 ай бұрын
I made a video on my page of how to make a shop with XP. Put those commands in the video into a villager
Huh if anyone helps out here thank you I have this problem were I get my currency taken but I don’t get my item. Does anyone know how to fix this?
@gabedala
4 күн бұрын
Might’ve typed the command wrong, double check it
Is there way to make it so there sobit uses scoreboards
@gabedala
3 ай бұрын
There is a way I just don’t know how to do it yet
@ngocnguyenminh7109
3 ай бұрын
give @initiator[scores={Money=100..}] diamond_sword scoreboard players remove @initiator[scores={Money=100..}] Money 100
@racoonroka
3 ай бұрын
Thank you so much
@NotSuperDead
3 ай бұрын
@@ngocnguyenminh7109is there a way to set up a way to tell you that you don't have enough points?
@ngocnguyenminh7109
3 ай бұрын
@@NotSuperDead tellraw, titleraw @initiator[scores={Money=!100..}] {"rawtext":[{"text":"Sorry, you don't have enough Money. Try again later..."}]}
could use command blocks
Can make a leader board
@gabedala
3 ай бұрын
I have a video on my page for that!
It dose'nt take my currency away.?
@gabedala
4 күн бұрын
Double check your commands then
It works but there is so many commands 😭😭😭
Can you comment it in here im gonna copy it
How to get so realistic Minecraft. I will subscribe. Please
@gabedala
Ай бұрын
Wdym by realistic?
@RobotCatTV
Ай бұрын
I mean the water and grass are moving. Realistic sun and shadows.
@RobotCatTV
Ай бұрын
Many of KZreadrs have got realistic Minecraft and you too. So if you can help me. How to get it?
@gabedala
Ай бұрын
@@RobotCatTV you need Java edition Minecraft
@RobotCatTV
Ай бұрын
@@gabedala is it Minecraft shaders?
I Dont know what i did wrong. It clears my inventory
@gabedala
Ай бұрын
You did something wrong lol
I couldn't get the commands to work..
@gabedala
Ай бұрын
Double check commands, might mess up somewhere
@koro-kira4141
Ай бұрын
I did.. the has item command just won't work I can get it to work with command blocks without it but I can't get any commands to work inside of the NPC..
It doesnt give me anything
@gabedala
Ай бұрын
Double check your command blocks
@ethaninfinite5991
Ай бұрын
@@gabedala I fixed it thx
528
Its not working, i copied exactly the same:(( Bedrock version (PE)
@gabedala
3 ай бұрын
Double check the commands! That’s all I can say to do, I messed up a couple times myself recording this video. Just double check because it should work!
@brawlhelper9040
3 ай бұрын
@@gabedala i checked other video of yours, that one worked. So thanks
I can’t get anything to work it’s not worth the time iv wasted
@gabedala
17 күн бұрын
You have to double check the commands and make sure you didn’t mess anything up
for kit
It didnt work :(
@gabedala
44 минут бұрын
Double check your text, it’s easy to miss something
@Burnsboi
40 минут бұрын
@gabedala I doubble checked everything it's just the part where I get the item that doesn't work I'm trying to get a trapdoor
@Burnsboi
39 минут бұрын
Double*
Can I stack multiple items to take away, like /playsound random.orb @initiator[hasitem={item=gold_nugget,quantity=5..},{item=potato, quantity=1..}]
I wrote this in the npc but when i have 0 it still give me diamond_block what should i do /scoreboard players test @p money /scoreboard players remove @p money 10 /give @p diamond_block /playsound random.orb @p
@gabedala
3 ай бұрын
The first command should be /scoreboard players test @p money 10 because you want to make sure they have 10 money already.
@Yahiaz91
3 ай бұрын
@@gabedalasorry but it doesn't work too when i have 0 and buy it says to me that i have -10
sorry but it doesn't work too when i have 0 and buy it says to me that i have -10
@gabedala
3 ай бұрын
This npc shop isn’t using a scoreboard, it’s using items
@Yahiaz91
3 ай бұрын
Ok thanks@@gabedala
(Not usable) Been making a shop with the scoreboard system, and had to do some modifications, but I have come up with something that works for me. Place down the npc and write everything in one folder /scoreboard players test @initiator emeralds /scoreboard players remove @initiator emeralds 10 /give initiator potato /playsound random.orb @initiation Note that numbers and item being sold/bought can be changed and the emeralds can also be changed to whatever you’ve set your scoreboard to. Place down new npc, this one is the sell system. /clear @initiator[hasitem={item=wheat,quantity=10..}] wheat 0 10 /scoreboard players add @initator emeralds 10 /playsound random.orb @initiator
@Yahiaz91
3 ай бұрын
/scoreboard players test @p money /scoreboard players remove @p money 10 /give @p diamond_block /playsound random.orb @p I wrote this in the npc but when i have 0 it still give me diamond_block what should i do
@jonasg.bisgaard1086
3 ай бұрын
@@Yahiaz91this command might actually not work, I thought it did but then I started to have the same problems.
@gabedala
3 ай бұрын
It definitely could work with a scoreboard, might need to change some commands and off the top of my head I do not know what to change, but it definitely is possible
/playsound mob.villager.haggle @intitator[hasitem={item=grass,quantity=..4}] /title @initiator[hasitem={item=grass,quantity=..4}] actionbar You need More /playsound random.orb @initiator[hasitem={item=grass,quantity=5..}] /title @initiator[hasitem={item=grass,quantity=5..}] actionbar you just have /give @initiator[hasitem={item=grass,quantity=5..}] Diamond 5 /clear @initiator[hasitem={item=grass,quantity=5..}] Grass 0 5
/playsound mob.villager.haggle @initiator[hasitem={item=gold_nugget,quantity=..4}] /title @initiator[hasitem={item=gold_nugget,quantity=..4}] actionbar Need more Nuggets! /playsound random.orb @initiator[hasitem={item=gold_nugget,quantity=5..}] /title @initiator[hasitem={item=gold_nugget,quantity=5..}] actionbar You just bought a Diamond Sword /give @initiator[hasitem={item=gold_nugget,quantity=5..}] diamond_sword 1 /clear @initiator[hasitem={item=gold_nugget,quantity=5..}] gold_nugget 0 5