From 57d44f68bdd85277aec5085d788ea15347344045 Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Sat, 2 Feb 2019 14:23:16 +0100 Subject: [PATCH] yo homie --- .../blocks/BlockMossGenerator.java | 23 +++++++++++++++- .../blockstates/moss_generator.json | 20 ++++++++++++++ .../assets/naturesaura/lang/en_US.lang | 1 + .../entries/creating/moss_generator.json | 17 ++++++++++++ .../naturesaura/recipes/moss_generator.json | 26 ++++++++++++++++++ .../textures/blocks/moss_generator.png | Bin 0 -> 559 bytes .../textures/blocks/moss_generator_top.png | Bin 0 -> 593 bytes 7 files changed, 86 insertions(+), 1 deletion(-) create mode 100644 src/main/resources/assets/naturesaura/blockstates/moss_generator.json create mode 100644 src/main/resources/assets/naturesaura/patchouli_books/book/en_us/entries/creating/moss_generator.json create mode 100644 src/main/resources/assets/naturesaura/recipes/moss_generator.json create mode 100644 src/main/resources/assets/naturesaura/textures/blocks/moss_generator.png create mode 100644 src/main/resources/assets/naturesaura/textures/blocks/moss_generator_top.png diff --git a/src/main/java/de/ellpeck/naturesaura/blocks/BlockMossGenerator.java b/src/main/java/de/ellpeck/naturesaura/blocks/BlockMossGenerator.java index 99a64aa2..e199fb16 100644 --- a/src/main/java/de/ellpeck/naturesaura/blocks/BlockMossGenerator.java +++ b/src/main/java/de/ellpeck/naturesaura/blocks/BlockMossGenerator.java @@ -1,10 +1,31 @@ package de.ellpeck.naturesaura.blocks; +import de.ellpeck.naturesaura.api.render.IVisualizable; import de.ellpeck.naturesaura.blocks.tiles.TileEntityMossGenerator; +import net.minecraft.block.SoundType; import net.minecraft.block.material.Material; +import net.minecraft.util.math.AxisAlignedBB; +import net.minecraft.util.math.BlockPos; +import net.minecraft.world.World; +import net.minecraftforge.fml.relauncher.Side; +import net.minecraftforge.fml.relauncher.SideOnly; -public class BlockMossGenerator extends BlockContainerImpl { +public class BlockMossGenerator extends BlockContainerImpl implements IVisualizable { public BlockMossGenerator() { super(Material.ROCK, "moss_generator", TileEntityMossGenerator.class, "moss_generator"); + this.setSoundType(SoundType.STONE); + this.setHardness(2.5F); + } + + @Override + @SideOnly(Side.CLIENT) + public AxisAlignedBB getVisualizationBounds(World world, BlockPos pos) { + return new AxisAlignedBB(pos).grow(2); + } + + @Override + @SideOnly(Side.CLIENT) + public int getVisualizationColor(World world, BlockPos pos) { + return 0x15702d; } } diff --git a/src/main/resources/assets/naturesaura/blockstates/moss_generator.json b/src/main/resources/assets/naturesaura/blockstates/moss_generator.json new file mode 100644 index 00000000..0236d012 --- /dev/null +++ b/src/main/resources/assets/naturesaura/blockstates/moss_generator.json @@ -0,0 +1,20 @@ +{ + "forge_marker": 1, + "defaults": { + "model": "minecraft:cube", + "textures": { + "particle": "naturesaura:blocks/moss_generator", + "up": "naturesaura:blocks/moss_generator_top", + "down": "naturesaura:blocks/moss_generator_top", + "north": "#particle", + "east": "#particle", + "south": "#particle", + "west": "#particle" + }, + "transform": "forge:default-block" + }, + "variants": { + "normal": [{}], + "inventory": [{}] + } +} \ No newline at end of file diff --git a/src/main/resources/assets/naturesaura/lang/en_US.lang b/src/main/resources/assets/naturesaura/lang/en_US.lang index 4ec75a3c..6e0ce6d4 100644 --- a/src/main/resources/assets/naturesaura/lang/en_US.lang +++ b/src/main/resources/assets/naturesaura/lang/en_US.lang @@ -42,6 +42,7 @@ tile.naturesaura.animal_spawner.name=Altar of Birthing tile.naturesaura.auto_crafter.name=Automatic Constructor tile.naturesaura.gold_brick.name=Golden Stone Bricks tile.naturesaura.rf_converter.name=Energetic Aura Forge +tile.naturesaura.moss_generator.name=Swamp Homi item.naturesaura.eye.name=Environmental Eye item.naturesaura.eye_improved.name=Environmental Ocular diff --git a/src/main/resources/assets/naturesaura/patchouli_books/book/en_us/entries/creating/moss_generator.json b/src/main/resources/assets/naturesaura/patchouli_books/book/en_us/entries/creating/moss_generator.json new file mode 100644 index 00000000..53362d87 --- /dev/null +++ b/src/main/resources/assets/naturesaura/patchouli_books/book/en_us/entries/creating/moss_generator.json @@ -0,0 +1,17 @@ +{ + "name": "Swamp Homi", + "icon": "naturesaura:moss_generator", + "category": "creating", + "advancement": "naturesaura:infused_materials", + "pages": [ + { + "type": "text", + "text": "A great source of natural $(aura) is the $(thing)moss$() on any type of mossy block. This property can be made use of in the form of the $(item)Swamp Homi$(): It will take any blocks around it that are covered in moss and remove it, leaving the clean block behind. For each block that it does this with, it generates a bit of $(aura) and spreads it into the environment." + }, + { + "type": "crafting", + "recipe": "naturesaura:moss_generator", + "text": "Creating the $(item)Swamp Homi$()" + } + ] +} \ No newline at end of file diff --git a/src/main/resources/assets/naturesaura/recipes/moss_generator.json b/src/main/resources/assets/naturesaura/recipes/moss_generator.json new file mode 100644 index 00000000..26af5c1b --- /dev/null +++ b/src/main/resources/assets/naturesaura/recipes/moss_generator.json @@ -0,0 +1,26 @@ +{ + "type": "forge:ore_shaped", + "pattern": [ + "ICI", + "CWC", + "ICI" + ], + "key": { + "C": { + "item": "minecraft:mossy_cobblestone" + }, + "I": { + "item": "naturesaura:infused_iron" + }, + "W": { + "type": "minecraft:item_nbt", + "item": "naturesaura:aura_bottle", + "nbt": { + "stored_type": "naturesaura:overworld" + } + } + }, + "result": { + "item": "naturesaura:moss_generator" + } +} \ No newline at end of file diff --git a/src/main/resources/assets/naturesaura/textures/blocks/moss_generator.png b/src/main/resources/assets/naturesaura/textures/blocks/moss_generator.png new file mode 100644 index 0000000000000000000000000000000000000000..edd35633854e82a2e9f15acaf3933bab8e2f0920 GIT binary patch literal 559 zcmV+~0?_@5P)N2bZe?^J zG%hhNG!sB*!~g&Rtw}^dR5(vvlf6#kKoo`NfzTq*io_7H!DCO7VjYiTlb-?!AyH6K z(Xm<~QPA)zlq;p%C!6(m%#F|%$MIWu!@yZPJCbb9kWeY-nN#Z{Ru9xoHUFf9}} zn{6s`pN`sNt%1UO@qy#PB0vBELqKo0Ss(f#lWG1dGy&85jgs*=m z0%9U-00X$j2X4_%lt##d49F4v`ZJcn?|qh@_rp8@>+rf|le!p_qp(FlZ3c+J)5nQS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