Jump to content

Ryan_iez

Member
  • Posts

    1
  • Joined

  • Last visited

Posts posted by Ryan_iez

  1. On 4/6/2022 at 7:21 PM, thijsvuur said:

    Disvand can you make so if you trigger the command /xt you get a xp bottle plz help me Have a nice Day Disvand

    I can do this for you, I am quite new to the Skript language but I think I can find a way for this to work.

    command /xp:
    
    	# OPTIONS - YOU CAN CHANGE UNDERNEATH THIS LINE
        
    	description: Gives you an XP bottle.
        cooldown: 1 minute
        cooldown message: &cPlease wait &e%remaining time%&r&c to do this command again!
        cooldown bypass: xp.nocooldown # you can give this permission, operators will automatically bypass the cooldown
        
        # DONT CHANGE ANYTHING UNDER THIS LINE
        
    	trigger:
    		if the player's inventory doesn't have space for bottle of enchanting:
    			send "&cYou do not have enough room in your inventory to get XP!"
            	cancel command cooldown
            
            else:
            	give player bottle of enchanting

    Just a few things: This was not tested, let me know if it works, you can change the cooldown, message, etc.

     

    Also I just figured out now, this is a very old post, but I already wrote out all the code so I just decided to keep it here I guess.

×
×
  • Create New...