I don't mod, make data packs, or make maps for minecraft, but here I am, watching this full video, and absorbing the information as though I'll ever use it
@kylorde16084 ай бұрын
Its always fun learning regardless though, knowing things exist means you could go back if you ever need the information
@UnlucksMcGee3 жыл бұрын
The simplest fix to the ender eye method is to give it a custom NBT tag (sidenote: the item is an "ender_eye" and the entity is an "eye_of_ender"). 1. Give the player the custom ender_eye item: give @s minecraft:ender_eye{myCustomEye:1b} 2. Add an nbt condition to the advancement criteria (ensure you have a comma in the line just before nbt): In advancements/eye.json: { "criteria": { "requirement": { "trigger": "minecraft:using_item", "conditions": { "item": { "items": [ "minecraft:ender_eye" ], "nbt": "{myCustomEye:1b}" } } } }, "rewards": { "function": "tutorial:eye" } } 3. Add a command to kill only the eye_of_ender entity with that nbt tag: In functions/eye.mcfunction: advancement revoke @s only tutorial:eye kill @e[type=minecraft:eye_of_ender,nbt={Item:{tag:{myCustomEye:1b}}}] 4. (Optional) If the player is not in creative mode, replace the consumed ender_eye item in their hotbar slot
@Thatnormalted2 жыл бұрын
I thought this woundnt work because, why would the entity have the same nbt as the item? I tested it just to be sure and it does work, the reason i got by thinking 2 seconds is that the eye drops itself, thats why it inherits the nbt, so the eye you throw and the one you recieve are identical
@Rugbeat90999 Жыл бұрын
I will be using this, thank you. It is greatly appreciated.
@DeleteKernel Жыл бұрын
@@Thatnormalted the eye entity also uses the same texture as the item u held before
@bloxxer_tv11 ай бұрын
HOLD ON, YOU CAN GIVE ITEMS CUSTOM NBT DATA???
@kappasphere3 жыл бұрын
You can use a shield instead of an eye of ender to get it working in worlds with strongholds
@HyperKNF Жыл бұрын
or actually virtually any usable item
@kappasphere Жыл бұрын
@@HyperKNF Not every usable item if you count instantaneous use as a use, because the using_item advancement trigger only detects items that have a continuous use
@agentfizz10473 жыл бұрын
Finally, he remembered his KZbin password. *It's been so long since he posted: 2 Months to be exact*
@flip_bo98393 жыл бұрын
Hello Mr. moose, your tutorials are the best on KZbin! My Datapack gets filled more and more!
@aethersword78236 ай бұрын
WAKE UP EVERYONE! A new method just dropped (in snapshot 24w12a for version 1.20.5): Set your item component to food and set the eating time to 1 of 2 options. 3.4e38 - maximum float value, it disables the eating animation and eating particles. 0.001 - infinitely eating, food particles show. The component: > minecraft:food={nutrition:0,saturation_modifier:0,can_always_eat:true,eat_seconds:3.4e38} then you can simply detect it with "using_item" advancement
@kasma_90993 жыл бұрын
you're tutorials are literately the only ones that help me with anything
@aleksandarivovic10073 жыл бұрын
You have the best tutorials ever!
@Banana-qq2wt3 жыл бұрын
Ikr the best!!!
@RetrospillBlogspotNO2 жыл бұрын
Actually he inspired me to make my first data pack and publish it to planetminecraft.. Just an Amazing youtuber..!
@aestellic2 жыл бұрын
In 1.18.2, you can change data/minecraft/tags/worldgen/structure/eye_of_ender_located.json via datapack and set it to: { "replace": true, "values": [ ] } it lets you do this in a dimension which includes a stronghold and still lets you /locate it only downside is the vanilla eye of enders can't find the stronghold
@jiraffe37902 жыл бұрын
You're a life saver with these tutorials. You helped me make a 2 week, 3v3 Heros vs Villains server and it's super cool!
@furrer81233 жыл бұрын
I really appreciate that you actually read comments.
@Legitimoose3 жыл бұрын
Ɛ>
@michaelo44763 жыл бұрын
Great video! Though it's worth mentioning: Rather than using ' if score ', you can just run the command you want but use @a[scores={carrot=1..}] . Checking for scores in a target selector is more efficient than in executive if. It won't make much difference lag wise, but if you have a large datapack it's worth doing :)
@GameFloWM2 жыл бұрын
nie? można to na spokojnie użyć w @a[scores={}] jak i w if score...
@michaelo44762 жыл бұрын
@@GameFloWM sorry i would reply but i don't understand what google translate is saying :/
@FileTypeJpeg3 жыл бұрын
finally another video, been waiting for this knowledge! still, great youtuber and i'm proud of being here from close to the beginning!
@Frostyflytrap3 жыл бұрын
Thanks for the concise guide to all options with their upsides and drawbacks! I just tried the Ender Eye method on my existing world and surprisingly it worked a lot slower than the carrot on a stick method, I suspected it was to do with poor optimization on my part so I tested it on a separate part and that was definitely the case. Well, I have no idea what may be interfering with that so I guess it's time to rip my old datapack apart and start from scratch I guess...
@mercuryteamfortress2 жыл бұрын
You probably have too much stuff in loop/tick.mcfunction.
@Katslia3 жыл бұрын
Video Idea: How about tutorials for the Advancements generator or the Item modifier generator? Edit: also where did you learn your commands?
@Legitimoose3 жыл бұрын
I learned a lot from Dragnoz' tutorials back when scoreboards were added to the game ;^) Then I pretty much just kept up to date with each new update, and pretty soon commands had gotten huge. Also, learning programming in general helps a lot. There's a lot of things you can cross-apply. Thanks for the suggestion ;^)
@FriedMonkey362 Жыл бұрын
@@Legitimooseman i know c# (similar to java) But Minecraft datapacks are its own unique confusing thing I dont understand datapacks and seleciting and @ One thing im thinking of is making a programming language that compiles to Minecraft datapacks But idk how doable it is
@sselesUneeuQ3 ай бұрын
here's the thing: I came across this looking for a way to detect when a player uses a heart consumable or revive consumable so disappearing automagically after using it is perfect. Especially paired with a little /kill @e magic specifically for the ender_eye while it's within a block of the player.
@JustJqke2 жыл бұрын
you also forgot detecting rightclicks on a specific block using items, the advancement is “item used on block” or something like that, i used it for a kit selection a while back and it works pretty well, sadly you can’t check when a player clicks on air, it has to be on a block, but it works without holding an item so that’s pretty cool
@John-hv9hz2 ай бұрын
This man is a legend. Half of my command knowledge has come from his videos.
@DoctorPlasmaMC2 жыл бұрын
Thank you, it's very rare to see different method compilation videos. I know a lot of these but have to think of them from scratch and a discussion of them all and pros/cons is an excellent review and super helpful.
@ItsMe-fr6em3 жыл бұрын
There are some fixes for the ender eye method to make it work with strongholds: 1) Replace item in player's hand with (customized) ender eye right after right click detected 2) Kill all ender eye entities in a certain radius after click detected 3) (optional) Check for a block which the player is looking at the moment of click (trace or any other method) and replace it with an empty portal frame if the filled end portal frame is detected earlier
@orionengland2 жыл бұрын
Just give the eye of ender a custom tag, and constantly /kill all thrown eyes of ender with that tag. You can also set it up so that if a player throws an eye with that tag, they are immediately given a new one. Might be some jitters in the instant after throwing it, but honestly, aside from that, it is the perfect method.
@official-obama2 жыл бұрын
@@orionengland items don't have tags, do they?
@Anubis11012 жыл бұрын
the Carrot on a Stick method works with any item that has a right-click function, but it ALSO works on consumables, tools or anything that consumes durability. while it may not be as versatile as the Advancement method, its perfect for doing things like making a sword that causes lightning to strike every time you hit a mob, or a pickaxe that detonates TNT a few blocks in front of you every time it breaks a block. its also really easy to set up without using data packs, which are still a hassle for people unfamiliar with programming or who just want to do something simple.
@talwat3213 жыл бұрын
Maybe you could make like a random number generation tutorial. Since its pretty useful :^) Amazing video btw. Never knew you could use fungi for the right click detection, I will be sure to use that!
@official-obama2 жыл бұрын
i don't think minecraft actually has any rng
@Fishiest2 жыл бұрын
after half way in the carrot on a stick method i relised that i already knew how to do right click detection, just watching because your funny
@winniescreations3 жыл бұрын
You uploaded a video about this topic right when I needed it. Thank you sooo much!
@corbin_fishing3 жыл бұрын
Finally this is what I need idk if this is going to be a simple useless tutorial or something for more advanced users like me
@aethermaster43722 жыл бұрын
About the last part, it could actually work in plain survival if you set to the eye of ender a scoreboard "timer" to detect an eye of ender's time, so at some point you'll regain the eye of ender. Though that'll need 3 more commands. But, it won't give you an other item if there aren't any other strongholds around, so that way you can make it work easily. And else what can be done is a toggle function to the previous 3 commands, so they only will work when needed. In case you need some more detail, I can then somehow help out with it.
@mihneamanea81613 жыл бұрын
I spent a while time trying to figure out right click detection in december of 2020 (figured it out tho) and now he posts a video about it. well, at least it will be helpful to other people. Also you have some of the best command block tutorials I've seen on youtube!! Great job!!!
@CT--od7ux3 жыл бұрын
finally a good tutorial, from someone i know(suscribed to and watch his other videos) is this the greatest comeback in history?
@jexl10592 жыл бұрын
i love your shameless plug for the datapack tutorial. honestly ive watched it like 10x or more
@leo8483 жыл бұрын
I was here when you only had 4k subscribers. Now you have 28k... Your content is amazing!
@443MoneyTrees Жыл бұрын
Mojang added interaction entities and all you need to do is on target to detect it. This is so revolutionary.
@kido_3 жыл бұрын
I didnt know i needed you until i needed you (which is now)
@Uthimentius Жыл бұрын
You could also use snowballs for right-click detection. Just tag the snowball and when you chuck it, kill the snowball entity and give the snowball back, whether by /give or /item. You could do this with eggs and ender pearls as well!
@bettercalldelta2 жыл бұрын
Thank you dude, when I search for command related stuff your videos are always the most helpful
@EvilsSouls3 жыл бұрын
My day went from trying to place a command block to destroying my computer because I clicked to fast on this video...
@JashSKreal2 жыл бұрын
Thanks so much for this. I was looking for an item without a cooldown for right click detection and this is perfect :D
@Neodx25 ай бұрын
5:52 Finally someone realised my strange left click to use control binding 💀
@rowlet52 жыл бұрын
I love the fact that you recognized that some ppl don't use right click, I use left click lol (my brain got washed from left is place from bedrock before i got a pc)
@jacobthompson12094 ай бұрын
There is a video by someone named conure where he runs a command that basically makes it so you can eat the item but if you set the eat time to a really high amount it doesn't play the animation
@corbin_fishing3 жыл бұрын
Ives watched the first few seconds and I already know all that I need to rank you for getting straight to the point Ill watch the whole video tho ;)
@ProfPeeWee3 жыл бұрын
Great tutorial! There’s the fishing rod also 🎣
@Legitimoose3 жыл бұрын
^ Good point, nearly forgot the ol' rod :o
@M_10242 жыл бұрын
@@Legitimoose There is also recipe book
@isaacfajardo5953 жыл бұрын
Finally a new video!! Its been forever(2 months).
@TyphoonMC2 жыл бұрын
Congrats on 5 Million Channel Views!!! :D
@UriKlein-y9k2 жыл бұрын
There is a way to use the ender eye in survival and eggs, snowball, and ender pearls. The only problem is that you have to have 2 of the same item. You have 2 snowballs, you throw one, and now you have 1 snowball. You give yourself 1 snowball, you have 2 again, then you kill the snowball. So you detected that you threw the snowball (right clicked) and you can do it again
@FelipeGames085 ай бұрын
IM ABOUT TO MAKE MY DREAM OF DEVELOPING STUFF COME TRUE BECAUSE THAT JAVA STUFF LOOKS SO GOSHDAMN COOL AND NICE AND COMFY AND NOSTALGIATING
@mkks45594 ай бұрын
Then you'll be happy to know that 1.20.6 contains even more ways to create whatever you want! I recommend searching for ways to use the new datapack and command stuff, they're too many to explain in a reply.
@FelipeGames084 ай бұрын
@@mkks4559 ok thank you!! I appreciate any help!
@bbenny90333 жыл бұрын
i still have no clue what id do with this information but i enjoyed it ty
@WhyDoesYTUseHandlesNow8 ай бұрын
There is another limitation to the ender eye method people should be aware of, when you use it you can no longer sprint, unlike with the carrot on a stick
@jexl10592 жыл бұрын
ah man. ender eye won't work in survival??? :( but hey, i can use the villager talk advancement and now i know how to reset it! that actually cleared up so many things for me! thank you for making this video!
@greyifer28 күн бұрын
4:21 nah what the hell. I never knew this, that makes my life so much easier
@Observer552 Жыл бұрын
7:28 The poppy flower 👁👁
@gabh2658 Жыл бұрын
im so glad mojang finally added interaction boxes so we dont have to do this every single time we want to detect click
@adestemmedkale24153 жыл бұрын
ty for helping with this detection. i was having a bit of trouble with it
@Celment Жыл бұрын
you may need to update this now :)) /summon minecraft:interaction
@alfredogamer3 жыл бұрын
Just in time, i was looking this video on your channel xDD thank youuuu
@okaythenno2 жыл бұрын
You can actually make right click detection on eyes of ender work if you kill the nearest eye of ender when you have the score then kill the eye of ender item I have not tested this in game but it probably works.
@theelitepotatoe74433 жыл бұрын
lets get this man to 30k
@Lalloyd78592 жыл бұрын
Hi legitimoose! Love your content! Im here from the beginning ! , I would like if you make a video about Item Modifiers and Data command - Not enough information in this section of minecraft commands, And you are the only one who can do it the best!
@zoharnakash73613 жыл бұрын
Im making a map with shops, and to purchase from the shops you need to click a button for a series of commandblocks to run. I was wondering if there is a way to detect who pressed a button, because Id hate to use the @p that is closest to the button. I tried to look into scoreboard objectives, and into UUID, but couldnt find anything that would help me. You, Legitimoose, seem like the guy who would know how to make such a thing work, and Id really appreciate it if you could help me out.
@_Cubicake2 жыл бұрын
Advancements
@zoharnakash73612 жыл бұрын
@@_Cubicake Cupcakes. Its really nice leaving a single word without explanation, isnt it?
@elfinseacerca126 ай бұрын
I think he means you could give a advancement to the playera that presses the button and then revoke it and give the ítem with chain command blocks
@zoharnakash73616 ай бұрын
@eacerca12 But how would I detect who pressed the button? That's the problem I'm having. Normally people would do @p (the closest player) to the button, but what if there is already a player between you and the button? It would run the command on the other player since he is closer to the button, no matter if its an advancement command or a scoreboard.
@anwerty17373 жыл бұрын
When the pigs follow you because you have a sniper rifle
@thedoom53152 жыл бұрын
"You will see some errors They are not real" Best quote ever
@Picturam_23 жыл бұрын
The legends spoke of his return
@devhunt90543 жыл бұрын
Was looking for this for months lol
@alexanderburns14122 жыл бұрын
For any Bedrock edition players out there I found a way to do it as well. So have a repeating command block that teleports an invisible armor stand to the player. Then have a command block testing if the player has the item to be clicked in their inventory. when they right click, the item will go to the armor stand and the command block will detect that the item is missing, thus triggering the desired command. Another alternative is to get rid of the armor stand bit and make the player have to drop the item to trigger it. This the interaction is a bit easier for phone players. Hopefully this is helpful and pls like so other PE players can see this.
@boid2 жыл бұрын
Me: it’s just gonna be a carrot on a stick… Love your content!
@Waarmy Жыл бұрын
Please make a 1.20 version with the "interaction" entity !
@termax79792 жыл бұрын
Is there a way to counter the "slowness effect" that you recive while holding the Ender Eye trought datapack? I've tries with command blocks but they are top slow to detect when i stop using It so i get super-fast for half of a second before returning to my normal speed
@hootis12 жыл бұрын
this feels like bingewatching but im actually learning shit
@captainironbat8193 Жыл бұрын
Another method I use is item frames. You detect when a player is near one and rotates it. Like this execute at @a if entity @e[type=item_frame,nbt={Item:("minecraft:paper", Count:1b)}, distance=..3] store success @p scoreboard_objective_here run data merge entity @e[type=item_frame,nbt{Item:("minecraft:paper", Count:1b)}, distance=..3,nbt={ItemRotation:1b},limit=1] {ItemRotation:0b} Pared with this command. execute at @e[type=item_frame,nbt={Item:("minecraft:paper", Count:1b)}] if entity @a[distance=3..] run data merge entity @e[type=item_frame, limit=1, distance=0,nbt={ItemRotation:1b}] {ItemRotation:0b} Put both inside your tick function. On every item frame you want to have be clickable use this command on them. data merge entity @e[type=item_frame,limit=1, distance=..1] {Invulnerable:1b} Note: this was written on a phone, double check for errors. Also I use a lot of redundant entity calls as opposed to @s, I do this because sometimes @s brakes.
@zoteiscool21343 жыл бұрын
i didnt watch this video yet, but i just wanna say your videos are amazing and i like them a lot
@frenchfries16753 жыл бұрын
Moose, I need to know, how do you shoot arrows in a direction you look, like a short bow, you right-click the command detects it, and then an arrow maybe three shoot off in the direction you're looking. Please I beg of you I need to know
@iron-nia3 жыл бұрын
I agree!
@Keyboard_ink3 жыл бұрын
this is actually very difficult, you have to calculate the motion of the arrow using the players rotation as a vector. This method also requires lot of data/scoreboard knowledge, how to save/apply scoreboard data etc
@tfolz13513 жыл бұрын
/execute
@yeti56093 жыл бұрын
theres examples on entity motion on r/minecraftcommands under wiki section, just edit the example to yo needs
@tfolz13513 жыл бұрын
@@yeti5609 does r/minecraftcommands helps with other commands?
@nzuum3 жыл бұрын
how to know what player put the item in an armor stand you could use an advancement to detect when someone right clicks an armor stand using the minecraft:player_interacted_with_entity criteria, make the reward a raycast function to detect which armor stand you clicked (or make it a function that runs a raycast after running something to the player) { "criteria": { "requirement": { "trigger": "minecraft:player_interacted_with_entity", "conditions": { "entity": [ { "condition": "minecraft:entity_properties", "predicate": { "type": "minecraft:armor_stand" } } ] } } }, "rewards": { "function": "subscribe.to:legitimoose" } } and then in the raycast function you could check for the item, and now you know who clicked boom life hack i remember using a system like this for a custom item pickup system
@yeti56093 жыл бұрын
or just do simple entity linking, Cloud Wolf had a good video on it on his channel, also way more lightweight
@nzuum3 жыл бұрын
thanks for blessing me with your knowledge, mighty yeti
@Rugbeat90999 Жыл бұрын
Dude you are amazing. This is fantastic, I've watched a lot of your tutorial videos and they are extremally helpful. Thank you so much!
@alexdacat70523 жыл бұрын
Legitimoose more like legiti underated
@NotFamousWasHereАй бұрын
Pfff whoa you're really smart 🤣 man I wish I knew everything you know, trying to make data pack rn and am struggling
@SolarAgain3 жыл бұрын
To use the eye on multi just kill the eye of Ender entity every tick although it will disable normally using it but that's fine
@Keyboard_ink3 жыл бұрын
if you execute as @a[scores={eye=1..},predicate=namespace:holding_eye_with_nbt] at @s run kill @e[type=ender_eye,sort=nearest,limit=1,distance=..2] then you can still use normal ones :)
@endy278768 ай бұрын
Easier to set up! (proceeds to code an entire datapack) Jk nice tutorial, the villager method is genius thanks
@BusterBrown12172 жыл бұрын
The ender eye is exactly what I needed!
@Legitimoose2 жыл бұрын
glad i could help!
@tippedwithhoney2 жыл бұрын
You could just additionally run a command to kill the summoned eye of ender when clicking. A right click detecting item, that consumes itself, can even be pretty usefull in some cases.
@JustJqke2 жыл бұрын
and using resource packs, you can use custom model data to make it look like other items, and you can just rename the items so it’ll look like whatever you want it to
@gooberznash3 жыл бұрын
You're just the best Legitimoose
@minorityhunterzoro63902 жыл бұрын
New way to do it without datapack - *execute as @p if score @p carrot matches 1 run say hi* Now add a chain command block with *scoreboard players reset @p carrot*
@nuclearinferno64562 жыл бұрын
Make a video about custom interfaces using chested llamas. I made such an interface as a crafting table with custom recipes and nbt.
@MrBelles104 Жыл бұрын
8:49 For a moment I thought it was a set up to a joke where the best right click detection was a button.
@TiltedGamer2 жыл бұрын
Video idea: Using scores from scoreboards in commands
@watermelongaming86583 жыл бұрын
only 874 views 0_____0 underrated channel also please make a predicates tutorial
@Legitimoose3 жыл бұрын
way ahead of you on the predicates tutorial ; ) kzbin.info/www/bejne/oqewdJSGhKtgo7c
@watermelongaming86583 жыл бұрын
@@Legitimoose how did i not see that XD thanks! your vids are awesome by the way
@TheeFlashbackMan3 жыл бұрын
mmmm i like it when they press that right click button inside minecraft it gives me much joy
@holyguacamole31862 жыл бұрын
I had no idea there was syntax highlighting for datapacks in VSCode. That would've been nice to know!
@martijnlerutte88262 жыл бұрын
Mojang should add build in right click detection if you ask me
@vsgamesdev38453 жыл бұрын
I needed it, he uploaded.
@stavleviatan65663 жыл бұрын
video idea: show how to make custom damage in minecraft?
@stomperlp89243 жыл бұрын
You forgot some methods: crossbow, any throwable, armor and the simplest: spawneggs
@Samjb097 ай бұрын
is there a way to make multiple click detections with only a carrot on a stick (maybe using nbt tags)
@lapistriker3 жыл бұрын
super informative, concise and useful. noice
@EvilsSouls3 жыл бұрын
The legend is back!
@hohi58702 жыл бұрын
I can now make datapacks! I made a custom recipe for powder snow and teams you can join from a book like NoDeathMessages Team for mini games where death messages are important all inspired by legitimoose thanks :D And you should make shorts too like explaining /trigger and how useful it is
@BlackRockInc3 жыл бұрын
No way, he uploaded!
@jasonrenard798 Жыл бұрын
Hihi I love your tutorials thanks actualamoose
@xandertan32473 жыл бұрын
You did what I always wanted!!!
@raandomplayer85892 жыл бұрын
Very useful. Thank you!!!
@iXtrafe3 жыл бұрын
YES FINALLYYYYYY
@blackbelt_ninja9games3473 жыл бұрын
I've been trying to find a way to do this stuff with only command blocks for ages now... now I realize I'm trying to do the impossible. Guess its finally time to bite the bullet and learn how to make datapacks.