Jump to content

Graphick2

Member
  • Posts

    11
  • Joined

  • Last visited

Posts posted by Graphick2

  1. While I was working on a custom item I was using if click type is right mouse button however it seems to be returning an error anytime I try it. I just wanted to know if this was just an issue with my server or if anyone else is having this issue.

    Example Code

     

    command /testytest:
        trigger:
            open virtual chest inventory with size 1 named "" to player
            wait 2 tick
            format gui slot 1 of player with diamond named "Left Click" to run:
                if click type is left mouse button:
                    send "Left Clicked"
                    close player's inventory
            format gui slot 3 of player with emerald named "Right Click" to run:
                if click type is right mouse button:
                    send "Right Clicked"
                    close player's inventory
            format gui slot 5 of player with iron ingot named "Middle Click" to run:
                if click type is middle mouse button:
                    send "Middle Clicked"
                    close player's inventory

     

  2. 1 hour ago, Swayl said:

    I think something is wrong with my skript...

    c

    
    command /yeet [<text>]:
      				trigger:
      	if arg-1 is set:
      												broadcast arg-1
      						if arg-2 is not set:
      			broadcast nothing
     

     

    maybe use correct spaces

  3. Can someone teach me skript...

    command /balance [<offlineplayer>] [<text>]:
    	aliases: /bal, /money, /worth, /bank, /slavetrader
    	trigger:
    		if arg-1 is set:
    			if arg-1 hasn't played before:
    				send "that player hasn't played the server before. <tooltip:If they are online ask them to rejoin>(Hover for more info)"
    				stop
    			if arg-1 is player:
    				make player say "/balance"
    			else:
    				send ""
    				send "&3Balance of a worthless player named %arg-1%"
    				send "&9%arg-1's balance%"
    				send ""
    		else:
    			send ""
    			send "&3Balance of a slavetrader named %player%"
    			send "&9%player's balance%"
    			send ""

     

  4. 2 minutes ago, Swayl said:

    format slot 15 of player with wooden axe named "&6&lSet Player 2's Position" with lore "&7[&b*&7]&r &aPlayer 2's Position: &b%{*.player.pos2}%" to run

    
    format gui slot 15 of player with wooden axe named "&6&lSet Player 2's Position" with lore "&7[&b*&7]&r &aPlayer 2's Position: &b%{*.player.pos2}%" to run

    Should work.

    yay tuske

×
×
  • Create New...