LAUNCH ENTITIES - Set Motion NBT From Rotation! || Minecraft Commands

  Рет қаралды 68,842

Timber Forge

Timber Forge

Күн бұрын

Пікірлер: 210
@TimberForge
@TimberForge 3 жыл бұрын
A quick note I forgot to mention, you can't modify player nbt so you can't directly use this method to launch players smoothly unfotunately.
@flex4711
@flex4711 3 жыл бұрын
How does like every server do it, where you have like pressure plates or similar or like a "grappling hook" where you then smoothly launch players?
@TimberForge
@TimberForge 3 жыл бұрын
I think they often use plugins, but those only work on servers
@TheTeixeira
@TheTeixeira 3 жыл бұрын
You can tp the player to a falling block (the movement) so it can launch players maybe
@TimberForge
@TimberForge 3 жыл бұрын
Yeah its just a bit choppy
@flex4711
@flex4711 3 жыл бұрын
@@TheTeixeira Yes, lets assume you have a repeat command block tp'ing to that block with the launch nbt, that just tp's 20times per second(each tick) and you're less flying than teleporting a few times
@CoolScratcher
@CoolScratcher 3 жыл бұрын
"My super-advanced animation program" One of the funniest datapack makers ever
@hop3fulpuffin
@hop3fulpuffin 3 жыл бұрын
it's so weird every time i need a tutorial i spend like half an hour looking for it to no avail. next day i get a notif "timberforge has uploaded a new video:" and it's exactly what i looked for keep being awesome man also p.s. your duolingo bird hunts u down datapack deserves so much more clout
@Xaevia
@Xaevia 3 жыл бұрын
Mr Timber Forge. Thank you!! I came looking for a solution to launching summoned arrows, which 90% of the internet says cannot be done and google searches send people to years old reddit posts full of nay-sayers... and after finding your vid, I come away with a system to literally launch anything other than players. Thank you! This saved me an insane amount of time... I was initially trying to do this based on a player's rotation, and it was quickly turning into a nightmare. Many thanks!!!
@generalyoutubeuser
@generalyoutubeuser Жыл бұрын
I've been looking for this video for 7 hours. No body wants to explain how they throw, they just want to show off cool wands and shit. Thank you for actually taking the time for this
@felipelopes3821
@felipelopes3821 3 жыл бұрын
I looked everywhere for a tutorial on how to do this, and you posted it! Thanks a lot!
@TimberForge
@TimberForge 3 жыл бұрын
Do you guys prefer faint background music or no?
@misterknister6257
@misterknister6257 3 жыл бұрын
I like music
@LanderPlasschaert
@LanderPlasschaert 3 жыл бұрын
The background music was great man
@TimberForge
@TimberForge 3 жыл бұрын
Thanks for the feedback guys! I think ill keep doing it then, I was just worried some people might think it was annoying.
@hop3fulpuffin
@hop3fulpuffin 3 жыл бұрын
music is good
@hazelsnep
@hazelsnep 3 жыл бұрын
i didnt hear it the whole time XD
@Sibogy
@Sibogy 3 жыл бұрын
The content just keeps getting better. Your editing is on point. And the tutorial is super useful.
@TimberForge
@TimberForge 3 жыл бұрын
Thanks! I’ve also been following your content, that doom map you’re making looks awesome!
@Sibogy
@Sibogy 3 жыл бұрын
@@TimberForge Now that is epic.
@someloser612
@someloser612 3 жыл бұрын
This video is probably the best command block tutorial I have ever seen! Like honestly I learnt more from this than I learnt from my middle school maths teacher.
@pinkius
@pinkius 2 жыл бұрын
This guy not only explained how it works, but also he also made us understand the whole concept behind this. And now they call Minecraft a game for kids, where with basic math you can change the whole game without even touching mod aspect. Brilliant
@Syrplex
@Syrplex 3 жыл бұрын
You've help me so much, you deserve more subs than you havend what other you tubers have.
@Dovahgiinge
@Dovahgiinge 3 жыл бұрын
Incredibly helpful, thank you so much for posting! The way you walked through the maths and commands involved really helped my understanding and made me a lot more confident that I can apply this knowledge for some other effects.
@TimberForge
@TimberForge 3 жыл бұрын
I’m so glad you found the explanation useful!
@MaxwellCatAlphonk
@MaxwellCatAlphonk Жыл бұрын
THANK YOU I MADE FUNGUS ON STICK INTO TELEPORT WAND!!
@jakehero4
@jakehero4 3 жыл бұрын
My super-advanced animation program google slides
@_chyn23
@_chyn23 2 жыл бұрын
I hadn't known about Vector before watching this video, but this video helped me know how to use motion nbt tag and utilize it. Also, although I am not good at English, you explained it easy and I could understand contents well. Thank you very much! :)
@X-otic
@X-otic 3 жыл бұрын
Perfect tutorial to create homing missiles. Thank you so much!
@TimberForge
@TimberForge 3 жыл бұрын
Don't forget to check out the example download in the description. Also, check out my website for data pack making!
@enderjora
@enderjora 3 жыл бұрын
Super helpful for a boss fight I'm making!
@braindeadgaming8430
@braindeadgaming8430 3 жыл бұрын
I am memorizing everything in these Datapacks videos so that I can make a Datapack creation tool in Unity so that making Datapacks is easier
@shardofglass
@shardofglass 2 жыл бұрын
Oh my god please do that
@flamelightpower3458
@flamelightpower3458 3 жыл бұрын
These Datapack tutorials are helping me so much making datapacks:)
@deltatempest7018
@deltatempest7018 9 ай бұрын
Just quick side note, you can add nbt "power" for entities such as fireball and wither skull, it works really well for me!
@jeanremi8384
@jeanremi8384 3 жыл бұрын
thanks, I learned multiple things which will allow me to do things at least 10 times more advanced
@iakhan7765
@iakhan7765 2 жыл бұрын
Ngl you deserve a lot more support, your data pack tutorials are 👏 Also you saved 5hrs of my life trying to figure this out 😆 Just I don't think any one will see this but how do I make the projectile's rotation be based on a non player mob
@TimberForge
@TimberForge 2 жыл бұрын
Just execute everything as the mob and rotated as the mob, look up the specifics of the execute command on the wiki if u dont know how to.
@iakhan7765
@iakhan7765 2 жыл бұрын
Oh ok ty
@type-32
@type-32 2 жыл бұрын
I've tried this method on items but it doesn't work lol it just stutters and then teleports to where it was supposed to land on
@AgloKlaus
@AgloKlaus Жыл бұрын
Great video! It's a slightly better method to summon the mob with the temporal tag and then remove it after the motion, specially if it's a one-time-use entity
@5UP3RBG4M1NG
@5UP3RBG4M1NG 2 жыл бұрын
Tysm this is probably one of the best explanations I've seen
@toasty___bread
@toasty___bread 2 жыл бұрын
Exactly what I needed! super easy to follow.
@qurczakos6641
@qurczakos6641 3 жыл бұрын
Thank You sooooo much for creating a tutorial for that.
@Zipedyz4k
@Zipedyz4k 3 жыл бұрын
nice vids! I started learning these in my off time, thx for making the video!! just subscribed!
@inofensivo2001
@inofensivo2001 Жыл бұрын
I'm trying to make an entity shot the tnt with your data pack. I made an armor stand shot { execute as @e[type=armor_stand,sort=nearest,limit=1] at @s run function motion:throw } but it takes the direction of the player. Ive tried a lot, changing { tp @s ^ ^ ^0.1 facing entity @p eyes } in the apply_motion.mcfunction and it still takes players direction, instead of shot the tnt to the player. Please, if you can help me 😢🥺
@gftk5566
@gftk5566 3 жыл бұрын
oh God, it's a great tutorial but the tnt from the throw function does not get summoned at eye level, that's disturbing
@TimberForge
@TimberForge 3 жыл бұрын
Lol
@snuck7926
@snuck7926 3 жыл бұрын
/execute at @s anchored eyes run ...
@johnborup8896
@johnborup8896 2 жыл бұрын
This is really great, thank you so much!
@nerdygeek8947
@nerdygeek8947 3 жыл бұрын
This video is posted on My Birthday
@seamuskills
@seamuskills 2 жыл бұрын
I had this kind of idea but I didn't understand how to execute it (pun not intended ☻ ) great tutorial!
@retronbv8725
@retronbv8725 3 жыл бұрын
nice thombnail
@TimberForge
@TimberForge 3 жыл бұрын
Thanks haha, I just learned how to do basic blender rigs and renders last night.
@mckovach7285
@mckovach7285 Жыл бұрын
if i wanted to launch players, i would use armor stands to run the launch command on, and repeatedly teleport the player to the armor stand
@coledoe1030
@coledoe1030 Жыл бұрын
Very useful, thanks a bunch :D
@Blackern5000
@Blackern5000 3 жыл бұрын
Could i just get some stuff i can copy and paste into some command blocks in miencraft?
@Mari00
@Mari00 3 жыл бұрын
Damn even tho this is complicated this is so helpful thank you so much dude
@TimberForge
@TimberForge 3 жыл бұрын
Glad you like it! Feel free to ask questions if part of it is confusing!
@Mari00
@Mari00 3 жыл бұрын
@@TimberForge actually, I do have a question I just wanted to know if its possible using this on a player
@TimberForge
@TimberForge 3 жыл бұрын
Unfortunately we aren’t allowed to modify player data directly like this. :( However you could use armorstands, but it would be a bit choppy. TheMoneyRaider kinda has a system for player motion, but it’s inevitable that it will be a bit choppy.kzbin.info/www/bejne/qqmoY6apfd9sqNk
@notahackusator
@notahackusator 3 жыл бұрын
dude this is SO useful tysm
@kektimus
@kektimus 2 жыл бұрын
You're a good teacher!
@mani_mincraft
@mani_mincraft 2 жыл бұрын
thanks :) you thaught well
@grimeythesloth2083
@grimeythesloth2083 4 ай бұрын
Hi. Does anyone know why this doesnt work for falling blocks? Thank u
@SamuraiDestroy
@SamuraiDestroy 2 жыл бұрын
This tutorial is incredible! The one problem is it just won't work for arrows. Is there a fix for this?
@stray1239
@stray1239 2 жыл бұрын
arrows have their own gravity system, so it should be much easier, just summon an arrow with a custom velocity and the arrow does the rest for u
@monster5276
@monster5276 10 ай бұрын
Make 3d custom blockbench projectil tutorial next i want to make a custom bow
@montageofchips
@montageofchips Жыл бұрын
bro thanks so much
@NuggetCraft
@NuggetCraft Жыл бұрын
can you make a tutorial on how to use the rotation nbt please?
@marcjuu
@marcjuu 3 жыл бұрын
quite educational,system isnt working on my end in the last 4 commands though (using commandblocks on 1.16.4)
@TimberForge
@TimberForge 3 жыл бұрын
If you are using command blocks, you will have to change the commands since functions make it easier to run entire functions on entities, but for command blocks you will have to repeat the execution conditions for every command.
@celiacasimiro465
@celiacasimiro465 3 жыл бұрын
You could make TNT Yeeter with this Edit: I’m trying to use this to launch players in the air. I’ve just tested for the Y Coordinate but when running the function it didn’t launch me. Anyone know of their is some form of limiting factor or if I am doing this wrong.
@TimberForge
@TimberForge 3 жыл бұрын
Yeah i forgot to mention that but you are not allowed to directly modify player nbt.
@celiacasimiro465
@celiacasimiro465 3 жыл бұрын
Oh that explains it so how would I modify this for players
@TimberForge
@TimberForge 3 жыл бұрын
There isnt a super good way, it’s always choppy. You can tp the player to an entity that is being modified.
@celiacasimiro465
@celiacasimiro465 3 жыл бұрын
Ok
@irvinedanny0922
@irvinedanny0922 2 жыл бұрын
You are a god
@SAMEER_99
@SAMEER_99 2 жыл бұрын
you are insane!!!
@hardcore5596
@hardcore5596 3 жыл бұрын
Cool vid!
@erencansever8464
@erencansever8464 3 жыл бұрын
I started watching this video to sleep but the problem is I know that coding!!!
@Adrien.5902
@Adrien.5902 3 жыл бұрын
Thank you so much
@timtfg5836
@timtfg5836 Жыл бұрын
Its a good tutorial. Sadly, the things you wrote in the example wont load on my PC. Its just says something about Mac IOS in the files for whatever reason. Did they took the IOS incompability thing on the next lvl or why is that so?
@Brekfestus
@Brekfestus 3 жыл бұрын
Man, that isn't the most advanced animation software! It's MS Paint. Using Stop Motion.
@TimberForge
@TimberForge 3 жыл бұрын
You think that’s advanced? Clearly never tried crayons on a wall.
@Brekfestus
@Brekfestus 3 жыл бұрын
@@TimberForge That? We all know the greatest form of art is scratching rocks onto other rocks.
@northway13
@northway13 Ай бұрын
Great videoooo
@Not-Braker
@Not-Braker 6 ай бұрын
1 question, Im trying to do this with fireballs, but they just slow down
@Volcan-kf3oz
@Volcan-kf3oz 2 жыл бұрын
This is really cool but It just occurred to me why wouldn't you use the players coordinates then the projectiles coordinates instead of teleport the projectile to get the second set or coordinates?
@MrPuffyWuff
@MrPuffyWuff 2 жыл бұрын
if the player is walking, say to the left, while they shoot it could mess up the direction it fires in and make it turn
@zacharian27
@zacharian27 8 ай бұрын
hi, I'm doing this with command blocks and am having trouble with the teleport command. What is it running that command as? I have tried with the player and the arrow and it does not seem to work. Any help would be greatly appreciated. Edit: I thought I had got it but now it just flies in the positive z direction?
@erklingames6009
@erklingames6009 Жыл бұрын
Does this work on a server with multiple players using the command? I tried using it with my friends but when 1 person right clicked the snowball it threw tnt from another persons position randomly.
@nolidev4926
@nolidev4926 3 жыл бұрын
1.17.1, not lagging at all, got it hooked up to a warped fungus right click detector, using snowballs I'm having an issue where there is a delay between spawning and applying motion, and when the motion is applied the snowball jolts forward 20 or so blocks to where it should have been. I ran a say command before and after the teleport and they are both instant. edit: also, it's a visual bug cuz i can kill blazes up close
@nat-20
@nat-20 2 жыл бұрын
Found a kind of janky solution, summon the item with gravity disabled and the motion specified but set to 0 for all values. Then apply the motion, and then after that have a command running to set the gravity of all items with the motion_applied tag that do not have a motion of 0 to enabled. No idea why this happens or why this works, but my guess is something to do with optimization and interpolating. The game assumes the object will not have its motion drastically changed normally and so has to catch up when it realizes it guessed the wrong place for where the object will be. Changing the gravity tag lets the game realize sooner that the objects trajectory may be messed with.
@switchcubed8529
@switchcubed8529 2 жыл бұрын
After fiddling around with Zafalron's solution, I found a way to fix the issue with minimum commands. Create a new function file. Let's call it "update.mcfunction" After the final line "tag @s add motion_added", add this line: ------------------------------------------------------------------------------------------------------------ schedule function YourDatapackName:update 2t ------------------------------------------------------------------------------------------------------------ This will run "update.mcfunction" 1/10th of a second after your projectile spawns. Trying to update the projectile sooner than 2 ticks will do nothing. In your "update.mcfunction" file, add these lines: ------------------------------------------------------------------------------------------------------------ execute as @e[tag=motion_added, tag=!updated] run data modify entity @s NoGravity set value True execute as @e[tag=motion_added, tag=!updated] run data modify entity @s NoGravity set value False execute as @e[tag=motion_added, tag=!updated] run tag @s add updated ------------------------------------------------------------------------------------------------------------ This should force the snowball's graphical position to update. You can use another file too if you want to avoid running the execute as command 3 times, but for simplicity this is fine.
@HarpanW
@HarpanW Жыл бұрын
@@switchcubed8529 THANK U
@HarpanW
@HarpanW Жыл бұрын
@@nat-20 bro u guys saved my week i was sitting here figurin shit out for like two days straight
@WHOAMISTER999
@WHOAMISTER999 3 жыл бұрын
I tried execute as @s run data modify entity @s Motion set value [posX_2-posX_1,posy_2-posy_1,posz_2-posz_1] instead of what you wrote at 12:45 , why is it wrong?
@DiversifiedPlayz
@DiversifiedPlayz 3 жыл бұрын
great i looked for this tutorial for a long time but did not find it
@raios8221
@raios8221 3 жыл бұрын
can you make a tutorial on how to increase the chance of armored zombies and skeletons with full diamond set and enchanted weapons to spawn more often?
@TimberForge
@TimberForge 3 жыл бұрын
You could set up a simpler version of my custom mob natural spawning system, but instead of replacing it, use the 1.17 item command to replace its items.
@FrogsAreGods
@FrogsAreGods Жыл бұрын
im using wither skulls and they lag a bit before launching how should i fix this edit: visual glitch
@milan_2210
@milan_2210 Жыл бұрын
His work when you want to shoot a bow while having levetation 256
@custi
@custi 2 жыл бұрын
I keep getting a problem with the loop.mcfunction file. the motion:throw, motion:apply_motion and motion:motion_apply all say "Failed to resolve namespace ID" and it should be correct. I have no idea what causes this. I can spawn in the projectiles fine in-game, but they wont move, they just fall down to the ground
@simonbuskandre4876
@simonbuskandre4876 3 жыл бұрын
Hey Timber Forge, i have another question. I have been making alot of custom weapons, but i have made them separately. I have made 2 wands at one rightClick detector. It took some pretty much time, so i was wondering if i could do it easier. I am asking for an easy way to make a rightClick detector for carrot_on_a_stick with multiple wands. It's hard to explain but... here is a little example: FireWand ---- shoot1 HealWand ----- shoot2 FreezeWand ----- shoot3 at the moment, i have made a similar way of doing this. But they are all attached to one rightclick instead of 3. Is there a way of doing this? Or can you just tell me the easiest way to do it :)
@TimberForge
@TimberForge 3 жыл бұрын
You can use one right click scoreboard, but then detect which item the player is holding when you want to shoot. Ex: if right click score is over 1, and holding firewand, do shoot 1. If right click score over 1, and holding healwand, shoot2, etc
@simonbuskandre4876
@simonbuskandre4876 3 жыл бұрын
@@TimberForge Hello again. The thing you say, i have already tried that. But the scoreboard goes up, no matter what wand i use. If i press rightClick with the firewand and quickly switches to healwand. Then the healwand activates... is there a way to make a rightClick detecton ONLY go up when i press rightClick with a specific item in hand?
@TimberForge
@TimberForge 3 жыл бұрын
Make the right click scoreboard go down at the end of each tick. So if you try switching then it wont work.
@nameyname3808
@nameyname3808 3 жыл бұрын
good vid
@teho1536
@teho1536 2 жыл бұрын
Can't you theoretically store the entity's pos and the players pos and get the vector between that
@Pullololo
@Pullololo 3 жыл бұрын
I have a question, what datapack editor/program are you using?
@TimberForge
@TimberForge 3 жыл бұрын
I currently use atom.io but may have been using vscode in this vid. For both i get a mcfunction extension
@bnjimen718
@bnjimen718 3 жыл бұрын
are loop and tick.mcfunction the same? bcoz i followed some on elses vid on how to make a data pack
@TimberForge
@TimberForge 3 жыл бұрын
Yes
@zackpynn7180
@zackpynn7180 3 жыл бұрын
Would this be possible to create using only command blocks?
@TimberForge
@TimberForge 3 жыл бұрын
Yes but its harder and more commands
@TimberForge
@TimberForge 3 жыл бұрын
I recommend making a data pack, its pretty simple
@vilmavaitonyte2451
@vilmavaitonyte2451 3 жыл бұрын
Uh, this may be off-topic, but is there any reason for it teleporting? It seems to not move for the first 2 seconds then teleports to the direction where it should have landed
@TimberForge
@TimberForge 3 жыл бұрын
That’s odd, did you make sure that none of it is looping or calling itself? What entity are you using? Maybe the numbers are too high?
@vilmavaitonyte2451
@vilmavaitonyte2451 3 жыл бұрын
@@TimberForge I have tried many diffrent entities and only the small ones like snowballs and arrows dont teleport, i've tried a lot of diffrent numbers but it seems very choppy. It's probably just my ole computer though
@TimberForge
@TimberForge 3 жыл бұрын
The teleportation should only happen once. Maybe put a say command into your function(s) to make sure it only runs once.
@mrmehcrawley
@mrmehcrawley 3 жыл бұрын
What plugins do you use in VS code, or do you not use any?
@TimberForge
@TimberForge 3 жыл бұрын
I found an Mc function one, idk which exactly. I use atom.it now instead of vscode, either are good.
@mrmehcrawley
@mrmehcrawley 3 жыл бұрын
@@TimberForge Okay thanks!
@kiro30000
@kiro30000 3 жыл бұрын
hello watch ur videos now for some time i have a quesition could u show how to make a gun datapack like how u do it and how to make it able to be used in multiplay
@TimberForge
@TimberForge 3 жыл бұрын
I made a gun in my mandalorian pistol let’s code video.
@kiro30000
@kiro30000 3 жыл бұрын
@@TimberForge oh sry i have must overlooked tha thanks.
@cookiekoneko
@cookiekoneko Жыл бұрын
I did this with an arrow but the arrow wont have any variation going up or down it goes only at 90 degrees how can I fix this?
@emox6660
@emox6660 Жыл бұрын
you cant rotate an arrow, you'll have to use another entity, do the math and store the results into the arrow
@SoulLexx
@SoulLexx 2 жыл бұрын
Is there a less complicated way to make this?
@JustAKomiFan
@JustAKomiFan 3 жыл бұрын
Yesssss Nvm my brain to small
@azy_boy
@azy_boy 3 жыл бұрын
Hey ! We cannot open the example download on Windows ; ( corrupted file
@LanderPlasschaert
@LanderPlasschaert 3 жыл бұрын
How useful
@shardofglass
@shardofglass 2 жыл бұрын
Where the f did the motion apply function come from? I’m so confused about that.
@Beans-rr2sg
@Beans-rr2sg Жыл бұрын
this only worked in one direction for me. do you know why?
@badyfatycaty7522
@badyfatycaty7522 3 жыл бұрын
Is it possible to make like a snowball or egg deal custom damage when it hit the target? I’m trying to make a throwing star
@TimberForge
@TimberForge 3 жыл бұрын
Yeah cloudwolf has a video on custom damage.
@badyfatycaty7522
@badyfatycaty7522 3 жыл бұрын
@@TimberForge thank you
@big_neek
@big_neek 3 жыл бұрын
is it possible to launch the player with data merge, or can player nbts not be edited?
@TimberForge
@TimberForge 3 жыл бұрын
Player NBT cannot be edited
@big_neek
@big_neek 3 жыл бұрын
@@TimberForge ok thanks. i decided to use fuse 0 creepers instead to create the same effect.
@samuelcarlsen1442
@samuelcarlsen1442 3 жыл бұрын
So I recently got back into Minecraft because of the new Star Wars pack I’ve always liked Mads and stuff but since I’m primarily playing on PS4 that isn’t really a possibility more like a dream for me but then I stumbled upon your channel and got some hope but I’m still confused on if you can actually do this with the commands and data packs on PlayStation? sorry if this is a newb question but I would really like to do some of these things and I couldn’t tell if you were on bedrock or Java so I just don’t know if it’s possible it would also be really cool to see you try to make some sort of order 66 command I don’t know how you would do it but preferably it would be A mob textured to look like a clone and they would be friendly until you type in a command switch the lever or something and they will turn on you and start shooting you It should of course be specified tu specific players so they don’t attack the player ordering them to execute order 66 I’m also really interested to know if you can add custom sound effects into the game? somehow so for example make the light saber sound like an actual light saber.
@TimberForge
@TimberForge 3 жыл бұрын
You cannot do data packs on bedrock edition, and the commands are more limited. Sorry, I don’t know too much else about it.
@samuelcarlsen1442
@samuelcarlsen1442 3 жыл бұрын
Timber Forge well thank you anyway I have been considering getting java for my PC anyway I just wish there were some kind of way to get all the good features from bedrock Like the Star Wars pack or 3-D skins for example On Java Or vice versa
@juliansun3064
@juliansun3064 3 жыл бұрын
Why is it that every time I look for a tutorial it’s either super hard, completely impossible or is just overly complicated or confusing
@TimberForge
@TimberForge 3 жыл бұрын
Maybe you are trying to go advanced without first learning the basics.
@Cosmo_Leveling
@Cosmo_Leveling 2 жыл бұрын
how do you make it so it does not fall?
@ThatVeenex
@ThatVeenex 3 жыл бұрын
at 7:11 how do i move the line down but it still continues the line?
@TimberForge
@TimberForge 3 жыл бұрын
Its a setting called word wrap or text wrap, look it up for your editor.
@jacksonmarino3528
@jacksonmarino3528 3 жыл бұрын
I'm getting a bit of a delay whenever I spawn the tnt, it takes a couple seconds before it runs the apply motion. Is there any way to fix this?
@TimberForge
@TimberForge 3 жыл бұрын
Are you sure you are not just lagging? Check your tick speed in the F3 menu, it should be somewhere around 10 or something I think.
@FrogsAreGods
@FrogsAreGods Жыл бұрын
same
@lieutenantgonads
@lieutenantgonads 3 жыл бұрын
I tried using this with an arrow but they always end up barely gaining any motion and just fall to the ground no matter how much I alter the scaling. Any idea what I did wrong? I checked over a few times and to my knowledge I followed the tutorial exactly as presented. After a bit of tinkering with the entity that calls the function I managed to have motion applied, but it only goes straight down really fast now. I thought it could somehow have something to do with the arrow falling a little before motion is applied (I don't see how that would be the case though) which would have an effect on the motion_y2 score so i tried applying the NoGravity tag. That only made it start slowly floating diagonally when it hit the ground. I'm not sure if I'm missing something really small (probably) or if something was changed between updates but I can't get this to work properly now.
@TimberForge
@TimberForge 3 жыл бұрын
The concept should still work. I would try to print the motion data of the arrow periodically at certain points in your functions to constantly check the values so you can see where the issue is- i.e. check if the motion is being calculated incorrectly, scaled incorrectly, or if the arrow isn’t moving how you expect it to move even though the motion data at the time of moving is correct.
@lieutenantgonads
@lieutenantgonads 3 жыл бұрын
@@TimberForge Thanks for the suggestion. After a little bit of playing around I managed to find the source of my problem. The way I had the function's call set up was flawed and caused it to target the wrong entity which made each arrow start essentially teleport to the ground.
@TimberForge
@TimberForge 3 жыл бұрын
👍🏻
@sofiechernyak4682
@sofiechernyak4682 3 жыл бұрын
How do I make throwable entities but I can launch them from a bow model?
@NewKiddo3
@NewKiddo3 3 жыл бұрын
idk if that helps but you can make an invisible armor stand which is holding a bow and then use that entity as a starting point for your "throwable entitie". Idk if that helps
@upgradr
@upgradr 3 жыл бұрын
It's just spawning pigs in the direction i'm facing for me :/ any help?
@TimberForge
@TimberForge 3 жыл бұрын
It might just be thst the scale value is too low when you apply the motion again. If not: Go through each step and verify you selected the right scoreboards and made sure to change the x and y and zs for all of them. And also display the scoreboards the whole time so you can see if the values are being stores and subtracted correctly.
@upgradr
@upgradr 3 жыл бұрын
@@TimberForge , I don't think the apply motion function is being called, as the scores aren't changing. I tried to fix it by changing @s to @e[tag=motion_projectile] because I thought it might not know what the entity executing the command was, but it didn't work.
@TimberForge
@TimberForge 3 жыл бұрын
Join the discord and send the commands ur using to run the motion command. You can test if its running by putting a say or set block command. Or check if it autofills when you type /function.
@amosp9411
@amosp9411 3 жыл бұрын
Is it possible to make a snow golem shoot ghast balls?
@TimberForge
@TimberForge 3 жыл бұрын
Yeah just make the function run on snow golems
@amosp9411
@amosp9411 3 жыл бұрын
@@TimberForge okies
@-bakataka8436
@-bakataka8436 3 жыл бұрын
I've been trying for a few hours to get this working properly, but I keep running into one big issue that I can't fix. Everything else works correctly, but there's a delay for the teleport on the entity in apply_motion.mcfunction, which means the entity stays at the starting location for a second before suddenly correcting its position and teleporting to where it should be after the motion is applied. Is anyone else having this problem, and if so have you found a fix for it?
@-bakataka8436
@-bakataka8436 3 жыл бұрын
Here's a short video showing what I'm talking about: kzbin.info/www/bejne/d5uvdqtvop2sa9k
@HarpanW
@HarpanW Жыл бұрын
same problem here, but not for falling blocks, they work fine.
@HarpanW
@HarpanW Жыл бұрын
found solution in the comments: SwitchCubed 4 months ago After fiddling around with Zafalron's solution, I found a way to fix the issue with minimum commands. Create a new function file. Let's call it "update.mcfunction" After the final line "tag @s add motion_added", add this line: ------------------------------------------------------------------------------------------------------------ schedule function YourDatapackName:update 2t ------------------------------------------------------------------------------------------------------------ This will run "update.mcfunction" 1/10th of a second after your projectile spawns. Trying to update the projectile sooner than 2 ticks will do nothing. In your "update.mcfunction" file, add these lines: ------------------------------------------------------------------------------------------------------------ execute as @e[tag=motion_added, tag=!updated] run data modify entity @s NoGravity set value True execute as @e[tag=motion_added, tag=!updated] run data modify entity @s NoGravity set value False execute as @e[tag=motion_added, tag=!updated] run tag @s add updated ------------------------------------------------------------------------------------------------------------ This should force the snowball's graphical position to update. You can use another file too if you want to avoid running the execute as command 3 times, but for simplicity this is fine
@starape2173
@starape2173 3 жыл бұрын
sorry but, this does not work. the entity just teleports a little but doesnt do the smooth movement. just teleports
@fredberr2887
@fredberr2887 2 жыл бұрын
Ultra mega horosh
@youssefextra7640
@youssefextra7640 3 жыл бұрын
Laik ٨
@pwerry1045
@pwerry1045 3 жыл бұрын
Is it normal that I have lag if I summon the tnt
EASY Custom CRAFTING TABLE Tutorial || Minecraft 1.16 Data Packs
11:45
Minecraft Right Click Detection [1.19] Several Ways
13:11
Legitimoose
Рет қаралды 135 М.
МАИНКРАФТ В РЕАЛЬНОЙ ЖИЗНИ!🌍 @Mikecrab
00:31
⚡️КАН АНДРЕЙ⚡️
Рет қаралды 41 МЛН
Angry Sigma Dog 🤣🤣 Aayush #momson #memes #funny #comedy
00:16
ASquare Crew
Рет қаралды 51 МЛН
Bike Vs Tricycle Fast Challenge
00:43
Russo
Рет қаралды 71 МЛН
Player made Command Block Creations are Next Level...
11:39
TheDerpyWhale
Рет қаралды 616 М.
Minecraft Data Command [1.19] Tutorial
9:05
Legitimoose
Рет қаралды 160 М.
Minecraft /execute if PREDICATE [1.19] Command Tutorial
8:20
Legitimoose
Рет қаралды 105 М.
I Made the Trial Chambers MASSIVE
24:12
CodeNeon
Рет қаралды 155 М.
Minecraft Can IMPROVE 1.21 If They Do this
34:42
ibxtoycat
Рет қаралды 73 М.
I Built a GRAPPLING HOOK in Minecraft
10:11
mysticat
Рет қаралды 3,5 МЛН
How to use Interaction Entities in Minecraft
7:03
Cloud Wolf
Рет қаралды 36 М.
МАИНКРАФТ В РЕАЛЬНОЙ ЖИЗНИ!🌍 @Mikecrab
00:31
⚡️КАН АНДРЕЙ⚡️
Рет қаралды 41 МЛН