How to Make an NPC Shop Minecraft *Bedrock*

preview_player
Показать описание
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 -
/title @initiator[hasitem={item=gold_nugget,quantity=..4}] actionbar Need more Nuggets!
/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!
Рекомендации по теме
Комментарии
Автор

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!

tobeyjohnson
Автор

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

kwesont
Автор

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

Dakvy
Автор

This was perfect for the escape room I’m building. Thank you so much

Im_hungry
Автор

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

Ivyman
Автор

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!

thefoxolotl
Автор

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

thrmoddmodpackpe
Автор

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
Автор

Amazing! Would love to see you make one using the scoreboard to buy/sell with an npc

ItsHammerTimex
Автор

I frikkin knew this was possible, sorry but I've been trying to figure out how to do this for awhile n till now I've been searching all over, tried it out n it worked perfectly on first attempt, thank you so very much

clintwaspe
Автор

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

Barryy
Автор

how to allow players to only buy a thing once?

mateuszgancarz
Автор

Normally, my NPC is supposed to give a totem for 20 diamonds, but he only accepts 10-20, how do we fix this?

Boyfriend
Автор

Is it possible to do this with money like using the scoreboard?

JJ_YT__
Автор

Hey man I lived the vid and you very helpful!! I was wondering if I was able to change the golden ingot or something like that into a scoreboard money system, if you could help me with that or make a vid abt that it would be super helpful

HunterValdez-jvsw
Автор

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

InfnityRoy
Автор

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

crking
Автор

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

Jbfjfbfjfbfj
Автор

It works with the 9 and says need more but if I have 10 it says no message and takes the diamonds and doesn’t give the pickaxes

vali.mm
Автор

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 ?

michelcyr