Minecraft Right Click Detection [1.19] Several Ways

Поделиться
HTML-код
  • Опубликовано: 15 ноя 2024

Комментарии • 311

  • @backoloryt1804
    @backoloryt1804 3 года назад +27

    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

    • @kylorde1608
      @kylorde1608 6 месяцев назад +3

      Its always fun learning regardless though, knowing things exist means you could go back if you ever need the information

  • @UnlucksMcGee
    @UnlucksMcGee 3 года назад +92

    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

    • @Thatnormalted
      @Thatnormalted 2 года назад +11

      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
      @Rugbeat90999 Год назад

      I will be using this, thank you. It is greatly appreciated.

    • @DeleteKernel
      @DeleteKernel Год назад

      @@Thatnormalted the eye entity also uses the same texture as the item u held before

    • @bloxxer_tv
      @bloxxer_tv Год назад

      HOLD ON, YOU CAN GIVE ITEMS CUSTOM NBT DATA???

  • @kappasphere
    @kappasphere 3 года назад +74

    You can use a shield instead of an eye of ender to get it working in worlds with strongholds

    • @HyperKNF
      @HyperKNF Год назад +1

      or actually virtually any usable item

    • @kappasphere
      @kappasphere Год назад +5

      @@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

  • @kasma_9099
    @kasma_9099 3 года назад +5

    you're tutorials are literately the only ones that help me with anything

  • @aethersword7823
    @aethersword7823 8 месяцев назад +3

    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

  • @aestellic
    @aestellic 2 года назад +9

    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

  • @flip_bo9839
    @flip_bo9839 3 года назад +31

    Hello Mr. moose, your tutorials are the best on RUclips!
    My Datapack gets filled more and more!

  • @agentfizz1047
    @agentfizz1047 3 года назад +35

    Finally, he remembered his RUclips password.
    *It's been so long since he posted: 2 Months to be exact*

  • @jiraffe3790
    @jiraffe3790 3 года назад +2

    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!

  • @aleksandarivovic1007
    @aleksandarivovic1007 3 года назад +35

    You have the best tutorials ever!

    • @Banana-qq2wt
      @Banana-qq2wt 3 года назад +2

      Ikr the best!!!

    • @RetrospillBlogspotNO
      @RetrospillBlogspotNO 2 года назад +1

      Actually he inspired me to make my first data pack and publish it to planetminecraft.. Just an Amazing youtuber..!

  • @FileTypeJpeg
    @FileTypeJpeg 3 года назад +3

    finally another video, been waiting for this knowledge! still, great youtuber and i'm proud of being here from close to the beginning!

  • @Frostyflytrap
    @Frostyflytrap 3 года назад +6

    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...

    • @mercuryteamfortress
      @mercuryteamfortress 2 года назад

      You probably have too much stuff in loop/tick.mcfunction.

  • @winniescreations
    @winniescreations 3 года назад +2

    You uploaded a video about this topic right when I needed it. Thank you sooo much!

  • @michaelo4476
    @michaelo4476 3 года назад +3

    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 :)

    • @GameFloWM
      @GameFloWM 2 года назад

      nie?
      można to na spokojnie użyć w @a[scores={}] jak i w if score...

    • @michaelo4476
      @michaelo4476 2 года назад

      @@GameFloWM sorry i would reply but i don't understand what google translate is saying :/

  • @Anubis1101
    @Anubis1101 2 года назад

    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.

  • @furrer8123
    @furrer8123 3 года назад +1

    I really appreciate that you actually read comments.

  • @sselesUneeuQ
    @sselesUneeuQ 5 месяцев назад

    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.

  • @John-hv9hz
    @John-hv9hz 4 месяца назад

    This man is a legend. Half of my command knowledge has come from his videos.

  • @Katslia
    @Katslia 3 года назад +86

    Video Idea: How about tutorials for the Advancements generator or the Item modifier generator?
    Edit: also where did you learn your commands?

    • @Legitimoose
      @Legitimoose  3 года назад +43

      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
      @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

  • @JustJqke
    @JustJqke 2 года назад +3

    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

  • @ItsMe-fr6em
    @ItsMe-fr6em 3 года назад +19

    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

    • @orionengland
      @orionengland 2 года назад

      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-obama
      @official-obama 2 года назад

      @@orionengland items don't have tags, do they?

  • @DoctorPlasmaMC
    @DoctorPlasmaMC 2 года назад +1

    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.

  • @corbin_fishing
    @corbin_fishing 3 года назад +1

    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

  • @EvilsSouls
    @EvilsSouls 3 года назад +1

    My day went from trying to place a command block to destroying my computer because I clicked to fast on this video...

  • @jexl1059
    @jexl1059 3 года назад

    i love your shameless plug for the datapack tutorial. honestly ive watched it like 10x or more

  • @talwat321
    @talwat321 3 года назад +6

    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-obama
      @official-obama 2 года назад

      i don't think minecraft actually has any rng

  • @Fishiest
    @Fishiest 2 года назад

    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

  • @aethermaster4372
    @aethermaster4372 2 года назад

    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.

  • @mihneamanea8161
    @mihneamanea8161 3 года назад

    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--od7ux
    @CT--od7ux 3 года назад +1

    finally a good tutorial, from someone i know(suscribed to and watch his other videos)
    is this the greatest comeback in history?

  • @jacobthompson1209
    @jacobthompson1209 6 месяцев назад +1

    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

  • @FelipeGames08
    @FelipeGames08 7 месяцев назад +1

    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

    • @mkks4559
      @mkks4559 6 месяцев назад

      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.

    • @FelipeGames08
      @FelipeGames08 6 месяцев назад

      @@mkks4559 ok thank you!! I appreciate any help!

  • @Observer552
    @Observer552 Год назад +1

    7:28 The poppy flower 👁👁

  • @termax7979
    @termax7979 2 года назад +5

    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

  • @Uthimentius
    @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!

  • @JashSKreal
    @JashSKreal 2 года назад

    Thanks so much for this. I was looking for an item without a cooldown for right click detection and this is perfect :D

  • @Neodx2
    @Neodx2 7 месяцев назад

    5:52 Finally someone realised my strange left click to use control binding 💀

  • @bettercalldelta
    @bettercalldelta 2 года назад

    Thank you dude, when I search for command related stuff your videos are always the most helpful

  • @leo848
    @leo848 3 года назад

    I was here when you only had 4k subscribers. Now you have 28k... Your content is amazing!

  • @443MoneyTrees
    @443MoneyTrees Год назад

    Mojang added interaction entities and all you need to do is on target to detect it. This is so revolutionary.

  • @Celment
    @Celment Год назад +2

    you may need to update this now :))
    /summon minecraft:interaction

  • @isaacfajardo595
    @isaacfajardo595 3 года назад

    Finally a new video!! Its been forever(2 months).

  • @alfredogamer
    @alfredogamer 3 года назад

    Just in time, i was looking this video on your channel xDD thank youuuu

  • @bbenny9033
    @bbenny9033 3 года назад

    i still have no clue what id do with this information but i enjoyed it ty

  • @adestemmedkale2415
    @adestemmedkale2415 3 года назад

    ty for helping with this detection. i was having a bit of trouble with it

  • @corbin_fishing
    @corbin_fishing 3 года назад +1

    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 ;)

  • @kido_
    @kido_ 3 года назад +1

    I didnt know i needed you until i needed you (which is now)

  • @greyifer
    @greyifer 2 месяца назад

    4:21 nah what the hell. I never knew this, that makes my life so much easier

  • @gabh2658
    @gabh2658 Год назад

    im so glad mojang finally added interaction boxes so we dont have to do this every single time we want to detect click

  • @ProfPeeWee
    @ProfPeeWee 3 года назад +4

    Great tutorial! There’s the fishing rod also 🎣

    • @Legitimoose
      @Legitimoose  3 года назад +2

      ^ Good point, nearly forgot the ol' rod :o

    • @M_1024
      @M_1024 2 года назад

      @@Legitimoose There is also recipe book

  • @BusterBrown1217
    @BusterBrown1217 2 года назад

    The ender eye is exactly what I needed!

  • @TyphoonMC
    @TyphoonMC 2 года назад

    Congrats on 5 Million Channel Views!!! :D

  • @rowlet5
    @rowlet5 2 года назад

    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)

  • @TheeFlashbackMan
    @TheeFlashbackMan 3 года назад +1

    mmmm i like it when they press that right click button inside minecraft
    it gives me much joy

  • @theelitepotatoe7443
    @theelitepotatoe7443 3 года назад +1

    lets get this man to 30k

  • @anwerty1737
    @anwerty1737 3 года назад +3

    When the pigs follow you because you have a sniper rifle

  • @hootis1
    @hootis1 3 года назад

    this feels like bingewatching but im actually learning shit

  • @alexanderburns1412
    @alexanderburns1412 3 года назад +4

    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.

  • @UriKlein-y9k
    @UriKlein-y9k 2 года назад

    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

  • @WhyDoesYTUseHandlesNow
    @WhyDoesYTUseHandlesNow 10 месяцев назад

    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

  • @thedoom5315
    @thedoom5315 2 года назад

    "You will see some errors
    They are not real"
    Best quote ever

  • @jexl1059
    @jexl1059 3 года назад

    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!

  • @tippedwithhoney
    @tippedwithhoney 2 года назад

    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.

    • @JustJqke
      @JustJqke 2 года назад

      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

  • @Lalloyd7859
    @Lalloyd7859 2 года назад

    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!

  • @SolarAgain
    @SolarAgain 3 года назад +1

    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_ink
      @Keyboard_ink 3 года назад

      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 :)

  • @nuclearinferno6456
    @nuclearinferno6456 3 года назад +1

    Make a video about custom interfaces using chested llamas. I made such an interface as a crafting table with custom recipes and nbt.

  • @zoteiscool2134
    @zoteiscool2134 3 года назад

    i didnt watch this video yet, but i just wanna say your videos are amazing and i like them a lot

  • @Picturam_2
    @Picturam_2 3 года назад

    The legends spoke of his return

  • @devhunt9054
    @devhunt9054 3 года назад

    Was looking for this for months lol

  • @okaythenno
    @okaythenno 2 года назад

    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.

  • @frenchfries1675
    @frenchfries1675 3 года назад +3

    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-nia
      @iron-nia 3 года назад

      I agree!

    • @Keyboard_ink
      @Keyboard_ink 3 года назад

      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

    • @tfolz1351
      @tfolz1351 3 года назад

      /execute

    • @yeti5609
      @yeti5609 3 года назад

      theres examples on entity motion on r/minecraftcommands under wiki section, just edit the example to yo needs

    • @tfolz1351
      @tfolz1351 3 года назад

      @@yeti5609 does r/minecraftcommands helps with other commands?

  • @TiltedGamer
    @TiltedGamer 3 года назад

    Video idea: Using scores from scoreboards in commands

  • @vsgamesdev3845
    @vsgamesdev3845 3 года назад

    I needed it, he uploaded.

  • @Samjb09
    @Samjb09 9 месяцев назад +1

    is there a way to make multiple click detections with only a carrot on a stick (maybe using nbt tags)

  • @stomperlp8924
    @stomperlp8924 3 года назад +1

    You forgot some methods: crossbow, any throwable, armor and the simplest: spawneggs

  • @Neodx2
    @Neodx2 7 месяцев назад

    How do I use the on-a-stick method with specific nbt tags? i want to have multiple carrots on a stick in my pack that do different things but im not sure how to bind them to specific functioins

  • @gooberznash
    @gooberznash 3 года назад +3

    You're just the best Legitimoose

  • @poteks5414
    @poteks5414 3 года назад +1

    i have a question , its posible to do custom drop (maybe if i kill zombie TOM its give me gold ) only in commend blocks?

  • @holyguacamole3186
    @holyguacamole3186 2 года назад

    I had no idea there was syntax highlighting for datapacks in VSCode. That would've been nice to know!

  • @Waarmy
    @Waarmy Год назад +1

    Please make a 1.20 version with the "interaction" entity !

  • @nzuum
    @nzuum 3 года назад +1

    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

    • @yeti5609
      @yeti5609 3 года назад

      or just do simple entity linking, Cloud Wolf had a good video on it on his channel, also way more lightweight

    • @nzuum
      @nzuum 3 года назад

      thanks for blessing me with your knowledge, mighty yeti

  • @MrBelles104
    @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.

  • @minorityhunterzoro6390
    @minorityhunterzoro6390 2 года назад

    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*

  • @cesartorres6567
    @cesartorres6567 2 года назад +1

    How I make a unconditional conditional with a command?

  • @EvilsSouls
    @EvilsSouls 3 года назад

    The legend is back!

  • @martijnlerutte8826
    @martijnlerutte8826 2 года назад +1

    Mojang should add build in right click detection if you ask me

  • @captainironbat8193
    @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.

  • @hohi5870
    @hohi5870 3 года назад

    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

  • @zoharnakash7361
    @zoharnakash7361 3 года назад +2

    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.

    • @_Cubicake
      @_Cubicake 2 года назад

      Advancements

    • @zoharnakash7361
      @zoharnakash7361 2 года назад +2

      @@_Cubicake Cupcakes.
      Its really nice leaving a single word without explanation, isnt it?

    • @elfinseacerca12
      @elfinseacerca12 8 месяцев назад

      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

    • @zoharnakash7361
      @zoharnakash7361 8 месяцев назад

      ​@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.

  • @endy27876
    @endy27876 10 месяцев назад

    Easier to set up! (proceeds to code an entire datapack)
    Jk nice tutorial, the villager method is genius thanks

  • @stavleviatan6566
    @stavleviatan6566 3 года назад

    video idea: show how to make custom damage in minecraft?

  • @blackbelt_ninja9
    @blackbelt_ninja9 3 года назад

    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.

  • @NotFamousWasHere
    @NotFamousWasHere 3 месяца назад

    Pfff whoa you're really smart 🤣 man I wish I knew everything you know, trying to make data pack rn and am struggling

  • @leomaso7894
    @leomaso7894 3 года назад

    I have a video idea, or rly just a question cause idk if you could make a whole vid on it, but how do you make a random chance generator that has a chain of commands for each number? Like, let’s say a 1-20 chance, where 1 would deal one damage to the player, two would deal two, etc. The only way I know right now of making that sort of thing is armor stand randomizers (execute at @e[tag=randomchance,limit=1,sort=random) run setblock ~ ~-1 ~ redstone_block, with command blocks under the redstone block) but that’s physical and I can’t figure out how to change it into a data pack. Maybe would I use a random chance predicate or something?

    • @Legitimoose
      @Legitimoose  3 года назад

      Personally for RNG... I always just use other people's RNG datapacks ;^)
      Cloud wolf has got a really nice datapack that can generate a random number in the range of your choosing using a nice pseudorandom algorithm thingy. Honestly can't recommend it (and his video about it) enough! Very useful stuff and I'd just butcher it if I explained it in this comment lol

    • @leomaso7894
      @leomaso7894 3 года назад

      @@Legitimoose amazing, thanks! I was thinking about how to make a pseudorandom thing cause I just saw your video on how to do things like multiplication and division with scoreboards, then you responded lol.

  • @swanletsecondchannel8533
    @swanletsecondchannel8533 3 года назад

    I cant wait for lightning to strike on the invisible villager, turning into a witch

    • @Legitimoose
      @Legitimoose  3 года назад

      sjkdjskdskjds yknow,,,, i hadnt thought of that. do NoAI mobs still convert though? 🤔

    • @swanletsecondchannel8533
      @swanletsecondchannel8533 3 года назад

      @@Legitimoose I just tested it and yeah the villager still turned into a witch lol

    • @ItzJedi
      @ItzJedi Год назад

      if we add Invulnerable to it?

  • @VeeFerns
    @VeeFerns Год назад +2

    its 1.19 but won't be 1.20 because of the interaction entities

  • @lapistriker
    @lapistriker 3 года назад

    super informative, concise and useful. noice

  • @swanlet7095
    @swanlet7095 2 года назад

    I am on 1.18 and the eye method doesn't seem to work, it is constantly increasing the score even after I stop holding down right click

  • @xandertan3247
    @xandertan3247 3 года назад

    You did what I always wanted!!!

  • @hykuzo
    @hykuzo 3 года назад +1

    Hey legitmoose, do you know why when i moved my datapacks from 1.16.5 to 1.17.. all my tick.json functions were not triggering? They worked perfectly in 1.16 and ive heard other people with the same issue