Jump to content

if anyone needs a skript


Recommended Posts

hi

i want a skript when you do /freerank

it executes

lp user %player% parent set free

and if they dont have permssion to do it

send a message saying

&c&lYou already have a rank!

 

ive tried to skript this myself but i am not very good at it 😅

Link to comment
Share on other sites

Posted (edited)
options:
	permission: skript.permission

command /freerank:
	trigger:
		if player has permission "{@permission}":
			execute console command "/lp user %player% parent set free"
		else:
			send "&c&lYou already have a rank!"

change skript.permission to the permission required to execute the command

Edited by ApexSplat

Discord: Dead#6905

Love anime!


Anime Gifs

Link to comment
Share on other sites

hi

 

i need a skript where u can upgrade ur pickaxe so when u right click with the pickaxe it opens a gui where theres any item in the middel and when u click on it enchant the pickaxe with efficiency 1 at the time and u max upgrade is 5

 

idk if im asking for too much code but its fine if u dont want to give or make it to me

Link to comment
Share on other sites

on right click with pickaxe:
    set metadata tag "pickaxe" of player to chest inventory with 5 rows named "&6&lUpgrade":
    set {_x} to 0
    loop 54 times:
        set slot {_x} of metadata tag "pickaxe" of player to black stained glass pane
        add 1 to {_x}
    set {_level} to level of efficiency of player's tool
    set {_type} to type of player's tool
    set slot 22 of metadata tag "pickaxe" of player to {_type} of efficiency {_level} + 1 named "&6&lUpgrade"
    open (metadata tag "pickaxe" of player) to player

on inventory click:
    if event-inventory = (metadata tag "pickaxe" of player):
        cancel event
        if index of event-slot is 22:
            set {_level} to level of efficiency of player's tool
            if {_level} isn't 5:
                enchant player's tool with efficiency {_level} + 1
            else:
                send "You have reached the max upgrade of 5!"
            close player's inventory

not tested

Discord: Dead#6905

Love anime!


Anime Gifs

Link to comment
Share on other sites

Hi

 

im very bad at skript and been looking everywhere but i cant find a skript so i thought i will ask someone here if they can make it for me.
So basically the server does keyall everytime that the amount of online players is doubled, Ex: theres 1 player and when another one joins a key all is done and then when 2 more players join another key all is done etc

Link to comment
Share on other sites

what if there are 8 players and you need 16 online but then 7 people leave and there is 1. does the keyall reset and they need 2 players for a key all again?

Discord: Dead#6905

Love anime!


Anime Gifs

Link to comment
Share on other sites

Posted (edited)
2 hours ago, KarateBlade said:

yea if you could make it like that

on join:
    set {_online} to amount of online players
    set {_power} to 1
    set {_num} to 2
    while {_num} != {_online}:
        wait 1 tick
        set {_num} to {_num}^{_power}
        if {_num} > {_online}:
            stop
        add 1 to {_power}
    execute console command "/" # Put the command executed for the key all here

not tested

Edited by ApexSplat

Discord: Dead#6905

Love anime!


Anime Gifs

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...