your current location:首页 > news>How to define the desired Tibetan treasure bag, not many, but enough to use the Treasure Bags Minecraft Game

How to define the desired Tibetan treasure bag, not many, but enough to use the Treasure Bags Minecraft Game

2024-12-09 18:32:25|Myriagame |source:minecraft skins

This tutorial is set by the author to use the CC by-NC protocol.

Open the module in the form of a compressed package, in Data/Treasurebags/Treasurebags_Types, or use OpenLoader modules to add a Tibetan treasure bag you want to add.

Create a new TXT file and rename it to the Tibetan treasure bag code you need, and the suffix is ​​changed to JSON, for example, ore.json.

 {{

"Group": "Kit1",

"Entryname": "ol_bag",

"DisplayName": {

"Text": "Selection of minerals",

"Color": "#99ffff"

},

"LOTTABLE": "TRASUREBAGS: BAGS/ORE",

"Rarity": "Uncommon",

"Bagcolor": "#EE4000",

"BagoverlayColor": "#FFFF00",

"BagstringColor": "#FF3030",

"Dropsfromgroups": []

}

The first line of Group said that you want to add a group. Generally speaking, default is disabled, so as long as it is not default.

Entryname in the second line states that the exclusive label of this treasure bag is generally used in the dolls of treasure bags. For example, when you want a Tibetan treasure bag, you can send another Tibetan treasure bag.Let's talk about it later.

DisplayName in the third line indicates the name of the Tibetan treasure bag in the game.The following color is the color of the font, using 16 -bit color coding, this self -on Baidu.

Lottable in the eighth line represents the torrent table of this Tibetan treasure bag. Treasurebags represents the data packet ID, BAGS indicates type, os represents the name of the loot table.

Rarity in the ninth line said the drop rate of this Tibetan treasure bag is divided into common, uncommon, rare, epic, the less drop rate.

The tenth to twelve lines are the main color of the Tibetan treasure bag, the color of the middle circle, and the color of the bundle rope

Commonly used colors: #FFFFFF is white,#FF0000 is red,#FFFF00 is yellow,#00FF00 is green.

The thirteenth line is the last line, indicating that the specific group of the Tibetan treasure bag dropped, and the empty was dropped.The author provides four groups, BOSS, Hostile, Player, Peaceful.Generally do not need to be filled.

When you determine the style of the Tibetan treasure bag, you have not found any drop when you enter the game. This is because you did not put the corresponding treasure table for the corresponding treasure bag.

Open Data/Treasurebags/Loot_tables and you will find two folders.BAGS is a fighter table, and Entity_group is a specific group, and you can increase the drop group you want.

Similar to the above, in the BAGS folder, a new TXT file is created, the rename is ORE (here it corresponds to the aforementioned table name name), the suffix is ​​json, and the results are ore.json.

 {{

"Type": "Minecraft: Gift",

"POOLS": [{{

"Rolls": {{

"Min": 2.0,

"Max": 4

},

"ENTRIES": [[

{{

"Type": "Minecraft: Item",

"Weight": 100,

"Name": "Minecraft: Iron_ore",

"Functions": [[

{{

"Function": "Minecraft: set_count",

"Count": {

"Min": 6,

"Max": 18

}

}

]

},

{{

"Type": "Minecraft: Item",

"Weight": 80,

"Name": "Minecraft: GOLD_ORE",,

"Functions": [[

{{

"Function": "Minecraft: set_count",

"Count": {

"Min": 4,

"Max": 16

}

}]

}

]

}

]

}

This is a link that is easy to turn over. Be sure to pay attention to the format. It is recommended that the next software such as notepada, which comes with the format for easy inspection.

The format does not have the requirements for indentation, but remember that the brackets and the brackets must be paired. If the next instruction is not the last one in the bracket, the instruction must finally bring English commas.

Let's talk about the initial format first:

 {// Here is the comment, pay attention to the case

"Type": "Minecraft: Gift", // Type default Minecraft: Gift

"Pools": // pools indicate the torrential reward pool

[

{{

"rolls": 1, // rolls indicate how many are extracted from the following troops, which can be a fixed integer, or {"min": 1, "max": 3} indicate one minimum of 1, up to 3 draws, up to 3, 3, 3, up to 3Remember to return

"Entries": // indicate war information information

[

{{

// Fill in detailed loot information here, and see the content in it below

}, {

// This is the second loot information, separate with a comma between each information

}

]

}

]

}

Then there is a single loot reward

 {// Here is the following, detailed content

"Type": "Minecraft: Item", // Type represents the reward type, you can fill in Minecraft: Item or item

"Weight": 100, // Weight means weight, the total weight is not limited, but it is not recommended to be too high.The higher the higher the easier it is to get

"Name": "Minecraft: IRON_ORE", // The name of the item, press f3+h to view in the game

"Functions": [// Functions indicates more editing operations of the reward, such as quantity, name, etc.

{{

"Function": "Minecraft: set_count", // Function, there is no S here, pay attention.set_count represents the set number."Count": {// Count the same as rolls above can be an integer or within a range.

"Min": 6,

"Max": 18

},

{{

"Function": "Minecraft: set_name", // set_name represents a specific name.It is the same as renamed on the anvil.

"Entity": "This",

"Name": {

"Text": "This is an iron ore", // here means the specific name."Color": "#99ffff",

"Italic": false // indicates whether the font is oblique body

}

},

{{

"Function": "Minecraft: set_lore", // indicates the annotation of the item

"Entity": "This",

"Lore": [

{{

"Text": "Not the iron ore dug from the ground", // The content of the item "color": "#ffffff",

"Italic": false

}

]

},

{{

"Function": "Minecraft: set_nbt", // Set the item nbt

"Tag": "{enchantments: [{lvl: 1, id: 'mincrft: protective'}]}" // Set enchantment protection with level 1.Specific NBT settings self -query.

}

}

]

}

The above is a simple setting of the loot table. As long as you copy and paste, you can complete most of the content. Finally, remember to check the format!

Then it is relatively advanced. I want to make a pack of baby treasure bags. What do I do?

The content of the loot table will change a little.

 {{

"Entryname": "ol_bag",

"Type": "Item",

"Weight": 1,

"Name": "treasurebags: treasure_bag",

"Functions": [[

{{

"Function": "Minecraft: set_count",

"Count": 1

},

{{

"Function": "Treasurebags: set_bag_type",, "

"Type": "Treasurebags: Ore"}

]

}

Because Tibetan treasure bags use NBT to distinguish different treasure bags, which is similar to the sword.

So the Tibetan treasure bag you sent is the original item by default. You need to enter a entryname to help the module to identify this Tibetan treasure bag. At the same time, you also need to set a Tibetan treasure bag type for the Tibetan treasure bag.The rest is the same as the general torrential products, and it will not be expanded in detail.

In the end, the author also left a pit, saying that it can be synthesized between Tibetan treasurebags, and there can be formulas and no formulas.

Where did the JSON file find the formula, I hope someone can tell me.