This commit is contained in:
paulevsGitch 2020-12-17 12:14:12 +03:00
parent 4910c0568e
commit cc412d512b
2 changed files with 4 additions and 3 deletions

View file

@ -6,6 +6,7 @@ import net.minecraft.block.BlockState;
import net.minecraft.block.Material; import net.minecraft.block.Material;
import net.minecraft.block.ShapeContext; import net.minecraft.block.ShapeContext;
import net.minecraft.item.ItemPlacementContext; import net.minecraft.item.ItemPlacementContext;
import net.minecraft.sound.BlockSoundGroup;
import net.minecraft.state.StateManager; import net.minecraft.state.StateManager;
import net.minecraft.state.property.BooleanProperty; import net.minecraft.state.property.BooleanProperty;
import net.minecraft.state.property.DirectionProperty; import net.minecraft.state.property.DirectionProperty;
@ -25,7 +26,7 @@ public class BlockSilkMothNest extends BlockBase implements IRenderTypeable {
private static final VoxelShape BOTTOM = createCuboidShape(0, 0, 0, 16, 16, 16); private static final VoxelShape BOTTOM = createCuboidShape(0, 0, 0, 16, 16, 16);
public BlockSilkMothNest() { public BlockSilkMothNest() {
super(FabricBlockSettings.of(Material.WOOL).hardness(0.5F).resistance(0.1F).nonOpaque()); super(FabricBlockSettings.of(Material.WOOL).hardness(0.5F).resistance(0.1F).sounds(BlockSoundGroup.WOOL).nonOpaque());
this.setDefaultState(getDefaultState().with(ACTIVE, true)); this.setDefaultState(getDefaultState().with(ACTIVE, true));
} }

View file

@ -15,8 +15,8 @@
"faces": { "faces": {
"down": { "uv": [ 0, 0, 16, 16 ], "texture": "#top", "cullface": "down" }, "down": { "uv": [ 0, 0, 16, 16 ], "texture": "#top", "cullface": "down" },
"up": { "uv": [ 0, 0, 16, 16 ], "texture": "#top" }, "up": { "uv": [ 0, 0, 16, 16 ], "texture": "#top" },
"north": { "uv": [ 0, 4, 16, 16 ], "texture": "#texture", "cullface": "north" }, "north": { "uv": [ 0, 4, 16, 16 ], "texture": "#front", "cullface": "north" },
"south": { "uv": [ 0, 4, 16, 16 ], "texture": "#front", "cullface": "south" }, "south": { "uv": [ 0, 4, 16, 16 ], "texture": "#texture", "cullface": "south" },
"west": { "uv": [ 0, 4, 16, 16 ], "texture": "#texture", "cullface": "west" }, "west": { "uv": [ 0, 4, 16, 16 ], "texture": "#texture", "cullface": "west" },
"east": { "uv": [ 0, 4, 16, 16 ], "texture": "#texture", "cullface": "east" } "east": { "uv": [ 0, 4, 16, 16 ], "texture": "#texture", "cullface": "east" }
} }