Filled Fix Anvil

Discussion in 'Plugin Requests' started by Heaved, Mar 23, 2021.

  1. Offline

    Heaved

    Minecraft version: 1.8.8

    Suggested name: Anvil Fix

    What I want: I'd like If Someone Make Me A Plugin ^-^ Its A Fix Anvil . So U Have A Command Like /setanvil to set an anvil when ur facing one . when u right click with a weapon or armor it will not open the normal anvit but it will fix the weapon
    but u need gold ingot to fix the item [eg: 2 gold ingot]

    so if u can add a config file to set the repairable items if u can ^^

    Ideas for commands: /setanvil to set the fix anvil

    Ideas for permissions: anvilfix.set for the /setanvil command

    When I'd like it by: As Soon As You Can . And Thank UUUU
     
  2. Offline

    FFlorida

    I'll make it ASAP
     
  3. Offline

    NewtyMan

    Hello,

    I gave this plugin a go and managed to successfully develop it. It's a pretty straight forward thing, so there is not much things to explain, but I'll still do a quick documentation below.


    HOW IT WORKS:

    Once you have an item that can be repaired in your hand and right click an anvil that has AnvilFix turned on, it will try to take the amount of repairMaterial from your inventory (BE AWARE that you need to have enough items in one stack in order for payment to work - will be fixed/improved in future version). If you have enough, it will take that item away and fully repair your item/armor.


    CONFIG.YML

    repair-everything ->
    All items are repairable
    repairable-items -> If repair-everything is set to false, this list will define repairable items
    repair-price-material -> Material used as a price for repairement
    repair-price-amount -> Amount of material required to repair an item


    COMMANDS:

    /setanvil =>
    Toggles the aimed anvil status (turns AnvilFix on|off)


    PERMISSIONS:

    anvilfix.set =>
    Gives permission to use /setanvil command
     

    Attached Files:

  4. Offline

    Heaved

    Hello And Thank U So Much For The Plugin . Can U Do Me A Favor And [If U Can Please] Change The Messages Like This : https://prnt.sc/10tp3m3
    Into This : &7You Don't Have Enough Gold Ingot To Repair !


    https://prnt.sc/10tp4oj
    Into This : &7Successefully Repaired !




    https://prnt.sc/10tp5pf
    Into This : &7Your Item Is Already Repaired !


    And Thank U So Much ^^

    Also The Not Repairable Items Message Into : &7This Item Is Not Repairable !

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Mar 23, 2021
  5. Offline

    NewtyMan

    Hello,

    Here is the fixed version that includes new entries in the config.yml that allow you to fully customize the error and success messages. I have already set the default values to the one in your last message, however feel free to modify them even further if you wish to.

    If there are any other issues, questions or further requests, feel free to post them here and I'll reply as soon as possible ^-^
     

    Attached Files:

  6. Offline

    Heaved

    Thank U So Much Bro Ur Great Developer And I Found This When Im Goin g To Repair An Item . In The Config The Amount Is 2 But Check The Video
     
  7. Offline

    NewtyMan

    Found the error in the code. Was a small thingy I forgot to change. Here is the fixed version.
     

    Attached Files:

  8. Offline

    Heaved

    @NewtyMan
    Ur Awesome Bro Thank U So Much This Is All What I Need ^^
     

Share This Page