your current location:首页 > news>New flame effect salary (Firewood) Minecraft Game through data packets

New flame effect salary (Firewood) Minecraft Game through data packets

2024-12-10 17:53:58|Myriagame |source:minecraft skins

English version: https://github.com/dslm/firewood/wiki/custom-new-fire

First, create a new folder "Firewood_fire_effects" under the data packet named space folder (integration package producers can usually use Firewood name space).legend:

Then, you can create a JSON file for each new flame effect, or you can create an empty json file to cover the existing flame effect.

All flame effects JSON file universal field

 {{

"Type": "Smelter",

"Sub_type": "SMELTER",

"Color": "0xc2ccd0",,

"Damage": 0.5,

"Min_health": 1.0,

"Process": 8,

"Range": 2,

"COOLDOWN": 10, 10,

"Target_limit": 5

}

Type (must be filled)

This field determines the general type of effect.You can view the default effect to confirm the effect you want.

sub_type (required)

This field represents the only ID of a specific flame effect under similar types of effects.Two of the same sub -type will cover the former.

color (must be filled)

This field represents the color of the flame. "0x" is not necessary. It just represents the hexadecimal numbers to avoid ambiguity.The last 6 are the RGB value of the hexadecimal format.

damage (must be filled)

This field represents the damage of the flame.Trigger the "Burning Body" effect that the creature will suffer after triggering the flame effect.The actual damage value is the sum of the damage value of all effects.

min_health

This field represents the minimum health demand of flames.The default value of min_health is equal to Damage.When creature tries to trigger the flame effect, if the health value of its health is less than all flame effects, it will only be damaged without successful activation.

Process (required)

This field represents the progress of flame demand.Each successful triggering flame effect will add 1 point to it. If the current progress is greater than or equal to the progress of the flame effect, the effect can be successfully activated.

Range (must be filled)

This field represents the radius of the effective range of flames.There are two ways to write this field:

 [x, y, z] 

Represents the radius on the three dimensions;

 R 

Wait for [R, R, R].

The final range is a cubic.Example: 0 or [0,0,0] contains 1 square block, 1 or [1,1,1] contains 3*3 = 27 squares ...

Special cases: -1 or [-1, -1, -1] will limit the effect to only triggering creatures (the effect of the other party's block conversion is invalid, deemed to have no range).

COOLDOWN (required)

This field represents the cooling time of the flame.Trigger creatures will achieve the "burning body" effect, and during this period, this creature cannot trigger any other flame effects (including spiritual fire, lift lights, bonfires, etc.).The cooling time of the flame effect, and its duration is the sum of the cooling time of all flame effects.

target_limit

This field represents the upper limit of the target of the flame.The default value of target_limit is 2147483647.The cache data is stored in flame items or squares. If the flames are triggered again before all the target processing is completed, then the flame computing processing damage, minimum health, cooling time and other data will ignore the flame effect of unfinished processing.At present, the effect of only the conversion of the other party is effective.