noCustomCraft

Discussion in 'Plugin Requests' started by madtomic, May 3, 2020.

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

    madtomic

    Plugin category: Mechanical

    Minecraft version: 1.12.2

    Suggested name:
    noCustomCraft

    What I want: I would like a plugin that would cancel crafting vanilla recipes with materials that has custom names/lore.

    Also, the crafting table result should be set to null so it is not craft-able.

    Example:
    Log makes Planks

    A Log with custom name such as Rare Log
    It cannot be used to make Planks.

    Could use a config.yml file to add the names\lore to block the custom item from being used in a vanilla recipe.

    Commands: No commands

    Permissions
    :
    No permissions

    Thank you for reading.
     
  2. Offline

    GravityCY

    @madtomic
    I've pretty much made the plugin but....

    I need your input. Do you want for it to cancel ANY item that has lore in general without checking for the config or to cancel any item that simply has lore that is in the config.
    And for the name should it cancel any item that has a name that isn't the vanilla name or any item that has a name that is in the config
     
  3. Offline

    madtomic

    @GravityCY

    I would like it to check display name to make things simple. If it is in config.yml It will cancel craft recipe. I think checking the lore wouldn’t make any sense.

    It would probably be best to strip the colors and simply check the name in config.yml
     
  4. Offline

    GravityCY

    @madtomic

    If I interpreted correctly, you've basically now doubled down on the lore functionality and simply want it ONLY to be checking for the name?
    Also a little sidenote, I can easily remove this, but I've added a command to add, remove and list the custom names in the config file with a permission to use the command (noCustomCraft), if you simply want to access the config file to change anything and remove the command tell me.

    Well if that's it , I'll just give you the jar.

    If anything is not how you want it, then tell me
     

    Attached Files:

    Last edited by a moderator: May 6, 2020
  5. Offline

    madtomic

    @GravityCY

    Is the filter case sensitive, because I was able to use custom name that is on customNamesToDisallow list. I used the command to add this.

    Custom Name Item

    when use command to add, it adds:
    custom name item

    I don't think these are the same custom name being filter now when using an item with that in a recipe.
     
  6. Offline

    GravityCY

    @madtomic

    No it isn't case sensitive, should I make it input exactly what you type into the config and then also check for if the custom item being crafted is the exact name in the config?

    If so, I just attached the updated file on this post!
     

    Attached Files:

    Last edited: May 8, 2020
  7. Offline

    madtomic

    @GravityCY

    Thank you. It works better now.

    However, it seems to forget to block after few crafting tries. I don't know why it does this. It would block first few tries and then it allows it again.

    EDIT: I will check what is causing the tps to go up. I just found out why the server is lagging.
     
    Last edited: May 10, 2020
Thread Status:
Not open for further replies.

Share This Page