Search
 
SCRIPT & CODE EXAMPLE
 

JAVA

minecraft block java

public class ModBlocks {
	//defferedRegistry
	public static final DeferredRegister<Block> BLOCKS = DeferredRegister.create(ForgeRegistries.BLOCKS, modclass.MOD_ID);
	//and now the registerobject of a block
	public static final RegistryObject<Block> NAME_BLOCK = BLOCKS.register("name_block", () -> new Block(Block.Properties.create(Material.MATERIAL).sound(SoundType.SOUND).hardnessAndResistance(hardness, resistance)));
	//replace NAME_BLOCK by the name of your block (always in caps) same with the register but with no caps
  	//replace MATERIAL by the material name, replace SOUND with the sound name , replace hardness with the Float of hardness value, replace resistance with Float of resistance value
  	//you can allways add more things for proprieties
}
Comment

PREVIOUS NEXT
Code Example
Java :: How to center a print statement text? 
Java :: JAVA Display numbers from 1 to 5 
Java :: java log4j2 load configuration 
Java :: Rotate array to left k cells python 
Java :: Java Copying Arrays Using arraycopy() method 
Java :: get all colors in string spigot 
Java :: produces 
Java :: java set get all not containing 
Java :: Stringbuilser 
Java :: change button background drawable in code 
Java :: java Generate parentheses all combinations 
Java :: comparable interface 
Java :: first method in jdbc 
Java :: Java Creating LinkedHashMap from Other Maps 
Java :: Jax-RS PUT annotation 
Java :: data base spring 
Java :: adding new field in existing kibana index using spark java 
Java :: java decrypt CryptoJS 
Java :: get value from dynamic input android 
Java :: Java TestNG Data provider Provider with multiple variables 
Java :: java fx custom cell factory for combo box 
Java :: java 001 
Java :: Spring Boot user registration and login REST API 
Java :: how to do 4th root java 
Java :: lighting strike solved 
Java :: how do I change the opacity of a JButton 
Java :: convert kotlin to java online 
Java :: remove part of string java 
Java :: android list to string 
Java :: java jcombobox selected item changed 
ADD CONTENT
Topic
Content
Source link
Name
4+7 =