How to use ^^^ coordinate systems for motion nbt (minecraft) Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)How can I summon an entity with motion relative to where I'm facing?How to get a fireball/projectile to shoot in the same direction as the summoning player is looking in 1.13?How to remove specific item from existed minecraft world?How to right click items repeatedly with redstone/command blocks (Minecraft)How to use exclamation marks in Minecraft commands?Minecraft Command Blocks: /testfor command for wearing a player head, then tp/tp Relative CoordinatesMy arrows aren't being executed at by a looping function/command blockteleporting players to ender pearls?Minecraft 1.13: conditionally apply effect when player holds specific itemHow do I add a loot table to an item in a loot table in minecraft?Talking to moving NPCs in Minecraft 1.13 (Java edition)

If A makes B more likely then B makes A more likely"

Area of a 2D convex hull

How does modal jazz use chord progressions?

Biased dice probability question

What was the last x86 CPU that did not have the x87 floating-point unit built in?

Determine whether f is a function, an injection, a surjection

How do I automatically answer y in bash script?

Cold is to Refrigerator as warm is to?

What do you call a plan that's an alternative plan in case your initial plan fails?

Estimate capacitor parameters

Antler Helmet: Can it work?

Blender game recording at the wrong time

What's the point in a preamp?

Notation for two qubit composite product state

What do you call the holes in a flute?

Do we know why communications with Beresheet and NASA were lost during the attempted landing of the Moon lander?

What to do with post with dry rot?

Unexpected result with right shift after bitwise negation

What kind of display is this?

Are my PIs rude or am I just being too sensitive?

Who can trigger ship-wide alerts in Star Trek?

How can players take actions together that are impossible otherwise?

The following signatures were invalid: EXPKEYSIG 1397BC53640DB551

Is there a documented rationale why the House Ways and Means chairman can demand tax info?



How to use ^^^ coordinate systems for motion nbt (minecraft)



Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)How can I summon an entity with motion relative to where I'm facing?How to get a fireball/projectile to shoot in the same direction as the summoning player is looking in 1.13?How to remove specific item from existed minecraft world?How to right click items repeatedly with redstone/command blocks (Minecraft)How to use exclamation marks in Minecraft commands?Minecraft Command Blocks: /testfor command for wearing a player head, then tp/tp Relative CoordinatesMy arrows aren't being executed at by a looping function/command blockteleporting players to ender pearls?Minecraft 1.13: conditionally apply effect when player holds specific itemHow do I add a loot table to an item in a loot table in minecraft?Talking to moving NPCs in Minecraft 1.13 (Java edition)



.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








0















Since we can use ^ ^ ^ for relative coordinates with 1.13 like



/execute as Asaf31214 run summon lightning_bolt ^ ^ ^10


(Summons a lightning at 10 blocks from me to the direction I look. By the way, first part is how many blocks to left, second is up and third is how far from you, if you see this function for first time. It is just like cylindrical coordinates at science.)



I tried to write a command that throws a TNT out of me to the direction i want. It was supposed to be:



/summon tnt ^ ^1 ^10 //1 block up and 10 block forward// Fuse:50,Motion[^0,^1,^10] 


if I don't use ^ it will throw the TNT to constant x direction. But it gives an error if I use it with new ^ coordinate system.



Can you explain me how to do this? I guess this coordinate system isn't fully useful yet since it is brand new, and this can be impossible for now.










share|improve this question






























    0















    Since we can use ^ ^ ^ for relative coordinates with 1.13 like



    /execute as Asaf31214 run summon lightning_bolt ^ ^ ^10


    (Summons a lightning at 10 blocks from me to the direction I look. By the way, first part is how many blocks to left, second is up and third is how far from you, if you see this function for first time. It is just like cylindrical coordinates at science.)



    I tried to write a command that throws a TNT out of me to the direction i want. It was supposed to be:



    /summon tnt ^ ^1 ^10 //1 block up and 10 block forward// Fuse:50,Motion[^0,^1,^10] 


    if I don't use ^ it will throw the TNT to constant x direction. But it gives an error if I use it with new ^ coordinate system.



    Can you explain me how to do this? I guess this coordinate system isn't fully useful yet since it is brand new, and this can be impossible for now.










    share|improve this question


























      0












      0








      0








      Since we can use ^ ^ ^ for relative coordinates with 1.13 like



      /execute as Asaf31214 run summon lightning_bolt ^ ^ ^10


      (Summons a lightning at 10 blocks from me to the direction I look. By the way, first part is how many blocks to left, second is up and third is how far from you, if you see this function for first time. It is just like cylindrical coordinates at science.)



      I tried to write a command that throws a TNT out of me to the direction i want. It was supposed to be:



      /summon tnt ^ ^1 ^10 //1 block up and 10 block forward// Fuse:50,Motion[^0,^1,^10] 


      if I don't use ^ it will throw the TNT to constant x direction. But it gives an error if I use it with new ^ coordinate system.



      Can you explain me how to do this? I guess this coordinate system isn't fully useful yet since it is brand new, and this can be impossible for now.










      share|improve this question
















      Since we can use ^ ^ ^ for relative coordinates with 1.13 like



      /execute as Asaf31214 run summon lightning_bolt ^ ^ ^10


      (Summons a lightning at 10 blocks from me to the direction I look. By the way, first part is how many blocks to left, second is up and third is how far from you, if you see this function for first time. It is just like cylindrical coordinates at science.)



      I tried to write a command that throws a TNT out of me to the direction i want. It was supposed to be:



      /summon tnt ^ ^1 ^10 //1 block up and 10 block forward// Fuse:50,Motion[^0,^1,^10] 


      if I don't use ^ it will throw the TNT to constant x direction. But it gives an error if I use it with new ^ coordinate system.



      Can you explain me how to do this? I guess this coordinate system isn't fully useful yet since it is brand new, and this can be impossible for now.







      minecraft






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited 12 mins ago









      MBraedley

      13.3k1786136




      13.3k1786136










      asked Oct 13 '18 at 13:11









      Asaf31214Asaf31214

      32




      32




















          1 Answer
          1






          active

          oldest

          votes


















          0














          Just like you can't use relative coordinates with ~ in NBT, you also can't use relative coordinates with ^. What you can do instead is getting both your and the TNT's position and subtracting it to get a momentum.



          For the position, you can use the NBT tag "Pos", because that can be read with data get. The rest is pretty straightforward, just putting Pos NBT into scoreboards, applying an operation to it and putting it back into NBT, this time Motion.



          Preparation:



          scoreboard objectives add x dummy
          scoreboard objectives add y dummy
          scoreboard objectives add z dummy


          When you want to activate it:



          execute as @p at @s run summon tnt ^ ^ ^1 Fuse:80
          execute as @e[type=tnt,tag=toMove] store result score @s x run data get entity @s Pos[0] 10
          execute as @e[type=tnt,tag=toMove] store result score @s y run data get entity @s Pos[1] 10
          execute as @e[type=tnt,tag=toMove] store result score @s z run data get entity @s Pos[2] 10
          execute as @p store result score @s x run data get entity @s Pos[0] 10
          execute as @p store result score @s y run data get entity @s Pos[1] 10
          execute as @p store result score @s z run data get entity @s Pos[2] 10
          scoreboard players operation @e[type=tnt,tag=toMove] x -= @p x
          scoreboard players operation @e[type=tnt,tag=toMove] y -= @p y
          scoreboard players operation @e[type=tnt,tag=toMove] z -= @p z
          execute as @e[type=tnt,tag=toMove] store result entity @s Motion[0] double 0.1 run scoreboard players get @s x
          execute as @e[type=tnt,tag=toMove] store result entity @s Motion[1] double 0.1 run scoreboard players get @s y
          execute as @e[type=tnt,tag=toMove] store result entity @s Motion[2] double 0.1 run scoreboard players get @s z


          This works for multiple TNTs at once, but not yet for multiple players. If you want to use it in multiplayer, you have to replace @p with your selector and probably also use tags for them.






          share|improve this answer























            Your Answer








            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "41"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: false,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            imageUploader:
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            ,
            noCode: true, onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













            draft saved

            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgaming.stackexchange.com%2fquestions%2f339637%2fhow-to-use-coordinate-systems-for-motion-nbt-minecraft%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            Just like you can't use relative coordinates with ~ in NBT, you also can't use relative coordinates with ^. What you can do instead is getting both your and the TNT's position and subtracting it to get a momentum.



            For the position, you can use the NBT tag "Pos", because that can be read with data get. The rest is pretty straightforward, just putting Pos NBT into scoreboards, applying an operation to it and putting it back into NBT, this time Motion.



            Preparation:



            scoreboard objectives add x dummy
            scoreboard objectives add y dummy
            scoreboard objectives add z dummy


            When you want to activate it:



            execute as @p at @s run summon tnt ^ ^ ^1 Fuse:80
            execute as @e[type=tnt,tag=toMove] store result score @s x run data get entity @s Pos[0] 10
            execute as @e[type=tnt,tag=toMove] store result score @s y run data get entity @s Pos[1] 10
            execute as @e[type=tnt,tag=toMove] store result score @s z run data get entity @s Pos[2] 10
            execute as @p store result score @s x run data get entity @s Pos[0] 10
            execute as @p store result score @s y run data get entity @s Pos[1] 10
            execute as @p store result score @s z run data get entity @s Pos[2] 10
            scoreboard players operation @e[type=tnt,tag=toMove] x -= @p x
            scoreboard players operation @e[type=tnt,tag=toMove] y -= @p y
            scoreboard players operation @e[type=tnt,tag=toMove] z -= @p z
            execute as @e[type=tnt,tag=toMove] store result entity @s Motion[0] double 0.1 run scoreboard players get @s x
            execute as @e[type=tnt,tag=toMove] store result entity @s Motion[1] double 0.1 run scoreboard players get @s y
            execute as @e[type=tnt,tag=toMove] store result entity @s Motion[2] double 0.1 run scoreboard players get @s z


            This works for multiple TNTs at once, but not yet for multiple players. If you want to use it in multiplayer, you have to replace @p with your selector and probably also use tags for them.






            share|improve this answer



























              0














              Just like you can't use relative coordinates with ~ in NBT, you also can't use relative coordinates with ^. What you can do instead is getting both your and the TNT's position and subtracting it to get a momentum.



              For the position, you can use the NBT tag "Pos", because that can be read with data get. The rest is pretty straightforward, just putting Pos NBT into scoreboards, applying an operation to it and putting it back into NBT, this time Motion.



              Preparation:



              scoreboard objectives add x dummy
              scoreboard objectives add y dummy
              scoreboard objectives add z dummy


              When you want to activate it:



              execute as @p at @s run summon tnt ^ ^ ^1 Fuse:80
              execute as @e[type=tnt,tag=toMove] store result score @s x run data get entity @s Pos[0] 10
              execute as @e[type=tnt,tag=toMove] store result score @s y run data get entity @s Pos[1] 10
              execute as @e[type=tnt,tag=toMove] store result score @s z run data get entity @s Pos[2] 10
              execute as @p store result score @s x run data get entity @s Pos[0] 10
              execute as @p store result score @s y run data get entity @s Pos[1] 10
              execute as @p store result score @s z run data get entity @s Pos[2] 10
              scoreboard players operation @e[type=tnt,tag=toMove] x -= @p x
              scoreboard players operation @e[type=tnt,tag=toMove] y -= @p y
              scoreboard players operation @e[type=tnt,tag=toMove] z -= @p z
              execute as @e[type=tnt,tag=toMove] store result entity @s Motion[0] double 0.1 run scoreboard players get @s x
              execute as @e[type=tnt,tag=toMove] store result entity @s Motion[1] double 0.1 run scoreboard players get @s y
              execute as @e[type=tnt,tag=toMove] store result entity @s Motion[2] double 0.1 run scoreboard players get @s z


              This works for multiple TNTs at once, but not yet for multiple players. If you want to use it in multiplayer, you have to replace @p with your selector and probably also use tags for them.






              share|improve this answer

























                0












                0








                0







                Just like you can't use relative coordinates with ~ in NBT, you also can't use relative coordinates with ^. What you can do instead is getting both your and the TNT's position and subtracting it to get a momentum.



                For the position, you can use the NBT tag "Pos", because that can be read with data get. The rest is pretty straightforward, just putting Pos NBT into scoreboards, applying an operation to it and putting it back into NBT, this time Motion.



                Preparation:



                scoreboard objectives add x dummy
                scoreboard objectives add y dummy
                scoreboard objectives add z dummy


                When you want to activate it:



                execute as @p at @s run summon tnt ^ ^ ^1 Fuse:80
                execute as @e[type=tnt,tag=toMove] store result score @s x run data get entity @s Pos[0] 10
                execute as @e[type=tnt,tag=toMove] store result score @s y run data get entity @s Pos[1] 10
                execute as @e[type=tnt,tag=toMove] store result score @s z run data get entity @s Pos[2] 10
                execute as @p store result score @s x run data get entity @s Pos[0] 10
                execute as @p store result score @s y run data get entity @s Pos[1] 10
                execute as @p store result score @s z run data get entity @s Pos[2] 10
                scoreboard players operation @e[type=tnt,tag=toMove] x -= @p x
                scoreboard players operation @e[type=tnt,tag=toMove] y -= @p y
                scoreboard players operation @e[type=tnt,tag=toMove] z -= @p z
                execute as @e[type=tnt,tag=toMove] store result entity @s Motion[0] double 0.1 run scoreboard players get @s x
                execute as @e[type=tnt,tag=toMove] store result entity @s Motion[1] double 0.1 run scoreboard players get @s y
                execute as @e[type=tnt,tag=toMove] store result entity @s Motion[2] double 0.1 run scoreboard players get @s z


                This works for multiple TNTs at once, but not yet for multiple players. If you want to use it in multiplayer, you have to replace @p with your selector and probably also use tags for them.






                share|improve this answer













                Just like you can't use relative coordinates with ~ in NBT, you also can't use relative coordinates with ^. What you can do instead is getting both your and the TNT's position and subtracting it to get a momentum.



                For the position, you can use the NBT tag "Pos", because that can be read with data get. The rest is pretty straightforward, just putting Pos NBT into scoreboards, applying an operation to it and putting it back into NBT, this time Motion.



                Preparation:



                scoreboard objectives add x dummy
                scoreboard objectives add y dummy
                scoreboard objectives add z dummy


                When you want to activate it:



                execute as @p at @s run summon tnt ^ ^ ^1 Fuse:80
                execute as @e[type=tnt,tag=toMove] store result score @s x run data get entity @s Pos[0] 10
                execute as @e[type=tnt,tag=toMove] store result score @s y run data get entity @s Pos[1] 10
                execute as @e[type=tnt,tag=toMove] store result score @s z run data get entity @s Pos[2] 10
                execute as @p store result score @s x run data get entity @s Pos[0] 10
                execute as @p store result score @s y run data get entity @s Pos[1] 10
                execute as @p store result score @s z run data get entity @s Pos[2] 10
                scoreboard players operation @e[type=tnt,tag=toMove] x -= @p x
                scoreboard players operation @e[type=tnt,tag=toMove] y -= @p y
                scoreboard players operation @e[type=tnt,tag=toMove] z -= @p z
                execute as @e[type=tnt,tag=toMove] store result entity @s Motion[0] double 0.1 run scoreboard players get @s x
                execute as @e[type=tnt,tag=toMove] store result entity @s Motion[1] double 0.1 run scoreboard players get @s y
                execute as @e[type=tnt,tag=toMove] store result entity @s Motion[2] double 0.1 run scoreboard players get @s z


                This works for multiple TNTs at once, but not yet for multiple players. If you want to use it in multiplayer, you have to replace @p with your selector and probably also use tags for them.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Oct 14 '18 at 15:01









                Fabian RölingFabian Röling

                6,45431340




                6,45431340



























                    draft saved

                    draft discarded
















































                    Thanks for contributing an answer to Arqade!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid


                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.

                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgaming.stackexchange.com%2fquestions%2f339637%2fhow-to-use-coordinate-systems-for-motion-nbt-minecraft%23new-answer', 'question_page');

                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Isurus Índice Especies | Notas | Véxase tamén | Menú de navegación"A compendium of fossil marine animal genera (Chondrichthyes entry)"o orixinal"A review of the Tertiary fossil Cetacea (Mammalia) localities in wales port taf Museum Victoria"o orixinalThe Vertebrate Fauna of the Selma Formation of Alabama. Part VII. Part VIII. The Mosasaurs The Fishes50419737IDsh85068767Isurus2548834613242066569678159923NHMSYS00210535017845105743

                    Wolfenstein 3D Contents Availability Essential improvements Game data Video settings Input settings Audio settings Network VR support Issues fixed Other information System requirements NotesReferences    3D Realms Wolfenstein 3D pageGOG.com Community DiscussionsGOG.com Support PageSteam Community DiscussionsWolfenstein WikiOfficial websiteAmazon.comBethesda.netGamersGateGOG.comGreen Man GamingHumble StoreSteamweb browser versionWolfenstein 3D: Super UpgradesherehereUltraWolfhereWolfMenuECWolf Wolf4SDL WolfGL WinWolf3d NewWolf BetterWolf Sprite Fix and Rotation Project    Wolfenstein 3D VRSplitWolfWolfenstein 3D VRWolfenstein 3D VRWolfenstein 3D VR4DOS command shellFreeDOS's MORE.COMMacBin themthis shim fileWine regeditRELEASE: QUAKE II + III, WOLFENSTEIN 3D, RETURN TO CASTLE WOLFENSTEIN - GOG.com NewsMac Family - Wolfenstein Wiki - WikiaNerdly Pleasures: How many FPS? - DOS Games and Framerates

                    Король Коль Исторические данные | Стихотворение | Примечания | Навигацияверсии1 правкаверсии1 правкаA New interpretation of the 'Artognou' stone, TintagelTintagel IslandАрхивировано