Implemented Valkyrie Cape.

This commit is contained in:
bconlon 2020-07-03 17:51:48 -07:00
parent b34672c4ec
commit ca02c8d76e
8 changed files with 19 additions and 4 deletions

View file

@ -15,7 +15,7 @@ public class AetherConfig {
private static boolean disable_trivia, old_mobs;
private static boolean skyrootBucketOnly;
private static boolean skyrootBucketOnly, valkyrie_cape;
private static boolean floating_block_collision;
@ -41,6 +41,7 @@ public class AetherConfig {
aether_biome_id = config.get("World Identification", "Aether Biome ID", 127).getInt(127);
skyrootBucketOnly = config.get("Misc", "Activate portal with only Skyroot bucket", false).getBoolean(false);
valkyrie_cape = config.get("Misc", "Swaps the Golden Feather with the Valkyrie Cape in dungeon loot", false).getBoolean(false);
travel_dimension = config.get("Misc", "Dimension below aether", 0).getInt(0);
floating_block_collision = config.get("Misc", "Floating block collision", true).getBoolean(true);
@ -93,4 +94,9 @@ public class AetherConfig {
return AetherConfig.skyrootBucketOnly;
}
public static boolean valkyrieCapeEnabled()
{
return AetherConfig.valkyrie_cape;
}
}

View file

@ -100,7 +100,7 @@ public class ItemsAether {
public static Item iron_ring, golden_ring, zanite_ring, ice_ring, iron_pendant, golden_pendant, zanite_pendant, ice_pendant;
public static Item white_cape, red_cape, blue_cape, yellow_cape, swet_cape, invisibility_cape, agility_cape;
public static Item white_cape, red_cape, blue_cape, yellow_cape, swet_cape, invisibility_cape, agility_cape, valkyrie_cape;
public static Item golden_feather, regeneration_stone, iron_bubble, life_shard;
@ -241,6 +241,7 @@ public class ItemsAether {
swet_cape = register("swet_cape", new ItemAccessory(AccessoryType.CAPE).setTexture("swet_cape").setDungeonLoot().setTextureName(Aether.find("accessories/swet_cape")));
invisibility_cape = register("invisibility_cape", new ItemAccessory(AccessoryType.CAPE).setDungeonLoot().setTextureName(Aether.find("accessories/invisibility_cape")));
agility_cape = register("agility_cape", new ItemAccessory(AccessoryType.CAPE).setTexture("agility_cape").setDungeonLoot().setTextureName(Aether.find("accessories/agility_cape")));
valkyrie_cape = register("valkyrie_cape", new ItemAccessory(AccessoryType.CAPE).setTexture("valkyrie_cape").setDungeonLoot().setTextureName(Aether.find("accessories/valkyrie_cape")));
golden_feather = register("golden_feather", new ItemAccessory(AccessoryType.MISC).setDungeonLoot().setTextureName(Aether.find("accessories/golden_feather")));
regeneration_stone = register("regeneration_stone", new ItemAccessory(AccessoryType.MISC).setDungeonLoot().setTextureName(Aether.find("accessories/regeneration_stone")));

View file

@ -95,7 +95,7 @@ public class AbilityAccessories implements IAetherAbility {
}
}
if (this.player.getAccessoryInventory().wearingAccessory(new ItemStack(ItemsAether.golden_feather))) {
if (this.player.getAccessoryInventory().wearingAccessory(new ItemStack(ItemsAether.golden_feather)) || this.player.getAccessoryInventory().wearingAccessory(new ItemStack(ItemsAether.valkyrie_cape))) {
if (!this.player.getEntity().onGround && this.player.getEntity().motionY < 0.0D && !this.player.getEntity().isInWater() && !this.player.getEntity().isSneaking()) {
this.player.getEntity().motionY *= 0.59999999999999998D;
}

View file

@ -51,6 +51,7 @@ public class AetherRegistries {
AetherAPI.instance().register(new AetherAccessory(ItemsAether.swet_cape, AccessoryType.CAPE));
AetherAPI.instance().register(new AetherAccessory(ItemsAether.invisibility_cape, AccessoryType.CAPE));
AetherAPI.instance().register(new AetherAccessory(ItemsAether.agility_cape, AccessoryType.CAPE));
AetherAPI.instance().register(new AetherAccessory(ItemsAether.valkyrie_cape, AccessoryType.CAPE));
AetherAPI.instance().register(new AetherAccessory(ItemsAether.golden_feather, AccessoryType.MISC));
AetherAPI.instance().register(new AetherAccessory(ItemsAether.regeneration_stone, AccessoryType.MISC));

View file

@ -2,6 +2,7 @@ package com.legacy.aether.world.gen.components;
import java.util.Random;
import com.legacy.aether.AetherConfig;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.init.Blocks;
@ -562,7 +563,7 @@ public class ComponentSilverDungeon extends AetherStructure {
if (random.nextBoolean())
return new ItemStack(ItemsAether.valkyrie_chestplate);
}
return new ItemStack(ItemsAether.golden_feather);
return AetherConfig.valkyrieCapeEnabled() ? new ItemStack(ItemsAether.valkyrie_cape) : new ItemStack(ItemsAether.golden_feather);
}
}

View file

@ -0,0 +1,6 @@
{
"parent": "item/generated",
"textures": {
"layer0": "aether_legacy:items/accessories/valkyrie_cape"
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3 KiB