Jump to content
Search In
  • More options...
Find results that contain...
Find results in...


  • Content Count

  • Joined

  • Last visited

Community Reputation

0 Neutral

About Aligatetcolt

  • Rank
    Tree Puncher
  1. I got it working. still thanks for your help. it was still realy helpfull
  2. public class ModColorHandeler { @SubscribeEvent public static void registerItemColourHandlers(final ColorHandlerEvent.Item event) { final BlockColors blockColors = event.getBlockColors(); final ItemColors itemColors = event.getItemColors(); final IItemColor itemColourHandler = (stack, tintIndex) -> { return itemColors.getColor(stack, tintIndex); }; itemColors.register(itemColourHandler, ccamItems.FLOWER_CROWN.get()); } Here you go. i havent changed much yet because i didn't fully understand what i was supposed to change yet.
  3. I am not 100%. i have basically been doing everything by trail and error. and i couldn't figure out on how and what i was supposed to do. and i am not sure on how to check if it is the right color because right now it still give that stackoverflow error.
  4. Yeah the exact same. just like minecraft does with leather. just put the item in the crafting table with dye and then it is colord. it works on the models but still not in the inventory screen i send an pic of what i have right now as the item. idk if i was clear enough but i want to change the white part to the color that it was dyed.
  5. Sorry for my bad habit of naming things. i got used to using unity alot and a new file is called a script. What i meant was, The color data i got from the code snippet earlier. i need to add that then to the nbt data with the ItemStack#getOrCreateChildTag(<your mod ID>) that you send. Right? The only thing i dont really know at the moment is where would i add to the items nbt data. in the place where i register the items or in a new file.
  6. Thanks alot. just to clarify. I will now have to take that data i got from the script i send before and then set that as nbt data into the item that needs that. but is that supposed to be in a different script or in the color manager script i send before.
  7. Alright thanks for the reply. So i deleted the @OnlyIn But as the second part. How would i actually set that color that i get on to the item i want it on. which is in this case the Flower Crown.
  8. Goodday, I am making an armor mod and i want to make some items dyeable just like leather. I already have the dye working on the item models but now i want it also to represent the color on the item. but i cant really figure out how. i saw it had something to do with a item color handler and iitemcolor but i dont realy understand it. does someone maybe have an example on how it should work. this is what i have now and i keep getting a stackoverflow error. @Mod.EventBusSubscriber(modid = ColtCosmeticArmorMod.MOD_ID, bus = Bus.MOD) public class ModC
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.