Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ---- blockstate/catwalk.json
- {
- "forge_marker": 1,
- "variants": {
- "normal": [{
- "model": "cube_all"
- }]
- }
- }
- ---- BlockCatwalk.java
- public BlockCatwalk() {
- super(Material.iron, "catwalk"); // blockbase
- }
- ---- BlockBase.java
- public BlockBase(Material materialIn, String name, Class<? extends ItemBlock> clazz) {
- super(materialIn);
- setUnlocalizedName(name);
- setRegistryName(name);
- if(clazz == null) {
- GameRegistry.registerBlock(this);
- } else {
- GameRegistry.registerBlock(this, clazz);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement