your current location:首页 > news>The configuration tutorial of the module (novice) MineCraft Game

The configuration tutorial of the module (novice) MineCraft Game

2024-12-05 23:05:40|Myriagame |source:minecraft skins

Pre -view

This tutorial is completely prepared by novices. The content of the full tutorial is visual editor without any code foundation.At the same time, please prepare at least one decompression software, such as Bandzip; 7Z and so on.Windows comes with Winrar is not recommended.

Loot configuration

Overview

The loot configuration of this module is completed by the loot table.The loot table is a technical JSON table of MC, which determines the items in the container generated naturally.Modify the war -based table, you can modify each type of this module, each level of airdrop warfare.Generally speaking, modifying the warfare tables can be modified using a packet or invading type.The former is suitable for integrated package producers, and the latter is suitable for ordinary players to play by themselves.

To modify the warfare table with an invasive modification, we first need to use the decompression software to open our module file.

The position of the loot table is: data/dyairdrop/loot_tables/chests

The naming rule of this module is a class+level method.For example, the empty airdrops of the global airdrop event belong to the Largeairdrop type, while the player uses the Smallairdrop type using a signal gun summon.We can see that there are five files in Largeairdrop, which represents five levels.The larger the number, the higher the level.Modify the content in the table, you can replace the loot table.According to the current game's default settings, the airdrops are released every ten days, and each level is upgraded to a total of five levels.

Detailed operation

We just open a file, such as Largeairdrop1.json.We will see a string of code inside, but we don't need to control him.We can use the visual websites to generate a loot table -Minecraft 1.19, 1.20, 1.21 (Misode.github.io) from moving the production of loot table code.Copy the original content and put it in the text box in the lower right corner of the website, and we can see the current loot content.Through the HUD in the upper right corner, we can also see the content display in the loot box intuitively.

On the left, we only need to enter the registered name of the item (using F3+H to see the registered name in the game) to write the content of its own loot table.After the writing is completed, copy the code generated in the lower right corner and replace all the code of the original loot table file (such as: Largeairdrop1.json).Just save the file.Now, if you make great achievements, you can play your custom content module!

NBT configuration

When making a loot watch using NBT instead of registering items (such as the original potion, TACZ firearms), the NBT setting function needs to be used.We can download a JEI extension or Kubejs (input/kubejs hand) to view the NBT of the item.Taking TACZ as an example, we need to use the settings NBT item in the function function.

NBT case

In the NBT column, enter the NBT of the firearm.Let me give an example of a TACZ AWP.As shown in the figure, we can find that the registered name of this gun is (TACZ: Modern_kinetic_gun). In fact, all TAC rifles are the name, and the following string of firearms:

 {guncurrenTamMocount: 5, gunfiremode: "semi", gunid: "tacz: ai_awp", hasbulletinbarrel: 1B} 

Enter this string of NBT in the NBT section, and you can successfully designate an AWP.Once again, the above NBT needs to install Jei extension or Kubejs (input/kubejs hand) to view.

Precautions

The problem of invasive modification is that each module update needs to be modified again. It is recommended to backup the loot files edited by your own editor in advance.If you don't want to replace each time, you need to use a packet.This will be released in the advanced tutorial of this module.