Jump to content

Rajhab

Members
  • Posts

    4
  • Joined

  • Last visited

Everything posted by Rajhab

  1. Thanks for your information. Gonna try that out
  2. Hello. I am trying to read the value (durability) from a config file for an Shield Item. I cant get the code to work and i need some help. So I just need help on how to call the value from the config file. The code from the Config file works absolutely fine. Here is the code of my Shield Item getting registered and getting the Properties. public static final DeferredItem<Item> LEATHER_SHIELD = ITEMS.register("leather_shield", () -> new ShieldItem(new Item.Properties().durability(MoreVanillaShieldsConfig.LEATHER_SHIELD_DURABILITY.get())){ @Override public int getMaxDamage(ItemStack stack) { return MoreVanillaShieldsConfig.LEATHER_SHIELD_DURABILITY.get(); } });
  3. Sorry. I am new. I was browsing for a solution but only found this post. But thanks for the advice! You have a nice day!
  4. Hey. Looks like you figured it out. How did you managed to load the durability for items from a config? Working on it for days and cant get it to work.
×
×
  • Create New...

Important Information

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