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

Floor values in storage decimal types - Command - /data /execute

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: 1.15.2
    • Fix Version/s: None
    • Labels:
      None
    • Confirmation Status:
      Plausible
    • Category:
      Commands

      Description

      Hello !

       

      When I try to store decimal informations like player position, with the following command :

      /execute store result storage minecraft:test PosX double 1 run data get entity @p Pos[0] ;

      the storage value is the floor of the taken value. I see that with the following command :

      /data get storage test PosX .

      I got 33.931265216151d for the first one and 33.0d for the second.

      I have this problem for these types : double ; float

       

      Thanks a lot !

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            Tchooki G.
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              CHK: