Jump to content

set enchant strength to var


BOXEY

Recommended Posts

help me pls. dis my skript

set {eff::%uuid of player%} to {pickaxelevel::%uuid of player%}
set {_item} to wooden pickaxe named "&3Wooden &bPickaxe &7(%{pickaxelevel::%uuid of player%}%)" with lore "&7 " and "&7The basic pickaxe"
enchant {_item} with efficiency {eff::%uuid of player%}

 

Link to comment
Share on other sites

What is the issue with this skript?

 

If I have helped you out in your post or you liked what I posted, please upvote and react to my post! It helps me a lot!

Some Minehut Links:

Server Rules • Staff Applications • News & Updates • Reports • Appeals


Minehut: VIP (07/04/2021 --> Current)
Elestra/Versa Realms: Manager (12/04/2021 --> Current)

If you have any questions contact me!
My Discord: BanditEagle#2481
My Spigot Profile: https://www.spigotmc.org/members/banditeagle.935281/
My IGN: BanditEagle

Link to comment
Share on other sites

What did you set {pickaxe::%uuid of player%} to?

If I have helped you out in your post or you liked what I posted, please upvote and react to my post! It helps me a lot!

Some Minehut Links:

Server Rules • Staff Applications • News & Updates • Reports • Appeals


Minehut: VIP (07/04/2021 --> Current)
Elestra/Versa Realms: Manager (12/04/2021 --> Current)

If you have any questions contact me!
My Discord: BanditEagle#2481
My Spigot Profile: https://www.spigotmc.org/members/banditeagle.935281/
My IGN: BanditEagle

Link to comment
Share on other sites

3 minutes ago, BanditEagle said:

What did you set {pickaxe::%uuid of player%} to?

it is the level of the pickaxe so if it is level 5 is just show 5 for the level on the pickaxe in the name

the same error comes up if i change that out for the eff var

 

Edited by Boxmonkey
clarification
Link to comment
Share on other sites

try this then:

set {eff::%uuid of player%} to {pickaxelevel::%uuid of player%} parsed as an number

 

If I have helped you out in your post or you liked what I posted, please upvote and react to my post! It helps me a lot!

Some Minehut Links:

Server Rules • Staff Applications • News & Updates • Reports • Appeals


Minehut: VIP (07/04/2021 --> Current)
Elestra/Versa Realms: Manager (12/04/2021 --> Current)

If you have any questions contact me!
My Discord: BanditEagle#2481
My Spigot Profile: https://www.spigotmc.org/members/banditeagle.935281/
My IGN: BanditEagle

Link to comment
Share on other sites

4 minutes ago, BanditEagle said:

try this then:



set {eff::%uuid of player%} to {pickaxelevel::%uuid of player%} parsed as an number

 

nope it is still the same error when the var is remove it works but it is only level 1 and i need to it be the same as the pickaxes level

 

the set of the level works it just doesn't like the var there and not a number

Edited by Boxmonkey
Link to comment
Share on other sites

can you try sending {pickaxe::%uuid of player%} to yourself and see what it says?

If I have helped you out in your post or you liked what I posted, please upvote and react to my post! It helps me a lot!

Some Minehut Links:

Server Rules • Staff Applications • News & Updates • Reports • Appeals


Minehut: VIP (07/04/2021 --> Current)
Elestra/Versa Realms: Manager (12/04/2021 --> Current)

If you have any questions contact me!
My Discord: BanditEagle#2481
My Spigot Profile: https://www.spigotmc.org/members/banditeagle.935281/
My IGN: BanditEagle

Link to comment
Share on other sites

Can you try this:
 

set {eff::%uuid of player%} to {pickaxelevel::%uuid of player%} parsed as an enchantment type

 

If I have helped you out in your post or you liked what I posted, please upvote and react to my post! It helps me a lot!

Some Minehut Links:

Server Rules • Staff Applications • News & Updates • Reports • Appeals


Minehut: VIP (07/04/2021 --> Current)
Elestra/Versa Realms: Manager (12/04/2021 --> Current)

If you have any questions contact me!
My Discord: BanditEagle#2481
My Spigot Profile: https://www.spigotmc.org/members/banditeagle.935281/
My IGN: BanditEagle

Link to comment
Share on other sites

Just now, Boxmonkey said:

it sends the level as a number

Capture.PNG

try the last thing i sent

If I have helped you out in your post or you liked what I posted, please upvote and react to my post! It helps me a lot!

Some Minehut Links:

Server Rules • Staff Applications • News & Updates • Reports • Appeals


Minehut: VIP (07/04/2021 --> Current)
Elestra/Versa Realms: Manager (12/04/2021 --> Current)

If you have any questions contact me!
My Discord: BanditEagle#2481
My Spigot Profile: https://www.spigotmc.org/members/banditeagle.935281/
My IGN: BanditEagle

Link to comment
Share on other sites

Try this:

set {eff::%uuid of player%} to ("efficiency %{eff:%uuid of player}%" parsed as an enchantment type)
set {_item} to wooden pickaxe named "&3Wooden &bPickaxe &7(%{pickaxelevel::%uuid of player%}%)" with lore "&7 " and "&7The basic pickaxe"
enchant {_item} with {eff::%uuid of player%}

 

If I have helped you out in your post or you liked what I posted, please upvote and react to my post! It helps me a lot!

Some Minehut Links:

Server Rules • Staff Applications • News & Updates • Reports • Appeals


Minehut: VIP (07/04/2021 --> Current)
Elestra/Versa Realms: Manager (12/04/2021 --> Current)

If you have any questions contact me!
My Discord: BanditEagle#2481
My Spigot Profile: https://www.spigotmc.org/members/banditeagle.935281/
My IGN: BanditEagle

Link to comment
Share on other sites

2 minutes ago, BanditEagle said:

Try this:


set {eff::%uuid of player%} to ("efficiency %{eff:%uuid of player}%" parsed as an enchantment type)
set {_item} to wooden pickaxe named "&3Wooden &bPickaxe &7(%{pickaxelevel::%uuid of player%}%)" with lore "&7 " and "&7The basic pickaxe"
enchant {_item} with {eff::%uuid of player%}

 

it works thank you

Link to comment
Share on other sites

1 minute ago, Boxmonkey said:

it works thank you

your welcome! happy to be able to help!

  • Thanks 1

If I have helped you out in your post or you liked what I posted, please upvote and react to my post! It helps me a lot!

Some Minehut Links:

Server Rules • Staff Applications • News & Updates • Reports • Appeals


Minehut: VIP (07/04/2021 --> Current)
Elestra/Versa Realms: Manager (12/04/2021 --> Current)

If you have any questions contact me!
My Discord: BanditEagle#2481
My Spigot Profile: https://www.spigotmc.org/members/banditeagle.935281/
My IGN: BanditEagle

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...