Advertisement
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Custom enchantments

Comments in 'Plugin Development' started by JonsMC, Aug 20, 2016.

  1. JonsMC
    Offline

    JonsMC Active Member

    Joined:
    Jul 26, 2016
    Posts:
    107
    Minecraft User:
    JonsMC
    PHP:
    const TYPE_WEAPON_COOL 32;
    So it would work?
  2. SOFe
    Offline

    SOFe Banned

    Joined:
    May 28, 2016
    Posts:
    386
    Minecraft User:
    Herobrine
    Not sure. I doubt if nonexistent enchantment IDs work at all.
  3. JonsMC
    Offline

    JonsMC Active Member

    Joined:
    Jul 26, 2016
    Posts:
    107
    Minecraft User:
    JonsMC
    I only want to add an enchantment to Enchantment.php then get that enchantment and do stuff :D
  4. Xx__ItzTyler__xX
    Offline

    Xx__ItzTyler__xX New Member

    Joined:
    Oct 28, 2015
    Posts:
    24
    Minecraft User:
    SuperDude36
    Code:
    const TYPE_WEAPON_WITHER = 41;
    
    Code:
    self::$enchantments[self::TYPE_WEAPON_WITHER] = new Enchantment(self::TYPE_WEAPON_WITHER, "%enchantment.weapon.wither", self::RARITY_UNCOMMON, self::ACTIVATION_EQUIP, self::SLOT_AXE);
    
    This works. Just you need a CE plugin which I can't give you because I didn't make it.

Share This Page

Advertisement