TheDarkGamerYT

New code & .toml file

Jan 19th, 2020
474
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package jonathan.armor;
  2.  
  3. import org.apache.logging.log4j.LogManager;
  4. import org.apache.logging.log4j.Logger;
  5.  
  6. import net.minecraftforge.common.MinecraftForge;
  7. import net.minecraftforge.fml.common.Mod;
  8. import net.minecraftforge.fml.event.lifecycle.FMLClientSetupEvent;
  9. import net.minecraftforge.fml.event.lifecycle.FMLCommonSetupEvent;
  10. import net.minecraftforge.fml.javafmlmod.FMLJavaModLoadingContext;
  11.  
  12. @Mod("armorplus")
  13. public class ArmorPlus
  14. {
  15. public static ArmorPlus instance;
  16. public static final String modid = "armorplus";
  17. private static Logger logger = LogManager.getLogger(modid);
  18.  
  19. public ArmorPlus()
  20. {
  21. instance = this;
  22.  
  23. FMLJavaModLoadingContext.get().getModEventBus().addListener(this::setup);
  24. FMLJavaModLoadingContext.get().getModEventBus().addListener(this::clientRegistries);
  25.  
  26. MinecraftForge.EVENT_BUS.register(this);
  27. }
  28.  
  29. private void setup(final FMLCommonSetupEvent event)
  30. {
  31. logger.info("Setup Method Registered");
  32. }
  33.  
  34. private void clientRegistries(final FMLClientSetupEvent event)
  35. {
  36. logger.info("clientRegistries Method Registered");
  37. }
  38. }
  39. ---------------------------------------------------------------------------------------------------------------------------------------
  40. modLoader="javafml" #mandatory
  41. loaderVersion="[28,)" #mandatory (28 is current forge version)
  42. [[armorplus]] #mandatory
  43. modId="armorplus" #mandatory
  44. version="1.0" #mandatory
  45. displayName="Armor+" #mandatory
  46. credits="1" #optional
  47. authors="idrk" #optional
  48. description='''
  49. lol hi
  50.  
  51. this is
  52.  
  53. a description
  54. '''
  55. # A dependency - use the . to indicate dependency for a specific modid. Dependencies are optional.
  56. [[dependencies.armorplus]] #optional
  57. modId="forge" #mandatory
  58. mandatory=true #mandatory
  59. versionRange="[28,)" #mandatory
  60. ordering="NONE"
  61. side="BOTH"
  62.  
  63. [[dependencies.armorplus]]
  64. modId="minecraft"
  65. mandatory=true
  66. versionRange="[1.14.4]"
  67. ordering="NONE"
  68. side="BOTH"
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×