Do you want to make custom villager trades on minecraft bedrock edition or an npc shop in this video i’m going to show you how so first of all i’m going to show you an example of this custom villager trade so this uses the mpc which is a mob that you can get free Commands and what this will do is it’ll give me the option to be able to trade a diamond for an emerald or an m wood for a diamond so i’m going to sell this diamond for an emerald and as you can see if i hit it it will take away my emerald and Give me a diamond now this is really simple to set up and it only requires three command blocks and then a command inside of the npc so first of all what you want to do is you want to go to your mpc and then you want to Set the command to be slash set block and then coordinates and then redstone underscore block so you’ll want your coordinates to be where your command blocks are gonna be now you want your redstone block to be at the front of the coordinates so if you Place a block down then you stand on top of it and you look down you’ll be able to find the coordinates and then those are the coordinates you will need at the beginning of your command blocks and then in the first command block what you Want to do is you want to have slash set block and then the coordinates again and an air and this will just set the redstone block back to air so that it is reusable and then the second command block you will need is slash clear And then at p emerald 0 1. now you want to customize this for whatever item you want it doesn’t have to be an embled and if it is something that has a data value instead of putting 0 you will want to put the data value so for example if you Want a certain type of concrete or a certain type of wood or something that has multiple different types and the same id you’ll need to put the data value for it now unfortunately you’re not able to do it to where it will clear multiple items so I can’t make it for example that if i was to give it an emerald it would give me five diamonds because that isn’t gonna work now the reason that won’t work is because minecraft bedrock edition can’t test for the amount of items someone has so Let’s say for example if i was going to do a trade with this npc where i wanted to have it to take away five emeralds it wouldn’t be able to even if i just had one emerald it would still work because it’s not able to test how many Emeralds you have in your inventory so you want to make this one which is a disadvantage to using this sort of system and then the third command block you want is a slash give add to pay diamond one or whatever you want now you can give any amount of item you want it Doesn’t have to be one you could have this because it’s a give commander not a clear command you could have this whatever you want it to be now for the scoreboard shop you can have a scoreboard and this is a little bit more simple a little bit Easier it might take a little bit longer to set up but it’s better because you can have other things in your world give you money and you can have a currency in your world rather than doing trades now first of all i’m going to show you how to make the scoreboard and This is slash scoreboard objectives add money dummy now you can do this in chat it doesn’t need to be in the command block but i’m just having these commands in command blocks so that i don’t forget them and so that it’s easier to show you so Have that command type it in the chat you can have something else rather than money as a name if you want to but i would recommend you have it as money as a capital m and then money because it’s a lot simpler to be able to fall in line but If you have something different just a place where i put money in all the command blocks with whatever you have instead now if you want to give yourself money to be able to test it’s slash scoreboard players ad p and then money in any amount so in this case i did 10 But you can do whatever you want to instead and then if you want to set the display to be on the sidebar it’s slash scoreboard objectives set display and then sidebar money now you can also set the display to be on the list which is a pause menu Or below a player’s name and then also what you want to do for this system is you’ll need to summon the npc mob so because this is using a name it’s going to be using a name in these commands in a second so what you want to do Is you want to summon the mpc mob already with a name as this is how you have to do it for it to be able to work and i’ll explain why once we get to the command so this is slash summon npc and then a name and then the coordinates Where you want to summon it so where you want your shop to be now this will summon the npc so if i hit it as you can see it has summoned the npc here first of all i’m going to show you an example of an npc scoreboard shop and then i will Show you how to make it so in this example i have it set up so that i can either buy 16 gold 400 or i can sell a gold for five so if i click the buy button it will allow me to buy the 16 gold And it will give me 16 gold it will take away 100 from my money and then if i click on the cell it will take away one of the ingots and it will give me five in return now this is very very simple to set up there are some advantages to Using a scoreboard system rather than trades and one of the main advantages is that it will display on your screen it will also not require you to have items if you die you won’t lose the currency that you set up and also it will always be a thing that You can use anywhere in your world no matter what you are using it for so you can have other ways people to be able to earn money and to be able to use a scoreboard so this is a little bit of extra protection set up the buy shop because i want to Show you that you can make it to where it will be a little bit safer and it won’t be able to be abused and you can also use this system as well for the cell and for the other ones but in this case it’s just set up for the buy shop now This system is going to be where it will execute at the mpc so the closest pair to the npc instead of the closest person to the command blocks so normally your minecraft command blocks if you use the at p it will execute the closest player to the command block so for example If i was standing here and somebody was using the shop then the command blocks would be executed for me rather than be executed for the person who wants to execute them who’s using the npc because i’m closer so in this buy shop instead it will execute the closest player to the npc And then it’s still not 100 perfect but it is a lot harder to be abused okay so first of all the first command block is going to be a set block so this will be slash set block and then coordinates and then redstone underscore block and this will set a redstone block to The coordinates and the coordinates are going to be in front of this command block here and then the first command block is going to be a slash set block and then coordinates and air so that’ll set the redstone block back to air server it’s reusable next it’s going to be an Execute so this is slash execute at e name equals in the name of your npc so in this case buy shop type equals npc tilde tilde tilde scoreboard players test at p money 100 and this will test that the player has 100 or more so that they will be able to Use the shop successfully and then the next command block is a slash executes at e name equals and in the name of the npc that you have tilde tilde tilde scoreboard players remove at p money 100 and this will move 100 from the player and then the final Command block for the buy shop is execute at a name equals and then the name of your shop so in this case buy shop and then tilde tilde tilde give at p gold underscore ingot and then 16. now you can of course customize this so instead of having gold ingot you can Have what you want to have you can also customize the amount that you need now you need to have these two command blocks at the end to be set to conditional and then this these two environments can be unconditional so these two and chain ones need to be conditional And then these do not need to be conditional and then for the cell shop it’s pretty similar it’s also going to set a block so you want to have this set the redstone block to be in front of the cell ones instead so you can also have multiple v’s you can add More of these if you wanted to one npc and you would just need command blocks you need to add to this to whatever you want so you can have loads of items in one npc rather than having tons of different npcs to each of the items okay so this is That block and then the coordinates of the block and then redstone underscore block and then again it will set the block to be at the beginning of this redstone chain this command block chain the redstone block will power this command block and it will power these command blocks as well And this will just set the block back to air and then for the next command block this is a slash clear at p and then go underscore ingot zero one again minecraft mode recognition can’t test for the amount of items you have so unfortunately you can only do this one at a time And again the zero can be changed to the data value for whatever you are using and then the third command here will be a slash scoreboard players add add p money five and that will just add the money to the player who has sold the item if you need any help or Have any questions let me know in the comments section down below thank you very much for watching and goodbye Video Information
This video, titled ‘How To Make Custom Villager Trades With Command Blocks In Minecraft (PS4/Xbox/PE/Bedrock)’, was uploaded by VIPmanYT on 2020-08-16 15:45:01. It has garnered 132226 views and 2414 likes. The duration of the video is 00:08:42 or 522 seconds.
Learn how to make custom villagert trades in Minecraft, this allowed you to make custom villager trades without mods, using command blocks. You can either have custom villager trades, or an NPC command block scoreboard shop. These custom villager trades and shop works on Minecraft PS4, Xbox One, PE / Pocket Edition, Switch and all other Bedrock Edition platforms. hope you Enjoy!
🔔 Find my content helpful and entertaining? Subscribe for more free Minecraft videos! https://www.youtube.com/channel/UC3S-zXyxn46PiIcqlLKzJ_Q?sub_confirmation=1
⏱️Timestamps⏱️ 0:00 – How To Make Custom Villager Trades 2:25 – How To Make NPC Scoreboard Shop
❤️If you find my content helpful and entertaining consider becoming a channel member – https://www.youtube.com/channel/UC3S-zXyxn46PiIcqlLKzJ_Q/join
New to VIPmanYT, start here! 👉 https://www.youtube.com/watch?v=jw-pkAb0Qy4&list=PL7TR2F28qaw54wvg4l6ffIvB9JO6nBKnv&index=2&t=0s
👉Watch Next ▶ How to find diamonds in Minecraft – https://youtu.be/XBa96qEjcSo ▶ How To Make A Command Block Shop – https://youtu.be/hl809n5gn5M ▶ How To Mass Replace Blocks – https://youtu.be/qz4Dkszu9gA