33 lines
1.4 KiB
Java
33 lines
1.4 KiB
Java
|
|
package cz.kofolamod.registry;
|
||
|
|
|
||
|
|
import cz.kofolamod.KofolaMod;
|
||
|
|
import cz.kofolamod.block.KofolaCrateBlock;
|
||
|
|
import net.minecraft.world.level.block.Block;
|
||
|
|
import net.minecraft.world.level.block.LiquidBlock;
|
||
|
|
import net.minecraft.world.level.block.SoundType;
|
||
|
|
import net.minecraft.world.level.block.state.BlockBehaviour;
|
||
|
|
import net.minecraft.world.level.material.MapColor;
|
||
|
|
import net.minecraft.world.level.material.PushReaction;
|
||
|
|
import net.minecraftforge.registries.DeferredRegister;
|
||
|
|
import net.minecraftforge.registries.ForgeRegistries;
|
||
|
|
import net.minecraftforge.registries.RegistryObject;
|
||
|
|
|
||
|
|
public class ModBlocks {
|
||
|
|
public static final DeferredRegister<Block> BLOCKS =
|
||
|
|
DeferredRegister.create(ForgeRegistries.BLOCKS, KofolaMod.MOD_ID);
|
||
|
|
|
||
|
|
public static final RegistryObject<Block> KOFOLA_CRATE = BLOCKS.register("kofola_crate",
|
||
|
|
KofolaCrateBlock::new);
|
||
|
|
|
||
|
|
public static final RegistryObject<LiquidBlock> KOFOLA_FLUID_BLOCK = BLOCKS.register("kofola_fluid",
|
||
|
|
() -> new LiquidBlock(ModFluids.KOFOLA_SOURCE, BlockBehaviour.Properties.of()
|
||
|
|
.mapColor(MapColor.COLOR_BROWN)
|
||
|
|
.replaceable()
|
||
|
|
.noCollission()
|
||
|
|
.strength(100.0F)
|
||
|
|
.pushReaction(PushReaction.DESTROY)
|
||
|
|
.noLootTable()
|
||
|
|
.liquid()
|
||
|
|
.sound(SoundType.EMPTY)));
|
||
|
|
}
|