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

Enchantments don’t exist?

Discussion in 'Help' started by ExtremelyJunior, Aug 17, 2018.

  1. ExtremelyJunior

    ExtremelyJunior Spider

    Messages:
    14
    I feel bed that I keep asking for help on here but this is really frustrating me. I am attempting to add sharpness to a sword through AdvancedKits and once I reload the plugin, this is what I get in the console:

    This is the code:

    Code:
    Chicken:
      # ITEM FORMAT: "id:damage:count:name:ench_name:ench_level"
      # NO enchantments and NO custom name: "id:damage:count"
    
      # ONLY custom name: "id:damage:count:custom name"
    
      # ONLY enchantments: "id:damage:count:DEFAULT:enchantment1:level"
      # (Put DEFAULT in the name field if you do not want a custom name)
      # You can put as many enchantments as you want like this: "id:damage:count:DEFAULT:enchantment1:level:enchantment2:level" etc.
    
      # Enchantments AND custom name: "id:damage:count:custom name:enchantment1:level"
      # You can put as many enchantments as you want like this: "id:damage:count:custom name:enchantment1:level:enchantment2:level" etc.
    
      # You can write both numeric or string IDs
    
      items:
      - "stone_sword:0:1:DEFAULT:sharpness:1"
     
  2. robske_110 (Tim)

    robske_110 (Tim) Wither Skeleton Poggit Reviewer

    Messages:
    1,342
    GitHub:
    robske110
    try writing the sharpness enchantment in uppercase (SHARPNESS), that's how the constant is defined in the pmmp src code. But I don't know how enchantments are implemented in AdvancedKits, I might follow up on that
     
    ExtremelyJunior likes this.
  3. robske_110 (Tim)

    robske_110 (Tim) Wither Skeleton Poggit Reviewer

    Messages:
    1,342
    GitHub:
    robske110
    ExtremelyJunior likes this.
  4. ExtremelyJunior

    ExtremelyJunior Spider

    Messages:
    14
  5. corytortoise

    corytortoise Skeleton

    Messages:
    825
    GitHub:
    corytortoise
    What version of PMMP are you running? Have you tried other enchantments? Do they work? By all means, the original method should have worked.
     
  6. Awzaw

    Awzaw Zombie Pigman Poggit Admin

    Messages:
    726
    GitHub:
    awzaw
    Maybe the original author made a mistake when updating to allow strings for Item IDs, or you are using an older version with a recent config file?
    Just use numerical IDs and it should work. This is using the older Poggit-orphanage version, complete with the warning to use IDs :
    PHP:
      # Please note: You have to write numeric IDs
      
    items:
      - 
    "272:0:1:DEFAULT:sharpness:1"
     
    ExtremelyJunior likes this.
  7. ExtremelyJunior

    ExtremelyJunior Spider

    Messages:
    14
    Version matches the config file. Also still seems to be a problem when using numerical IDs. I’ll just request a fix for the author. More than likely he did do a mistake.
     
  8. Awzaw

    Awzaw Zombie Pigman Poggit Admin

    Messages:
    726
    GitHub:
    awzaw
    I just checked this with the latest AdvancedKits release at https://poggit.pmmp.io/p/AdvancedKits and it worked fine with both numerical and string IDs for the reward - so that's a red herring. Are you going to tell us which version of PMMP PocketMine you are using, exactly?
     
  9. ExtremelyJunior

    ExtremelyJunior Spider

    Messages:
    14
    Weird. It’s #1386 (1.5.3)
     
  10. Destroyer57

    Destroyer57 Zombie

    Messages:
    275
    Try with id of sharpness: 9
     
  11. yezsoweti

    yezsoweti Creeper

    Messages:
    1
    Sharpness enchantment is not implemented nor registered in the latest release (3.1.4), that's why it says it does not exist
     
  12. RyanShaw

    RyanShaw Witch

    Messages:
    69
  13. Awzaw

    Awzaw Zombie Pigman Poggit Admin

    Messages:
    726
    GitHub:
    awzaw
    Here's the list of enchantments registered in #1386 (aka release 3.1.4). As yezsoweti points out, sharpness isn't registered in that release, so you'll have to use an enchantments plugin.
     
    RyanShaw likes this.
  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.