Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- setCreativeTab(CreativeTabs.TabName);
- setCreativeTab(CreativeTabs.BUILDING_BLOCKS);
- @Mod.EventBusSubscriber
- @Mod(modid = NoFear.MODID, name = NoFear.NAME, version = NoFear.VERSION)
- public class NoFear
- {
- public static final String MODID = "nofear";
- public static final String NAME = "No fear";
- public static final String VERSION = "1.0";
- private static Logger logger;
- @EventHandler
- public void preLoad(FMLPreInitializationEvent event)
- {
- logger = event.getModLog();
- logger.info("PRELOAD");
- }
- @SubscribeEvent
- public static void registerBlocks(RegistryEvent.Register<Block> event) {
- event.getRegistry().register(new BlockTigerMuzzle());
- }
- @EventHandler
- public void preInit(FMLPreInitializationEvent event)
- {
- }
- @EventHandler
- public void init(FMLInitializationEvent event)
- {
- }
- }
- public class BlockTigerMuzzle extends Block {
- public BlockTigerMuzzle() {
- super(Material.IRON);
- this.setRegistryName("nofear","tigermuzzle");
- this.setCreativeTab(CreativeTabs.SEARCH);
- this.setHardness(15F);
- this.setResistance(10F);
- this.setHarvestLevel("pickaxe", 3);
- this.setLightLevel(0F);
- this.setUnlocalizedName("Tiger muzzle");
- }
- }
- {
- "forge_marker": 1,
- "variants": {
- "normal": {
- "model": "nofear:tigermuzzle"
- },
- "inventory": {
- "model": "nofear:tigermuzzle",
- "transform": "forge:default-block"
- }
- }
- }
- {
- "ambientocclusion": false,
- "textures": {
- "muzzle": "nofear:blocks/tigermuzzle"
- },
- "elements": [
- {
- "from": [ 0, 0, 0 ],
- "to": [ 16, 16, 16 ],
- "faces": {
- "down": { "texture": "#muzzle", "cullface": "down" },
- "up": { "texture": "#muzzle", "cullface": "up" },
- "north": { "texture": "#muzzle", "cullface": "north" },
- "south": { "texture": "#muzzle", "cullface": "south" },
- "west": { "texture": "#muzzle", "cullface": "west" },
- "east": { "texture": "#muzzle", "cullface": "east" }
- }
- }
- ]
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement