I was wrong. Right Click Detection is here. For real.

แชร์
ฝัง
  • เผยแพร่เมื่อ 21 เม.ย. 2024
  • Ironic that food is used in the "non-consumable" method...
    Tutorial Datapack - drive.google.com/file/d/1V8vz...
    Consumable Right-Clicks - Knowledge Book Method • Knowledge Books are st...
    come hang out on Discord, if you feel brave enough / discord
  • เกม

ความคิดเห็น • 301

  • @conure512
    @conure512  4 วันที่ผ่านมา +16

    Some answers for questions I've been getting a LOT of:
    *"Why can't you just set the speed to a higher value when right-clicking?"*
    Short answer: FOV effects. Eating doesn't change your FOV, but attributes and effects do. If you mess with the player's speed while they're eating, their FOV will be increased for the duration, which will look weird. Feel free to do it if you're okay with that - but I personally don't like it. Yes, you can disable this by turning off FOV effects for only yourself, but if you're making a datapack, that would require ALL USERS to do this, which isn't exactly practical.
    *"Can't you just use /schedule instead of those ticking advancements?"*
    No, and there are two main reasons why.
    1. Scheduling causes conflicts in multiplayer. A scheduled function cannot be assigned an executor (it defaults to just being run by the server console), so you'll lose any information about who the cooldown is for. There ARE workarounds for this, but none of them are as clean as the ticking advancements, which act like a personal timer of sorts.
    2. Even if you were able to get around the multiplayer issue, there are issues involved with players disconnecting from the server during their cooldown. A scheduled function would revoke the player's using_item advancement once time is up. The problem is that if the player disconnects from the server before that happens, the function won't have anyone to revoke the advancement from - and when that player reconnects, the schedule will already be over, they'll still have the advancement granted, and they'll effectively be softlocked and unable to use the item again. With the ticking advancements, the player's personal timer also stops when the player leaves, and will resume as normal when the player comes back.

  • @Larkky
    @Larkky 10 วันที่ผ่านมา +435

    Minecraft needs a "dummy item" that is not used in any crafting recipe, cannot be crafted, smelted, grinded, etc. and has no use at all. itd be useful for map makers and command blockers

    • @prod.gqc_
      @prod.gqc_ 10 วันที่ผ่านมา +87

      petrified oak slab prolly or spawn eggs with nbt data to not do anything

    • @egekahraman8985
      @egekahraman8985 10 วันที่ผ่านมา +47

      I think poisonous patatoes may qualify depending on if being eatable messes things up

    • @404maxnotfound
      @404maxnotfound 10 วันที่ผ่านมา +22

      There are a couple just don't remember them off the top of my head but poisonous potato+this method for rightclick detection could work since there is can't be used in any crafting recipe, etc and it disables the editable function of the normal potato.

    • @eddie1538
      @eddie1538 10 วันที่ผ่านมา +10

      As far as I'm aware the only item like that is the clock.

    • @Capiosus
      @Capiosus 10 วันที่ผ่านมา +6

      knowledge book?

  • @Sabagegah
    @Sabagegah 10 วันที่ผ่านมา +264

    For extra Silly, use the Continuous Flame Wand for 1000000 seconds anyway. Be the worst wizard in history. “Hey, where’s my wand?” “Sorry, I got hungry.”

    • @ezren_7140
      @ezren_7140 10 วันที่ผ่านมา +35

      FYI this is 11 and a half days lol

    • @conure512
      @conure512  10 วันที่ผ่านมา +75

      @@ezren_7140 In the actual datapack I have the time set to the java integer limit, which is over 2 billion lol. That works out to 68 years.

    • @Sabagegah
      @Sabagegah 10 วันที่ผ่านมา +72

      @@conure512 Advancement Made: Seriouser Dedication

    • @alexdanovyt9032
      @alexdanovyt9032 5 วันที่ผ่านมา +14

      @@conure512 nah bro just leave it at like 10k seconds (3 hours) and make it if you actually eat the item you get an easter egg item 💀

    • @Syonico
      @Syonico 4 วันที่ผ่านมา +11

      @@conure512 give a man a wand, he'll eat for 68 years
      teach a man to make a wand and he'll eat for a lifetime

  • @CallMeCarlos1
    @CallMeCarlos1 10 วันที่ผ่านมา +181

    Do you really think 1 million seconds is gonna stop me from eating my magic wand?

    • @Luna5829
      @Luna5829 10 วันที่ผ่านมา +11

      68 years will though (java integer limit)

    • @TheMiningCrafter
      @TheMiningCrafter 10 วันที่ผ่านมา +9

      @@Luna5829 yes but 1 million seconds is only 11 days

    • @Luna5829
      @Luna5829 10 วันที่ผ่านมา +9

      @@TheMiningCrafter the datapack uses integer limit tho

  • @DqwertyC
    @DqwertyC 11 วันที่ผ่านมา +92

    Aw man! I was trying to solve the delay issue by scheduling and unscheduling functions, but this seems much more robust.
    FWIW, if you still want consumable right click detection, set the time to eat to .05 seconds. Eating is instantaneous (a single tick) and only shows a spray of particles without the eating animation.

    • @conure512
      @conure512  11 วันที่ผ่านมา +38

      Very good to know! I tried that eating trick a while back but I guess I didn't set the time short enough, because the animation was still there. And with that, we'd be able to use consume_item instead of using_item!

  • @JustVlad1
    @JustVlad1 10 วันที่ผ่านมา +56

    So basically here you explained, how you made a looped advancement cycles to improve optimization by getting rid out of constant tick and making it once upon use tick. Smart

  • @nuklearboysymbiote
    @nuklearboysymbiote 10 วันที่ผ่านมา +44

    yo that's mad! back in 1.19 i figured out how to use a trident to create an item that triggers one effect while you're drawing it back, and another effect when you release. i also made it cancellable by switching offhands :D
    Oh also i resolved the walking speed issue by setting movement speed attribute to 5 times the normal while drawing back the trident, and setting it back to normal on release or cancel. Works every time 90% of the time…🤣

    • @Game_Blox9999
      @Game_Blox9999 10 วันที่ผ่านมา +1

      NnNnNeEeEeOoOoOwWwWw!

  • @mini-prince.1233
    @mini-prince.1233 10 วันที่ผ่านมา +22

    would be rly cool if you did a comparison video showing the pros and cons of each method (carrot/fungus on a stick, eye of ender, food, knowledge book,...)

  • @Sollace
    @Sollace 10 วันที่ผ่านมา +59

    Conure: "So, if you need an item that you can use which doesn't slow you down..."
    Swift Sneak Enchantment: "Hold my enchanting table"

    • @conure512
      @conure512  10 วันที่ผ่านมา +22

      Does Swift Sneak affect your speed while eating? If so I did not know that lol

    • @calxee6743
      @calxee6743 10 วันที่ผ่านมา +4

      @@conure512 no it doesn't

    • @shureee1
      @shureee1 10 วันที่ผ่านมา +17

      how about changing generic movement speed while consuming the item?

    • @Sollace
      @Sollace 10 วันที่ผ่านมา

      @@conure512 I'm not sure, lol, but there's also the speed boost potion effect.

    • @As1anCr4ck3r
      @As1anCr4ck3r 10 วันที่ผ่านมา +6

      @@shureee1 you can change the generic movement speed for the player to combat the slowness but it makes that weird zoom thing on the screen

  • @jq1245
    @jq1245 10 วันที่ผ่านมา +4

    Im currently working on a spellcasting datapack using your knowledge book method! I think I'm going to incorporate these methods too, as wands or staffs. Love your work!

  • @Peastable
    @Peastable 10 วันที่ผ่านมา

    I’m always glad to find another high-quality datapack channel. This is super cool!

  • @turmspitzewerk
    @turmspitzewerk 10 วันที่ผ่านมา

    i'm glad you popped up in my reccomended two days in a row, seeing another one of your vids made me realize that you're really good at making cleanly edited, entertaining videos. keep it up 👍

  • @thenextdoor696
    @thenextdoor696 10 วันที่ผ่านมา +1

    These last few videos convinced me to sub to this channel, great job dude!

  • @live_destin-3408
    @live_destin-3408 4 วันที่ผ่านมา +2

    *Just change the speed multiplyer on the held item as long as the player is holding down right click. If you set it to just the right speed, it will negate the slowness*

  • @j.a.v.mersbergen5443
    @j.a.v.mersbergen5443 11 วันที่ผ่านมา +9

    This channel is sooooo underrated!

    • @SuperBro112Lol
      @SuperBro112Lol 10 วันที่ผ่านมา +1

      im surprised his videos even appear on my home page

  • @fgdx
    @fgdx 10 วันที่ผ่านมา

    This is such an incredible way to do the cooldowns, kudos to you.

  • @matiera_scape
    @matiera_scape 11 วันที่ผ่านมา +7

    While I don't know all of these magic words, I did enjoy the video lol Congrats on 1k subs Conure!

  • @staxpy5729
    @staxpy5729 10 วันที่ผ่านมา

    Amazing ! Clear and straight to the point. Great explanations ty, that's super useful !

  • @jakeklic
    @jakeklic 4 วันที่ผ่านมา

    this is everything i’ve ever wanted, thank you

  • @TheiBunny
    @TheiBunny 9 วันที่ผ่านมา +1

    To expand on the point you kinda make at the end; I dont think this makes other methods obsolete. Moreso just broadens our options for how exactly we want right-clicking with a given item to work.
    Two big drawbacks of this method are:
    - slows player movement while using.
    - item in hand bobs when initially used.
    I can definitely think of some applications where those aspects would be desireable, but I think its fair to raise them as limitations, because depending on what you want to do, they can be.
    The carrot on a stick doesn't bob or slow the player down to use, and can now be given whatever other item components you want it to have to mimic the behaviour of another item(s).
    But because it isn't *actually* that item, it won't natively have the special mechanics/properties some items have, such as; being throwable, used to lure animals with, used on a certain blocks/entities, as fuel or ingredients in recipes, etc... (this is an advantage of using the desired item with a high eating time - however there are workarounds for most situations. It optionally having durability used to be a plus, but thats a non-factor now.)
    Goat horns with a specified custom, blank sound file are another option if you want an item with a built-in cooldown timer before it can be used again, but it has the downside of the subtitle still showing up when enabled (which could cause confusion/"break the magic") + the animation, and it still has the same limitations of the carrot on a stick.
    (of course there are other ways to do cooldowns, and with some custom model data trickery you can have custom cooldowns that look the same as the existing vanilla item cooldowns too - but the benefit here is that its built-in to the item.)
    Teleporting an interaction entity in the player's face constantly is an option if you want to prevent the player from interacting with the environment altogether, and for both right and left click actions to *only* go through whatever systems you've set up instead...
    (only really good for specific custom maps that need it, probably not suitable for add-on style data pack content for any old world)
    Knowledge books are by far the least useful now, but still have a niche... They behave similarly to carrots on sticks, but are consumed when used. (prior to 1.20.5 - before the stack size component was added - this was a perk, but its pretty trivial to delete 1 item now that any of the other methods can be stackable items if you want them to be... Tho I guess if it meets your exact needs in the fewest no. of commands being run then its good for optimization? lol)

    • @conure512
      @conure512  9 วันที่ผ่านมา +1

      Some very good points. Carrot on a stick definitely has some capabilities that other options don't, but to me it will ALWAYS be a last resort because it requires ticking commands. I'm probably going to use the knowledge book method quite a bit from here on out, for stuff that's meant to be consumable.

    • @TheiBunny
      @TheiBunny 9 วันที่ผ่านมา

      @@conure512 fair enough!
      I tend to prioritize the look and feel of a mechanic to the player in my packs over exactly how I get there behind the scenes, but the speed and efficiency of knowledge books/"edible" items is a *very* good reason to go with them over the carrot on a stick for projects if you don't mind the few "drawbacks".

  • @Ruffilicious
    @Ruffilicious 10 วันที่ผ่านมา

    thank you. I hope we see more of the good stuff

  • @whycantithinkofaname26
    @whycantithinkofaname26 10 วันที่ผ่านมา

    Congratulations on 1k!

  • @As1anCr4ck3r
    @As1anCr4ck3r 10 วันที่ผ่านมา +1

    You have no idea how amazing this is for me. I have been waiting for right click detection that doesn't involve a carrot on a stick in the offhand or even an eye of ender. All I need now is a way to make the Icon of an item in the hotbar different from how it looks in hand and I can die happy

    • @nonexistentsquare2092
      @nonexistentsquare2092 2 วันที่ผ่านมา

      This is possible using custom model data

    • @As1anCr4ck3r
      @As1anCr4ck3r 2 วันที่ผ่านมา

      @@nonexistentsquare2092 I know how to make custom models already, but you know how the trident or the spyglass has a pixel art icon in the hotbar but shows a 3D model in hand and in POV, I dont know how to do that

  • @virtu6607
    @virtu6607 10 วันที่ผ่านมา +3

    Now I just need fully implemented component crafting and I will be happy

  • @kuronya3582
    @kuronya3582 10 วันที่ผ่านมา +1

    using advancement as tickless trigger is something fascinating for me

  • @_rubl
    @_rubl 10 วันที่ผ่านมา +3

    the only advantage coas still have is that you don't slow down while using it

  • @Kirisame_Soup
    @Kirisame_Soup 10 วันที่ผ่านมา

    For the delayed wand you can also do a scheduled command loop on the load function and check for advancement to trigger particle (if that's simpler)

  • @Nicky_T
    @Nicky_T 10 วันที่ผ่านมา

    Hell yeah. Makes me want to get back into datapack coding

  • @Gameatronic9000
    @Gameatronic9000 10 วันที่ผ่านมา

    gonna be honnest. i love this.
    about 2 years back i was on a vanila server with some friends and wanted to makea fatapack for simple seats. fpr right clicking i needed to make a command to place a display entity on a block, and a rogjt click on that for riding it, and a helper function to easily delete the nearest seat. but i was never fully happy woth it being display entites cause it would block you from building in that spot unless you has an admin run that deletion command. and the only other option i could ever find was carrot on a stick.
    NOW, i could mKe a custon recipie for 2 tools, create seat, and break seat. simple tools than when clicking a block make or break a seat display entity like the impulse gem. alternativly, i could have it be that if click and facing stair block, sit player at stair possition.
    past my own junk, this is revolutionary for a myriad of reasons. caus ethe speed problem is just gove the player a boost by modifying attributes for their speed while clicking and we never have to use carrot on a stick again. blessed be this day, we're no longer a bunch a piggies

  • @FriedMonkey362
    @FriedMonkey362 10 วันที่ผ่านมา +1

    Wow using that last bit you can essentially detect button down and button up, which is even hard to do in some programming languages, also you can get the state if your holding it down at any time by checking of the score is 2

  • @Izzythemaker127
    @Izzythemaker127 10 วันที่ผ่านมา

    If it slows you down and is held that means it would be possible to create a custom bow by using the impulse gem except on hold it does nothing except increase a counter if it isn't maxed out, and then when cooldown ticks down from 2 it would create an arrow projectile.

  • @NathanHaaren
    @NathanHaaren 4 วันที่ผ่านมา

    You could make a spell book with this, read the book to cast a spell, like a hailstorm or a firewall, have some rare spell books that you actually completely "eat" to cast

  • @Samstercraft77
    @Samstercraft77 5 วันที่ผ่านมา

    thats game-changing
    btw vscode has extensions for syntax highlighting for mcfunction format if you're interested in that, might be easier than notepad

  • @Pillow_
    @Pillow_ 10 วันที่ผ่านมา

    Huh, very interesting! I should really get into datapacks

  • @hasantopcu556
    @hasantopcu556 11 วันที่ผ่านมา

    clever and perfect!

  • @hernangonzalez7150
    @hernangonzalez7150 10 วันที่ผ่านมา +1

    A solution to the slowdown might be to give the item a speed atribute increase while active, but that might mess with the fov... Otherwise, this is a big breakthrough!

  • @henrycgs
    @henrycgs 10 วันที่ผ่านมา +1

    I remember when mojang first added advancements. one thing you could do was running commands upon getting an advancement, so obviously people abused it to run commands every tick and get rid of command blocks by moving everything to the advancements. mojang hated that, so they replaced the whole system with functions. it's like i'm seeing history repeat itself... hopefully mojang notices this and adds proper right click detection :)

    • @conure512
      @conure512  10 วันที่ผ่านมา

      hey man if they just straight-up add right click detection, I would not complain for a second hahaha

    • @henrycgs
      @henrycgs 10 วันที่ผ่านมา

      @@conure512 I know right!! and with the new components system I think we might be heading in that direction

  • @rx97_mc
    @rx97_mc 4 วันที่ผ่านมา

    The tick trick is neat. I haven't seen it used in this way, but I generally have done something similar with `schedule` loops. This is nice bc it's per player. I will note, advancements *can* be slower if they are granting every tick so I would make sure that's thought about (a persistent ticking advancement is likely worse than `#minecraft:tick`)

  • @sobanoodles4286
    @sobanoodles4286 8 วันที่ผ่านมา +1

    Take a drink every time he says Tick

  • @myboyaks8065
    @myboyaks8065 10 วันที่ผ่านมา

    I think this is better than carrot on a stick because more items that can be used and just combine them with resourcepack(custommodeldata for custom item). Also because if someone using someone’s datapack but they dont want to use the rsp, they wont see carrot on a stick instead they will see an item that can be similar to the resourcepack(sword remodel than carrot on a stick remodel as a sword)

  • @FACS01
    @FACS01 10 วันที่ผ่านมา +1

    @minecraft please add an food component tag to set a custom walking speed while eating

  • @austinlinco
    @austinlinco 10 วันที่ผ่านมา +2

    How has no one thought of this… oml

    • @Cat-pv6yx
      @Cat-pv6yx 10 วันที่ผ่านมา

      There was a post on this being the ultimate click detection method on Reddit

  • @Kirisame_Soup
    @Kirisame_Soup 10 วันที่ผ่านมา

    For the third wand, you might be able to use the wand's advancement tick to grant another advancement where particles spawn, and on the wand's advancement tick schedule a function that has a 2 ticks delay with the replace type, which revokes the second advancement, so that after a tick when the wand is released the second advancement is revoked and ready to be granted again

    • @conure512
      @conure512  10 วันที่ผ่านมา

      Nice idea! I personally try to avoid scheduling wherever possible because scheduled functions tend to cause issues in multiplayer, but im sure theres SOME way around it lol

    • @Kirisame_Soup
      @Kirisame_Soup 10 วันที่ผ่านมา

      @@conure512 Oh yeah, that's indeed, hmm

  • @observerdot2107
    @observerdot2107 7 วันที่ผ่านมา

    This explains why when some mods break, if you right click them it starts the eating animation

  • @alexmorch4917
    @alexmorch4917 11 วันที่ผ่านมา

    This is AWESOME. Thanks for sharing.

    • @alexmorch4917
      @alexmorch4917 11 วันที่ผ่านมา

      Also, could you do something with /attribute to increase the movement speed while eating?

    • @conure512
      @conure512  11 วันที่ผ่านมา

      Maybe? It'd be a bit janky, and it would also boost your FOV as if you were moving super fast (because eating slows you down WITHOUT changing your FOV).

    • @nuklearboysymbiote
      @nuklearboysymbiote 10 วันที่ผ่านมา

      ​@@conure512 true. to mitigate this i just accepted that in my custom map i had to ask the player to set fov effects to none

  • @helohel5915
    @helohel5915 10 วันที่ผ่านมา +2

    1.20.5 is already out ;) cant wait to see what you can do with the new stuff

    • @conure512
      @conure512  10 วันที่ผ่านมา +2

      I have a suspicion that they accidentally released it early. (as in like several hours early.) the launcher has 1.20.5 but no announcement for it, SlicedLime has his announcement scheduled to drop in 1 hour... it's like they had the whole thing planned out but accidentally pressed the big red button without realizing it lmaooo

    • @helohel5915
      @helohel5915 10 วันที่ผ่านมา +1

      @@conure512 yeah I've been playing the prereleases on my server and got confused why I couldn't connect and checked the updates and boom, 1.20.5 was right there.

  • @lysibee
    @lysibee 10 วันที่ผ่านมา +1

    Fun fact, but resetting a scoreboard is actually more laggy, than /set 0

  • @heckerhecker8246
    @heckerhecker8246 10 วันที่ผ่านมา +3

    this is cursed

  • @kyleyoung2464
    @kyleyoung2464 10 วันที่ผ่านมา +1

    Sick af

  • @krispyking2450
    @krispyking2450 4 วันที่ผ่านมา

    they should add a component saying how slow the player should move when active

  • @christian_do
    @christian_do 10 วันที่ผ่านมา

    For the movement speed, maybe you could probaby attribute modifier the player with some movement speed to counter them and remove the modifier when they are done using the item.

  • @apersimmon
    @apersimmon 10 วันที่ผ่านมา

    You could change the player's base speed attribute when the item is being used then reset the attribute when the player is no longer right clicking. that way the play could walk at the same speed regardless of if they are useing the spell, to be clear i mean player attribute not speed effect.

    • @conure512
      @conure512  10 วันที่ผ่านมา

      Changing speed would also mess with the player's FOV, because eating slows you down WITHOUT changing your FOV. So, still not a perfect solution lol

    • @apersimmon
      @apersimmon 9 วันที่ผ่านมา

      @@conure512 It my not be perfect but it still could be a be needed for some niche, it may be desired for some use case. An example could be for performance or wanting to change the fov for example a rapid fire bow that increases the players fov to make it feel "manic".

  • @funnydotyes
    @funnydotyes 10 วันที่ผ่านมา

    you could create a flamethrower with actual ammo with this due to it being consumed

  • @_chadrose
    @_chadrose 10 วันที่ผ่านมา

    Thanks for all your hard work! I think this should be the new standard for datapacks to come! but man, I have to learn to get used to thinking based on granting/revoking advancements because I feel like it's slightly less intuitive compared to actual coding, but hey this feels so much more optimised though!

  • @NeunEinser
    @NeunEinser 10 วันที่ผ่านมา

    04:00 you could also simply schedule a function that has the /advancement revoke for the original advancement.
    I am pretty sure the tick advancement is not free, the game internally most likely checks every tick if the advancement is granted, and might have additional overhead from checking if the advancement has conditions, etc. I am not sure if this is better than an execute if in a ticking function, needs benchmarking, and/or code analysis.

  • @Kirisame_Soup
    @Kirisame_Soup 10 วันที่ผ่านมา

    Or, even simpler, you can schedule a function on the advancement ticking to revoke it. I think it should do the trick

  • @404maxnotfound
    @404maxnotfound 10 วันที่ผ่านมา

    Nice no more eye of ender trick.

  • @Doodle128
    @Doodle128 4 วันที่ผ่านมา +1

    Make it apply a speed effect when eating

  • @justanicemelon9963
    @justanicemelon9963 10 วันที่ผ่านมา

    Never knew minecraft eating would be this game changing

  • @Raccoon5
    @Raccoon5 10 วันที่ผ่านมา

    Can you counteract the slowdown using speed potion effect? Maybe you could find optimal level of the effect to have normal movement even during right click (except maybe the FOV shift, but that can be disabled in the video settings)

  • @PaulFisher
    @PaulFisher 3 วันที่ผ่านมา

    oh how I miss living next to one of the busiest railroad lines in the state of Ohio. 100% serious, the horn, rumble, and gentle vibration are a source of comfort.
    no strong opinion on the main topic of the video sorry

  • @scratchbeginner2954
    @scratchbeginner2954 10 วันที่ผ่านมา

    9:49 or while you're using the item set your base attribute speed to the normal speed to cancel out the slowdown

  • @Pleeze
    @Pleeze 10 วันที่ผ่านมา

    Idk how I got here but I enjoyed the video, not that I'll ever do anything with this knowledge.

  • @DukkyMC
    @DukkyMC 4 วันที่ผ่านมา

    You can also just use the schedule command instead of making a whole timer to remove the advancement, but nice technique!

    • @conure512
      @conure512  4 วันที่ผ่านมา +1

      Schedule causes issues in multiplayer (no way to determine who called it) and also things can break if the player disconnects during the schedule!

    • @DukkyMC
      @DukkyMC 4 วันที่ผ่านมา

      @@conure512 makes sense. could probably force a uuid check

  • @Systolic_Gaming
    @Systolic_Gaming 4 วันที่ผ่านมา

    7:02 This looks alot like the inverse of a bow, where it fires then needs to charge back up.
    Im a novice so I have no idea, but maybe you could customize the eat animation to make a slingshot or a big kamehameha ball in front of you.

  • @nati0598
    @nati0598 10 วันที่ผ่านมา

    Hell yeah! It was only a matter of time before the recent changes mojang made were used for something amazing.

  • @CloudyHi
    @CloudyHi 10 วันที่ผ่านมา

    for slow movement i think you can just modify the movement speed attribute of the player while right click (eating)
    and resetting it when not eating if possible
    * i didn't try it but just a suggestion, it might work *

    • @conure512
      @conure512  10 วันที่ผ่านมา

      Changing speed would also mess with the player's FOV, because eating slows you down WITHOUT changing your FOV. So, still not a perfect solution lol

    • @CloudyHi
      @CloudyHi 10 วันที่ผ่านมา

      @@conure512 ahhh i see

  • @xLTxFire
    @xLTxFire 4 วันที่ผ่านมา

    I actually didn't know about the food thing. I need to keep up with things better.

  • @SpiritOfTheGalaxy143
    @SpiritOfTheGalaxy143 10 วันที่ผ่านมา

    Congrats @satwr on getting in a video!

  • @pinkius
    @pinkius 10 วันที่ผ่านมา

    This type slows you down, which is not good, since sometimes you REALLY don't want your player to move with a snail speed. So warped fungus on a stick that is, still superior. I wish we had a different, way better way to detect right/left clicks than those we have :/

  • @Ray-uy4ez
    @Ray-uy4ez 11 วันที่ผ่านมา

    How nice.

  • @Blaineworld
    @Blaineworld 10 วันที่ผ่านมา

    best minecraft update

  • @neyzzury
    @neyzzury 10 วันที่ผ่านมา

    there is also the "interaction" entity
    it was added reciently and is kinda like a marker but i can store player interaction
    i made right clike detection with it some time ago but i cant find the world file. and this method is prettier anyways

    • @conure512
      @conure512  10 วันที่ผ่านมา +1

      Interactions are great for when you want to detect clicking on a specific object in the world (i use them all the time) but for clicking the air, using interactions is annoying and requires a constant tick to tp the entity to your face.

    • @neyzzury
      @neyzzury 10 วันที่ผ่านมา

      @@conure512 make entity big
      Also im unfamiliar with advancement stuff, it never worked for me :(

  • @qvazarin
    @qvazarin 10 วันที่ผ่านมา

    As a bedrock player i see this as an absolute win

  • @RubyPiec
    @RubyPiec 10 วันที่ผ่านมา

    FOOD??? thats insane

  • @Zanophane_Gaming
    @Zanophane_Gaming 3 วันที่ผ่านมา

    Chat, resource packs are going to go absolutely insane in 1.21

    • @conure512
      @conure512  3 วันที่ผ่านมา

      What do you mean by "chat resource packs"? Did they add something to respacks that can affect the way chat looks, and I just completely glossed over it?

    • @Zanophane_Gaming
      @Zanophane_Gaming 3 วันที่ผ่านมา

      @@conure512 Slight punctuation error, sorry about that. This is also a joke where people go "hey chat is this real" so I'm more so parodying off of that.

    • @conure512
      @conure512  3 วันที่ผ่านมา

      Ohh haha gotcha. Yeah I'm hoping we get some cool stuff for resource packs as well, we havent gotten any major upgrades for those in a while (the focus has been so much on datapacks)

  • @gafoneo3727
    @gafoneo3727 5 วันที่ผ่านมา

    You can also use ender eye in end and nether for this, I guess. Also works in superflat worlds without structures
    Btw can horns somehow be used to do something like this?

  • @theblckbird
    @theblckbird 10 วันที่ผ่านมา

    You could give the player the speed effect while right clicking

    • @conure512
      @conure512  10 วันที่ผ่านมา

      Changing speed would also mess with the player's FOV, because eating slows you down WITHOUT changing your FOV. So, still not a perfect solution lol

  • @bonehomie420
    @bonehomie420 10 วันที่ผ่านมา

    hey i watched the last video but didn’t comment. You said that the problem with knowledge books is that they disappear after use in survival, couldn’t you just have a function that triggers whenever that book is not in your inventory anymore and then gives you an identical one? i don’t know much about datapack development but i think that could be possible, exept if the only way to detect that is to run something every tick that checks your inventory, then it defeats the whole purpose. Great content btw!

    • @maker0824
      @maker0824 10 วันที่ผ่านมา

      9:43

    • @404maxnotfound
      @404maxnotfound 10 วันที่ผ่านมา

      That's not a great solution, right click it will dispear, the game will give you an item(which needs to be the same data as the orginal so you would probably need to maintain which knowledge book you right clicked on if you have multiple). You can't have it in your offhand because the give command would give the item will never give you an item in that offhand. There is also a small chance you might pick something up when the give command is running so instead of a new knowledge book it would be something else and the knowledge book would appear on the next empty slot.

  • @toughtntman37doesanimations
    @toughtntman37doesanimations 5 วันที่ผ่านมา

    Can you make the eat time 0 and the chorus-style delay to 20 or whatever?

  • @Blazecaster
    @Blazecaster 10 วันที่ผ่านมา

    In theory could you create an overheating system utilizing the eating function returning a temporary item upon completing the eating animation?

  • @SoulPriest
    @SoulPriest 10 วันที่ผ่านมา

    1) possible to make a cooldown version?
    2) possible to give speed matching normal speed while eating?

  • @jess648
    @jess648 10 วันที่ผ่านมา

    with the component system evolving mojang is probably gonna add another way to do this by accident

  • @thinksealbootjackmcgee
    @thinksealbootjackmcgee 6 วันที่ผ่านมา

    you could just set your bases speed higher if you do not want to be slowed

  • @user-hf6se3qt5r
    @user-hf6se3qt5r วันที่ผ่านมา

    how did you get the custom items like the flame wand and the nether start thing like how did you make it spawn particles that arent food particles

  • @elliejf
    @elliejf 10 วันที่ผ่านมา

    me breaking your datapack by waiting a month to eat your spell items

    • @conure512
      @conure512  10 วันที่ผ่านมา +1

      at that point we devs would have no choice but to applaud you lmao
      (with the version I put in the description, it would take 68 years to finish eating)

    • @mkks4559
      @mkks4559 10 วันที่ผ่านมา

      @@conure512That's nothing compared to eating a normal item on a server while your ping is high.

  • @ScientificallyImprobable
    @ScientificallyImprobable วันที่ผ่านมา

    Could you give the items a cooldown by switching the them in the player’s inventory multiple times (with different durabilities to imitate a cooldown bar)?

  • @zwatotem
    @zwatotem 10 วันที่ผ่านมา +1

    I was never into datapack programming. I just clicked the video. But man... This is worse than JavaScript. This may even potentially be worse than C++ template meta-programming. Mojang should really tighten their butts and give you a serious tool (full fledged scripting language) for the job instead of a mix of commands, scoreboard operations, NBT tags (or whatever the new thing is called), advancements, etc.
    Like for real. I feel like every tool they give is not sufficient for it's intended use. They introduced scoreboards, and teams and I don't see them ever used as intended. Small private servers don't use them at all for displaying statistics and setting up teams because they have no GUI and nobody knows, how to set them up. Big servers don't display statistics directly, but use them as display banner for their custom info with the 15 14 13 12 .. 3 2 1 trick.
    They added customizable border back then, but I really seldomly see that used either. It only works horizontally and can only have rectangular shape, and of course you can configure the effects of being outside it, so all the servers use custom borders.
    I wish Mojang either gave easier to use tools (with GUI for example) so that they can be used by small communities with ease, or give more powerful and configurable ones, so that they are actually useful in Player Experience creation.
    (Although they are progressing with display entities and I suppose NBT rework is an enabling change, so maybe we'll slowly get somewhere)

  • @E4tHam
    @E4tHam 10 วันที่ผ่านมา

    Can you make the code window larger in the future?

  • @voidandBright
    @voidandBright 10 วันที่ผ่านมา

    4:00 set it REALLY LONG and its one use simple

  • @miosoderberg6602
    @miosoderberg6602 11 วันที่ผ่านมา

    1k subs!

  • @NiceHyper01
    @NiceHyper01 10 วันที่ผ่านมา

    wowza

  • @nezkoanim
    @nezkoanim 10 วันที่ผ่านมา

    oo cool video!

  • @jacobzolt1469
    @jacobzolt1469 10 วันที่ผ่านมา

    I don't think it counts as lying if you didn't know any better

  • @SeriousGamer42
    @SeriousGamer42 3 วันที่ผ่านมา

    How did you make the recipe output include additional components?

  • @miosoderberg6602
    @miosoderberg6602 11 วันที่ผ่านมา

    Follow up video!

  • @SapphSky
    @SapphSky 10 วันที่ผ่านมา

    Really cool video! Could you please zoom the code next time? 🙏

    • @conure512
      @conure512  10 วันที่ผ่านมา

      Yes! I keep forgetting to do that lol

  • @dinopie3673
    @dinopie3673 10 วันที่ผ่านมา

    uh oh spaghettio

  • @PolyPenguinDev
    @PolyPenguinDev 10 วันที่ผ่านมา

    Give speed effect whenever you're eating

    • @conure512
      @conure512  10 วันที่ผ่านมา

      Changing speed would also mess with the player's FOV, because eating slows you down WITHOUT changing your FOV. So, still not a perfect solution lol

  • @maxanimator9547
    @maxanimator9547 10 วันที่ผ่านมา +2

    What's wrong with interactions ?