Advertisement
Guest User

Untitled

a guest
Jun 16th, 2019
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.09 KB | None | 0 0
  1. setCreativeTab(CreativeTabs.TabName);
  2.  
  3. setCreativeTab(CreativeTabs.BUILDING_BLOCKS);
  4.  
  5. @Mod.EventBusSubscriber
  6. @Mod(modid = NoFear.MODID, name = NoFear.NAME, version = NoFear.VERSION)
  7. public class NoFear
  8. {
  9. public static final String MODID = "nofear";
  10. public static final String NAME = "No fear";
  11. public static final String VERSION = "1.0";
  12.  
  13. private static Logger logger;
  14.  
  15. @EventHandler
  16. public void preLoad(FMLPreInitializationEvent event)
  17. {
  18. logger = event.getModLog();
  19. logger.info("PRELOAD");
  20.  
  21. }
  22.  
  23. @SubscribeEvent
  24. public static void registerBlocks(RegistryEvent.Register<Block> event) {
  25. event.getRegistry().register(new BlockTigerMuzzle());
  26. }
  27.  
  28.  
  29. @EventHandler
  30. public void preInit(FMLPreInitializationEvent event)
  31. {
  32. }
  33.  
  34. @EventHandler
  35. public void init(FMLInitializationEvent event)
  36. {
  37. }
  38. }
  39.  
  40. public class BlockTigerMuzzle extends Block {
  41.  
  42. public BlockTigerMuzzle() {
  43. super(Material.IRON);
  44. this.setRegistryName("nofear","tigermuzzle");
  45. this.setCreativeTab(CreativeTabs.SEARCH);
  46. this.setHardness(15F);
  47. this.setResistance(10F);
  48. this.setHarvestLevel("pickaxe", 3);
  49. this.setLightLevel(0F);
  50. this.setUnlocalizedName("Tiger muzzle");
  51.  
  52. }
  53. }
  54.  
  55. {
  56. "forge_marker": 1,
  57. "variants": {
  58. "normal": {
  59. "model": "nofear:tigermuzzle"
  60. },
  61. "inventory": {
  62. "model": "nofear:tigermuzzle",
  63. "transform": "forge:default-block"
  64. }
  65. }
  66. }
  67.  
  68. {
  69. "ambientocclusion": false,
  70. "textures": {
  71. "muzzle": "nofear:blocks/tigermuzzle"
  72. },
  73. "elements": [
  74. {
  75. "from": [ 0, 0, 0 ],
  76. "to": [ 16, 16, 16 ],
  77. "faces": {
  78. "down": { "texture": "#muzzle", "cullface": "down" },
  79. "up": { "texture": "#muzzle", "cullface": "up" },
  80. "north": { "texture": "#muzzle", "cullface": "north" },
  81. "south": { "texture": "#muzzle", "cullface": "south" },
  82. "west": { "texture": "#muzzle", "cullface": "west" },
  83. "east": { "texture": "#muzzle", "cullface": "east" }
  84. }
  85. }
  86. ]
  87. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement