SHARE
TWEET

Untitled

a guest Feb 24th, 2020 94 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package com.user.peacefulcrafting;
  2.  
  3. import com.user.peacefulcrafting.init.ModItems;
  4. import net.minecraft.init.Blocks;
  5. import net.minecraftforge.fml.common.Mod;
  6. import net.minecraftforge.fml.common.Mod.EventHandler;
  7. import net.minecraftforge.fml.common.event.FMLInitializationEvent;
  8. import net.minecraftforge.fml.common.event.FMLPreInitializationEvent;
  9. import org.apache.logging.log4j.Logger;
  10.  
  11. @Mod(modid = PeacefulCrafting.MODID, name = PeacefulCrafting.NAME, version = PeacefulCrafting.VERSION)
  12.  
  13. public class PeacefulCrafting {
  14.     public static final String MODID = "peacefulcrafting";
  15.     public static final String NAME = "Peaceful Crafting";
  16.     public static final String VERSION = "1.0";
  17.  
  18.     private static Logger logger;
  19.  
  20.     @EventHandler
  21.     public void preInit(FMLPreInitializationEvent event) {
  22.         logger = event.getModLog();
  23.         ModItems.RegistrationHandler.init();
  24.     }
  25.  
  26.     @EventHandler
  27.     public void init(FMLInitializationEvent event) {
  28.         // some example code
  29.         logger.info("DIRT BLOCK >> {}", Blocks.DIRT.getRegistryName());
  30.     }
  31. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top