Effects are visual optimisations you can add to superpowers and suit sets. Some of them are known by previous mods. You specify them like that:
"effects": [
{
"type": "flickering",
"color": [0, 1, 0],
"use_suit_flicker": true,
"conditions": [
{
"type": "ability_enabled",
"ability": "lucraftcore:flight"
},
{
"type": "moving"
}
]
},
{
"type": "glow",
"color": [0, 1, 0],
"conditions": [
{
"type": "moving"
}
]
}
]
As you can see each effect needs specific setting and conditions.
Effects
There are multiple types of effects:
"glow"
...creates a glowing aura around you.
"type": "glow",
"color": [0, 1, 0],
"size": 1
color An array of double values that determines the color of the glow. They are specified as RGB (example: 1,0,0 means red; 0,1,0 means green; 0,0,1 means blue).
size (optional) A float value that determines how big the glow is.
"skin_change"
...lets you change the skin of the player.
"type": "skin_change",
"texture": "examplepack:textures/models/example_skin.png"
texture The path to the texture of the skin.
"vibrating"
...lets you vibrate.
"type": "vibrating"
"flickering"
This effects creates flickering lightnings around your player.
"type": "flickering",
"color": [1, 0, 0],
"use_suit_flicker": false
color An array of double values that determines the color of the glow. They are specified as RGB (example: 1,0,0 means red; 0,1,0 means green; 0,0,1 means blue).
use_suit_flicker If you set this to true, the color of the flickering can be overriden by suits (which means this setting is only effective on superpowers). You add such lines to a suit set to achieve that:
"data": {
"flicker": {
"red": 1,
"green": 0.2,
"blue": 0
}
},
"trail"
This effects creates flickering lightnings around your player.
"type": "trail",
"trail_type": "lightnings"
"color": [1, 0, 0],
"use_suit_trail": false
trail_type ...is the type of the trail. The types are "lightnings", "normal", "particles" and "electricity".
color An array of double values that determines the color of the glow. They are specified as RGB (example: 1,0,0 means red; 0,1,0 means green; 0,0,1 means blue).
use_suit_trail If you set this to true, the color of the trail can be overriden by suits (which means this setting is only effective on superpowers). You add such lines to a suit set to achieve that:
"data": {
"trail": {
"red": 1,
"green": 0.2,
"blue": 0
}
},
"glowing_hand"
...creates a glowing aura around your hands.
"type": "glowing_hand",
"color": [0, 1, 0],
"size": 1
color An array of double values that determines the color of the glow. They are specified as RGB (example: 1,0,0 means red; 0,1,0 means green; 0,0,1 means blue).
Effect Conditions
Effect Conditions are needed to specify when the effect are displayed. If all condition are true, you can see the effect. There are multiple types:
"always"
...simply says that the effect is visible all the time.
"ability_enabled"
...makes the effect visible when an ability is enabled. In this example the effect is visible when the Flight ability is activated
"conditions": [
{
"type": "ability_enabled",
"ability:": "lucraftcore:flight"
}
]
"moving"
...makes the effect visible when the player is moving.