Current location - Training Enrollment Network - Books and materials - Tararia-method of making decorations
Tararia-method of making decorations
Tararia is a very classic sandbox game. In this game, players can brush strange equipment and build their own base to ensure the safety of NPC. Recently, some players have released the method of making ornaments. The following is a detailed analysis.

Method for making ornaments

Basic article: jewelry creation

A mod prop needs json file and png file ~

Not much to say about Papua New Guinea. Just don't look for too big a picture. For a counterexample, please refer to the BOSS call in ctx's "Just a Simple BOSS-Skull's Chin", because the picture of skull's chin is directly used, which is too big to be reduced when picked up and placed in the item column.

Of course, one more thing: the background color must be transparent, such as:

Here's how to write json: Take ctxmove as an example:

{

"code": "ctxmove",-",-name, consistent with the file name of json.

"Display name": "Movement of CTX",-Display name, preferably case-sensitive to appear formal.

"Size": —— value, and the four numbers correspond to the quantity of platinum, gold, silver and copper coins respectively (note that this is the buying value, there will be a discount when selling, and there will also be a discount when buying with a discount card).

[Rare]: 9,-Rare, pet-name ruby is the rarest sky blue.

Tooltip: I hate JSON. -The first line of the description of props (toolTip2 is the second line if it is to be added).

"Accessories": Yes, this sentence is the key point, which determines that this prop can be stuffed into the jewelry column.

[Formula]: [-Synthesis Table

{

[Item]: ["0 pieces of wood "],-Use 0 pieces of wood.

[Creation]: 1- 1 jewelry synthesis.

}

]-The formula here is obviously unqualified. All right! Not even tiles.-well, that's not the point.

}

In addition, you can add some additional sentences, such as "wings": 12, so that players can get steampunk wings after wearing them, "life regeneration": increasing blood return speed, and "defense": increasing defense, which seems to be all.

Advanced article: cs creation

Write a cs file with the same name as png and json.

First, write in it:

Use the system;

Use TAPI;;

Use Microsoft. Xna . Framework.Graphics

Namespace TAPI Module name {

Public class attribute name: ModItem{

Public prop name (Modbase Modbase, Item I): base (Modbase, I) {}

Invalid effect of public overlay (player p){

//Wait a minute, just insert the jewelry information drop here ~

}

}

}

What those mod names and prop names need to be changed depends on the actual situation and personal preferences. By the way, the prop name should be the same as the file name.

So what can this effect do? Answer: Almost all! What a player can do!