Jump to content

lawl281

Members
  • Posts

    2
  • Joined

  • Last visited

Everything posted by lawl281

  1. Schematica is on 1.10 I've been using it in my world plenty
  2. Hello, I will start off with the fact that I am new to the modding world and well aware of the fact that I have alot to learn. With that out of the way I am trying to register an enum so I don't have to have a class for each color. public ColoredGlowstone(Material materialIn) { super(materialIn, MapColor.SILVER); for (int i = 0; i < 16; i++) { setUnlocalizedName(EnumDyeColor.byMetadata(i) + "Glowstone"); setRegistryName(EnumDyeColor.byMetadata(i) + "Glowstone"); } setCreativeTab(MoarGlowstone.glowstoneTab); setSoundType(SoundType.GLASS); setHardness(0.3f); setResistance(1.5f); setLightOpacity(16); setLightLevel(0.9375f); } When trying to use setRegistryName with an ENUM it throws: java.lang.IllegalStateException: Attempted to set registry name with existing registry name! New: orangeGlowstone Old: moarglowstone:whiteGlowstone Now I am aware people have used similiar methods but I can't find any way to register with the new method and ENUMs. Any help is greatly appreciated.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.