Jump to content

Lapzzo

Member
  • Posts

    1,368
  • Joined

  • Last visited

  • Days Won

    18

Posts posted by Lapzzo

  1. 9 hours ago, NotKaizo said:

    No I did not find a way to make it so it won't repair full dura items. Why are you trying to make it so it opens to arg-1? Just make it so they execute the command.

    Im doing this because I dont want them to be able to execute /repair, but console to do /repair <player>

  2. On 9/23/2021 at 5:08 PM, NotKaizo said:

    Well I couldn't find a way but I will do more research on it tomorrow when I wake up. I am pretty sure you can't repair blocks/non weapons. 

    Im not sure what I did, but I think I broke it. Also did u find a way to make it so u cant repair items that are full durability?

    Broken skript:

    command /repair [<player>]:
        permission: repair.use
        trigger:
            if arg-1 is set:
                open inventory of arg-1 to arg-1
                set {activeGui::%arg-1's uuid%} to "inventoryGui"
                play sound "block.note_block.pling"  to arg-1
                send "&aPlease click an item to repair it for 50 Coins!" to arg-1
            else:
                open inventory of player to player
                set {activeGui::%player's uuid%} to "inventoryGui"
                play sound "block.note_block.pling"  to player
                send "&aPlease click an item to repair it for 50 Coins!" to player
    
    on inventory click:
        {activeGui::%player's uuid%} = "inventoryGui"
        cancel event
        set {_dura} to max durability of clicked item
        set {_fix} to durability of clicked item
        if {_fix} < {_dura}:
            if {@balance} >= {@repair_cost}:
                remove {@repair_cost} from {@balance}
                repair clicked item
                play sound "block.note_block.pling" to player
            else:
                play sound "entity.villager.no" to player
                send "&cYou do not have enough!"
        else if {_fix} >= {_dura}:
            play sound "entity.villager.no" to player
    
    on inventory close:
        if {activeGui::%player's uuid%} is "inventoryGui":
            delete {activeGui::%player's uuid%}
            send "&cYou have canceled your purchase!"

    Also I made it so the player in the command (Argument-1) doesnt get opened to the executer, but to arg-1. That was my original intention, but it seemed to break it

  3. 14 hours ago, NotKaizo said:
    options:
    
        balance: {balance::%player's uuid%} # Variable of your currency
    
        repair_cost: 50 # Repair cost to repair the item
    
    
    command /repair [<player>]:
        permission: repair.use
        trigger:
            if arg-1 is set:
                open inventory of arg-1 to player
                set {activeGui::%player's uuid%} to "inventoryGui"
                play sound "block.note_block.pling"  to player
                send "&aPlease click an item to repair it for 50 Coins!" to player
            else:
                open inventory of player to player
                set {activeGui::%player's uuid%} to "inventoryGui"
                play sound "block.note_block.pling"  to player
                send "&aPlease click an item to repair it for 50 Coins!" to player
    
    on inventory click:
        {activeGui::%player's uuid%} = "inventoryGui"
        cancel event
        set {_dura} to max durability of clicked item
        set {_fix} to durability of clicked item
        if {_fix} < {_dura}:
            if {@balance} >= {@repair_cost}:
                remove {@repair_cost} from {@balance}
                repair clicked item
                play sound "block.note_block.pling" to player
            else:
                play sound "entity.villager.no" to player
                send "&cStop trying to repair that item! You are broke smh."
        else if {_fix} >= {_dura}:
            play sound "entity.villager.no" to player
    
    on inventory close:
        if {activeGui::%player's uuid%} is "inventoryGui":
            delete {activeGui::%player's uuid%}
            send "&cYou closed your inventory!"

    Also made a small option section for you to change the variable and cost of upgrade! Hope you like it 🙂

    Question:

    I can repair stuff already repaired. Any fix?

  4. 18 hours ago, ES63 said:

    @Lapzzonobody drinks sprite these days, i havent dranken it since 2018 since i was sick and the only soda that i could drink was sprite. personally i drink coke more.

    Well I havent had coke since 2015. Fanta orange and sprite/7up are the best sodas for me

  5. This is a bit of a big request but here it is

    on /repair, it opens a gui with the players inventory, and they can click on any armour piece/sword and it repairs it. For the cost of 50 of the variable {coins::%player's uuid%}

  6. 1 minute ago, Cerial_Killer said:

    pretty much its a skript which can open google to whoever is lazy to click on that shiny button!

    you can copy the skript from here or download it:

    command /lazyass:
    	trigger:
    		send "<tooltip:click this if ur a lazy ass><link:https://google.com>here u go lazy ass<reset>"

     

    hyper.sk 130 B · 0 downloads

    Thats unsual.. I cant download it, chrome has blocked it since it was to dangerous. thats weird

  7. Hello! Thanks for posting on forums.

    Go on console on your dashboard and type

    pardon itsbilly_plays

    Remove itsbilly_plays with your Minecraft username. Dont use a / in the command, or console will not unban you.

  8. on leftclick:
    	if player's is tool is golden shovel named "&6&lDrill":
      		if event-block is bedrock:
    		send "&cYou cant mine this! its unbreakable!" to player
    		cancel event
    	else:
    		give player 1 event-block
    		set event-block to air
    		remove 2 from player's held item's durability

    try this

  9. 12 hours ago, DontBebad said:

    yes it would be very pog
    i would love to have this added

     

    On 9/9/2021 at 7:35 PM, JoshOnMinecraftt said:

    Wait so I can literally just install the plugin.. and add it to the minehut server..?

    Reply with instructions and I will reply (if i remember)

     

    On 8/21/2021 at 3:55 PM, vickvaporu said:

    LEASE ADD THIS

     

    On 8/19/2021 at 10:51 AM, dawid_he11o said:

    es pls i really want this plugin

    Download the file, then drag it into your plugins folder in your server dashboard.Restart your server and it should work

×
×
  • Create New...