[HELP] Adding +1 enchant to an item

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

coyuu

New Member
Jan 12, 2020
6
0
0
22
I'm trying to make an command on skript which adds a level to an enchant
For example, ./sharpness and if there is sharpness 1 on a sword, it will go to sharpness 2

How do i do it?
 
You can use:
enchant the tool with "sharpness %level of efficiency of the tool + 1%" parsed as enchantment type
 
You can use:
enchant the tool with "sharpness %level of efficiency of the tool + 1%" parsed as enchantment type
Thank you! but is there a way to make it like when you do the command, it takes away 1000 dollars
 
How about if they don't have enough balance?
It will go negative
Make a check:
if player’s balance is higher or equal to <amount>:
[doublepost=1586359789,1586359734][/doublepost]Mark this thread as solved please
 
It will go negative
Make a check:
if player’s balance is higher or equal to <amount>:
[doublepost=1586359789,1586359734][/doublepost]Mark this thread as solved please
it says "player's balance isn't a variable etc
 
Do you have vault and economy plugin installed?
yes
[doublepost=1586452240,1586451596][/doublepost]
Do you have vault and economy plugin installed?
This is what i have idk

Code:
command /efficiency [<text>]:
    permission: efficiency.enchant
    permission message: [&c&l&!&f] You don't have permission
    trigger:
        if arg 1 is not set:
            if {wait.%player%} does not exist:
                set {wait.%player%} to false
            if {wait.%player%} is true:
                wait 3 ticks
            enchant the tool with "efficiency %level of efficiency of the tool + 1%" parsed as enchantment type
        if player's balance is greater than 9999:
         execute console command "eco take %player% 10000"
         message "&7Efficiency &chas now been applied on your Pickaxe!"
              else:
                 message "&cYou don't have enough money to apply &7Efficiency &con your Pickaxe! You need &f10000&c!"
I tried to do the remove 1000 from players balance
 
yes
[doublepost=1586452240,1586451596][/doublepost]
This is what i have idk

Code:
command /efficiency [<text>]:
    permission: efficiency.enchant
    permission message: [&c&l&!&f] You don't have permission
    trigger:
        if arg 1 is not set:
            if {wait.%player%} does not exist:
                set {wait.%player%} to false
            if {wait.%player%} is true:
                wait 3 ticks
            enchant the tool with "efficiency %level of efficiency of the tool + 1%" parsed as enchantment type
        if player's balance is greater than 9999:
         execute console command "eco take %player% 10000"
         message "&7Efficiency &chas now been applied on your Pickaxe!"
              else:
                 message "&cYou don't have enough money to apply &7Efficiency &con your Pickaxe! You need &f10000&c!"
I tried to do the remove 1000 from players balance
Try this: Some of your indenting was off

Code:
command /efficiency [<text>]:
    permission: efficiency.enchant
    permission message: [&c&l&!&f] You don't have permission
    trigger:
        if arg 1 is not set:
            if {wait.%player%} does not exist:
                set {wait.%player%} to false
            if {wait.%player%} is true:
                wait 3 ticks
            enchant the tool with "efficiency %level of efficiency of the tool + 1%" parsed as enchantment type
        if player's balance is greater than 9999:
            execute console command "eco take %player% 10000"
            message "&7Efficiency &chas now been applied on your Pickaxe!"
        else:
            message "&cYou don't have enough money to apply &7Efficiency &con your Pickaxe! You need &f10000&c!"
 
Try this: Some of your indenting was off

Code:
command /efficiency [<text>]:
    permission: efficiency.enchant
    permission message: [&c&l&!&f] You don't have permission
    trigger:
        if arg 1 is not set:
            if {wait.%player%} does not exist:
                set {wait.%player%} to false
            if {wait.%player%} is true:
                wait 3 ticks
            enchant the tool with "efficiency %level of efficiency of the tool + 1%" parsed as enchantment type
        if player's balance is greater than 9999:
            execute console command "eco take %player% 10000"
            message "&7Efficiency &chas now been applied on your Pickaxe!"
        else:
            message "&cYou don't have enough money to apply &7Efficiency &con your Pickaxe! You need &f10000&c!"
oh okay thank you
[doublepost=1586483470,1586479581][/doublepost]
Try this: Some of your indenting was off

Code:
command /efficiency [<text>]:
    permission: efficiency.enchant
    permission message: [&c&l&!&f] You don't have permission
    trigger:
        if arg 1 is not set:
            if {wait.%player%} does not exist:
                set {wait.%player%} to false
            if {wait.%player%} is true:
                wait 3 ticks
            enchant the tool with "efficiency %level of efficiency of the tool + 1%" parsed as enchantment type
        if player's balance is greater than 9999:
            execute console command "eco take %player% 10000"
            message "&7Efficiency &chas now been applied on your Pickaxe!"
        else:
            message "&cYou don't have enough money to apply &7Efficiency &con your Pickaxe! You need &f10000&c!"
Can you help please, it says can't compare 'players balance' with an integer
 
oh okay thank you
[doublepost=1586483470,1586479581][/doublepost]
Can you help please, it says can't compare 'players balance' with an integer
Its working just fine for me. Are you sure you have a economy plugin, and vault installed? Can you also send me a list of your plugins?
 
You need to put ‘ on it
player’s balance
[doublepost=1586921776,1586921603][/doublepost]You can us placeholders api if it doesn’t work

set {_balance} to placeholder “your placeholder here”

requires estraz sk idk if I spell it right
 
Status
Not open for further replies.