From c10c7d51d216f45d05514124e0bfebf04249b984 Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Tue, 20 Nov 2018 10:54:38 +0100 Subject: [PATCH] Bottle Two: The Rebottling --- .../naturesaura/items/ItemAuraBottle.java | 5 ++--- .../de/ellpeck/naturesaura/items/ModItems.java | 1 + .../resources/assets/naturesaura/lang/en_US.lang | 1 + .../models/item/bottle_two_the_rebottling.json | 6 ++++++ .../en_us/entries/collecting/aura_bottle.json | 11 ++++++++--- .../recipes/bottle_two_the_rebottling.json | 15 +++++++++++++++ .../textures/items/bottle_two_the_rebottling.png | Bin 0 -> 287 bytes 7 files changed, 33 insertions(+), 6 deletions(-) create mode 100644 src/main/resources/assets/naturesaura/models/item/bottle_two_the_rebottling.json create mode 100644 src/main/resources/assets/naturesaura/recipes/bottle_two_the_rebottling.json create mode 100644 src/main/resources/assets/naturesaura/textures/items/bottle_two_the_rebottling.png diff --git a/src/main/java/de/ellpeck/naturesaura/items/ItemAuraBottle.java b/src/main/java/de/ellpeck/naturesaura/items/ItemAuraBottle.java index b4c588b6..eee31732 100644 --- a/src/main/java/de/ellpeck/naturesaura/items/ItemAuraBottle.java +++ b/src/main/java/de/ellpeck/naturesaura/items/ItemAuraBottle.java @@ -11,7 +11,6 @@ import net.minecraft.creativetab.CreativeTabs; import net.minecraft.dispenser.BehaviorDefaultDispenseItem; import net.minecraft.dispenser.IBlockSource; import net.minecraft.entity.player.EntityPlayer; -import net.minecraft.init.Items; import net.minecraft.init.SoundEvents; import net.minecraft.item.ItemStack; import net.minecraft.nbt.NBTTagCompound; @@ -35,7 +34,7 @@ public class ItemAuraBottle extends ItemImpl implements IColorProvidingItem { super("aura_bottle"); MinecraftForge.EVENT_BUS.register(this); - BlockDispenser.DISPENSE_BEHAVIOR_REGISTRY.putObject(Items.GLASS_BOTTLE, new BehaviorDefaultDispenseItem() { + BlockDispenser.DISPENSE_BEHAVIOR_REGISTRY.putObject(ModItems.BOTTLE_TWO, new BehaviorDefaultDispenseItem() { @Override protected ItemStack dispenseStack(IBlockSource source, ItemStack stack) { World world = source.getWorld(); @@ -63,7 +62,7 @@ public class ItemAuraBottle extends ItemImpl implements IColorProvidingItem { @SubscribeEvent public void onRightClick(PlayerInteractEvent.RightClickItem event) { ItemStack held = event.getItemStack(); - if (held.isEmpty() || held.getItem() != Items.GLASS_BOTTLE) + if (held.isEmpty() || held.getItem() != ModItems.BOTTLE_TWO) return; EntityPlayer player = event.getEntityPlayer(); RayTraceResult ray = this.rayTrace(player.world, player, true); diff --git a/src/main/java/de/ellpeck/naturesaura/items/ModItems.java b/src/main/java/de/ellpeck/naturesaura/items/ModItems.java index 90ef680e..17125894 100644 --- a/src/main/java/de/ellpeck/naturesaura/items/ModItems.java +++ b/src/main/java/de/ellpeck/naturesaura/items/ModItems.java @@ -26,6 +26,7 @@ public final class ModItems { public static final Item AURA_CACHE = new ItemAuraCache(); public static final Item SHOCKWAVE_CREATOR = new ItemShockwaveCreator(); public static final Item MULTIBLOCK_MAKER = new ItemMultiblockMaker(); + public static final Item BOTTLE_TWO = new ItemImpl("bottle_two_the_rebottling"); public static final Item AURA_BOTTLE = new ItemAuraBottle(); public static final Item FARMING_STENCIL = new ItemImpl("farming_stencil"); } diff --git a/src/main/resources/assets/naturesaura/lang/en_US.lang b/src/main/resources/assets/naturesaura/lang/en_US.lang index d3781a32..bab03d5d 100644 --- a/src/main/resources/assets/naturesaura/lang/en_US.lang +++ b/src/main/resources/assets/naturesaura/lang/en_US.lang @@ -53,6 +53,7 @@ item.naturesaura.aura_bottle.naturesaura:nether.name=Bottled Ghosts item.naturesaura.aura_bottle.naturesaura:end.name=Bottled Darkness item.naturesaura.aura_bottle.naturesaura:other.name=Bottled Substance item.naturesaura.farming_stencil.name=Farming Stencil +item.naturesaura.bottle_two_the_rebottling.name=Bottle and Cork container.naturesaura.tree_ritual.name=Ritual of the Forest container.naturesaura.altar.name=Natural Altar Infusion diff --git a/src/main/resources/assets/naturesaura/models/item/bottle_two_the_rebottling.json b/src/main/resources/assets/naturesaura/models/item/bottle_two_the_rebottling.json new file mode 100644 index 00000000..36775fc2 --- /dev/null +++ b/src/main/resources/assets/naturesaura/models/item/bottle_two_the_rebottling.json @@ -0,0 +1,6 @@ +{ + "parent": "item/generated", + "textures": { + "layer0": "naturesaura:items/bottle_two_the_rebottling" + } +} \ No newline at end of file diff --git a/src/main/resources/assets/naturesaura/patchouli_books/book/en_us/entries/collecting/aura_bottle.json b/src/main/resources/assets/naturesaura/patchouli_books/book/en_us/entries/collecting/aura_bottle.json index ba0b3e72..9f713296 100644 --- a/src/main/resources/assets/naturesaura/patchouli_books/book/en_us/entries/collecting/aura_bottle.json +++ b/src/main/resources/assets/naturesaura/patchouli_books/book/en_us/entries/collecting/aura_bottle.json @@ -6,17 +6,22 @@ "pages": [ { "type": "text", - "text": "$(aura) and its presence in the world has been a conundrum to researchers for decades. As such, they needed a way to better be able to analyze it, which is why $(item)Bottles$() were invented.$(br)While this might not be the full story of their conception, they can still be used to collect $(aura) in its purest form by simply interacting with the air directly while holding one in your hand." + "text": "$(aura) and its presence in the world has been a conundrum to researchers for a long time now. Back in the day, they used to use $(item)Bottles$() to collect $(aura) and to be able to analyze it in greater detail as it becomes visible to the naked eye that way. Soon after, complaints from uninformed civilians started troubling them: \"Other scientists already have a use for bottles, this will cause issues\", they said." + }, + { + "type": "crafting", + "text": "As such, and to shut out all the incoherent blabber, they created the $(item)Bottle and Cork$(): A similar, yet slightly different utensil to the bottle that can be used exclusively to collect $(aura) by simply interacting with the air while holding it.", + "recipe": "naturesaura:bottle_two_the_rebottling" }, { "type": "spotlight", "item": "naturesaura:aura_bottle{stored_type:'naturesaura:overworld'}", "link_recipe": true, - "text": "Of course, based on the world that you are currently in, the type of $(aura) collected will slightly vary. For instance, in the normal world, $(aura) can be gathered in the form of sunlight, while in the Nether realm, $(aura) can be gathered in the form of ghosts." + "text": "Of course, based on the world that you are currently in, the type of $(aura) collected will slightly vary. For instance, in the normal world, $(aura) can be gathered in the form of sunlight, while in the Nether realm, $(aura) can be gathered in the form of ghosts, and in the End realm, $(aura) is present in the form of an overabundance of darkness." }, { "type": "text", - "text": "Additionally, the collection of $(aura) in this manner can be automated easily using $(item)Dispensers$(): Putting empty bottles into them will cause them to be shot out with the cork slightly unscrewed, making them fill up with $(aura) in the process. As they are not sucked up by the Dispenser again afterwards, an additional tool like a $(item)Hopper$() is required." + "text": "Additionally, the collection of $(aura) in this manner can be automated easily using $(item)Dispensers$(): Putting empty $(item)Bottles and Corks$() into them will cause them to be shot out open, making them fill up with $(aura) in the process. As they are not sucked up by the Dispenser again afterwards, an additional tool like a $(item)Hopper$() is required." } ] } \ No newline at end of file diff --git a/src/main/resources/assets/naturesaura/recipes/bottle_two_the_rebottling.json b/src/main/resources/assets/naturesaura/recipes/bottle_two_the_rebottling.json new file mode 100644 index 00000000..244cd842 --- /dev/null +++ b/src/main/resources/assets/naturesaura/recipes/bottle_two_the_rebottling.json @@ -0,0 +1,15 @@ +{ + "type": "forge:ore_shapeless", + "ingredients": [ + { + "item": "minecraft:glass_bottle" + }, + { + "type": "forge:ore_dict", + "ore": "plankWood" + } + ], + "result": { + "item": "naturesaura:bottle_two_the_rebottling" + } +} \ No newline at end of file diff --git a/src/main/resources/assets/naturesaura/textures/items/bottle_two_the_rebottling.png b/src/main/resources/assets/naturesaura/textures/items/bottle_two_the_rebottling.png new file mode 100644 index 0000000000000000000000000000000000000000..7a05213a0f48f46d2fe8509ce6cc2a07f796d2fb GIT binary patch literal 287 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`3dtTpz6=aistgPb%?u1b{{!il z3=E|P3=FRl7#OT(FffScPl`Y422{&g;1OBOz`)H1!i*049y$UAB}!Z)N`mv#O3D+9 zQW**oGxJLH@={9_O!N%(OoSaWjsVp(db&7IqB+T!;k@)VexPaO1DcYj@ bJvg{!HRCUAh&Xi)=oki1S3j3^P6