Translations:Modding:Content Tutorial Simple Item/27/en: Difference between revisions

From Vintage Story Wiki
(Importing a new version from external source)
 
(No difference)

Latest revision as of 13:14, 28 March 2024

Information about message (contribute)
This message has no documentation. If you know where or how this message is used, you can help other translators by adding documentation to this message.
Message definition (Modding:Content Tutorial Simple Item)
To transform your wand correctly, add the following properties. Don't forget to add a comma after the final curly bracket on the previous shape element.<syntaxhighlight lang="json">
"guiTransform": {
   "translation": {
     "x": 0,
     "y": 0,
     "z": 0
   },
   "rotation": {
     "x": -89,
     "y": 41,
     "z": 33
   },
   "origin": {
     "x": 0.48,
     "y": 0,
     "z": 0.38
   },
   "scale": 1.78
  },
"groundTransform": {
   "translation": {
     "x": 0,
     "y": 0,
     "z": 0
   },
   "rotation": {
     "x": 0,
     "y": 0,
     "z": 0
   },
   "origin": {
     "x": 0.5,
     "y": 0,
     "z": 0.5
   },
   "scale": 3.4
  },
"tpHandTransform": {
   "translation": {
     "x": -0.45,
     "y": 0.03,
     "z": -0.66
   },
   "rotation": {
     "x": 90,
     "y": 0,
     "z": 0
   },
   "origin": {
     "x": 0.5,
     "y": 0,
     "z": 0.5
   },
   "scale": 0.8
  }
</syntaxhighlight>To see if the changes are correct, you can simply reload the world. Hopefully, if everything worked correctly, you should find that your wand now fits better in the player's hand, as well as appearing in the gui more appropriately.

To transform your wand correctly, add the following properties. Don't forget to add a comma after the final curly bracket on the previous shape element.

"guiTransform": {
    "translation": {
      "x": 0,
      "y": 0,
      "z": 0
    },
    "rotation": {
      "x": -89,
      "y": 41,
      "z": 33
    },
    "origin": {
      "x": 0.48,
      "y": 0,
      "z": 0.38
    },
    "scale": 1.78
  },
"groundTransform": {
    "translation": {
      "x": 0,
      "y": 0,
      "z": 0
    },
    "rotation": {
      "x": 0,
      "y": 0,
      "z": 0
    },
    "origin": {
      "x": 0.5,
      "y": 0,
      "z": 0.5
    },
    "scale": 3.4
  },
"tpHandTransform": {
    "translation": {
      "x": -0.45,
      "y": 0.03,
      "z": -0.66
    },
    "rotation": {
      "x": 90,
      "y": 0,
      "z": 0
    },
    "origin": {
      "x": 0.5,
      "y": 0,
      "z": 0.5
    },
    "scale": 0.8
  }

To see if the changes are correct, you can simply reload the world. Hopefully, if everything worked correctly, you should find that your wand now fits better in the player's hand, as well as appearing in the gui more appropriately.