Flora based extractor recipes
This commit is contained in:
parent
398cb9617d
commit
860068b27a
13 changed files with 40 additions and 74 deletions
|
@ -24,6 +24,8 @@
|
||||||
|
|
||||||
package techreborn.blocks;
|
package techreborn.blocks;
|
||||||
|
|
||||||
|
import net.minecraft.block.Block;
|
||||||
|
import net.minecraft.block.SoundType;
|
||||||
import net.minecraft.block.material.Material;
|
import net.minecraft.block.material.Material;
|
||||||
import net.minecraft.state.BooleanProperty;
|
import net.minecraft.state.BooleanProperty;
|
||||||
import net.minecraft.state.DirectionProperty;
|
import net.minecraft.state.DirectionProperty;
|
||||||
|
@ -63,7 +65,7 @@ public class BlockAlarm extends BaseTileBlock {
|
||||||
private AxisAlignedBB[] bbs;
|
private AxisAlignedBB[] bbs;
|
||||||
|
|
||||||
public BlockAlarm() {
|
public BlockAlarm() {
|
||||||
super(Material.ROCK);
|
super(Block.Properties.create(Material.ROCK));
|
||||||
this.setDefaultState(this.blockState.getBaseState().with(FACING, EnumFacing.NORTH).with(ACTIVE, false));
|
this.setDefaultState(this.blockState.getBaseState().with(FACING, EnumFacing.NORTH).with(ACTIVE, false));
|
||||||
this.bbs = GenBoundingBoxes(0.19, 0.81);
|
this.bbs = GenBoundingBoxes(0.19, 0.81);
|
||||||
RebornModelRegistry.registerModel(new ModelCompound(TechReborn.MOD_ID, this, "machines/lighting"));
|
RebornModelRegistry.registerModel(new ModelCompound(TechReborn.MOD_ID, this, "machines/lighting"));
|
||||||
|
|
|
@ -25,11 +25,11 @@
|
||||||
package techreborn.blocks;
|
package techreborn.blocks;
|
||||||
|
|
||||||
import net.minecraft.block.Block;
|
import net.minecraft.block.Block;
|
||||||
|
import net.minecraft.block.SoundType;
|
||||||
import net.minecraft.block.material.Material;
|
import net.minecraft.block.material.Material;
|
||||||
import net.minecraft.block.state.IBlockState;
|
import net.minecraft.block.state.IBlockState;
|
||||||
import net.minecraft.tileentity.TileEntity;
|
import net.minecraft.tileentity.TileEntity;
|
||||||
import net.minecraft.world.IBlockReader;
|
import net.minecraft.world.IBlockReader;
|
||||||
import net.minecraft.world.World;
|
|
||||||
import reborncore.common.multiblock.BlockMultiblockBase;
|
import reborncore.common.multiblock.BlockMultiblockBase;
|
||||||
import techreborn.tiles.TileMachineCasing;
|
import techreborn.tiles.TileMachineCasing;
|
||||||
|
|
||||||
|
@ -38,9 +38,8 @@ public class BlockMachineCasing extends BlockMultiblockBase {
|
||||||
public final int heatCapacity;
|
public final int heatCapacity;
|
||||||
|
|
||||||
public BlockMachineCasing(int heatCapacity) {
|
public BlockMachineCasing(int heatCapacity) {
|
||||||
super(Material.IRON);
|
super(Block.Properties.create(Material.IRON).hardnessAndResistance(2f).sound(SoundType.METAL));
|
||||||
this.heatCapacity = heatCapacity;
|
this.heatCapacity = heatCapacity;
|
||||||
setHardness(2F);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static int getHeatFromState(IBlockState state) {
|
public static int getHeatFromState(IBlockState state) {
|
||||||
|
|
|
@ -24,13 +24,14 @@
|
||||||
|
|
||||||
package techreborn.blocks;
|
package techreborn.blocks;
|
||||||
|
|
||||||
|
import net.minecraft.block.Block;
|
||||||
|
import net.minecraft.block.SoundType;
|
||||||
import net.minecraft.block.material.Material;
|
import net.minecraft.block.material.Material;
|
||||||
import reborncore.common.BaseBlock;
|
import reborncore.common.BaseBlock;
|
||||||
|
|
||||||
public class BlockMachineFrame extends BaseBlock {
|
public class BlockMachineFrame extends BaseBlock {
|
||||||
|
|
||||||
public BlockMachineFrame() {
|
public BlockMachineFrame() {
|
||||||
super(Material.IRON);
|
super(Block.Properties.create(Material.IRON).hardnessAndResistance(1f).sound(SoundType.METAL));
|
||||||
setHardness(1f);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -25,6 +25,7 @@
|
||||||
package techreborn.blocks;
|
package techreborn.blocks;
|
||||||
|
|
||||||
import net.minecraft.block.Block;
|
import net.minecraft.block.Block;
|
||||||
|
import net.minecraft.block.SoundType;
|
||||||
import net.minecraft.block.material.Material;
|
import net.minecraft.block.material.Material;
|
||||||
import net.minecraft.block.state.IBlockState;
|
import net.minecraft.block.state.IBlockState;
|
||||||
import net.minecraft.item.ItemStack;
|
import net.minecraft.item.ItemStack;
|
||||||
|
@ -67,10 +68,7 @@ public class BlockOre extends Block {
|
||||||
public static int sphaleriteMaxQuantity = 2;
|
public static int sphaleriteMaxQuantity = 2;
|
||||||
|
|
||||||
public BlockOre() {
|
public BlockOre() {
|
||||||
super(Block.Builder
|
super(Block.Properties.create(Material.ROCK).hardnessAndResistance(2f));
|
||||||
.create(Material.ROCK)
|
|
||||||
.hardnessAndResistance(2F)
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -24,13 +24,11 @@
|
||||||
|
|
||||||
package techreborn.blocks;
|
package techreborn.blocks;
|
||||||
|
|
||||||
|
import net.minecraft.block.Block;
|
||||||
import net.minecraft.block.BlockGlass;
|
import net.minecraft.block.BlockGlass;
|
||||||
import net.minecraft.block.SoundType;
|
import net.minecraft.block.SoundType;
|
||||||
import net.minecraft.block.material.Material;
|
import net.minecraft.block.material.Material;
|
||||||
import net.minecraft.block.state.IBlockState;
|
import net.minecraft.block.state.IBlockState;
|
||||||
import net.minecraft.util.BlockRenderLayer;
|
|
||||||
import net.minecraftforge.api.distmarker.Dist;
|
|
||||||
import net.minecraftforge.api.distmarker.OnlyIn;
|
|
||||||
import reborncore.client.models.ModelCompound;
|
import reborncore.client.models.ModelCompound;
|
||||||
import reborncore.client.models.RebornModelRegistry;
|
import reborncore.client.models.RebornModelRegistry;
|
||||||
import techreborn.TechReborn;
|
import techreborn.TechReborn;
|
||||||
|
@ -39,30 +37,12 @@ import java.util.Random;
|
||||||
public class BlockReinforcedGlass extends BlockGlass {
|
public class BlockReinforcedGlass extends BlockGlass {
|
||||||
|
|
||||||
public BlockReinforcedGlass() {
|
public BlockReinforcedGlass() {
|
||||||
super(Material.GLASS, false);
|
super(Block.Properties.create(Material.GLASS).hardnessAndResistance(4f, 60f).sound(SoundType.STONE));
|
||||||
setSoundType(SoundType.STONE);
|
|
||||||
setHardness(4.0F);
|
|
||||||
setResistance(60F);
|
|
||||||
RebornModelRegistry.registerModel(new ModelCompound(TechReborn.MOD_ID, this));
|
RebornModelRegistry.registerModel(new ModelCompound(TechReborn.MOD_ID, this));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int quantityDropped(Random random) {
|
public int quantityDropped(IBlockState state, Random random) {
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean isOpaqueCube(IBlockState state) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
@OnlyIn(Dist.CLIENT)
|
|
||||||
public BlockRenderLayer getRenderLayer() {
|
|
||||||
return BlockRenderLayer.CUTOUT;
|
|
||||||
}
|
|
||||||
|
|
||||||
public boolean isFullCube() {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -25,6 +25,7 @@
|
||||||
package techreborn.blocks;
|
package techreborn.blocks;
|
||||||
|
|
||||||
import net.minecraft.block.Block;
|
import net.minecraft.block.Block;
|
||||||
|
import net.minecraft.block.BlockFire;
|
||||||
import net.minecraft.block.SoundType;
|
import net.minecraft.block.SoundType;
|
||||||
import net.minecraft.block.material.Material;
|
import net.minecraft.block.material.Material;
|
||||||
import net.minecraft.init.Blocks;
|
import net.minecraft.init.Blocks;
|
||||||
|
@ -38,10 +39,8 @@ import techreborn.TechReborn;
|
||||||
public class BlockRubberPlank extends Block {
|
public class BlockRubberPlank extends Block {
|
||||||
|
|
||||||
public BlockRubberPlank() {
|
public BlockRubberPlank() {
|
||||||
super(Material.WOOD);
|
super(Block.Properties.create(Material.WOOD).hardnessAndResistance(2f).sound(SoundType.WOOD));
|
||||||
this.setHardness(2.0F);
|
((BlockFire) Blocks.FIRE).setFireInfo(this, 5, 20);
|
||||||
this.setSoundType(SoundType.WOOD);
|
|
||||||
Blocks.FIRE.setFireInfo(this, 5, 20);
|
|
||||||
RebornModelRegistry.registerModel(new ModelCompound(TechReborn.MOD_ID, this));
|
RebornModelRegistry.registerModel(new ModelCompound(TechReborn.MOD_ID, this));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -24,6 +24,7 @@
|
||||||
|
|
||||||
package techreborn.blocks;
|
package techreborn.blocks;
|
||||||
|
|
||||||
|
import net.minecraft.block.Block;
|
||||||
import net.minecraft.block.SoundType;
|
import net.minecraft.block.SoundType;
|
||||||
import net.minecraft.block.material.Material;
|
import net.minecraft.block.material.Material;
|
||||||
import reborncore.common.BaseBlock;
|
import reborncore.common.BaseBlock;
|
||||||
|
@ -31,9 +32,7 @@ import reborncore.common.BaseBlock;
|
||||||
public class BlockStorage extends BaseBlock {
|
public class BlockStorage extends BaseBlock {
|
||||||
|
|
||||||
public BlockStorage() {
|
public BlockStorage() {
|
||||||
super(Material.IRON);
|
super(Block.Properties.create(Material.IRON).hardnessAndResistance(2f).sound(SoundType.METAL));
|
||||||
setHardness(2f);
|
|
||||||
setSoundType(SoundType.METAL);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// public static ItemStack getStorageBlockByName(String name, int count) {
|
// public static ItemStack getStorageBlockByName(String name, int count) {
|
||||||
|
|
|
@ -24,6 +24,7 @@
|
||||||
|
|
||||||
package techreborn.blocks.cable;
|
package techreborn.blocks.cable;
|
||||||
|
|
||||||
|
import net.minecraft.block.Block;
|
||||||
import net.minecraft.block.BlockContainer;
|
import net.minecraft.block.BlockContainer;
|
||||||
import net.minecraft.block.material.Material;
|
import net.minecraft.block.material.Material;
|
||||||
import net.minecraft.block.properties.IProperty;
|
import net.minecraft.block.properties.IProperty;
|
||||||
|
@ -82,10 +83,8 @@ public class BlockCable extends BlockContainer {
|
||||||
public final TRContent.Cables type;
|
public final TRContent.Cables type;
|
||||||
|
|
||||||
public BlockCable(TRContent.Cables type) {
|
public BlockCable(TRContent.Cables type) {
|
||||||
super(Material.ROCK);
|
super(Block.Properties.create(Material.ROCK).hardnessAndResistance(1f, 8f));
|
||||||
this.type = type;
|
this.type = type;
|
||||||
setHardness(1F);
|
|
||||||
setResistance(8F);
|
|
||||||
setDefaultState(getDefaultState().with(EAST, false).with(WEST, false).with(NORTH, false).with(SOUTH, false).with(UP, false).with(DOWN, false));
|
setDefaultState(getDefaultState().with(EAST, false).with(WEST, false).with(NORTH, false).with(SOUTH, false).with(UP, false).with(DOWN, false));
|
||||||
BlockWrenchEventHandler.wrenableBlocks.add(this);
|
BlockWrenchEventHandler.wrenableBlocks.add(this);
|
||||||
}
|
}
|
||||||
|
|
|
@ -53,9 +53,7 @@ import java.util.List;
|
||||||
public class BlockFusionCoil extends Block {
|
public class BlockFusionCoil extends Block {
|
||||||
|
|
||||||
public BlockFusionCoil() {
|
public BlockFusionCoil() {
|
||||||
super(Material.IRON);
|
super(Block.Properties.create(Material.IRON).hardnessAndResistance(2f).sound(SoundType.METAL));
|
||||||
setHardness(2f);
|
|
||||||
setSoundType(SoundType.METAL);
|
|
||||||
RebornModelRegistry.registerModel(new ModelCompound(TechReborn.MOD_ID, this, "machines/generators"));
|
RebornModelRegistry.registerModel(new ModelCompound(TechReborn.MOD_ID, this, "machines/generators"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -27,6 +27,7 @@ package techreborn.blocks.storage;
|
||||||
import com.google.common.base.Predicate;
|
import com.google.common.base.Predicate;
|
||||||
import com.google.common.collect.Iterators;
|
import com.google.common.collect.Iterators;
|
||||||
import net.minecraft.block.Block;
|
import net.minecraft.block.Block;
|
||||||
|
import net.minecraft.block.SoundType;
|
||||||
import net.minecraft.block.material.Material;
|
import net.minecraft.block.material.Material;
|
||||||
import net.minecraft.block.state.IBlockState;
|
import net.minecraft.block.state.IBlockState;
|
||||||
import net.minecraft.entity.EntityLivingBase;
|
import net.minecraft.entity.EntityLivingBase;
|
||||||
|
@ -57,8 +58,7 @@ public abstract class BlockEnergyStorage extends BaseTileBlock {
|
||||||
public int guiID;
|
public int guiID;
|
||||||
|
|
||||||
public BlockEnergyStorage(String name, int guiID) {
|
public BlockEnergyStorage(String name, int guiID) {
|
||||||
super(Material.IRON);
|
super(Block.Properties.create(Material.IRON).hardnessAndResistance(2f));
|
||||||
setHardness(2f);
|
|
||||||
this.setDefaultState(this.blockState.getBaseState().with(FACING, EnumFacing.NORTH));
|
this.setDefaultState(this.blockState.getBaseState().with(FACING, EnumFacing.NORTH));
|
||||||
this.name = name;
|
this.name = name;
|
||||||
this.guiID = guiID;
|
this.guiID = guiID;
|
||||||
|
|
|
@ -70,7 +70,7 @@ public class BlockPlayerDetector extends BlockMachineBase {
|
||||||
public PropertyString TYPE;
|
public PropertyString TYPE;
|
||||||
|
|
||||||
public BlockPlayerDetector() {
|
public BlockPlayerDetector() {
|
||||||
super(true);
|
super();
|
||||||
this.setDefaultState(this.getStateFromMeta(0));
|
this.setDefaultState(this.getStateFromMeta(0));
|
||||||
for (int i = 0; i < types.length; i++) {
|
for (int i = 0; i < types.length; i++) {
|
||||||
RebornModelRegistry.registerModel(new ModelCompound(TechReborn.MOD_ID, this, i, "machines/tier1_machines").setInvVariant("type=" + types[i]));
|
RebornModelRegistry.registerModel(new ModelCompound(TechReborn.MOD_ID, this, i, "machines/tier1_machines").setInvVariant("type=" + types[i]));
|
||||||
|
|
|
@ -27,6 +27,7 @@ package techreborn.blocks.transformers;
|
||||||
import com.google.common.base.Predicate;
|
import com.google.common.base.Predicate;
|
||||||
import com.google.common.collect.Iterators;
|
import com.google.common.collect.Iterators;
|
||||||
import net.minecraft.block.Block;
|
import net.minecraft.block.Block;
|
||||||
|
import net.minecraft.block.SoundType;
|
||||||
import net.minecraft.block.material.Material;
|
import net.minecraft.block.material.Material;
|
||||||
import net.minecraft.state.DirectionProperty;
|
import net.minecraft.state.DirectionProperty;
|
||||||
import net.minecraft.block.state.BlockStateContainer;
|
import net.minecraft.block.state.BlockStateContainer;
|
||||||
|
@ -57,8 +58,7 @@ public abstract class BlockTransformer extends BaseTileBlock {
|
||||||
public String name;
|
public String name;
|
||||||
|
|
||||||
public BlockTransformer(String name) {
|
public BlockTransformer(String name) {
|
||||||
super(Material.IRON);
|
super(Block.Properties.create(Material.IRON).hardnessAndResistance(2f));
|
||||||
setHardness(2f);
|
|
||||||
this.setDefaultState(this.blockState.getBaseState().with(FACING, EnumFacing.NORTH));
|
this.setDefaultState(this.blockState.getBaseState().with(FACING, EnumFacing.NORTH));
|
||||||
this.name = name;
|
this.name = name;
|
||||||
RebornModelRegistry.registerModel(new ModelCompound(TechReborn.MOD_ID, this, "machines/energy"));
|
RebornModelRegistry.registerModel(new ModelCompound(TechReborn.MOD_ID, this, "machines/energy"));
|
||||||
|
|
|
@ -47,29 +47,20 @@ public class ExtractorRecipes extends RecipeMethods {
|
||||||
register(getStack(Blocks.RED_TULIP), getStack(Items.ROSE_RED, 2), false);
|
register(getStack(Blocks.RED_TULIP), getStack(Items.ROSE_RED, 2), false);
|
||||||
register(getStack(Blocks.POPPY), getStack(Items.ROSE_RED, 2), false);
|
register(getStack(Blocks.POPPY), getStack(Items.ROSE_RED, 2), false);
|
||||||
register(getStack(Blocks.ROSE_BUSH), getStack(Items.ROSE_RED, 4), false);
|
register(getStack(Blocks.ROSE_BUSH), getStack(Items.ROSE_RED, 4), false);
|
||||||
|
register(getStack(Blocks.BLUE_ORCHID), getStack(Items.LIGHT_BLUE_DYE, 2), false);
|
||||||
|
register(getStack(Blocks.AZURE_BLUET), getStack(Items.LIGHT_GRAY_DYE, 2), false);
|
||||||
register(getStack(Blocks.RED_FLOWER), getStack(Items.DYE, 2, 1), false);
|
register(getStack(Blocks.OXEYE_DAISY), getStack(Items.LIGHT_GRAY_DYE, 2), false);
|
||||||
register(getStack(Blocks.YELLOW_FLOWER), getStack(Items.DYE, 2, 11), false);
|
register(getStack(Blocks.WHITE_TULIP), getStack(Items.LIGHT_GRAY_DYE, 2), false);
|
||||||
register(getStack(Blocks.RED_FLOWER, 1, 1), getStack(Items.DYE, 2, 12), false);
|
register(getStack(Blocks.ALLIUM), getStack(Items.MAGENTA_DYE, 2), false);
|
||||||
register(getStack(Blocks.RED_FLOWER, 1, 2), getStack(Items.DYE, 2, 13), false);
|
register(getStack(Blocks.LILAC), getStack(Items.MAGENTA_DYE, 4), false);
|
||||||
register(getStack(Blocks.RED_FLOWER, 1, 3), getStack(Items.DYE, 2, 7), false);
|
register(getStack(Blocks.ORANGE_TULIP), getStack(Items.ORANGE_DYE, 2), false);
|
||||||
register(getStack(Blocks.RED_FLOWER, 1, 4), getStack(Items.DYE, 2, 1), false);
|
register(getStack(Blocks.PINK_TULIP), getStack(Items.PINK_DYE, 2), false);
|
||||||
register(getStack(Blocks.RED_FLOWER, 1, 5), getStack(Items.DYE, 2, 14), false);
|
register(getStack(Blocks.PEONY), getStack(Items.PINK_DYE, 4), false);
|
||||||
register(getStack(Blocks.RED_FLOWER, 1, 6), getStack(Items.DYE, 2, 7), false);
|
register(getStack(Blocks.DANDELION), getStack(Items.DANDELION_YELLOW, 2), false);
|
||||||
register(getStack(Blocks.RED_FLOWER, 1, 7), getStack(Items.DYE, 2, 9), false);
|
register(getStack(Blocks.SUNFLOWER), getStack(Items.DANDELION_YELLOW, 2), false);
|
||||||
register(getStack(Blocks.RED_FLOWER, 1, 8), getStack(Items.DYE, 2, 7), false);
|
register(getStack(Blocks.TALL_GRASS), getStack(Items.WHEAT_SEEDS), false);
|
||||||
register(getStack(Blocks.DOUBLE_PLANT), getStack(Items.DYE, 4, 11), false);
|
register(getStack(Blocks.LARGE_FERN), getStack(Items.WHEAT_SEEDS), false);
|
||||||
register(getStack(Blocks.DOUBLE_PLANT, 1, 1), getStack(Items.DYE, 4, 13), false);
|
register(getStack(Blocks.DEAD_BUSH), getStack(Items.STICK));
|
||||||
register(getStack(Blocks.DOUBLE_PLANT, 1, 4), getStack(Items.DYE, 4, 1), false);
|
|
||||||
register(getStack(Blocks.DOUBLE_PLANT, 1, 5), getStack(Items.DYE, 4, 9), false);
|
|
||||||
|
|
||||||
|
|
||||||
register(getStack(Blocks.TALLGRASS, 1, 1), getStack(Items.WHEAT_SEEDS), false);
|
|
||||||
register(getStack(Blocks.TALLGRASS, 1, 2), getStack(Items.WHEAT_SEEDS), false);
|
|
||||||
register(getStack(Blocks.DOUBLE_PLANT, 1, 2), getStack(Items.WHEAT_SEEDS, 2), false);
|
|
||||||
register(getStack(Blocks.DOUBLE_PLANT, 1, 3), getStack(Items.WHEAT_SEEDS, 2), false);
|
|
||||||
register(getStack(Blocks.DEADBUSH, 1, 0), getStack(Items.STICK));
|
|
||||||
for (int i = 1; i < 15; i++)
|
for (int i = 1; i < 15; i++)
|
||||||
register(getStack(Blocks.WOOL, 1, i), getStack(Blocks.WOOL, 1, 0), false);
|
register(getStack(Blocks.WOOL, 1, i), getStack(Blocks.WOOL, 1, 0), false);
|
||||||
for (Fluid fluid : FluidRegistry.getRegisteredFluids().values()) {
|
for (Fluid fluid : FluidRegistry.getRegisteredFluids().values()) {
|
||||||
|
|
Loading…
Reference in a new issue