your current location:首页 > news>Define the original MC/other modules as a chair (NZPIGEON Chairs) Minecraft Game

Define the original MC/other modules as a chair (NZPIGEON Chairs) Minecraft Game

2024-12-10 17:58:41|Myriagame |source:minecraft skins

If you want to use this ability, you need to understand the concept of JSON.

In the jar package of the module file, find the chair_blocks.json file and modify it.

* After the file is modified, it must be updated to the module's jar package to recognize. If it is a serving owner or multi -person online player, you also need to synchronize the modified module to your client or friend.

Chair_blocks.json default content:

 {{

"Chairs_id": {

}

}

Copy code

The key (key) contained in the root object:

chairs_id

Value is several key values ​​pairs.The name of each key is the ID of a square.

Custom Chair_blocks.json Example:

 {{

"Chairs_id": {

"Minecraft: oak_plank": {

"SIT_POS": [0.75,0.5,0.5]

}

}

}

Copy code

There are the following key values ​​under the ID of each block:

sit_pos

The value is a array with a length of 3, which is used to define the relative coordinates you sit on the chair.The order is x, y, and z.

The coordinates of the block can see the schematic diagram at the end of the article, and the high axis Y in the schematic diagram is not expressed.

The value of the coordinates does not have a limited range, but it is best in the interval [0,1].

0 ~ 1 means that your position in this block can be understood as 0%~ 100%.It should be written as 0.5 (square center).

After completing these, right -click the corresponding block in the game, you should be able to sit up (the chair in the example diagram comes from: XKDECO's decorative module).

This is the reference example of the coordinate axis (Blockbench editing interface):