How To use the HasItem selector in Minecraft Bedrock edition / MCPE / SWITCH / XBOX & PlayStation

  Рет қаралды 3,000

MRBBATES1

MRBBATES1

Күн бұрын

Hello, welcome to another How To video. In todays video i show you how to use the 'HasItem' selector for use in Minecraft Bedrock edition / MCPE / SWITCH / XBOX & PlayStation.
Learn how you can take Minecraft to the next level
►Chapters
0:00 Intro
0:55 The Commands
6:40 The Showcase
12:39 Outro
►FOLLOW ME
Twitter: / bobbinsbates
Discord: / discord
Reddit: / mrbbates1
►OTHER STUFF
#HasItem #Minecraft #BedrockEdition #MRBBATES1 #HowTo #commands#

Пікірлер: 42
@ElectriziedYT
@ElectriziedYT 2 жыл бұрын
thx this was a lifesaver
@MRBBATES1
@MRBBATES1 2 жыл бұрын
Your welcome, thanks for watching :)
@tigreetdauphin7209
@tigreetdauphin7209 Жыл бұрын
thanks you so much u helped me as well
@MRBBATES1
@MRBBATES1 Жыл бұрын
Glad it was helpful thanks for leaving a comment :)
@ashermoore2346
@ashermoore2346 2 жыл бұрын
ty
@vduzuv3566
@vduzuv3566 Жыл бұрын
Thanks!
@MRBBATES1
@MRBBATES1 Жыл бұрын
Thanks for watching:)
@ashermoore2346
@ashermoore2346 2 жыл бұрын
Commands for copy and paste Basic : /execute @a[hasitem=[{item=apple}]] ~~~ say I have apples! Advanced: /execute @a[hasitem=[{item=apple,quantity=1,,},{item=cooked_beef.quantity=1,,}]] ~~~ say I have apples and beef!
@mylittlevalkyrie16
@mylittlevalkyrie16 2 жыл бұрын
How did you get new dialogs with the npc? I'm looking to do stuff without addons if possible
@MRBBATES1
@MRBBATES1 2 жыл бұрын
The one in the video is using a custom dialogue addon that a made, but I have another video called quests with NPCs that shows a different way of doing it without addons
@thewonderfulwonder1614
@thewonderfulwonder1614 2 жыл бұрын
Ty
@MRBBATES1
@MRBBATES1 2 жыл бұрын
Your welcome, thank you for watching :)
@deadlybean687
@deadlybean687 2 жыл бұрын
This seems like it’ll be useful, still waiting on the /give allowing named items 😔
@MRBBATES1
@MRBBATES1 2 жыл бұрын
It is very useful I see a lot of things that will be easier to do thanks to this, but allowing for custom names is an issue for a long while, even for the hasitem command, this doesn’t do names as well, definitely need that adding!!
@KYTKaoz
@KYTKaoz Жыл бұрын
Just do a /structure command which is spawned onto a player.
@deadlybean687
@deadlybean687 Жыл бұрын
@@KYTKaoz if two people are near each other it can be picked up by either one, itd also delete a block if they’re in a slab or ladder or such
@MRBBATES1
@MRBBATES1 Жыл бұрын
If you place a structure void down and throw your item into that and save it, it wont remove the half slab :) The void block tells MC not to replace so what ever is there will remain. However if you dont have solid floor under the half block the item can fall throw so keep that in mind as well :)
@chronothehedghog7030
@chronothehedghog7030 16 күн бұрын
Im trying to make to where holding blue stained glass gives the player swiftness 2 But my command: /execute as @a run [hasitem=[{item=blue_stained_glass}]] ~ ~ ~ effect swiftness 1 2 Wont work can you help me fix it?
@andrewbrown497
@andrewbrown497 2 жыл бұрын
How do I make it where it takes something and gives an item back. Like when you gave Ted the items how would you get him to give you emeralds?
@MRBBATES1
@MRBBATES1 2 жыл бұрын
the way I did it with ted was this use the hasitem while adding a tag, so something like this: /execute @initiator[hasitem=[{item=diamond_helmet,quantity=1..}]] ~ ~ ~ tag @s add Clear from here you can just use this with normal commands, like this: /clear @initiator[tag=Clear] diamond_helmet -1 1 /give @initiator[tag=Clear] emerald 200 /execute @initiator[tag=Clear] ~ ~ ~ tag @s remove Clear /execute @initiator[tag=!Clear] ~ ~ ~ title @s actionbar You do not have all the items needed
@frogeyjuice
@frogeyjuice 3 ай бұрын
Is it possible to detect items with a certain name in bedrock? like "/execute as @a[hasitem=[{item=paper,name=Ticket,quantity=1..}]] ~~~ say I have tickets!" ? That doesn't seem to work for me but I'm wondering if there is anything like that in Bedrock
@MRBBATES1
@MRBBATES1 3 ай бұрын
As far as i know, the hasitem command is not able to read NBT data so things like name is not something you can filter by. if your going to use an item in this manor you would be better to use something more rare thats harder to get ahold of. even a custom item can be used as long as player cant get it without them being given it. if thats not an option you would need some additional checks aftwards. what that might be is up to you.
@User-ie8vl
@User-ie8vl 2 жыл бұрын
I'm trying to make a way to give the player a new sword after using it one time. Like if the player hits an entity and the durability goes down a bit it replaces the sword with a new one. The (item data) selector doesn't work.
@MRBBATES1
@MRBBATES1 2 жыл бұрын
You need the replace item command for that :) , I’m not at a computer this second but will share an example later :)
@User-ie8vl
@User-ie8vl 2 жыл бұрын
Okay! Thank you :)
@MRBBATES1
@MRBBATES1 Жыл бұрын
@@User-ie8vl really sorry i realised i never responded back to this, the basic version of the command you need is the replace item command. something like this would work: /replaceitem entity @a slot.weapon.mainhand 0 keep diamond_sword 1 2048 give the player a sword with 1 durability then use the command above in a repeating command block, if you use the sword once it breaks and the command replaces it with a new one, You can use the true condition off the command block to do other things if needed.
@Xman1020
@Xman1020 Жыл бұрын
@@MRBBATES1 How did you do the light block thing? Did you just have any light blocks around you get deleted except the one you were standing in?
@MRBBATES1
@MRBBATES1 Жыл бұрын
Sort of, I wanted to give a flickering effect since I wanted to use torches and lanterns, so I did it this way instead to give that effect: for the video i used 3 commands/command blocks. you need 2 to start it off an an additional 1 for each light source. Commands are: Repeating > Always On > Unconditional: execute @a ~-2 ~-2 ~-2 fill ~ ~ ~ ~+4 ~+4 ~+4 air 0 replace light_block Chain > Always On > Unconditional: /execute @a[hasitem=[{item=torch,location=slot.weapon.mainhand}]] ~ ~ ~ setblock ~ ~+1 ~ light_block 5 Chain > Always On > Unconditional: execute @a[hasitem=[{item=lantern,location=slot.weapon.mainhand}]] ~ ~ ~ setblock ~ ~+1 ~ light_block 7 Just keep adding to the chain for each source. If you dont want the flicker effect, place the light before removing it and it should not flicker then.
@samtec123
@samtec123 Жыл бұрын
How did people make the torch
@MRBBATES1
@MRBBATES1 Жыл бұрын
for this video i used 3 commands/command blocks. you need 2 to start it off an an additional 1 for each light source. Commands are: Repeating > Always On > Unconditional: execute @a ~-2 ~-2 ~-2 fill ~ ~ ~ ~+4 ~+4 ~+4 air 0 replace light_block Chain > Always On > Unconditional: /execute @a[hasitem=[{item=torch,location=slot.weapon.mainhand}]] ~ ~ ~ setblock ~ ~+1 ~ light_block 5 Chain > Always On > Unconditional: execute @a[hasitem=[{item=lantern,location=slot.weapon.mainhand}]] ~ ~ ~ setblock ~ ~+1 ~ light_block 7
@mastersymmetry2774
@mastersymmetry2774 2 жыл бұрын
This doesn’t seem to work for the chest? Or am I doing it wrong? Because I used your exact command just changed ender chest to chest but it doesn’t work. please reply thanks!
@MRBBATES1
@MRBBATES1 2 жыл бұрын
I don’t think you can use a normal chest with this as placing an item in it means they don’t have it so wouldn’t apply for has item command.
@mastersymmetry2774
@mastersymmetry2774 2 жыл бұрын
@@MRBBATES1 oh? How come slot.chest is a choice then?
@MRBBATES1
@MRBBATES1 2 жыл бұрын
I think it’s more for donkeys with chests on or lamas with chests as they are entity’s that have that attached to them.
@gabrielpassos4409
@gabrielpassos4409 Жыл бұрын
is there a way to select the item by a name?
@MRBBATES1
@MRBBATES1 Жыл бұрын
There is a name parameter but as far as I know custom name is bugged or doesn’t work. i can offer an alternative for spawning in a named item but for checking for a named item i dont have a solution foe right now.
@Xman1020
@Xman1020 Жыл бұрын
@@MRBBATES1 If you use the data selector and have something like a clock and give yourself a clock using the number you have for the data selector (after you specify quantity) you're able to make it so that only the ones given to you with that command work for the command. Not a perfect fix for the lack of name selecting but it's a workaround.
@MRBBATES1
@MRBBATES1 Жыл бұрын
Thats very true, i didnt think of that.
@marshill88
@marshill88 Жыл бұрын
execute @a doesn't work.
@MRBBATES1
@MRBBATES1 Жыл бұрын
The execute command has changed recently for bedrock edition so this video is abit out of date now try using execute as @a run [command] instead
@muhammadadamwaizmuhammadfa8204
@muhammadadamwaizmuhammadfa8204 Жыл бұрын
You sound like mumbo jumbo
@MRBBATES1
@MRBBATES1 Жыл бұрын
Haha we do live in the same country :)
How To Use HasItem Command On Bedrock
8:51
Cyber Media
Рет қаралды 27 М.
Pray For Palestine 😢🇵🇸|
00:23
Ak Ultra
Рет қаралды 35 МЛН
La final estuvo difícil
00:34
Juan De Dios Pantoja
Рет қаралды 30 МЛН
Китайка и Пчелка 4 серия😂😆
00:19
KITAYKA
Рет қаралды 1,8 МЛН
I Added Infinite Crafting to Minecraft (with AI)
13:08
Blucubed
Рет қаралды 87 М.
How To Save ANY Size Structure in Minecraft Bedrock Edition
11:10
How I Mastered Every Element in Minecraft
17:38
Only_A_Squid
Рет қаралды 83 М.
The FUNNIEST FAKE Minecraft Speedruns EVER...
16:29
Camdeeno
Рет қаралды 466 М.
How To Use The "hasitem" Filter...
5:05
godsunit
Рет қаралды 8 М.
Making the FASTEST Creature in Spore.
14:19
BogBoy
Рет қаралды 106 М.
How To Spawn and Use The Agent in Minecraft Bedrock Edition
9:23
How To Create Custom NPC's in Minecraft Bedrock Edition
24:43
MRBBATES1
Рет қаралды 10 М.
super fast train run part 7 #shorts #viral #trending
0:58
Xixvogaming
Рет қаралды 28 МЛН
КАКОЙ ВАШ ЛЮБИМЫЙ ЦВЕТ?😍 #game #shorts
0:17
Poopigirl
Рет қаралды 10 МЛН
Minecraft Mob's Damage #shorts #minecraft #anime #phonk #chess
0:14
Stereo Madness Hold Version
1:00
Speedroute
Рет қаралды 17 МЛН