This commit is contained in:
Ellpeck 2019-02-02 14:23:16 +01:00
parent cbf21d38ce
commit 57d44f68bd
7 changed files with 86 additions and 1 deletions

View file

@ -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;
}
}

View file

@ -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": [{}]
}
}

View file

@ -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

View file

@ -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$()"
}
]
}

View file

@ -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"
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 559 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 593 B