User Tools

Site Tools


mtr_addon:nte:js:eyecandy

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
mtr_addon:nte:js:eyecandy [2024/02/08 08:36] – created lx862mtr_addon:nte:js:eyecandy [2025/07/16 13:20] (current) – Fix typo lx862
Line 22: Line 22:
 In general, the parameters are the same as those required for regular decoration object json for NTE, except for the ''scriptFiles'' parameter. In general, the parameters are the same as those required for regular decoration object json for NTE, except for the ''scriptFiles'' parameter.
  
-If the ''model'' parameter is not specified, the JavaScript-driven elements will be overlaid on top of the existing model. Otherwise, the appearance will be controlled solely by JavaScript.+If the ''model'' parameter is specified, the JavaScript-driven elements will be overlaid on top of the existing model. Otherwise, the appearance will be controlled solely by JavaScript.
  
 ^ Parameter ^ Description ^ ^ Parameter ^ Description ^
Line 85: Line 85:
 ^ Functions And Objects ^ Description ^ ^ Functions And Objects ^ Description ^
 | ''blockEntity.prefabId: string'' | The id of the assigned decoration object, ''null'' if the decoration object does not have any decoration object assigned | | ''blockEntity.prefabId: string'' | The id of the assigned decoration object, ''null'' if the decoration object does not have any decoration object assigned |
-| ''blockEntity.translateX: float'' | The value in **meter** on how much the Decoration Object is translated on the X-axis, this is configured via the GUI on NTE. | +| ''blockEntity.translateX: float'' | The value in **meters** on how much the Decoration Object is translated on the X-axis, this is configured via the GUI on NTE. | 
-| ''blockEntity.translateY: float'' | The value in **meter** on how much the Decoration Object is translated on the Y-axis, this is configured via the GUI on NTE. | +| ''blockEntity.translateY: float'' | The value in **meters** on how much the Decoration Object is translated on the Y-axis, this is configured via the GUI on NTE. | 
-| ''blockEntity.translateZ: float'' | The value in **meter** on how much the Decoration Object is translated on the Z-axis, this is configured via the GUI on NTE. | +| ''blockEntity.translateZ: float'' | The value in **meters** on how much the Decoration Object is translated on the Z-axis, this is configured via the GUI on NTE. | 
-| ''blockEntity.rotateX: float'' | The value in **radian** on how much the Decoration Object is rotated on the X-axis, this is configured via the GUI on NTE. | +| ''blockEntity.rotateX: float'' | The value in **radians** on how much the Decoration Object is rotated on the X-axis, this is configured via the GUI on NTE. | 
-| ''blockEntity.rotateY: float'' | The value in **radian** on how much the Decoration Object is rotated on the Y-axis, this is configured via the GUI on NTE. | +| ''blockEntity.rotateY: float'' | The value in **radians** on how much the Decoration Object is rotated on the Y-axis, this is configured via the GUI on NTE. | 
-| ''blockEntity.rotateZ: float'' | The value in **radian** on how much the Decoration Object is rotated on the Z-axis, this is configured via the GUI on NTE. |+| ''blockEntity.rotateZ: float'' | The value in **radians** on how much the Decoration Object is rotated on the Z-axis, this is configured via the GUI on NTE. |
 | ''blockEntity.fullLight: boolean'' | Whether the Decoration Object is marked as "Full Light", this is configured via the GUI on NTE. | | ''blockEntity.fullLight: boolean'' | Whether the Decoration Object is marked as "Full Light", this is configured via the GUI on NTE. |
  
Line 96: Line 96:
 blockEntity.getBlockPos(): BlockPos blockEntity.getBlockPos(): BlockPos
 </code> </code>
-    * Returns the Minecraft BlockPos of where the block are located in. +    * Returns the Minecraft BlockPos of where the block are located in. (NoteThis is obfuscated by Minecraft, which is only useful for passing value to MTR ClientData
-    * [Translator noteBlockPos seems to be obfuscated by Minecraft, which is only useful for passing value to MTR ClientData]+  * <code javascript> 
 +blockEntity.getWorldPosVector3f(): Vector3f 
 +</code> 
 +    * Returns [[mtr_addon:nte:js:math|NTE's Vector3f]] of where the block are located **(Only in NTE version >= 0.5.0)**
  
  
mtr_addon/nte/js/eyecandy.1707381372.txt.gz · Last modified: 2024/02/08 08:36 by lx862