Added the Shattered effect
Not currently attached to any enemy
This commit is contained in:
parent
a7d43367b1
commit
420a4d2b04
|
|
@ -17,6 +17,7 @@ public class MCRebalance implements ModInitializer {
|
||||||
|
|
||||||
ModItems.init(); // Initialise: load all static values
|
ModItems.init(); // Initialise: load all static values
|
||||||
ModBlocks.init();
|
ModBlocks.init();
|
||||||
|
ModEffects.init();
|
||||||
LOGGER.info("Hello Fabric world!");
|
LOGGER.info("Hello Fabric world!");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -0,0 +1,19 @@
|
||||||
|
package xyz.nearmisses.patience.mc_rebalance;
|
||||||
|
|
||||||
|
import net.minecraft.core.Registry;
|
||||||
|
import net.minecraft.core.registries.BuiltInRegistries;
|
||||||
|
import net.minecraft.core.registries.Registries;
|
||||||
|
import net.minecraft.resources.ResourceKey;
|
||||||
|
import net.minecraft.resources.ResourceLocation;
|
||||||
|
import net.minecraft.world.effect.MobEffect;
|
||||||
|
|
||||||
|
public class ModEffects {
|
||||||
|
public static void init(){}
|
||||||
|
|
||||||
|
public static MobEffect register(String id, MobEffect effect) {
|
||||||
|
ResourceKey<MobEffect> effectID = ResourceKey.create(Registries.MOB_EFFECT, ResourceLocation.fromNamespaceAndPath(MCRebalance.MOD_ID, id));
|
||||||
|
return Registry.register(BuiltInRegistries.MOB_EFFECT, effectID, effect);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static final MobEffect Effect_Shattered = register("shattered", new ShatteredEffect());
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,13 @@
|
||||||
|
package xyz.nearmisses.patience.mc_rebalance;
|
||||||
|
|
||||||
|
import net.minecraft.resources.ResourceLocation;
|
||||||
|
import net.minecraft.world.effect.MobEffect;
|
||||||
|
import net.minecraft.world.effect.MobEffectCategory;
|
||||||
|
import net.minecraft.world.entity.ai.attributes.*;
|
||||||
|
|
||||||
|
public class ShatteredEffect extends MobEffect {
|
||||||
|
protected ShatteredEffect() {
|
||||||
|
super(MobEffectCategory.HARMFUL, 0x0f171c); // Particle colour
|
||||||
|
this.addAttributeModifier(Attributes.ARMOR, ResourceLocation.fromNamespaceAndPath(MCRebalance.MOD_ID, "shattered"), -2.0, AttributeModifier.Operation.ADD_VALUE);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -18,7 +18,7 @@ public class BlazeRework {
|
||||||
.add(Attributes.ATTACK_DAMAGE, 3.0) // Hits more often with lower-damage magic attacks
|
.add(Attributes.ATTACK_DAMAGE, 3.0) // Hits more often with lower-damage magic attacks
|
||||||
.add(Attributes.MOVEMENT_SPEED, 0.3F) // Moves faster BUT melee aggro range is unchanged so they still don't want to use it
|
.add(Attributes.MOVEMENT_SPEED, 0.3F) // Moves faster BUT melee aggro range is unchanged so they still don't want to use it
|
||||||
.add(Attributes.FOLLOW_RANGE, 48.0) // Unchanged
|
.add(Attributes.FOLLOW_RANGE, 48.0) // Unchanged
|
||||||
.add(Attributes.ARMOR, 4.0) // More durable
|
.add(Attributes.ARMOR, 4.0) // Slightly more durable
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -13,5 +13,6 @@
|
||||||
"item.mc_rebalance.iron_paxel": "Iron Paxel",
|
"item.mc_rebalance.iron_paxel": "Iron Paxel",
|
||||||
"item.mc_rebalance.golden_paxel": "Golden Paxel",
|
"item.mc_rebalance.golden_paxel": "Golden Paxel",
|
||||||
"item.mc_rebalance.diamond_paxel": "Diamond Paxel",
|
"item.mc_rebalance.diamond_paxel": "Diamond Paxel",
|
||||||
"item.mc_rebalance.netherite_paxel": "Dendrite Paxel"
|
"item.mc_rebalance.netherite_paxel": "Dendrite Paxel",
|
||||||
|
"effect.mc_rebalance.shattered": "Shattered"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 467 B |
Loading…
Reference in a new issue