your current location:首页 > news>Wound configuration method trauma (Wound) Minecraft Game

Wound configuration method trauma (Wound) Minecraft Game

2024-12-10 17:45:31|Myriagame |source:minecraft skins

Config

conventional

#Player can suffer the maximum trauma, default 16

#: 0.0 ~ 1.7976931348623157E308

Maxwound = 16.0

#How much damage will be converted into trauma, default 25%

#Range: 0.0 ~ 1.0

Woundrate = 0.25

#Player can naturally restore trauma every tick, default 3.0E-5

#: 0.0 ~ 1.7976931348623157E308

Natureheal = 3.0E-5

#The default is triggered when the damage reaches, and the default 20

#Range: 0.0 ~ 1.7976931348623157e308

Shieldprotect = 20.0

Difficulty

#In different difficulties, players' trauma resistance

Peaceful = 1.0

Easy = 0.9

Normal = 0.5

Hard = 0.2

Hardcoremode = 0.0

Damage

#which source of damage will cause trauma

Player = false

Mobile = true

Fire = true

Explosion = TRUE

Fall = False

Magic = TRUE

DROWN = FALSE

Other = True

Crafttweaker

Expand the method for Crafttweaker.api.Player.mcplayEncentity. See the table below for details:

Method name Return value Explanation getWound () Float obtained the player's current trauma SetWound (Float Value)

VOID setting player trauma SetwoundResistance (float value)

VOID sets the player's independent external injury resistance GetcapWoundResistance ()

Float obtains player independent external injury resistance getWoundResistance ()

Float obtains the total trauma resistance of the player

Java

Add dependence: When can I have my own Maven library?

 repositories {

Maven {url = "https://www.cursemaven.com"}

}

Implementation Fg.Deobf ("Curse.Maven: Wound-811591: 4346893")

Player CAP:

 Public Interface iwound {

// Get the player's trauma

Float getwound ();

// Set player trauma

Void SetWound (Float Value);

// Naturally restore trauma (use in Playrtick)

Void healwound (); // Increase player trauma

Void addwound (float value);

// Get the player's independent external injury resistance

Float getWoundResistance ();

// Set the player's independent external injury resistance

Void SetWoundResistance (Float Value);

}

Get CAP:

 Playrence#getcapability (modcapability.wound) .ifpreres (c-> {{{{{

Elastic

});