How to Make an NPC Buy Shop in Minecraft *Bedrock*

Поделиться
HTML-код
  • Опубликовано: 16 ноя 2024

Комментарии • 129

  • @stevealex11
    @stevealex11 9 месяцев назад +13

    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

    • @ssbgoten8001
      @ssbgoten8001 3 месяца назад

      Thank you

    • @anaskhan.4205
      @anaskhan.4205 29 дней назад

      It still gives you item if you don't have the buying items

  • @S.L.O.W.E.D_Songss
    @S.L.O.W.E.D_Songss Год назад +6

    Yo why r u vids so helpful UR THE BEST TY

    • @gabedala
      @gabedala  Год назад +1

      Glad you like them! Thank you!!

  • @doravodka
    @doravodka Год назад +4

    Damn your a hero thx man, next can I show how to make custom command like /sethome

    • @gabedala
      @gabedala  Год назад +3

      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

  • @stormlegend7650
    @stormlegend7650 Год назад +10

    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

    • @gabedala
      @gabedala  Год назад +5

      Double check the commands and the command block settings like if it’s impulse and or conditional or not

    • @stormlegend7650
      @stormlegend7650 Год назад +7

      ​@@gabedalaI figured it out I did () instead of {} and a , instead of .

  • @eve-nostra7951
    @eve-nostra7951 Год назад +3

    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

    • @gabedala
      @gabedala  Год назад +3

      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

    • @eve-nostra7951
      @eve-nostra7951 Год назад +1

      @@gabedala ohh I see, thanx♡♡

    • @Kyle_Hanson
      @Kyle_Hanson 9 месяцев назад

      ​@gabedala what section do you add the cords to?

  • @RasikaPowar-d1e
    @RasikaPowar-d1e 9 месяцев назад +3

    Bro when 2 player are at shop it randomly give to any one

    • @gabedala
      @gabedala  9 месяцев назад +1

      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

    • @RasikaPowar-d1e
      @RasikaPowar-d1e 9 месяцев назад +1

      Any solution to Give only specific player who uses the npc

  • @TotallyCrisps
    @TotallyCrisps 2 месяца назад +2

    On the clear command it says syntax error: Unexpected "(item": at p[hasitem= (item =iron_ingot

    • @gabedala
      @gabedala  2 месяца назад

      @@TotallyCrisps it looks like you used a ( instead of { which is a wavy bracket

    • @TotallyCrisps
      @TotallyCrisps 2 месяца назад

      @@gabedala thx

    • @anaskhan.4205
      @anaskhan.4205 Месяц назад

      ​@@gabedala bro i use /clear @p Gold_ingot 0 5 command but it still gives you item if you dont have gold

  • @siddiqulhamzah8774
    @siddiqulhamzah8774 8 месяцев назад +2

    why does he keep giving me item?, when I don't have iron?

    • @gabedala
      @gabedala  8 месяцев назад

      You have a command block wrong

    • @siddiqulhamzah8774
      @siddiqulhamzah8774 8 месяцев назад

      @@gabedala it works now 😅, btw do you know how to make npc sell items that we have changed the name of?

  • @BillyKelly-rw9rw
    @BillyKelly-rw9rw 4 месяца назад

    Did you use texture packs or shaders in this vid?

    • @gabedala
      @gabedala  4 месяца назад

      Yes I have a shaders called Kelly RTX

  • @kyraqueen539
    @kyraqueen539 Год назад +3

    I've been looking for a tutorial like this. Thanks dude.

    • @gabedala
      @gabedala  11 месяцев назад +1

      No problem!!

  • @stormlegend7650
    @stormlegend7650 Год назад +2

    Is there a way to do it with a shoulker box?

  • @FranzQuin-im8ts
    @FranzQuin-im8ts 9 месяцев назад +1

    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?

    • @gabedala
      @gabedala  9 месяцев назад

      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.

    • @FranzQuin-im8ts
      @FranzQuin-im8ts 9 месяцев назад

      Its works now! Thank you i can finally finish my horror map!

    • @gamedy2k
      @gamedy2k 9 месяцев назад

      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

  • @Fawn-r6g
    @Fawn-r6g 2 месяца назад

    When I purchased the diamond sword it cleared my whole inventory

  • @axo_Pingi
    @axo_Pingi Год назад

    Thanks bro

  • @DratheEditz
    @DratheEditz 10 месяцев назад +1

    I really need this to work for my smp, i tripple checked all the commands please help

    • @gabedala
      @gabedala  10 месяцев назад

      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

    • @gamedy2k
      @gamedy2k 9 месяцев назад

      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

  • @samedkarazhayev3102
    @samedkarazhayev3102 Год назад +1

    I keep getting a syntax error from the "clear command block" any idea why?

    • @gabedala
      @gabedala  Год назад +1

      Double check commands and make sure command blocks are facing the same way. Check if the command settings (like condition and unconditional) are correct!

    • @samedkarazhayev3102
      @samedkarazhayev3102 Год назад

      @@gabedala thank👍

  • @NotAFossil
    @NotAFossil 9 месяцев назад +1

    All good, but when I did it, it gave me an item even if I had an item or not. Please help.

    • @Sk1ppedstage
      @Sk1ppedstage 2 месяца назад

      you messed up a command then

  • @xsdmk3061
    @xsdmk3061 9 месяцев назад

    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
      @gabedala  9 месяцев назад +1

      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

    • @xsdmk3061
      @xsdmk3061 9 месяцев назад

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

    • @gabedala
      @gabedala  9 месяцев назад +1

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

    • @xsdmk3061
      @xsdmk3061 9 месяцев назад

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

    • @Assasinbear8
      @Assasinbear8 4 месяца назад

      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

  • @AceAnims.
    @AceAnims. 9 месяцев назад

    Hey does it work with addon/mod item?

    • @gabedala
      @gabedala  9 месяцев назад +1

      I’m not sure, it should though because it is just a band of an item

  • @VictorAlejandroGomezRodr-qb8ds
    @VictorAlejandroGomezRodr-qb8ds 10 месяцев назад

    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?

    • @gabedala
      @gabedala  10 месяцев назад

      To fix you just add the cords after the @p! So like /give @p 10 142 13 [item]

  • @NicoRobinIsMyWif4
    @NicoRobinIsMyWif4 9 месяцев назад +1

    Does this work for pocket edition

    • @Sk1ppedstage
      @Sk1ppedstage 2 месяца назад

      bedrock is pocket edition

  • @Assasinbear8
    @Assasinbear8 3 месяца назад

    So instead of it taking the materials it insteada give me the item what do I do?

    • @gabedala
      @gabedala  3 месяца назад

      Double check your commands

    • @Assasinbear8
      @Assasinbear8 3 месяца назад

      @@gabedala I've managed to get it to work ty

  • @Peeeeeeslosh
    @Peeeeeeslosh 5 месяцев назад

    THANK YOU SO MUCH, YOU SAVED HOURS

    • @gabedala
      @gabedala  5 месяцев назад

      Glad it helped!

  • @kanue6734
    @kanue6734 11 месяцев назад +1

    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!!

    • @gabedala
      @gabedala  11 месяцев назад

      Double check your command blocks. Make sure they are the same, like conditional / unconditional and make sure they are facing the same way!

    • @kanue6734
      @kanue6734 11 месяцев назад

      @@gabedala i’ll already tryit but still doesn’t work

    • @SamSami-f4m
      @SamSami-f4m 16 дней назад

      ​@@kanue6734CHECK IF U MADE A , OR A . CUZ IF U MAKE THE WRONG THEN IT WILL NOT WORK

  • @AsherOfficial123
    @AsherOfficial123 7 месяцев назад

    Will you post again?

    • @gabedala
      @gabedala  7 месяцев назад

      What do you mean?

  • @wolfie_lover5141
    @wolfie_lover5141 5 месяцев назад

    Mine keeps saying syntax error: unexpected "item": at" [hasitem=>>(item

    • @gabedala
      @gabedala  5 месяцев назад

      Double check, things can be missed easily

  • @burstbros9267
    @burstbros9267 7 месяцев назад

    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)

    • @gabedala
      @gabedala  7 месяцев назад

      Version doesn’t matter, you also need to be in creative to have it show

  • @stormlegend7650
    @stormlegend7650 7 месяцев назад

    How do you do an npc shop but with kits?

    • @gabedala
      @gabedala  7 месяцев назад

      I’ll have to look into this

  • @kytunireaper9288
    @kytunireaper9288 11 месяцев назад +1

    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

    • @kytunireaper9288
      @kytunireaper9288 11 месяцев назад +1

      /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

    • @kytunireaper9288
      @kytunireaper9288 11 месяцев назад

      That's from a sell shop in my server

    • @kytunireaper9288
      @kytunireaper9288 11 месяцев назад +2

      /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

    • @gabedala
      @gabedala  11 месяцев назад

      Oh wow I didn’t know you could do that without command blocks!

    • @kytunireaper9288
      @kytunireaper9288 11 месяцев назад

      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

  • @amusingkiwi9586
    @amusingkiwi9586 7 месяцев назад

    Thank you so much for this ive been wanting an npc shop that wasnt scoreboard focused

    • @gabedala
      @gabedala  7 месяцев назад +1

      Glad I could help!!

  • @gamingvszombies937
    @gamingvszombies937 11 месяцев назад +1

    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

    • @gabedala
      @gabedala  11 месяцев назад

      Double check your command block settings and make sure they are facing the same direction

    • @gamingvszombies937
      @gamingvszombies937 11 месяцев назад

      @@gabedala if I was to do this on a flat world, how and where should I put the command blocks?

    • @gabedala
      @gabedala  11 месяцев назад

      @@gamingvszombies937 place them sideways

  • @ericdoesminecraft6608
    @ericdoesminecraft6608 11 месяцев назад

    It gives me the item even if i dont have the item, any idea why?

  • @callsai
    @callsai 11 месяцев назад +1

    it clears a diamond from the closest player with a diamond and doesnt check if the closest player has a diamond wadido

    • @gabedala
      @gabedala  11 месяцев назад

      It’ll always be the closet player with a diamond

    • @callsai
      @callsai 11 месяцев назад

      @@gabedala so then it doesn't work as an effective shop?

    • @gabedala
      @gabedala  11 месяцев назад

      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

    • @gabedala
      @gabedala  11 месяцев назад

      It works as an effective shop

  • @AnjeloColinares
    @AnjeloColinares 11 месяцев назад

    The command gives me the item even though i don't have the required item to purchase it, how can i fix that?

    • @gabedala
      @gabedala  11 месяцев назад

      Look at the 2nd command block and make sure it says unconditional, but the 3rd one needs to be conditional

    • @AnjeloColinares
      @AnjeloColinares 11 месяцев назад

      @@gabedala it works now!! Thank you very much!

  • @moyzes5243
    @moyzes5243 10 месяцев назад

    Can i sell xp for a item using the npc?

    • @gabedala
      @gabedala  10 месяцев назад

      Yes you can, there is a way and I can definitely make a tutorial on that

  • @YOURFRIENDCODY
    @YOURFRIENDCODY Год назад +1

    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

    • @dylanstrom9659
      @dylanstrom9659 Год назад +1

      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

  • @JungleHouse333
    @JungleHouse333 11 месяцев назад

    does not take any iron

  • @samzam7890
    @samzam7890 Год назад

    How do you remove negative scoreboard?

    • @knight19385
      @knight19385 Год назад

      /scoreboard objectives remove

  • @FriendlyDipesh
    @FriendlyDipesh Год назад

    It's working 💪

    • @gabedala
      @gabedala  Год назад

      Great 👍!!

    • @FriendlyDipesh
      @FriendlyDipesh Год назад

      Thanks to share this video

    • @kanue6734
      @kanue6734 11 месяцев назад

      How? Can you explaining this to me?
      I’ll already tryit but still doesn’t work

  • @bellacarl5794
    @bellacarl5794 2 месяца назад

    Anyway to do this with command blocks and not Npcs

    • @gabedala
      @gabedala  2 месяца назад

      Yes, I have a video on my channel with like 95k views that is with command blocks! It’s like my 3rd video?

    • @bellacarl5794
      @bellacarl5794 2 месяца назад

      @@gabedalaAlr thank u do u know the title of the vid? Cause I don’t know what ur third vid is lol srry

  • @TheErikalovey
    @TheErikalovey 5 месяцев назад

    Make a Save Spot

  • @Jociaoftrades
    @Jociaoftrades Год назад

    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
      @gabedala  Год назад +1

      It would trigger it, as long as you have the item in the command block it’ll trigger

    • @Jociaoftrades
      @Jociaoftrades Год назад

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

    • @Iam1ccyy
      @Iam1ccyy Год назад

      @@gabedala What do I do if i want to buy a stack of food?

  • @Godskygen_official
    @Godskygen_official Год назад

    Can you make a spawn egg gen please im a big fan

    • @gabedala
      @gabedala  Год назад

      Spawn egg gen? Like a build or command block? Like where it spawns mobs??

    • @Godskygen_official
      @Godskygen_official Год назад

      @@gabedala with spawn egg

  • @pixelfaree
    @pixelfaree Год назад +1

    it doesnt work for me and i dont know hy

    • @gabedala
      @gabedala  Год назад

      Double check everything, that’s all it takes

    • @pixelfaree
      @pixelfaree Год назад +1

      @@gabedala I quad checked everything with my friend and myself and it still doesnt work

    • @clutch_lag8625
      @clutch_lag8625 Год назад +1

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

  • @DarkKnightMC42
    @DarkKnightMC42 Год назад +1

    Its not working

  • @MoosemeIon
    @MoosemeIon 7 месяцев назад

    /clear @p[hasitem={item=iron_ingot,quantity=5..}] iron_ingot 0 5
    Command to cntr C, cntr V