4

Adding .0 to scoreboard objective

keenest's Avatar keenest2/24/20 12:14 pm
4 emeralds 116 2
2/25/2020 9:45 am
keenest's Avatar keenest
I'm making a carrot on a stick that shoots an arrow in the direction you are looking using command blocks. I stored the coordinates of the player and spawned an aoe cloud a few blocks in front of the player using the new ^ ^ ^ and stored its coordinates as well. To get the direction the player is facing I subtracted the aoe cloud's coordinates from the player's and stored it as three separate objectives that I named xb, yb, and zb. Now I thought I could just summon an arrow with a motion tag and put in xb, yb, and zb but when I tried it the arrow didn't go anywhere. I've tried manually summoning an arrow with the motion tags 0,0,-1 and the arrow didn't go anywhere, however, when I added .0 to every value (0.0,0.0,-1.0) it flew as it should. I tried to add 0.0 to the objectives using commands but it didn't let me do it.

Help would be greatly appreciated. Thanks in advance!
Posted by keenest's Avatar
keenest
Level 1 : New Crafter
0

Create an account or sign in to comment.

2

1
02/25/2020 4:12 amhistory
Level 51 : Grandmaster Blob
HoboMaggot
HoboMaggot's Avatar
I actually want to know this for direction based motion (used as leaping for mobs) like this https://www.youtube.com/watch?v=Df75vdRs7y4




If no one answers here, try using the main Minecraft Commands discord.
https://discordapp.com/invite/9wNcfsH

If you don't have time to talk to people try the reddit forum the discord server is from
https://www.reddit.com/r/MinecraftCommands/
2
02/25/2020 9:45 am
Level 1 : New Crafter
keenest
keenest's Avatar
That's a really cool video! I didn't know about the commands discord, will check it out.

Thanks a lot!
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome