The ability to give livingentities custom armor in 1.17.1

Discussion in 'Plugin Development' started by xpaintall, Mar 18, 2022.

Thread Status:
Not open for further replies.
  1. Offline

    xpaintall

    I have no idea, but coding custom mobs (without nms) in 1.17.1 is just impossible. I've tried so hard to find the correct method without success it's honestly just making me go bald. Before, it was
    Code:
    mob.getEquipment().setHelmet() //bla bla
    BUT NOW, ALMOST EVERY SINGLE USEFUL METHOD, has been replaced with LETTERS

    upload_2022-3-18_18-51-47.png

    if anyone knows the correct letter to successfully debunk this issue, please answer
     
  2. Online

    timtower Administrator Administrator Moderator

    @xpaintall Welcome to the world of obfuscation.
    Look at the arguments instead of the method name.
     
  3. Offline

    xpaintall

    @timtower yeah yeah i know, i'm aware of that technique.

    I've tried this#getEquipment()#b(ItemStack stack) which appears not to be working, because whenever I put an itemstack in there i get an error saying that I have to convert the itemstack to string with String#valueOf. Converting it to string does absolutely nothing.

    using this#getEquipment(EnumItemSlot#f)#setItem(Item#getById(314)#getItem());
    appears to not work as well
     
Thread Status:
Not open for further replies.

Share This Page