Тёмный

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

Conure
Подписаться 1,8 тыс.
Просмотров 26 тыс.
50% 1

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

Игры

Опубликовано:

 

21 апр 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 303   
@conure512
@conure512 5 дней назад
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 12 дней назад
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_ 12 дней назад
petrified oak slab prolly or spawn eggs with nbt data to not do anything
@egekahraman8985
@egekahraman8985 12 дней назад
I think poisonous patatoes may qualify depending on if being eatable messes things up
@404maxnotfound
@404maxnotfound 12 дней назад
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 12 дней назад
As far as I'm aware the only item like that is the clock.
@Capiosus
@Capiosus 12 дней назад
knowledge book?
@CallMeCarlos1
@CallMeCarlos1 12 дней назад
Do you really think 1 million seconds is gonna stop me from eating my magic wand?
@Luna5829
@Luna5829 11 дней назад
68 years will though (java integer limit)
@TheMiningCrafter
@TheMiningCrafter 11 дней назад
@@Luna5829 yes but 1 million seconds is only 11 days
@Luna5829
@Luna5829 11 дней назад
@@TheMiningCrafter the datapack uses integer limit tho
@TheMiningCrafter
@TheMiningCrafter 2 часа назад
@@Luna5829 yes but if it doesn’t reach said integer limit nothing will happen
@Sabagegah
@Sabagegah 12 дней назад
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 12 дней назад
FYI this is 11 and a half days lol
@conure512
@conure512 12 дней назад
@@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 12 дней назад
@@conure512 Advancement Made: Seriouser Dedication
@alexdanovyt9032
@alexdanovyt9032 6 дней назад
@@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 5 дней назад
@@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
@JustVlad1
@JustVlad1 12 дней назад
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
@DqwertyC
@DqwertyC 12 дней назад
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 12 дней назад
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!
@nuklearboysymbiote
@nuklearboysymbiote 12 дней назад
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 12 дней назад
NnNnNeEeEeOoOoOwWwWw!
@mini-prince.1233
@mini-prince.1233 12 дней назад
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 12 дней назад
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 12 дней назад
Does Swift Sneak affect your speed while eating? If so I did not know that lol
@calxee6743
@calxee6743 12 дней назад
@@conure512 no it doesn't
@shureee1
@shureee1 12 дней назад
how about changing generic movement speed while consuming the item?
@Sollace
@Sollace 12 дней назад
@@conure512 I'm not sure, lol, but there's also the speed boost potion effect.
@As1anCr4ck3r
@As1anCr4ck3r 12 дней назад
@@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 12 дней назад
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!
@live_destin-3408
@live_destin-3408 5 дней назад
*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*
@Peastable
@Peastable 12 дней назад
I’m always glad to find another high-quality datapack channel. This is super cool!
@turmspitzewerk
@turmspitzewerk 12 дней назад
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 12 дней назад
These last few videos convinced me to sub to this channel, great job dude!
@fgdx
@fgdx 12 дней назад
This is such an incredible way to do the cooldowns, kudos to you.
@j.a.v.mersbergen5443
@j.a.v.mersbergen5443 12 дней назад
This channel is sooooo underrated!
@SuperBro112Lol
@SuperBro112Lol 12 дней назад
im surprised his videos even appear on my home page
@matiera_scape
@matiera_scape 12 дней назад
While I don't know all of these magic words, I did enjoy the video lol Congrats on 1k subs Conure!
@staxpy5729
@staxpy5729 12 дней назад
Amazing ! Clear and straight to the point. Great explanations ty, that's super useful !
@jakeklic
@jakeklic 5 дней назад
this is everything i’ve ever wanted, thank you
@Ruffilicious
@Ruffilicious 12 дней назад
thank you. I hope we see more of the good stuff
@whycantithinkofaname26
@whycantithinkofaname26 12 дней назад
Congratulations on 1k!
@As1anCr4ck3r
@As1anCr4ck3r 12 дней назад
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 3 дня назад
This is possible using custom model data
@As1anCr4ck3r
@As1anCr4ck3r 3 дня назад
@@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 12 дней назад
Now I just need fully implemented component crafting and I will be happy
@kuronya3582
@kuronya3582 12 дней назад
using advancement as tickless trigger is something fascinating for me
@TheiBunny
@TheiBunny 10 дней назад
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 10 дней назад
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 10 дней назад
@@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".
@_rubl
@_rubl 12 дней назад
the only advantage coas still have is that you don't slow down while using it
@Kirisame_Soup
@Kirisame_Soup 12 дней назад
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)
@Izzythemaker127
@Izzythemaker127 12 дней назад
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.
@Nicky_T
@Nicky_T 11 дней назад
Hell yeah. Makes me want to get back into datapack coding
@Gameatronic9000
@Gameatronic9000 12 дней назад
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 12 дней назад
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
@NathanHaaren
@NathanHaaren 5 дней назад
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 6 дней назад
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_ 12 дней назад
Huh, very interesting! I should really get into datapacks
@hasantopcu556
@hasantopcu556 12 дней назад
clever and perfect!
@henrycgs
@henrycgs 12 дней назад
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 12 дней назад
hey man if they just straight-up add right click detection, I would not complain for a second hahaha
@henrycgs
@henrycgs 12 дней назад
@@conure512 I know right!! and with the new components system I think we might be heading in that direction
@hernangonzalez7150
@hernangonzalez7150 12 дней назад
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!
@rx97_mc
@rx97_mc 5 дней назад
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`)
@myboyaks8065
@myboyaks8065 12 дней назад
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 12 дней назад
@minecraft please add an food component tag to set a custom walking speed while eating
@Kirisame_Soup
@Kirisame_Soup 12 дней назад
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 12 дней назад
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 12 дней назад
@@conure512 Oh yeah, that's indeed, hmm
@observerdot2107
@observerdot2107 9 дней назад
This explains why when some mods break, if you right click them it starts the eating animation
@sobanoodles4286
@sobanoodles4286 10 дней назад
Take a drink every time he says Tick
@austinlinco
@austinlinco 12 дней назад
How has no one thought of this… oml
@Cat-pv6yx
@Cat-pv6yx 12 дней назад
There was a post on this being the ultimate click detection method on Reddit
@alexmorch4917
@alexmorch4917 12 дней назад
This is AWESOME. Thanks for sharing.
@alexmorch4917
@alexmorch4917 12 дней назад
Also, could you do something with /attribute to increase the movement speed while eating?
@conure512
@conure512 12 дней назад
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 12 дней назад
​@@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
@heckerhecker8246
@heckerhecker8246 12 дней назад
this is cursed
@kyleyoung2464
@kyleyoung2464 12 дней назад
Sick af
@lysibee
@lysibee 12 дней назад
Fun fact, but resetting a scoreboard is actually more laggy, than /set 0
@christian_do
@christian_do 11 дней назад
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.
@helohel5915
@helohel5915 12 дней назад
1.20.5 is already out ;) cant wait to see what you can do with the new stuff
@conure512
@conure512 12 дней назад
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 12 дней назад
@@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.
@krispyking2450
@krispyking2450 6 дней назад
they should add a component saying how slow the player should move when active
@apersimmon
@apersimmon 12 дней назад
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 12 дней назад
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 11 дней назад
@@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 12 дней назад
you could create a flamethrower with actual ammo with this due to it being consumed
@_chadrose
@_chadrose 12 дней назад
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 11 дней назад
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.
@404maxnotfound
@404maxnotfound 12 дней назад
Nice no more eye of ender trick.
@Kirisame_Soup
@Kirisame_Soup 12 дней назад
Or, even simpler, you can schedule a function on the advancement ticking to revoke it. I think it should do the trick
@Doodle128
@Doodle128 6 дней назад
Make it apply a speed effect when eating
@justanicemelon9963
@justanicemelon9963 12 дней назад
Never knew minecraft eating would be this game changing
@Raccoon5
@Raccoon5 11 дней назад
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)
@scratchbeginner2954
@scratchbeginner2954 11 дней назад
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 12 дней назад
Idk how I got here but I enjoyed the video, not that I'll ever do anything with this knowledge.
@DukkyMC
@DukkyMC 5 дней назад
You can also just use the schedule command instead of making a whole timer to remove the advancement, but nice technique!
@conure512
@conure512 5 дней назад
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 5 дней назад
@@conure512 makes sense. could probably force a uuid check
@PaulFisher
@PaulFisher 4 дня назад
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
@Systolic_Gaming
@Systolic_Gaming 5 дней назад
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 12 дней назад
Hell yeah! It was only a matter of time before the recent changes mojang made were used for something amazing.
@CloudyHi
@CloudyHi 12 дней назад
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 12 дней назад
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 11 дней назад
@@conure512 ahhh i see
@SpiritOfTheGalaxy143
@SpiritOfTheGalaxy143 12 дней назад
Congrats @satwr on getting in a video!
@xLTxFire
@xLTxFire 5 дней назад
I actually didn't know about the food thing. I need to keep up with things better.
@pinkius
@pinkius 12 дней назад
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 12 дней назад
How nice.
@Blaineworld
@Blaineworld 12 дней назад
best minecraft update
@neyzzury
@neyzzury 12 дней назад
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 12 дней назад
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 11 дней назад
@@conure512 make entity big Also im unfamiliar with advancement stuff, it never worked for me :(
@RubyPiec
@RubyPiec 11 дней назад
FOOD??? thats insane
@qvazarin
@qvazarin 12 дней назад
As a bedrock player i see this as an absolute win
@Zanophane_Gaming
@Zanophane_Gaming 5 дней назад
Chat, resource packs are going to go absolutely insane in 1.21
@conure512
@conure512 4 дня назад
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 4 дня назад
@@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 4 дня назад
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 6 дней назад
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 12 дней назад
You could give the player the speed effect while right clicking
@conure512
@conure512 12 дней назад
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 12 дней назад
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 12 дней назад
9:43
@404maxnotfound
@404maxnotfound 12 дней назад
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 6 дней назад
Can you make the eat time 0 and the chorus-style delay to 20 or whatever?
@jess648
@jess648 12 дней назад
with the component system evolving mojang is probably gonna add another way to do this by accident
@SoulPriest
@SoulPriest 12 дней назад
1) possible to make a cooldown version? 2) possible to give speed matching normal speed while eating?
@Blazecaster
@Blazecaster 12 дней назад
In theory could you create an overheating system utilizing the eating function returning a temporary item upon completing the eating animation?
@user-hf6se3qt5r
@user-hf6se3qt5r 3 дня назад
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
@ScientificallyImprobable
@ScientificallyImprobable 2 дня назад
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)?
@elliejf
@elliejf 12 дней назад
me breaking your datapack by waiting a month to eat your spell items
@conure512
@conure512 12 дней назад
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 11 дней назад
@@conure512That's nothing compared to eating a normal item on a server while your ping is high.
@thinksealbootjackmcgee
@thinksealbootjackmcgee 8 дней назад
you could just set your bases speed higher if you do not want to be slowed
@E4tHam
@E4tHam 12 дней назад
Can you make the code window larger in the future?
@zwatotem
@zwatotem 12 дней назад
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)
@miosoderberg6602
@miosoderberg6602 12 дней назад
1k subs!
@voidandBright
@voidandBright 12 дней назад
4:00 set it REALLY LONG and its one use simple
@NiceHyper01
@NiceHyper01 12 дней назад
wowza
@nezkoanim
@nezkoanim 12 дней назад
oo cool video!
@SeriousGamer42
@SeriousGamer42 4 дня назад
How did you make the recipe output include additional components?
@jacobzolt1469
@jacobzolt1469 12 дней назад
I don't think it counts as lying if you didn't know any better
@dinopie3673
@dinopie3673 11 дней назад
uh oh spaghettio
@SapphSky
@SapphSky 12 дней назад
Really cool video! Could you please zoom the code next time? 🙏
@conure512
@conure512 12 дней назад
Yes! I keep forgetting to do that lol
@miosoderberg6602
@miosoderberg6602 12 дней назад
Follow up video!
@PolyPenguinDev
@PolyPenguinDev 12 дней назад
Give speed effect whenever you're eating
@conure512
@conure512 12 дней назад
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
@playbabethebookshelf6249
@playbabethebookshelf6249 12 дней назад
ayo damn
Далее
Making a Chess Engine SUPERCOMPUTER in Minecraft
33:41
How People Reprogram Games...with a CONTROLLER
18:42
Просмотров 110 тыс.
MAYOT - High
02:28
Просмотров 316 тыс.
Squid Game Dance Challenge 😐
00:24
Просмотров 3,1 млн
Introducing the Instant Kill Hypersonic Claymore
20:14
Просмотров 278 тыс.
Explaining the 1bm Triple Neo
3:31
Просмотров 2,6 тыс.
Minecraft 1.21 will Revolutionize Datapacks. Again.
10:38
I don't like Gargantuars in PVZ2: Here's Why
18:24
Просмотров 788 тыс.
Arbitrary Code Execution in Animal Crossing
24:22
Просмотров 158 тыс.
What 4J Studios Understood That Mojang Doesn’t...
4:14
Smash 64 is Broken
7:36
Просмотров 4,7 млн
abusing the new OP skywars perk
11:46
Просмотров 6 млн
SONY УБИВАЕТ HELLDIVERS 2
17:11
Просмотров 243 тыс.