This tutorial is set by the author's setting without permission.
Part of the tutorials for creating the deck comes from Wiki: https://elrol.dev/wiki/cus/cards/info/creating-sets/
Create deck
After installing the module and running the game once, the CustomCards folder appears in the config folder, which contains a test set.json file, which contains the following code.
{{// Number of cards at each level
"Common": 10,
"Uncommon": 8,
"Rare": 5,
"EPIC": 3,
"Medaleffects": [[
{{
// The effect of the Baddi Medal of the Uncle
"Effect": "MINECRAFT: ABSORUTION",
"MOD": 0
},
{{
// Enchanting has the effect of the Baddy Medal of Baddi I promotion I
"Effect": "MINECRAFT: ABSORUTION",
"MOD": 1
},
{{
// The effect of enchantment has the effect of Baddy's Baddy Medal to improve the II medal
"Effect": "MINECRAFT: ABSORUTION",
"MOD": 2
}
],,,
// Your deck name (don't add set, there is set in the default item name)
"Name": "test set"
}
After setting up your deck, the file name is stored as a file name that is not a Test Set.json json file and restarted the game. After that, you can find the default resource package of your card group in the config/openloader/folder/folder.
Modify the material and formula
Add a unified TAG to your card through Config/OpenLoader/Data/CustomCards/Data/, and modify the synthetic formula of your card bags and other items./Buddycards/Textures folder picture to modify the material. There is a default en_us.json in the LANG folder. Modify the items translated and stored as zh_cn.json.
Modify the card name and card fun
In zh_cn.json, pass the statement
"Item.buddycards.buddycard_name1.tooltip": "Card 1 card fun",
Modify the name and card fun for your card. Among them, name is your card group name, and the card number starts from 1 to the number of cards contained in your card group.Cards without modification names will be manifested in the game as the default name item.buddycards.buddycard_namex, X is the card number.
Use KJS to modify the card group information
If you don't want to modify your card group information rebellion with OpenLoader, you can also modify the card group information with KJS.
Correspondingly, you need to create a new BuddyCards/Textures/Folder in Kubejs/Assets folder
Create Item/name_set folders in Textures, save your items in this folder, the card is named 1.png, 2.png, etc..png, the card package is named Pack.png.
Create a new Block/ folder in Textures, extend your card bag material into this folder, and expand the material of the top surface of the box to be named Booster_box_name_top.png.
Create a new Lang/ folder in the Buddycards/ folder, save the language file into this folder, and the language file writing is available.
Generally speaking, your card does not have any tag at this time. You need to add tags to your card through the event 'tags.item' in Server_Scripts. Do not repeat them here.