Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-117750

Wired x,dx,y,dy,z,dz behavior while using them with the new function files.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • None
    • Minecraft 1.12 Pre-Release 5
    • None
    • Unconfirmed

      So I the past days I've been trying to make a function that gets you your X coordinate to a scoreboard type dummy and called XC.

      Everything is happening on the pozitive side of the x axis around the 0,4,0 coordinates.

      And in a nushell the the logic behind is corect, so is the implementation.
      And this is what I wrote in the function file:

      summon minecraft:area_effect_cloud 0 0 0 {Duration:1,Tags:["PXC"],Particle:take}
      tp @e[tag=PXC] @p
      scoreboard players set @p XC 0
      
      tp @e[tag=PXC] ~-32 ~ ~
      execute @e[tag=PXC,x=1,dx=64,y=0,dy=256,z=0,dz=64] ~ ~ ~ /scoreboard players add @p XC 32000
      execute @e[tag=PXC,x=0,dx=-64,y=0,dy=256,z=0,dz=64] ~ ~ ~ /tp @e[tag=PXC] ~32 ~ ~
      
      tp @e[tag=PXC] ~-16 ~ ~
      execute @e[tag=PXC,x=1,dx=64,y=0,dy=256,z=0,dz=64] ~ ~ ~ /scoreboard players add @p XC 16000
      execute @e[tag=PXC,x=0,dx=-64,y=0,dy=256,z=0,dz=64] ~ ~ ~ /tp @e[tag=PXC] ~16 ~ ~
      
      tp @e[tag=PXC] ~-8 ~ ~
      execute @e[tag=PXC,x=1,dx=64,y=0,dy=256,z=0,dz=64] ~ ~ ~ /scoreboard players add @p XC 8000
      execute @e[tag=PXC,x=0,dx=-64,y=0,dy=256,z=0,dz=64] ~ ~ ~ /tp @e[tag=PXC] ~8 ~ ~
      
      tp @e[tag=PXC] ~-4 ~ ~
      execute @e[tag=PXC,x=1,dx=64,y=0,dy=256,z=0,dz=64] ~ ~ ~ /scoreboard players add @p XC 4000
      execute @e[tag=PXC,x=0,dx=-64,y=0,dy=256,z=0,dz=64] ~ ~ ~ /tp @e[tag=PXC] ~4 ~ ~
      
      tp @e[tag=PXC] ~-2 ~ ~
      execute @e[tag=PXC,x=1,dx=64,y=0,dy=256,z=0,dz=64] ~ ~ ~ /scoreboard players add @p XC 2000
      execute @e[tag=PXC,x=0,dx=-64,y=0,dy=256,z=0,dz=64] ~ ~ ~ /tp @e[tag=PXC] ~2 ~ ~
      
      tp @e[tag=PXC] ~-1 ~ ~
      execute @e[tag=PXC,x=1,dx=64,y=0,dy=256,z=0,dz=64] ~ ~ ~ /scoreboard players add @p XC 4000
      execute @e[tag=PXC,x=0,dx=-64,y=0,dy=256,z=0,dz=64] ~ ~ ~ /tp @e[tag=PXC] ~1 ~ ~
      
      kill @e[tag=PXC]
      

      It generates somekind of strange random numbers....

      I think it's a bug but I really am bother by why it's not working....
      If it's not a bug but you have any kind of clue why it is happening please anounce me

            Unassigned Unassigned
            einstein5 Marcus Rost Leonard
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: