your current location:首页 > news>1.18.1 The Lost Cities Minecraft Game

1.18.1 The Lost Cities Minecraft Game

2024-12-10 17:51:09|Myriagame |source:minecraft skins

This tutorial is set by the author's setting without permission.

File path: xxxxxx.jar/Assets/LostCities/Citydata/BuildingParts.json

Under the CityData folder, the architectural structure is equipped with configuration files, first talk about the building room.[Recommend NotePad to open]

The production rules of the city in the game generate a building for each block, so it is 16X16, which will generate modules in buildings, roads, and parks.The height of the building is a module per 6th floor

Take an example I edited by myself, and you can see it after opening the file

"Type": "Part", [Don't Move]

"name": "Building4_1", [Code of the building module, don't move]

"XSIZE": 16, [16x16 area, don't move]

"Zsize": 16,

"Slices": [[The focus is below]

Each architectural code corresponds to 6 groups of code. Each group corresponds to the structure of a layer of blocks. There are 16 letters in each line.

From top to bottom in the file corresponding to the 123456 layer of the building in the game

Among the 4 -sided wall of the block code of the 1st and 2nd floor, the AA letter representing the glass in the middle must not be replaced by other blocks. The letter needs to be determined whether to generate the door when generating a building.

-------

File path: xxxxxx.jar/assets/LostCities/CityData/library.json

This file mainly records the type type corresponding to the letters mentioned above

{{

"CHAR": "C", [Letter: Capital C (Note that it is uppercase, here must be distinguished and lowercase)]]

"Block": "Minecraft: Chest", [Corresponding Box: Box]

"LOOT": "Chestloot" [List of Lives]

},

---

"char": "f",

"Blocks": [[[

{{

"Random": 25,

"Block": "Minecraft: Furnace"

},

{{

"Random": 24,

"Block": "Minecraft: Smoker"

},

{{

"Random": 1000,

"Block": "Minecraft: Blast_furnace"

}, The generated block will default to the north by default

You can use the above structure to make the letters into a randomly generated block. The probability of generation is currently testing only the following points.

The sequence of random cubes in the file structure affects the number of types in the list. For example, the probability of a melting furnace has a probability of 25. It will continue to determine the 24 probability of smoking furnaces after it is not generated.

Although the probability of the blast furnace is 25 more than the melting furnace, if this list is added too many squares, it is not necessary to reach the blast furnace according to the above production probability.

You can also add new blocks according to the above structure. Example

{{

"Char": "<",

"Block": "Minecraft: White_bed [Part = Head]" "" "" "" "

},

{{

"Char": ">",,,

"Block": "Minecraft: White_bed [Part = FOOT]" "" "" "" "" ""

},

The code of the bed is added here, which are divided into two parts, the bedside and the end of the bed.It can be generated normally in the game, but there is a problem

Right -click the interaction and then enter the redstone signal will be displayed normally.

Finally, the renderings generated after editing. The first floor is the floor, and the second floor is the structural diagram you see above.