How To Make A NPC Shop Without Command Blocks In Minecraft Bedrock/Pocket, v1.19.31

แชร์
ฝัง
  • เผยแพร่เมื่อ 5 ต.ค. 2024
  • You may now wonder why we need A NPC Shop if there are already tutorials for it. The reason is that my design uses no command blocks and includes the new "hasitem filter" and Pinpoint accuracy using the @initiator Target Selector. Which works flawlessly and just like an ordinary villager's shop or better.
    Here are the commands,
    NPC (Item Shop):
    /title @initiator[hasitem={item=gold_ingot,quantity=!5..}] actionbar §cYou Don't Have Enough gold_ingots!§r
    /give @initiator[hasitem={item=gold_ingot,quantity=5..}] apple 1
    /title @initiator[hasitem={item=gold_ingot,quantity=5..}] actionbar §aPurchase Successful!§r
    /clear @initiator[hasitem={item=gold_ingot,quantity=5..}] gold_ingot 0 5
    NPC (Scoreboard's Money Shop):
    /title @initiator[scores={money=!5..}] actionbar §c§lYou Don't Have Enough Money!§r
    /give @initiator[scores={money=5..}] apple 1
    /title @initiator[scores={money=5..}] actionbar §a§lPurchase Successful!§r
    /scoreboard players remove @initiator[scores={money=5..}] money 5
    Music in this video:
    ★ Plants vs. Zombies Music Extended ★
    Composer: Laura Shigihara
    Company: PopCap Games
    Publisher: Electronic Arts
    Date released: May 5, 2009
    ----{---------------------------------------------------END------------------------------------------------}--------

ความคิดเห็น • 119

  • @Golden_Apple859
    @Golden_Apple859  ปีที่แล้ว +7

    -------------------------------NOTE-------------------------------------------------
    The "Upcoming Creator Features" Toggle Must Be Turned OFF In The World Setting Otherwise This NPC Shop Won't Work As It Completely Breaks The @initiator Target Selector In 1.19.51.

    • @foxyyoutube534
      @foxyyoutube534 ปีที่แล้ว +1

      what's toggle?

    • @monkedude
      @monkedude ปีที่แล้ว +1

      That has been fixed in 1.19.60

    • @niotiik8923
      @niotiik8923 ปีที่แล้ว

      Can I use this with @p tho?

    • @monkedude
      @monkedude ปีที่แล้ว

      @@niotiik8923 No because it will target the closest player who is near the npc

    • @Golden_Apple859
      @Golden_Apple859  ปีที่แล้ว

      @@foxyyoutube534 Toggle is the button in the settings of your Minecraft world

  • @justexcalico
    @justexcalico 9 หลายเดือนก่อน +2

    Thank you so much and I really appreciate it! I'll definitely try this for my bedrock server!

  • @lxnce6031
    @lxnce6031 2 หลายเดือนก่อน +1

    Hello bro Whatz up its been years its me Floren Gaming

  • @Sleeps4Keeps
    @Sleeps4Keeps ปีที่แล้ว +3

    bro frfr thank you you dont know how much this just helped me 🖤🤘🏽

  • @Elena.94
    @Elena.94 ปีที่แล้ว +4

    It worked perfectly, thank you very much!

  • @shanifsanfa8681
    @shanifsanfa8681 ปีที่แล้ว +1

    It's amazing it totally workd you deserve more subscribers

  • @NosamRetsof
    @NosamRetsof 4 หลายเดือนก่อน

    YOU my friend are a GOD send

  • @herculescraft2867
    @herculescraft2867 ปีที่แล้ว +1

    Ey jo nice Video it really helped me out ty but i have still one question, how to get the minecoin? xD

  • @TOUFIQ3930
    @TOUFIQ3930 ปีที่แล้ว +1

    Good one. That's all I'd like to say.

  • @raymo9197
    @raymo9197 ปีที่แล้ว +2

    I figured out how to get the npc to enchant an item I’m holding, I just don’t know how to pay him, would you happen to have a suggestion?. By the way, it works perfectly, thank you for putting the text in your description, helped a ton, I don’t have num lock for the selector

    • @Golden_Apple859
      @Golden_Apple859  ปีที่แล้ว +1

      Its better not to use /enchant command in an npc shop as the npc would still take your money if you are holding something which can't be enchanted.

    • @Golden_Apple859
      @Golden_Apple859  ปีที่แล้ว

      However, if you want, you can use this command to buy and enchant the item you are holding:
      /title @initiator[hasitem={item=gold_ingot,quantity=!5..}] actionbar §cYou Don't Have Enough gold_ingots!§r
      /enchant @initiator[hasitem={item=gold_ingot,quantity=5..}] sharpness 5
      /title @initiator[hasitem={item=gold_ingot,quantity=5..}] actionbar §aPurchase Successful!§r
      /clear @initiator[hasitem={item=gold_ingot,quantity=5..}] gold_ingot 0 5

    • @zineddinehamdouch5718
      @zineddinehamdouch5718 ปีที่แล้ว

      @@Golden_Apple859 how do you write § on switch

    • @twitchin95
      @twitchin95 ปีที่แล้ว

      @@zineddinehamdouch5718 I do not own a switch, but try holding the letter S on the on-screen keyboard until more pops up. Thats how it works on xbox at least.

    • @aella28
      @aella28 ปีที่แล้ว

      @@zineddinehamdouch5718ik this is awhile ago but just in case you havent found it.
      Go to the keyboard options (as if you were selecting another keyboard normally its a little world icon 🌐
      Scroll till you see “Symbols”
      Go to tab #2 and you should see the §

  • @Cucumber6181
    @Cucumber6181 ปีที่แล้ว

    This is why i subbed :)

  • @ZinMinPhyo-cr8kw
    @ZinMinPhyo-cr8kw 9 หลายเดือนก่อน

    Music name: pvz theme sound, right?

  • @officialm123
    @officialm123 ปีที่แล้ว

    Most helpful tutorial I found

    • @Golden_Apple859
      @Golden_Apple859  ปีที่แล้ว

      Delighted to know that my video helped you :)

  • @ant_ice8035
    @ant_ice8035 ปีที่แล้ว +1

    Can i add different buttons for different items? Do i have to do 1 item every NPC? pls help

    • @Golden_Apple859
      @Golden_Apple859  ปีที่แล้ว

      Yes you can add different buttons max limit is 6 buttons per npc.

  • @justexcalico
    @justexcalico 8 หลายเดือนก่อน

    Wait I have a question, how would you give ENCHANTED items to a player using these npcs?

  • @quanggd4417
    @quanggd4417 2 หลายเดือนก่อน

    How to make a shop that you can buy a enchanted sword ?

  • @manalcola4952
    @manalcola4952 ปีที่แล้ว +1

    THAT WORKED. AMAZING. THANKIU.
    One question. I'm trying to make the NPC to remove X amount of XP from a player and, then, give to him Money scoreboard.
    ¿Any idea?
    /title @initiator[xp=!10..] actionbar §c§lNot enough XP.§r
    /scoreboard players add @initiator[xp=!10..] Money 10
    /title @initiator [xp=10..] actionbar §a§lDone§r
    /xp -10 @initiator
    This is what i've tried.

  • @hatanaye
    @hatanaye ปีที่แล้ว +1

    Hi! I've followed everything as instructed and made for creator features is disabled, but the command still doesn't work for me. I am playing on PE unfortunately, so i dont know if this is what is stopping it from working, but neither will work. does this have something to do with the @initiator target or is it something else I am doing?

    • @hatanaye
      @hatanaye ปีที่แล้ว

      i think this is due to the @initiator target because i cannot get the actionbar to come up either

    • @Glenn_Quagmire
      @Glenn_Quagmire 10 หลายเดือนก่อน +1

      ​@@hatanayetry putting 0 in between the item name that you get and the amount of that item. Like this: apple 0 1

  • @tabbikat6421
    @tabbikat6421 หลายเดือนก่อน

    Its like half way working for me lol Im not sure what I did wrong but its giving me the item its just not taking the payment, any suggestions?

  • @freshketchup2748
    @freshketchup2748 ปีที่แล้ว +1

    is there a way to change it from the actionbar to say it in chat, obviously only for the person doing it? So as in on the side of the screen.

    • @Golden_Apple859
      @Golden_Apple859  ปีที่แล้ว

      Yes you can do it using the /tellraw command instead of /title.

    • @freshketchup2748
      @freshketchup2748 ปีที่แล้ว

      @@Golden_Apple859 ok ill try it thanks :)

    • @Golden_Apple859
      @Golden_Apple859  ปีที่แล้ว

      Im providing the tellraw command:
      /tellraw @a {"rawtext":[{"text":"Write your text here"}]}

  • @Linkinbennet420
    @Linkinbennet420 ปีที่แล้ว +1

    Could this work for a /setblock command, so if a player buys something it places a block

    • @linswitch4509
      @linswitch4509 9 หลายเดือนก่อน

      i was wondering the same

    • @ngocnguyenminh7109
      @ngocnguyenminh7109 9 หลายเดือนก่อน

      it works.

    • @linswitch4509
      @linswitch4509 9 หลายเดือนก่อน

      @@ngocnguyenminh7109 can you explain how pls

    • @ngocnguyenminh7109
      @ngocnguyenminh7109 9 หลายเดือนก่อน

      @@linswitch4509 I'm not good at explaining.. / If you want to, buy something then place a block, maybe a chest with stuffs.. You can use this: / execute at @initiator[hasitem/scores] run clone xyz xyz ~~~ / This command will run "clone" command to "clone" block/blocks from xyz xyz to ~~~. (player cords) / Or if you want to place a block, you can replace "clone" part to "setblock" part: "execute at @initiator[hasitem={item=diamond,quantity=9..}] run setblock ~~~ diamond_block / execute at @initiator[scores={Money=90..}] run setblock ~~~ diamond_block" / Full commands: / tellraw @initiator[hasitem={item=diamond,quantity=..8}] {"rawtext":[{"text":" You Don't Have Enough Diamonds"}]}
      tellraw @initiator[hasitem={item=diamond,quantity=9..}] {"rawtext":[{"text":"Purchase Successfully"}]}
      setblock....

    • @Linkinbennet420
      @Linkinbennet420 9 หลายเดือนก่อน

      @@linswitch4509 you can get it to work if you use a structure block with the structure block commands I just forgot what they are lol

  • @enchantedstitches8245
    @enchantedstitches8245 ปีที่แล้ว

    How do I do this but with enchanted books? I wanna sell enchanted books but idk how

  • @caoilinnmontgomery1421
    @caoilinnmontgomery1421 ปีที่แล้ว +3

    How do you do a custom item for example armor with a custom name?

    • @Golden_Apple859
      @Golden_Apple859  ปีที่แล้ว +2

      Step1: Place a structure block and set its X,Y and Z to 1 and the offset Y value to 1 instead of -1.
      Step2: Fill the small space of the structure block grid with structure void block.
      Step3: Rename an item and give it a custom name using an anvil.
      Step4: Throw/put the item on top of the structure block or inside the structure void block and wait for 10 seconds.
      Step5: Save it in the structure block by giving the structure a custom name that you will save for example you can type "myitem" in the mystructure box in the ui of the structure block.
      Step6: Using this command for the npc:
      /title @initiator[hasitem={item=gold_ingot,quantity=!5..}] actionbar §cYou Don't Have Enough gold_ingots!§r
      /execute at @initiator[hasitem={item=gold_ingot,quantity=5..}] run structure load myitem ~~~
      /title @initiator[hasitem={item=gold_ingot,quantity=5..}] actionbar §aPurchase Successful!§r
      /clear @initiator[hasitem={item=gold_ingot,quantity=5..}] gold_ingot 0 5

    • @caoilinnmontgomery1421
      @caoilinnmontgomery1421 ปีที่แล้ว +1

      @@Golden_Apple859 thank you so much!

    • @Golden_Apple859
      @Golden_Apple859  ปีที่แล้ว

      @@caoilinnmontgomery1421 Welcome :)

    • @UltimateBrigadier24
      @UltimateBrigadier24 ปีที่แล้ว

      ​@@Golden_Apple859I've been looking for this. I believe you can do this with already enchanted tools, yes? Thank you!

  • @manalcola4952
    @manalcola4952 ปีที่แล้ว

    ¿Do you have a discord or something like that?

  • @eddine07bbx
    @eddine07bbx ปีที่แล้ว

    You look knowing a lot about commands on bedrock and I need help, I would like to make a one block with command ( I use a way with armor stand and redstone blocks ) and I would like to make the system of upgrade, I mean for example
    One block level 1:
    Grass block, dirt, oak log, stone
    And when you break 50 block, upgrade to level 2 which add coal ore, iron ore and a chest with loot…
    You see ?

    • @Golden_Apple859
      @Golden_Apple859  ปีที่แล้ว

      It can be done using the new "/execute if blocks" with a scoreboard counter per level.

    • @eddine07bbx
      @eddine07bbx ปีที่แล้ว

      @@Golden_Apple859 u…. Yeaaaaa lol its so hard with the new execute but even before the update I didnt made it cuz I have never knew how to make the system level

  • @deatharkassassin4659
    @deatharkassassin4659 ปีที่แล้ว

    does this still work because i put it in perfectly and it wont give me the item i purchase nore does it take away the item i bought it with

  • @FNARF-e9r
    @FNARF-e9r 3 หลายเดือนก่อน

    Does this still work

  • @angefgr7698
    @angefgr7698 ปีที่แล้ว

    The first shop did not work for me :(

  • @Linkinbennet420
    @Linkinbennet420 ปีที่แล้ว

    Is there a code writer website I can use for this?

  • @chocotv4169
    @chocotv4169 ปีที่แล้ว

    I try this and if the item is like used or damage the item well not be dissappear and u still get the money how can I fix this??

  • @twitchin95
    @twitchin95 ปีที่แล้ว

    Does this still work as of 1.20? Love the video!

    • @Golden_Apple859
      @Golden_Apple859  ปีที่แล้ว

      Yes It works with no difference for 1.20 or 1.20.1. Appreciated that you enjoyed my vid :)

  • @hendrikdegroot8669
    @hendrikdegroot8669 ปีที่แล้ว

    Hey, it was a great video but how do you make it so you can sell things to it

    • @Golden_Apple859
      @Golden_Apple859  ปีที่แล้ว

      Replace the emerald with the thing you want to sell and replace the thing with the emerald. This replacement won't do any impact and hasitem filter and the item counter of the command both include item count

  • @SnapBoyRiz
    @SnapBoyRiz ปีที่แล้ว

    It seemed like I did the commands correctly, but it's still not working? I even turned off that one setting you told me. I've been trying all sorts of videos on how I can sell items with these npcs and this one seems the easiest, but still it doesn't seem to work. Could u figure out what's wrong?

    • @Golden_Apple859
      @Golden_Apple859  ปีที่แล้ว

      Can you explain which one are you trying for the npc: the scoreboard money version or the hasitem version?

    • @Golden_Apple859
      @Golden_Apple859  ปีที่แล้ว

      Try pasting the hasitem version on your npc from my description and try if it works.

    • @Golden_Apple859
      @Golden_Apple859  ปีที่แล้ว

      Make sure your also on the latest minecraft bedrock version 1.19.80

  • @triplewstuff
    @triplewstuff ปีที่แล้ว

    Hey serious question, ive tried to adapt it to a sword but it just doesn't work

    • @Golden_Apple859
      @Golden_Apple859  ปีที่แล้ว

      Did you write the quantity right?

    • @triplewstuff
      @triplewstuff ปีที่แล้ว

      @@Golden_Apple859 don't worry I managed to fix it!!! Thanks for replying to this comment. The reason I didn't work is because I didn't specify what type of sword I wanted!!
      Your tutorials are awesome, have a great day😎

  • @gabriel_cesar
    @gabriel_cesar ปีที่แล้ว +1

    It dont worked, i think is because im on mobile..

    • @Golden_Apple859
      @Golden_Apple859  ปีที่แล้ว +1

      No it should work in every device that runs bedrock, make sure you copied the command right or just copy from the description

    • @therealsabclipyou8669
      @therealsabclipyou8669 ปีที่แล้ว

      @@Golden_Apple859 hey its me Sab clip you um can you add me on Xbox PLEASE

    • @Golden_Apple859
      @Golden_Apple859  ปีที่แล้ว

      Make sure you turn off "Upcoming creator features.

    • @gabriel_cesar
      @gabriel_cesar ปีที่แล้ว

      @@Golden_Apple859 ah now i understand thanks

  • @nikabyrd5335
    @nikabyrd5335 8 หลายเดือนก่อน

    And it did not work

  • @Natasjahunting
    @Natasjahunting ปีที่แล้ว

    It doesn't work with me i am on phone idk if it matters

    • @Golden_Apple859
      @Golden_Apple859  ปีที่แล้ว

      It should work on phone too, make sure your on the latest mc version.

  • @niotiik8923
    @niotiik8923 ปีที่แล้ว

    It doesn’t give them the item there buying and it doesn’t take away the money

    • @freshketchup2748
      @freshketchup2748 ปีที่แล้ว +1

      then u did something wrong works fine for me. Check if u have "Upcoming Creator Features" on in the Experimental Mode, if u do turn it off.

    • @Golden_Apple859
      @Golden_Apple859  ปีที่แล้ว

      Probably the "Upcoming Creator Feature is on. Turn it off

    • @Golden_Apple859
      @Golden_Apple859  ปีที่แล้ว

      Also make sure you are in 1.19.60

  • @itzmeIoI
    @itzmeIoI ปีที่แล้ว

    the money verion isnt working for me, pls help

    • @Golden_Apple859
      @Golden_Apple859  ปีที่แล้ว

      Make sure you change the objective to match your scoreboard objective name..

  • @willowofthewind8645
    @willowofthewind8645 ปีที่แล้ว

    Hey I'm having a bit of trouble, I got this to work reversed in a sell shop for eggs and using the scoreboard. But now trying to do the same thing for leather it's not working even though I'm using the same command exactly. Any tips or am I just bugged XD

    • @willowofthewind8645
      @willowofthewind8645 ปีที่แล้ว

      The commands I'm using are
      /scoreboard players add @initiator[hasitem={item=leather,quantity=1..}] Tokens 5
      /clear @initiator[hasitem={item=leather,quantity=1..}] leather 1

    • @willowofthewind8645
      @willowofthewind8645 ปีที่แล้ว

      Well found my mistake! I spelled quantity wrong, I wish npcs had a bug report thing on commands like blocks do

    • @Golden_Apple859
      @Golden_Apple859  ปีที่แล้ว

      @@willowofthewind8645 Yes, Mojang should add syntax system in NPC

    • @VoidedGarvish
      @VoidedGarvish 9 หลายเดือนก่อน

      Hey, i tried using your command but to sell Dirt, but mine isn’t working ​@willowofthewind8645

    • @willowofthewind8645
      @willowofthewind8645 9 หลายเดือนก่อน

      @shadedfox4165 its been awhile since i messed with commands. Id say just double check all your spelling and if that dosnt work im sorry. I can try to find my old notes after class tomorrow

  • @bxt1837
    @bxt1837 ปีที่แล้ว

    I need a tutorial for selling like sell item for Money please

    • @Golden_Apple859
      @Golden_Apple859  ปีที่แล้ว

      Just do opposite, write money instead of item and item instead of money in the commands in each line.

    • @chocotv4169
      @chocotv4169 ปีที่แล้ว

      @@Golden_Apple859can u make a tutorial of it

  • @Wefaee
    @Wefaee ปีที่แล้ว

    does it works in znpcs plugin?

    • @Golden_Apple859
      @Golden_Apple859  ปีที่แล้ว

      Not sure about that, its a java plugin.

  • @nikabyrd5335
    @nikabyrd5335 8 หลายเดือนก่อน

    I can barely see what you're writing

    • @Golden_Apple859
      @Golden_Apple859  หลายเดือนก่อน

      probably internet prob. TH-cam blurs out when one has a bad internet

  • @niotiik8923
    @niotiik8923 ปีที่แล้ว

    It doesn’t work

    • @Golden_Apple859
      @Golden_Apple859  ปีที่แล้ว

      Make sure you are in bedrock, in the latest version and upcoming creator features in experiment is turned off.

  • @Monbrano
    @Monbrano ปีที่แล้ว

    how i do a Sell Shop? whitout command blocks

    • @Golden_Apple859
      @Golden_Apple859  ปีที่แล้ว

      You just have to swap the item names, for example: "/give @initiator[hasitem={item=gold_ingot,quantity=5..}] apple 1" =========> "/give @initiator[hasitem={item=apple,quantity=1..}] gold_ingot 5" in order to sell instead of buy.

    • @Monbrano
      @Monbrano ปีที่แล้ว

      @@Golden_Apple859 i mean, whit scoreboard

    • @Golden_Apple859
      @Golden_Apple859  ปีที่แล้ว

      @@Monbrano I am providing the command that will allow your NPC to sell scoreboard money 5 for 1 apple which means you can sell 1 apple for 5 scoreboard money.
      Here's the command:
      /title @initiator[hasitem={item=apple,quantity=!1..}] actionbar §cYou Don't Have Enough Apples!§r
      /scoreboard players add @initiator[hasitem={item=apple,quantity=1..}] money 5
      /title @initiator[hasitem={item=apple,quantity=1..}] actionbar §aPurchase Successful!§r
      /clear @initiator[hasitem={item=apple,quantity=1..}] apple 0 1
      Make sure you change the objective if you have a different objective than the "money" dummy and feel free to change the item name, quantity and scoreboard money amount for selling.
      Also you have to make sure that you have the "Upcoming Creator Features" Experimental toggle turned off. If it is turned on then the NPC shop won't work.

    • @Monbrano
      @Monbrano ปีที่แล้ว

      @@Golden_Apple859 the features is also turned off, i can use NPC shop, i'm going to test the sell shop now, tysm!

    • @Monbrano
      @Monbrano ปีที่แล้ว

      @@Golden_Apple859 Sorry for the inconvenience, but is there any way to do "minimum(amount) and maximum(amount)" to buy or sell an item? to facilitate

  • @ML-eq4rx
    @ML-eq4rx ปีที่แล้ว +1

    how are you typing the § symbol

    • @manalcola4952
      @manalcola4952 ปีที่แล้ว

      press alt 0 1 6 7
      Hope it works ^^

  • @Waves-guy909
    @Waves-guy909 2 หลายเดือนก่อน

    IT DIFNT WORK