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

  • @tobeyjohnson9420
    @tobeyjohnson94202 ай бұрын

    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!

  • @Foxolotl94
    @Foxolotl943 ай бұрын

    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

    @gabedala

    3 ай бұрын

    Glad this tutorial helped!

  • @Quorrinth
    @Quorrinth2 ай бұрын

    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

    @Quorrinth

    2 ай бұрын

    Also, remember to make a command prompt once the player leaves the area it removes the Tag Command. Hope this helps.

  • @JimmMwr

    @JimmMwr

    28 күн бұрын

    @@Quorrinth how do i do that? i dont know how to make commands like that

  • @Dakvy
    @Dakvy3 ай бұрын

    this is very helpful video for my world! please do more videos like this :D

  • @gabedala

    @gabedala

    3 ай бұрын

    Glad it helped!

  • @Ivyman1992
    @Ivyman19923 ай бұрын

    Very nice video, you are very helpful and I appreciate your videos as always

  • @gabedala

    @gabedala

    3 ай бұрын

    Thank you!

  • @kwesont
    @kwesontАй бұрын

    Dude you're a god for leaving those comomands in the description

  • @thrmoddmodpackpe3885
    @thrmoddmodpackpe38853 ай бұрын

    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

    @gabedala

    3 ай бұрын

    No problem!!

  • @tansiaodongmoe6903
    @tansiaodongmoe69032 ай бұрын

    Helped a lot man!

  • @gabedala

    @gabedala

    2 ай бұрын

    Glad it did!

  • @Fantasy9967
    @Fantasy99673 ай бұрын

    Nice vid man

  • @gabedala

    @gabedala

    3 ай бұрын

    Thank you!!

  • @user-ki2mf4vu5m
    @user-ki2mf4vu5m3 ай бұрын

    YO THANK YOU! I SUBBED

  • @gabedala

    @gabedala

    3 ай бұрын

    You’re welcome and thank you!!!

  • @user-ki2mf4vu5m

    @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

  • @Barryy565
    @Barryy5655 күн бұрын

    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

  • @cr7king784
    @cr7king7843 ай бұрын

    Thanks for this video can you make a quest claim system and gives out a reward if the quest is completed

  • @gabedala

    @gabedala

    3 ай бұрын

    Seems interesting, that is possible I believe

  • @alvarojrpantaleon4209
    @alvarojrpantaleon42092 ай бұрын

    Thank you so much i want to make a adventure map and this helps a lot

  • @petiotinev
    @petiotinev3 ай бұрын

    good video

  • @gabedala

    @gabedala

    3 ай бұрын

    Thank you!!!

  • @ashv_n_
    @ashv_n_3 ай бұрын

    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

    @gabedala

    3 ай бұрын

    That seems very unlikely as this is bedrock edition and Java has a lot more features than bedrock

  • @ashv_n_

    @ashv_n_

    3 ай бұрын

    @@gabedala yess😔😭

  • @TyG0r99
    @TyG0r99Ай бұрын

    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

    @gabedala

    Ай бұрын

    Double check your command block settings!

  • @Inf1nityRoy
    @Inf1nityRoyАй бұрын

    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

    @CarterBright-ye3we

    4 күн бұрын

    I have the same problem dude

  • @Burnsboi

    @Burnsboi

    41 минут бұрын

    Same :(

  • @FinTumpelo
    @FinTumpelo22 күн бұрын

    Awesome dude💪

  • @Emerald66321
    @Emerald66321Ай бұрын

    Hey I have a question. Will it work for data item and what will be the command

  • @gabedala

    @gabedala

    Ай бұрын

    Yeah I’m assuming it’ll work for data item I’m not sure the command off the top of my head

  • @mateuszgancarz7787
    @mateuszgancarz77872 ай бұрын

    how to allow players to only buy a thing once?

  • @capricornian09
    @capricornian0919 күн бұрын

    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

    @gabedala

    19 күн бұрын

    Double check your settings and the thing you type. It’s easy to have an error

  • @t5live487
    @t5live4873 ай бұрын

    Can u make a video of player trade system

  • @gabedala

    @gabedala

    3 ай бұрын

    That would be interesting

  • @youngdio7885
    @youngdio78852 ай бұрын

    Uh hey can you tell me how to make a npc teleport you in exchange for an item? Please also new subscriber

  • @gabedala

    @gabedala

    2 ай бұрын

    Oh easy, you can use this tutorial but instead of giving an item just add the teleport command in

  • @user-sr9pw5ex2v
    @user-sr9pw5ex2vАй бұрын

    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

    @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

    @user-sr9pw5ex2v

    Ай бұрын

    Ok thanks

  • @michelcyr3339
    @michelcyr33392 ай бұрын

    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

    @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

  • @Cogumelista
    @Cogumelista3 ай бұрын

    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

    @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

    @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

  • @marlowelinn6905
    @marlowelinn69053 ай бұрын

    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

    @gabedala

    3 ай бұрын

    Check out my most recent video with the npc shop! I posted it 2 weeks ago!

  • @lucasmatthiessen1570
    @lucasmatthiessen1570Ай бұрын

    Question, how do I make it so that when I click a dialogue option they will say something new?

  • @gabedala

    @gabedala

    Ай бұрын

    I will look into this

  • @WestMarionBC
    @WestMarionBC3 ай бұрын

    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

    @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

  • @AceAnims.
    @AceAnims.3 ай бұрын

    Can you make a level system and how to enter the next page of an npc

  • @gabedala

    @gabedala

    3 ай бұрын

    I don’t think there is such thing as a next page in an npc unless I’m wrong

  • @Quorrinth

    @Quorrinth

    2 ай бұрын

    @@gabedala actually, there is. I'm currently making NPC Quests and it opens another Dialogues.

  • @lilhoodie
    @lilhoodie3 ай бұрын

    Is there a way to use it with named items ?

  • @gabedala

    @gabedala

    2 ай бұрын

    I have a video on my page how to give named items to players. Use that video and this one combined

  • @Scary_gaming69
    @Scary_gaming693 ай бұрын

    Can u tell me how to make shop by using scoreboard money from the npc

  • @gabedala

    @gabedala

    2 ай бұрын

    Yeah I feel like I need an updated video on the scoreboard version for npc shops

  • @SJYT409
    @SJYT40923 күн бұрын

    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

    @gabedala

    23 күн бұрын

    Can’t understand what you’re trying to say, you have broken English

  • @JasharMandrakeReuelFlores
    @JasharMandrakeReuelFlores3 ай бұрын

    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

    @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

    @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

    @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

    @JasharMandrakeReuelFlores

    3 ай бұрын

    @@gabedala Understood. I’ll try to test

  • @JasharMandrakeReuelFlores

    @JasharMandrakeReuelFlores

    3 ай бұрын

    @@gabedala Sorry for all the questions. But is there a way to open NPC’s with an item?

  • @AyoBurbs
    @AyoBurbs2 ай бұрын

    How would I do this with XP as currency

  • @gabedala

    @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

  • @CarterBright-ye3we
    @CarterBright-ye3we4 күн бұрын

    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

    @gabedala

    4 күн бұрын

    Might’ve typed the command wrong, double check it

  • @racoonroka
    @racoonroka3 ай бұрын

    Is there way to make it so there sobit uses scoreboards

  • @gabedala

    @gabedala

    3 ай бұрын

    There is a way I just don’t know how to do it yet

  • @ngocnguyenminh7109

    @ngocnguyenminh7109

    3 ай бұрын

    give @initiator[scores={Money=100..}] diamond_sword scoreboard players remove @initiator[scores={Money=100..}] Money 100

  • @racoonroka

    @racoonroka

    3 ай бұрын

    Thank you so much

  • @NotSuperDead

    @NotSuperDead

    3 ай бұрын

    @@ngocnguyenminh7109is there a way to set up a way to tell you that you don't have enough points?

  • @ngocnguyenminh7109

    @ngocnguyenminh7109

    3 ай бұрын

    @@NotSuperDead tellraw, titleraw @initiator[scores={Money=!100..}] {"rawtext":[{"text":"Sorry, you don't have enough Money. Try again later..."}]}

  • @redgringaming
    @redgringamingАй бұрын

    could use command blocks

  • @GalaxyEdgeEdits
    @GalaxyEdgeEdits3 ай бұрын

    Can make a leader board

  • @gabedala

    @gabedala

    3 ай бұрын

    I have a video on my page for that!

  • @notsun3644
    @notsun36444 күн бұрын

    It dose'nt take my currency away.?

  • @gabedala

    @gabedala

    4 күн бұрын

    Double check your commands then

  • @user-zn5he8on4b
    @user-zn5he8on4b2 ай бұрын

    It works but there is so many commands 😭😭😭

  • @Mr.miyamura
    @Mr.miyamuraАй бұрын

    Can you comment it in here im gonna copy it

  • @RobotCatTV
    @RobotCatTVАй бұрын

    How to get so realistic Minecraft. I will subscribe. Please

  • @gabedala

    @gabedala

    Ай бұрын

    Wdym by realistic?

  • @RobotCatTV

    @RobotCatTV

    Ай бұрын

    I mean the water and grass are moving. Realistic sun and shadows.

  • @RobotCatTV

    @RobotCatTV

    Ай бұрын

    Many of KZreadrs have got realistic Minecraft and you too. So if you can help me. How to get it?

  • @gabedala

    @gabedala

    Ай бұрын

    @@RobotCatTV you need Java edition Minecraft

  • @RobotCatTV

    @RobotCatTV

    Ай бұрын

    @@gabedala is it Minecraft shaders?

  • @gamerludvigspelar2433
    @gamerludvigspelar2433Ай бұрын

    I Dont know what i did wrong. It clears my inventory

  • @gabedala

    @gabedala

    Ай бұрын

    You did something wrong lol

  • @koro-kira4141
    @koro-kira4141Ай бұрын

    I couldn't get the commands to work..

  • @gabedala

    @gabedala

    Ай бұрын

    Double check commands, might mess up somewhere

  • @koro-kira4141

    @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..

  • @ethaninfinite5991
    @ethaninfinite5991Ай бұрын

    It doesnt give me anything

  • @gabedala

    @gabedala

    Ай бұрын

    Double check your command blocks

  • @ethaninfinite5991

    @ethaninfinite5991

    Ай бұрын

    @@gabedala I fixed it thx

  • @FISHEZZGOATED
    @FISHEZZGOATEDАй бұрын

    528

  • @brawlhelper9040
    @brawlhelper90403 ай бұрын

    Its not working, i copied exactly the same:(( Bedrock version (PE)

  • @gabedala

    @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

    @brawlhelper9040

    3 ай бұрын

    @@gabedala i checked other video of yours, that one worked. So thanks

  • @user-sj5qj1ej9i
    @user-sj5qj1ej9i17 күн бұрын

    I can’t get anything to work it’s not worth the time iv wasted

  • @gabedala

    @gabedala

    17 күн бұрын

    You have to double check the commands and make sure you didn’t mess anything up

  • @levybuissereth8698
    @levybuissereth86982 ай бұрын

    for kit

  • @Burnsboi
    @BurnsboiСағат бұрын

    It didnt work :(

  • @gabedala

    @gabedala

    44 минут бұрын

    Double check your text, it’s easy to miss something

  • @Burnsboi

    @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

    @Burnsboi

    39 минут бұрын

    Double*

  • @auguststas7770
    @auguststas777025 күн бұрын

    Can I stack multiple items to take away, like /playsound random.orb @initiator[hasitem={item=gold_nugget,quantity=5..},{item=potato, quantity=1..}]

  • @Yahiaz91
    @Yahiaz913 ай бұрын

    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

    @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

    @Yahiaz91

    3 ай бұрын

    ​@@gabedalasorry but it doesn't work too when i have 0 and buy it says to me that i have -10

  • @Yahiaz91
    @Yahiaz913 ай бұрын

    sorry but it doesn't work too when i have 0 and buy it says to me that i have -10

  • @gabedala

    @gabedala

    3 ай бұрын

    This npc shop isn’t using a scoreboard, it’s using items

  • @Yahiaz91

    @Yahiaz91

    3 ай бұрын

    Ok thanks​@@gabedala

  • @jonasg.bisgaard1086
    @jonasg.bisgaard10863 ай бұрын

    (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

    @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

    @jonasg.bisgaard1086

    3 ай бұрын

    @@Yahiaz91this command might actually not work, I thought it did but then I started to have the same problems.

  • @gabedala

    @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

  • @meloneaster_official
    @meloneaster_official2 ай бұрын

    /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

  • @PATELSTREEM
    @PATELSTREEM2 ай бұрын

    /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

Келесі