1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

CustomEnchantments

Discussion in 'Development' started by Junkdude, Dec 19, 2016.

  1. Legoboy0215

    Legoboy0215 Witch

    Messages:
    64
    GitHub:
    legoboy0215
    You gotta love Reflections :shoghi:

    PS: What is this emoji...
     
  2. Muqsit

    Muqsit Chicken

    Messages:
    1,548
    GitHub:
    muqsit
    Heard of custom NBT tags before? Anyone??
    You can do a lot with those, especially when we are talking about items in general.
     
    Thunder33345 likes this.
  3. InspectorGadget

    InspectorGadget Zombie Pigman

    Messages:
    462
    GitHub:
    InspectorGadget
    I will, thanks. I understand that it shd be kept as a secret to prevent misue.
     
  4. kaliiks

    kaliiks Zombie

    Messages:
    250
    Use $item->setCustomName to get enchantment name and set what have enchant to do by entity damage event
     
  5. Junkdude

    Junkdude Zombie

    Messages:
    346
    GitHub:
    JunkDaCoder
    Example?
     
  6. Junkdude

    Junkdude Zombie

    Messages:
    346
    GitHub:
    JunkDaCoder
    Can you give an example?
     
  7. SOFe

    SOFe Administrator Staff Member PMMP Team Poggit Admin

    Messages:
    1,968
    GitHub:
    sof3
    This does not really add an enchantment. This only seems to have an enchantment on an item, and this is not maintainable.
    This is not to be kept a secret, but I don't think it is reasonable that anyone who understands the nature of reflections needs someone else to write the code for him.
     
    jasonwynn10 and Muqsit like this.
  8. Wii54

    Wii54 Silverfish

    Messages:
    16
    GitHub:
    wii54
    Why not just use NBT?
     
  9. DataSyncError

    DataSyncError Silverfish

    Messages:
    20
    GitHub:
    idirtniverse
    Everyone is telling us to use NBT, how does it work? I tried to find some spruces but non of them are relevant to it :/
     
  10. Thunder33345

    Thunder33345 Moderator Staff Member

    Messages:
    2,137
    GitHub:
    Thunder33345
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.