fixed some stuff
@@ -1,6 +1,11 @@
|
||||
package net.fabricmc.fishplex;
|
||||
|
||||
import net.fabricmc.api.ModInitializer;
|
||||
import net.fabricmc.fabric.api.item.v1.FabricItemSettings;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.util.Identifier;
|
||||
import net.minecraft.util.registry.Registry;
|
||||
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
|
||||
@@ -8,14 +13,17 @@ public class Aspects implements ModInitializer {
|
||||
// This logger is used to write text to the console and the log file.
|
||||
// It is considered best practice to use your mod id as the logger's name.
|
||||
// That way, it's clear which mod wrote info, warnings, and errors.
|
||||
public static final Item ANEMO_FEATHER = new Item(new FabricItemSettings());
|
||||
public static final Item PYRO_FIRE = new Item(new FabricItemSettings());
|
||||
public static final Item HYDRO_KELP = new Item(new FabricItemSettings());
|
||||
public static final Logger LOGGER = LogManager.getLogger("aspects");
|
||||
|
||||
@Override
|
||||
public void onInitialize() {
|
||||
// This code runs as soon as Minecraft is in a mod-load-ready state.
|
||||
// However, some things (like resources) may still be uninitialized.
|
||||
// Proceed with mild caution.
|
||||
|
||||
LOGGER.info("Hello Fabric world!");
|
||||
|
||||
@Override
|
||||
public void onInitialize() {
|
||||
Registry.register(Registry.ITEM, new Identifier("aspects", "anemo_feather"), ANEMO_FEATHER);
|
||||
Registry.register(Registry.ITEM, new Identifier("aspects", "pyro_fire"), PYRO_FIRE);
|
||||
Registry.register(Registry.ITEM, new Identifier("aspects", "hydro_kelp"), HYDRO_KELP);
|
||||
LOGGER.info("Hello from Aspects :D");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -11,6 +11,6 @@ import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
|
||||
public class AspectsMixin {
|
||||
@Inject(at = @At("HEAD"), method = "init()V")
|
||||
private void init(CallbackInfo info) {
|
||||
Aspects.LOGGER.info("This line is printed by an example mod mixin!");
|
||||
Aspects.LOGGER.info("Hello from Aspects! :D");
|
||||
}
|
||||
}
|
||||
|
||||
|
Before Width: | Height: | Size: 453 B After Width: | Height: | Size: 5.0 KiB |
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "item/generated",
|
||||
"textures": {
|
||||
"layer0": "aspects:item/anemo_feather"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "item/generated",
|
||||
"textures": {
|
||||
"layer0": "aspects:item/hydro_kelp"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "item/generated",
|
||||
"textures": {
|
||||
"layer0": "aspects:item/pyro_fire"
|
||||
}
|
||||
}
|
||||
BIN
src/main/resources/assets/aspects/textures/gui/badge/cross.png
Normal file
|
After Width: | Height: | Size: 581 B |
BIN
src/main/resources/assets/aspects/textures/gui/badge/equal.png
Normal file
|
After Width: | Height: | Size: 606 B |
|
After Width: | Height: | Size: 5.0 KiB |
BIN
src/main/resources/assets/aspects/textures/item/hydro_kelp.png
Normal file
|
After Width: | Height: | Size: 9.9 KiB |
BIN
src/main/resources/assets/aspects/textures/item/pyro_fire.png
Normal file
|
After Width: | Height: | Size: 1006 B |
@@ -0,0 +1,2 @@
|
||||
playsound item.firecharge.use neutral @s
|
||||
particle flame ~ ~ ~ 1 1 1 3 10
|
||||
@@ -1,3 +1,3 @@
|
||||
particle minecraft:snowflake ~ ~ ~ 0 0 0 0.0 5 normal @a
|
||||
particle minecraft:snowflake ~ ~ ~ 1 1 1 1 5 normal @a
|
||||
fill ~1 ~-1 ~1 ~-1 ~-1 ~-1 minecraft:frosted_ice replace water[level=0]
|
||||
playsound block.snow.place neutral @a ~ ~ ~ 5
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
particle snowflake ~ ~ ~ 1 1 1 1 10 normal
|
||||
particle snowflake ~ ~ ~ 3 3 3 5 10 normal
|
||||
playsound block.glass.break neutral @a ~ ~ ~ 5
|
||||
@@ -0,0 +1,2 @@
|
||||
particle electric_spark ~ ~ ~ 3 3 3 5 10 normal
|
||||
playsound entity.lightning_bolt.thunder neutral @a ~ ~ ~ 5
|
||||
@@ -0,0 +1,2 @@
|
||||
particle flame ~ ~ ~ 2 2 2 1 10 normal
|
||||
playsound entity.blaze.shoot neutral @a ~ ~ ~ 5
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"order": 0,
|
||||
"order": -1,
|
||||
"origins": [
|
||||
"aspects:anemo",
|
||||
"aspects:hydro",
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"order": 1,
|
||||
"order": 0,
|
||||
"origins": [
|
||||
{
|
||||
"condition": {
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
"aspects:wise"
|
||||
],
|
||||
"icon": {
|
||||
"item": "minecraft:zombie_head"
|
||||
"item": "aspects:anemo_feather"
|
||||
},
|
||||
"name": "Anemo",
|
||||
"description": "Anemo users are light on their feet, freeform in combat and wanderers by nature."
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
"aspects:cryo_secondary"
|
||||
],
|
||||
"icon": {
|
||||
"item": "minecraft:zombie_head"
|
||||
"item": "minecraft:snowball"
|
||||
},
|
||||
"name": "Cryo",
|
||||
"description": "Cold, calculating and precise, Cryo types always get the job done."
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
"aspects:waterborn"
|
||||
],
|
||||
"icon": {
|
||||
"item": "minecraft:zombie_head"
|
||||
"item": "aspects:hydro_kelp"
|
||||
},
|
||||
"name": "Hydro",
|
||||
"description": "Fluid and ever-changing, Hydro users are flexible and aware of the intent behind the actions of their enemies in order to better defy them."
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
"aspects:fire_strength"
|
||||
],
|
||||
"icon": {
|
||||
"item": "minecraft:zombie_head"
|
||||
"item": "minecraft:fire_charge"
|
||||
},
|
||||
"name": "Ignis",
|
||||
"description": "Full of energy and power, Ignis types are certainly the life of the party."
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
"aspects:flameborn"
|
||||
],
|
||||
"icon": {
|
||||
"item": "minecraft:zombie_head"
|
||||
"item": "aspects:pyro_fire"
|
||||
},
|
||||
"name": "Pyro",
|
||||
"description": "fire go weeee"
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
"aspects:tempus_secondary"
|
||||
],
|
||||
"icon": {
|
||||
"item": "minecraft:zombie_head"
|
||||
"item": "minecraft:amethyst_shard"
|
||||
},
|
||||
"name": "Tempus",
|
||||
"description": "Dark minds crackling and churning, Tempus types always have a storm brewing in their heads."
|
||||
|
||||
@@ -13,6 +13,11 @@
|
||||
|
||||
"tick_rate": 20,
|
||||
"name":"Chained",
|
||||
"description":"When you aren't exposed to the sky, you become slower in combat."
|
||||
|
||||
"description":"When you aren't exposed to the sky, you become slower in combat.",
|
||||
"badges": [
|
||||
{
|
||||
"sprite": "aspects:textures/gui/badge/cross.png",
|
||||
"text": "Negative"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -14,5 +14,11 @@
|
||||
},
|
||||
"cooldown": 20,
|
||||
"name":"Evaporation",
|
||||
"description":"Fire hurts you a lot more than it normally would."
|
||||
"description":"Fire hurts you a lot more than it normally would.",
|
||||
"badges": [
|
||||
{
|
||||
"sprite": "aspects:textures/gui/badge/cross.png",
|
||||
"text": "Negative"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -3,7 +3,7 @@
|
||||
"modifier": {
|
||||
"attribute": "minecraft:generic.attack_damage",
|
||||
"operation": "addition",
|
||||
"value": 0.4
|
||||
"value": 2
|
||||
},
|
||||
"tick_rate": 20,
|
||||
"condition": {
|
||||
|
||||
@@ -6,6 +6,12 @@
|
||||
"operation": "addition"
|
||||
},
|
||||
"name":"Like Lightning",
|
||||
"description":"You are an even faster variant of Anemo."
|
||||
"description":"You are an even faster variant of Anemo.",
|
||||
"badges": [
|
||||
{
|
||||
"sprite": "aspects:textures/gui/badge/check.png",
|
||||
"text": "Positive"
|
||||
}
|
||||
]
|
||||
|
||||
}
|
||||
@@ -31,5 +31,11 @@
|
||||
}
|
||||
},
|
||||
"name":"Frost Walker",
|
||||
"description":"Water beneath you will turn into ice. Deactivates when you are falling, sneaking, or under the water."
|
||||
"description":"Water beneath you will turn into ice. Deactivates when you are falling, sneaking, or under the water.",
|
||||
"badges": [
|
||||
{
|
||||
"sprite": "aspects:textures/gui/badge/equal.png",
|
||||
"text": "Neutral"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -1,15 +1,24 @@
|
||||
{
|
||||
"type": "origins:active_self",
|
||||
"entity_action": {
|
||||
"type":"origins:and",
|
||||
"actions": [
|
||||
{
|
||||
"type": "origins:set_on_fire",
|
||||
"duration": 15
|
||||
},
|
||||
{
|
||||
"type":"origins:execute_command",
|
||||
"command":"function aspects:fire_light"
|
||||
}
|
||||
],
|
||||
"cooldown": 300,
|
||||
"hud_render": {
|
||||
"should_render": true,
|
||||
"bar_index": 7,
|
||||
"inverted":true
|
||||
},
|
||||
}
|
||||
},
|
||||
|
||||
"name":"Ignition",
|
||||
"description":"Using your primary active ability, you can light yourself on fire for a short duration, granting you an attack buff."
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
{
|
||||
"type": "origins:active_self",
|
||||
"entity_action": {
|
||||
"type":"origins:and",
|
||||
"actions": [
|
||||
{
|
||||
"type": "origins:area_of_effect",
|
||||
"radius": 10,
|
||||
"bientity_action": {
|
||||
@@ -13,8 +16,16 @@
|
||||
"bientity_condition": {
|
||||
"type": "origins:can_see"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type":"origins:execute_command",
|
||||
"command":"function aspects:ring_of_fire"
|
||||
|
||||
}
|
||||
]
|
||||
},
|
||||
"key":"key.origins.secondary_active",
|
||||
"cooldown": 1400,
|
||||
"name":"As your secondary ability, you can light entites around you on fire for a few seconds."
|
||||
"name":"Ring of Fire",
|
||||
"description":"As your secondary ability, you can light entites around you on fire for a few seconds."
|
||||
}
|
||||
@@ -288,5 +288,11 @@
|
||||
}
|
||||
},
|
||||
"name":"Negate Falling",
|
||||
"description":"You cannot take fall damage, but the more fall damage that is absorbed by the atmosphere, the more your movement speed will temporarily decrease."
|
||||
"description":"You cannot take fall damage, but the more fall damage that is absorbed by the atmosphere, the more your movement speed will temporarily decrease.",
|
||||
"badges": [
|
||||
{
|
||||
"sprite": "aspects:textures/gui/badge/equal.png",
|
||||
"text": "Neutral"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -11,5 +11,11 @@
|
||||
"predicate": "aspects:weather/is_thunderstorm"
|
||||
},
|
||||
"name":"Storm Strength",
|
||||
"description":"During thunderstorms, you do significantly more damage to others."
|
||||
"description":"During thunderstorms, you do significantly more damage to others.",
|
||||
"badges": [
|
||||
{
|
||||
"sprite": "aspects:textures/gui/badge/check.png",
|
||||
"text": "Positive"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -25,7 +25,7 @@
|
||||
"hud_render": {
|
||||
"should_render": true,
|
||||
"sprite_location": "origins:textures/gui/resource_bar.png",
|
||||
"bar_index":7,
|
||||
"bar_index":2,
|
||||
"inverted":true
|
||||
},
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
"radius": 10,
|
||||
"bientity_action": {
|
||||
"type": "origins:damage",
|
||||
"amount": 10,
|
||||
"amount": 5,
|
||||
"source": {
|
||||
"name": "lightningBolt",
|
||||
"bypasses_armor": true
|
||||
@@ -37,6 +37,10 @@
|
||||
{
|
||||
"type": "origins:heal",
|
||||
"amount": 6
|
||||
},
|
||||
{
|
||||
"type":"origins:execute_command",
|
||||
"command":"function aspects:raging_gales"
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -44,10 +48,11 @@
|
||||
"should_render": true,
|
||||
"inverted":true,
|
||||
"sprite_location": "origins:textures/gui/resource_bar.png",
|
||||
"bar_index":8
|
||||
"bar_index":3
|
||||
|
||||
},
|
||||
"key":"key.origins.secondary_active",
|
||||
"cooldown": 1400,
|
||||
"name":"As your secondary ability, you can push enemies away by a few blocks whilst healing yourself and dealing damage to others."
|
||||
"cooldown": 400,
|
||||
"name":"Raging Gales",
|
||||
"description":"As your secondary ability, you can push enemies away by a few blocks whilst healing yourself and dealing damage to others."
|
||||
}
|
||||
@@ -26,5 +26,11 @@
|
||||
]
|
||||
},
|
||||
"name":"Water Damage",
|
||||
"description":"When you touch water, you receive damage."
|
||||
"description":"When you touch water, you receive damage.",
|
||||
"badges": [
|
||||
{
|
||||
"sprite": "aspects:textures/gui/badge/cross.png",
|
||||
"text": "Negative"
|
||||
}
|
||||
]
|
||||
}
|
||||