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 00000000..edd35633 Binary files /dev/null and b/src/main/resources/assets/naturesaura/textures/blocks/moss_generator.png differ diff --git a/src/main/resources/assets/naturesaura/textures/blocks/moss_generator_top.png b/src/main/resources/assets/naturesaura/textures/blocks/moss_generator_top.png new file mode 100644 index 00000000..54cad69c Binary files /dev/null and b/src/main/resources/assets/naturesaura/textures/blocks/moss_generator_top.png differ