diff --git a/src/main/java/vazkii/botania/common/item/equipment/bauble/ItemBaubleCosmetic.java b/src/main/java/vazkii/botania/common/item/equipment/bauble/ItemBaubleCosmetic.java index 0aad9a8b1..5f0ee7c78 100644 --- a/src/main/java/vazkii/botania/common/item/equipment/bauble/ItemBaubleCosmetic.java +++ b/src/main/java/vazkii/botania/common/item/equipment/bauble/ItemBaubleCosmetic.java @@ -50,10 +50,11 @@ public class ItemBaubleCosmetic extends ItemBauble implements ICosmeticBauble { FOUR_LEAF_CLOVER, CLOCK_EYE, UNICORN_HORN, DEVIL_HORNS, HYPER_PLUS, BOTANIST_EMBLEM, ANCIENT_MASK, EERIE_MASK, ALIEN_ANTENNA, ANAGLYPH_GLASSES, ORANGE_SHADES, GROUCHO_GLASSES, - THICK_EYEBROWS, LUSITANIC_SHIELD, TINY_POTATO_MASK, QUESTGIVER_MARK + THICK_EYEBROWS, LUSITANIC_SHIELD, TINY_POTATO_MASK, QUESTGIVER_MARK, + THINKING_HAND } - private static final int SUBTYPES = 32; + private static final int SUBTYPES = Variants.values().length; private ItemStack renderStack; public ItemBaubleCosmetic() { @@ -78,15 +79,15 @@ public class ItemBaubleCosmetic extends ItemBauble implements ICosmeticBauble { @SideOnly(Side.CLIENT) @Override - public void addHiddenTooltip(ItemStack par1ItemStack, World world, List stacks, ITooltipFlag flags) { - addStringToTooltip(I18n.format("botaniamisc.cosmeticBauble"), stacks); - super.addHiddenTooltip(par1ItemStack, world, stacks, flags); + public void addHiddenTooltip(ItemStack stack, World world, List stacks, ITooltipFlag flags) { + addStringToTooltip(I18n.format(stack.getItemDamage() == 32 ? "botaniamisc.cosmeticThinking" : "botaniamisc.cosmeticBauble"), stacks); + super.addHiddenTooltip(stack, world, stacks, flags); } @SideOnly(Side.CLIENT) @Override public void registerModels() { - ModelHandler.registerItemAppendMeta(this, 32, LibItemNames.COSMETIC); + ModelHandler.registerItemAppendMeta(this, SUBTYPES, LibItemNames.COSMETIC); } @Override @@ -100,7 +101,7 @@ public class ItemBaubleCosmetic extends ItemBauble implements ICosmeticBauble { renderStack = stack; - if (stack.getItemDamage() >= 32 || stack.getItemDamage() < 0) return; + if (stack.getItemDamage() >= SUBTYPES || stack.getItemDamage() < 0) return; Variants variant = Variants.values()[stack.getItemDamage()]; if (type == RenderType.HEAD) { @@ -239,6 +240,13 @@ public class ItemBaubleCosmetic extends ItemBauble implements ICosmeticBauble { GlStateManager.translate(0F, 1F, 0.3F); renderItem(); break; + case THINKING_HAND: + scale(0.9f); + GlStateManager.translate(0.2F, -0.5F, 0F); + GlStateManager.scale(-1, 1, 1); + GlStateManager.rotate(15F, 0F, 0F, 1F); + renderItem(); + break; default: break; } } else { diff --git a/src/main/resources/assets/botania/lang/en_us.lang b/src/main/resources/assets/botania/lang/en_us.lang index bbe4c9a28..4790dd1da 100644 --- a/src/main/resources/assets/botania/lang/en_us.lang +++ b/src/main/resources/assets/botania/lang/en_us.lang @@ -90,6 +90,7 @@ botaniamisc.startTutorial=Start Tutorial botaniamisc.tutorialStarted=You have started your tutorial, follow the red arrows and read the contents to be guided through the basics of Botania! botaniamisc.tutorialEnded=Your tutorial is over, you should now have a basic idea of how Botania works. Make sure to read through the other pages at your leisure to learn more ways of using the mod. botaniamisc.cosmeticBauble=&oCosmetic +botaniamisc.cosmeticThinking=&oReally makes you think botaniamisc.hasCosmetic=&oHas Cosmetic Override: &r%s botaniamisc.typeToSearch=(type to search) botaniamisc.viewOnline=View Online @@ -1551,6 +1552,7 @@ item.botania:cosmetic28.name=Thick Eyebrows item.botania:cosmetic29.name=Lusitanic Shield item.botania:cosmetic30.name=Tiny Potato Mask item.botania:cosmetic31.name=Questgiver Mark +item.botania:cosmetic32.name=Thinking Hand item.botania:manaString.name=Mana Infused String item.botania:swapRing.name=Ring of Correction item.botania:flowerBag.name=Flower Pouch diff --git a/src/main/resources/assets/botania/models/item/cosmetic32.json b/src/main/resources/assets/botania/models/item/cosmetic32.json new file mode 100644 index 000000000..6e1d7389e --- /dev/null +++ b/src/main/resources/assets/botania/models/item/cosmetic32.json @@ -0,0 +1,6 @@ +{ + "parent": "minecraft:item/generated", + "textures": { + "layer0": "botania:items/cosmetic32" + } +} diff --git a/src/main/resources/assets/botania/recipes/cosmetic_32.json b/src/main/resources/assets/botania/recipes/cosmetic_32.json new file mode 100644 index 000000000..9302c575f --- /dev/null +++ b/src/main/resources/assets/botania/recipes/cosmetic_32.json @@ -0,0 +1,20 @@ +{ + "result": { + "item": "botania:cosmetic", + "data": 32 + }, + "pattern": [ + "PPP", + "PSP", + "PPP" + ], + "type": "forge:ore_shaped", + "key": { + "P": { + "item": "botania:tinypotato" + }, + "S": { + "item": "#MANASTRING" + } + } +} \ No newline at end of file diff --git a/src/main/resources/assets/botania/textures/items/cosmetic32.png b/src/main/resources/assets/botania/textures/items/cosmetic32.png new file mode 100644 index 000000000..bee2a4f43 Binary files /dev/null and b/src/main/resources/assets/botania/textures/items/cosmetic32.png differ