Advertisement
Guest User

Untitled

a guest
Mar 4th, 2021
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.31 KB | None | 0 0
  1. package com.charles.tutorialmod.lists;
  2.  
  3. import com.charles.tutorialmod.main;
  4.  
  5. import net.minecraft.block.Block;
  6. import net.minecraft.block.SoundType;
  7. import net.minecraft.block.material.Material;
  8. import net.minecraftforge.fml.RegistryObject;
  9. import net.minecraftforge.registries.DeferredRegister;
  10. import net.minecraftforge.registries.ForgeRegistries;
  11.  
  12. public class BlockList
  13. {
  14. public static final DeferredRegister<Block> BLOCKS = new DeferredRegister<Block>(ForgeRegistries.BLOCKS, main.MOD_ID);
  15.  
  16. public static final RegistryObject<Block> COPPER_ORE = BLOCKS.register("copper_ore", () -> new Block(Block.Properties.create(Material.ROCK).hardnessAndResistance(2.0f).sound(SoundType.STONE)));
  17.  
  18. public static final RegistryObject<Block> TUTORIAL_SLAB = BLOCKS.register("tutorial_slab", () -> new Block(Block.Properties.create(Material.ROCK).hardnessAndResistance(2.0f).sound(SoundType.STONE)));
  19.  
  20. public static final RegistryObject<Block> TUTORIAL_STAIRS = BLOCKS.register("tutorial_stairs", () -> new Block(Block.Properties.create(Material.ROCK).hardnessAndResistance(2.0f).sound(SoundType.STONE)));
  21.  
  22. public static final RegistryObject<Block> LIME_LINOLEUM = BLOCKS.register("lime_linoleum", () -> new Block(Block.Properties.create(Material.ROCK).hardnessAndResistance(2.0f).sound(SoundType.STONE)));
  23.  
  24.  
  25.  
  26. }
  27.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement