Jump to content

ApexSplat

Member
  • Posts

    147
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by ApexSplat

  1. 2 hours ago, BrotherBethuel said:

    ive tried everything. searching up on the internet. making a forum which i got a warning from because of wrong topic and then no replies after so please someone help me and if you cant just help me anyway

    heres the skript that didnt work:

    command /test:
        trigger:
            delete variable {testlist::*}
            add "dirt" to {testlist::*}
            add "stone" to {testlist::*}
            send "test: %first item of {testlist::*}%"

    send "%{testlist::1}%" to player

    you replace 1 with the position in the list

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

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

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

  5. https://skripthub.net/docs/?id=1103 

    the example given is: teleport player to 0.5, 0.5, 0.5 in world "world"

    player = the entity you want to teleport so for example if you want to teleport the last spawned entity use last spawned entity

    0.5, 0.5, 0.5 = the coordinates you want to teleport the entity to so in your case it would be 63, 105, 29

    "world" = the world you want to teleport the entity to so as an example if you want to teleport them to the nether it would be "world_nether"

     

    Now just put it inside an on click event and make sure to teleport the target entity:

    on click:
    	if target entity is a player:
    		if name of player's held item is "&6Jail Hammer":
    			# insert teleport here
    		

     

×
×
  • Create New...