Jump to content

Help Me With Skript || Why does this not work?


belac136

Recommended Posts

I have this command where you can teleport to all the different areas on my server. Everything worked until I tried to add a second page. when it tries to open the second gui, it just closes... Can someone help?!?!?!?

 

 

command /warps:
  trigger:
    open virtual chest inventory with size 3 named "Warps" to player
    format gui slot 11 of player with grass path named "&6Market" to run:
      teleport player to {marketwarp}
    format gui slot 13 of player with spruce sapling named "&2Forest" to run:
      teleport player to {forestwarp}
    format gui slot 15 of player with grass block named "&aSpawn" to run:
      teleport player to {spawn}
    format gui slot 18 of player with barrier named "&cClose" to run:
      close player's inventory
    format gui slot 26 of player with arrow named "&7Next Page" to run:
      open virtual chest inventory with size 3 named "Warps &7[&a2&7]" to player
      format gui slot 15 of player with grass path named "&bFarm" to run:
      teleport player to {farmwarp}
      format gui slot 18 of player with barrier named "&cClose" to run:
      close player's inventory

Edited by Dragon-Master
wrong problem
Link to comment
Share on other sites

command /warps:
	trigger:
		open virtual chest inventory with size 3 named "Warps" to player
		format gui slot 11 of player with grass path named "&6Market" to run:
			teleport player to {marketwarp}
		format gui slot 13 of player with spruce sapling named "&2Forest" to run:
			teleport player to {forestwarp}
		format gui slot 15 of player with grass block named "&aSpawn" to run:
			teleport player to {spawn}
		format gui slot 18 of player with barrier named "&cClose" to run:
			close player's inventory
		format gui slot 26 of player with arrow named "&7Next Page" to run:
			open virtual chest inventory with size 3 named "Warps &7[&a2&7]" to player
			format gui slot 15 of player with grass path named "&bFarm" to run:
				teleport player to {farmwarp}
			format gui slot 18 of player with barrier named "&cClose" to run:
				close player's inventory

try maybe work not tested

Every time you tell a lie, You'll have to tell a 100 more.

Link to comment
Share on other sites

10 hours ago, Razaire said:
command /warps:
	trigger:
		open virtual chest inventory with size 3 named "Warps" to player
		format gui slot 11 of player with grass path named "&6Market" to run:
			teleport player to {marketwarp}
		format gui slot 13 of player with spruce sapling named "&2Forest" to run:
			teleport player to {forestwarp}
		format gui slot 15 of player with grass block named "&aSpawn" to run:
			teleport player to {spawn}
		format gui slot 18 of player with barrier named "&cClose" to run:
			close player's inventory
		format gui slot 26 of player with arrow named "&7Next Page" to run:
			open virtual chest inventory with size 3 named "Warps &7[&a2&7]" to player
			format gui slot 15 of player with grass path named "&bFarm" to run:
				teleport player to {farmwarp}
			format gui slot 18 of player with barrier named "&cClose" to run:
				close player's inventory

try maybe work not tested

Thankyou! I'm not sure exactly what you fixed but it works now!

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