New blocks and items
This commit is contained in:
parent
1966d89dc7
commit
98b714827a
20 changed files with 191 additions and 3 deletions
27
src/main/java/ru/betterend/blocks/EnderBlock.java
Normal file
27
src/main/java/ru/betterend/blocks/EnderBlock.java
Normal file
|
@ -0,0 +1,27 @@
|
|||
package ru.betterend.blocks;
|
||||
|
||||
import net.fabricmc.api.EnvType;
|
||||
import net.fabricmc.api.Environment;
|
||||
import net.fabricmc.fabric.api.object.builder.v1.block.FabricBlockSettings;
|
||||
import net.minecraft.block.BlockState;
|
||||
import net.minecraft.block.Material;
|
||||
import net.minecraft.block.MaterialColor;
|
||||
import net.minecraft.sound.BlockSoundGroup;
|
||||
import net.minecraft.util.math.BlockPos;
|
||||
import net.minecraft.world.BlockView;
|
||||
|
||||
public class EnderBlock extends BlockBase {
|
||||
|
||||
public EnderBlock() {
|
||||
super(FabricBlockSettings.of(Material.STONE, MaterialColor.field_25708)
|
||||
.hardness(5F)
|
||||
.resistance(6F)
|
||||
.requiresTool()
|
||||
.sounds(BlockSoundGroup.STONE));
|
||||
}
|
||||
|
||||
@Environment(EnvType.CLIENT)
|
||||
public int getColor(BlockState state, BlockView world, BlockPos pos) {
|
||||
return 0xFF005548;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue