mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-17 19:05:31 +00:00
Add cocoon material
This commit is contained in:
1 parent
f9eeb8a1d8
commit
080dd93dc2
3 files changed
+26
-2
No files matched your search
@@ -34,7 +34,7 @@ import net.minecraftforge.fml.relauncher.SideOnly;
|
||||
public class BlockCocoon extends Block implements ITileEntityProvider, IStateMapperRegister {
|
||||
|
||||
public BlockCocoon() {
|
||||
super(Material.cloth);
|
||||
super(new MaterialCocoon());
|
||||
setTickRandomly(true);
|
||||
setStepSound(soundTypeGrass);
|
||||
setCreativeTab(null);
|
||||
|
||||
@@ -33,7 +33,7 @@ import net.minecraftforge.fml.relauncher.SideOnly;
|
||||
public class BlockSolidCocoon extends Block implements ITileEntityProvider, IStateMapperRegister {
|
||||
|
||||
public BlockSolidCocoon() {
|
||||
super(Material.cloth);
|
||||
super(new MaterialCocoon());
|
||||
setHarvestLevel("scoop", 0);
|
||||
setHardness(0.5F);
|
||||
setTickRandomly(true);
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
/*******************************************************************************
|
||||
* Copyright (c) 2011-2014 SirSengir.
|
||||
* All rights reserved. This program and the accompanying materials
|
||||
* are made available under the terms of the GNU Lesser Public License v3
|
||||
* which accompanies this distribution, and is available at
|
||||
* http://www.gnu.org/licenses/lgpl-3.0.txt
|
||||
*
|
||||
* Various Contributors including, but not limited to:
|
||||
* SirSengir (original work), CovertJaguar, Player, Binnie, MysteriousAges
|
||||
******************************************************************************/
|
||||
package forestry.lepidopterology.blocks;
|
||||
|
||||
import net.minecraft.block.material.MapColor;
|
||||
import net.minecraft.block.material.Material;
|
||||
|
||||
public class MaterialCocoon extends Material {
|
||||
|
||||
public MaterialCocoon() {
|
||||
super(MapColor.clothColor);
|
||||
|
||||
setRequiresTool();
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user