Aller au contenu
  • 0

Mon skript ne s'execute pas


Question

Posté(e)

Version de Minecraft : 1.19.2
Version de Skript : 2.6.4

Addons utilisés: skript-gui

Type du skript : skript de spawners gui

Description du script :

Bien le bonsoir, j'ai verifié mainte et mainte fois mon code et RAS, mais pourtant il ne s'execute pas, quand je le reload, aucune erreur ne s'affiche. Je ne comprends pas. Merci de m'aider au plus vite. Voici mon code. Cdlt, Laws.


options: 
	perm.m: &c[Erreur] Vous n'avez pas le droit d'executer cette commande !
	usage: &cUtilisation correcte: /spawners <joueur>
	
#____________________________________________________________________________________________________________________________________________________________________________________________________________________________

   
command /spawners <player>:
	permission: admin.use
	permission message: {@perm.m}
	usage: {@usage}
	trigger:
		if arg 1 is set:
			if arg 1 is player:
				if arg 1 is online:
					set {aze} to arg 1
					create a new gui with virtual chest inventory named "              &bSpawners" with 5 rows with shape "---------", "-A.B.C.D-", "E.F.G.H.I" and "-J.-.-.-." and "---------":	
						make gui slot "-" with blue stained glass pane named "&0."
						make gui slot "." with light blue stained glass pane named "&0."
						if {poseoup.creeper.%UUID of {aze}%} is not set:
							make gui slot "A" with creeper spawn egg named "&aCreeper":
								set {spawner.creeper.%UUID of {aze}%} to true
								open last created gui to {aze}
								send "%event-clicktype%"
								
						if {poseoup.creeper.%UUID of {aze}%} is true:
							make gui slot "A" with creeper spawn egg named "&aCreeper" with lore "&aVotre spawner est posé à: %{spawner_location_creeper.%UUID of {aze}%}%":
								if event-clicktype is right mouse button:
									send "Vous avez retiré le spawner de Creeper"
									set block at {loc.bb.%player%} to air
									open last created gui to {aze}
									delete {poseoup.%UUID of {aze}%}
								if event-clicktype is left mouse button:
									open last created gui to {aze}
									send "Vous avez déjà placé votre spawner de creeper"
							
					
						if {poseoup.%UUID of {aze}%} is not set:					
							make gui slot "B" with skeleton spawn egg named "&aSkeleton":
								set {spawner.skeleton.%UUID of {aze}%} to true
								open last created gui to {aze}
								send "%event-clicktype%"
								
						if {poseoup.%UUID of {aze}%} is true:
							make gui slot "B" with skeleton spawn egg named "&aSkeleton" with lore "&aVotre spawner est posé à: %{spawner_location_skeleton.%UUID of {aze}%}%":
								if event-clicktype is right mouse button:
									send "Vous avez retiré le spawner de Skeleton"
									set block at {loc.bb.%player%} to air
									open last created gui to {aze}
									delete {poseoup.%UUID of {aze}%}
								if event-clicktype is left mouse button:
									open last created gui to {aze}
									send "Vous avez déjà placé votre spawner de Skeleton"
						
						
						if {poseoup.%UUID of {aze}%} is not set:					
							make gui slot "C" with spider spawn egg named "&aSpider":
								set {spawner.spider.%UUID of {aze}%} to true
								open last created gui to {aze}
								send "%event-clicktype%"
								
						if {poseoup.%UUID of {aze}%} is true:
							make gui slot "C" with spider spawn egg named "&aSpider" with lore "&aVotre spawner est posé à: %{spawner_location_spider.%UUID of {aze}%}%":
								if event-clicktype is right mouse button:
									send "Vous avez retiré le spawner de Spider"
									set block at {loc.bb.%player%} to air
									open last created gui to {aze}
									delete {poseoup.%UUID of {aze}%}
								if event-clicktype is left mouse button:
									open last created gui to {aze}
									send "Vous avez déjà placé votre spawner de Spider"
									
						if {poseoup.%UUID of {aze}%} is not set:					
							make gui slot "D" with zombie spawn egg named "&Zombie":
								set {spawner.Zombie.%UUID of {aze}%} to true
								open last created gui to {aze}
								send "%event-clicktype%"
								
						if {poseoup.%UUID of {aze}%} is true:
							make gui slot "D" with zombie spawn egg named "&aZombie" with lore "&aVotre spawner est posé à: %{spawner_location_zombie.%UUID of {aze}%}%":
								if event-clicktype is right mouse button:
									send "Vous avez retiré le spawner de Zombie"
									set block at {loc.bb.%player%} to air
									open last created gui to {aze}
									delete {poseoup.%UUID of {aze}%}
								if event-clicktype is left mouse button:
									open last created gui to {aze}
									send "Vous avez déjà placé votre spawner de Skeleton"
									
						if {poseoup.%UUID of {aze}%} is not set:					
							make gui slot "E" with slime spawn egg named "&aSlime":
								set {spawner.slime.%UUID of {aze}%} to true
								open last created gui to {aze}
								send "%event-clicktype%"
								
						if {poseoup.%UUID of {aze}%} is true:
							make gui slot "E" with slime spawn egg named "&aSkeleton" with lore "&aVotre spawner est posé à: %{spawner_location_slime.%UUID of {aze}%}%":
								if event-clicktype is right mouse button:
									send "Vous avez retiré le spawner de Slime"
									set block at {loc.bb.%player%} to air
									open last created gui to {aze}
									delete {poseoup.%UUID of {aze}%}
								if event-clicktype is left mouse button:
									open last created gui to {aze}
									send "Vous avez déjà placé votre spawner de Slime"
						
						
						if {poseoup.%UUID of {aze}%} is not set:					
							make gui slot "F" with Ghast spawn egg named "&Ghast":
								set {spawner.ghast.%UUID of {aze}%} to true
								open last created gui to {aze}
								send "%event-clicktype%"
								
						if {poseoup.%UUID of {aze}%} is true:
							make gui slot "F" with ghast spawn egg named "&aghast" with lore "&aVotre spawner est posé à: %{spawner_location_ghast.%UUID of {aze}%}%":
								if event-clicktype is right mouse button:
									send "Vous avez retiré le spawner de ghast"
									set block at {loc.bb.%player%} to air
									open last created gui to {aze}
									delete {poseoup.%UUID of {aze}%}
								if event-clicktype is left mouse button:
									open last created gui to {aze}
									send "Vous avez déjà placé votre spawner de ghast"
						
						if {poseoup.%UUID of {aze}%} is not set:					
							make gui slot "G" with enderman spawn egg named "&aenderman":
								set {spawner.enderman.%UUID of {aze}%} to true
								open last created gui to {aze}
								send "%event-clicktype%"
								
						if {poseoup.%UUID of {aze}%} is true:
							make gui slot "G" with enderman spawn egg named "&aenderman" with lore "&aVotre spawner est posé à: %{spawner_location_enderman.%UUID of {aze}%}%":
								if event-clicktype is right mouse button:
									send "Vous avez retiré le spawner de enderman"
									set block at {loc.bb.%player%} to air
									open last created gui to {aze}
									delete {poseoup.%UUID of {aze}%}
								if event-clicktype is left mouse button:
									open last created gui to {aze}
									send "Vous avez déjà placé votre spawner de enderman"
									
						if {poseoup.%UUID of {aze}%} is not set:					
							make gui slot "H" with blaze spawn egg named "&ablaze":
								set {spawner.blaze.%UUID of {aze}%} to true
								open last created gui to {aze}
								send "%event-clicktype%"
								
						if {poseoup.%UUID of {aze}%} is true:
							make gui slot "H" with blaze spawn egg named "&ablaze" with lore "&aVotre spawner est posé à: %{spawner_location_blaze.%UUID of {aze}%}%":
								if event-clicktype is right mouse button:
									send "Vous avez retiré le spawner de blaze"
									set block at {loc.bb.%player%} to air
									open last created gui to {aze}
									delete {poseoup.%UUID of {aze}%}
								if event-clicktype is left mouse button:
									open last created gui to {aze}
									send "Vous avez déjà placé votre spawner de blaze"
									
						if {poseoup.%UUID of {aze}%} is not set:					
							make gui slot "J" with witch spawn egg named "&awitch":
								set {spawner.witch.%UUID of {aze}%} to true
								open last created gui to {aze}
								send "%event-clicktype%"
								
						if {poseoup.%UUID of {aze}%} is true:
							make gui slot "J" with witch spawn egg named "&awitch" with lore "&aVotre spawner est posé à: %{spawner_location_witch.%UUID of {aze}%}%":
								if event-clicktype is right mouse button:
									send "Vous avez retiré le spawner de witch"
									set block at {loc.bb.%player%} to air
									open last created gui to {aze}
									delete {poseoup.%UUID of {aze}%}
								if event-clicktype is left mouse button:
									open last created gui to {aze}
									send "Vous avez déjà placé votre spawner de witch"
									
						
				
on break:
	if {spawner.creeper.%UUID of player%} is true:  
		set {poseoup.creeper.%UUID of player%} to true
		set {_x} to x coord of event-location
		set {_y} to y coord of event-location
		set {_z} to z coord of event-location
		set {spawner_location_creeper.%UUID of player%} to "x: %{_x}% y: %{_y}% z: %{_z}%"
		wait 10 tick
		set {loc.bb.%player%} to event-block
		set block at event-block to spawner 
		reset {spawner.creeper.%UUID of player%}
	
	if {spawner.skeleton.%UUID of player%} is true:  
		set {poseoup.skeleton.%UUID of player%} to true
		set {_x} to x coord of event-location
		set {_y} to y coord of event-location
		set {_z} to z coord of event-location
		set {spawner_location_skeleton.%UUID of player%} to "x: %{_x}% y: %{_y}% z: %{_z}%"
		wait 10 tick
		set {loc.bb.%player%} to event-block
		set block at event-block to spawner 
		reset {spawner.skeleton.%UUID of player%}
	
	if {spawner.spider.%UUID of player%} is true:  
		set {poseoup.spider.%UUID of player%} to true
		set {_x} to x coord of event-location
		set {_y} to y coord of event-location
		set {_z} to z coord of event-location
		set {spawner_location_spider.%UUID of player%} to "x: %{_x}% y: %{_y}% z: %{_z}%"
		wait 10 tick
		set {loc.bb.%player%} to event-block
		set block at event-block to spawner 
		reset {spawner.spider.%UUID of player%}
	
	if {spawner.zombie.%UUID of player%} is true:  
		set {poseoup.zombie.%UUID of player%} to true
		set {_x} to x coord of event-location
		set {_y} to y coord of event-location
		set {_z} to z coord of event-location
		set {spawner_location_zombie.%UUID of player%} to "x: %{_x}% y: %{_y}% z: %{_z}%"
		wait 10 tick
		set {loc.bb.%player%} to event-block
		set block at event-block to spawner 
		reset {spawner.zombie.%UUID of player%}
	
	if {spawner.slime.%UUID of player%} is true:  
		set {poseoup.slime.%UUID of player%} to true
		set {_x} to x coord of event-location
		set {_y} to y coord of event-location
		set {_z} to z coord of event-location
		set {spawner_location_slime.%UUID of player%} to "x: %{_x}% y: %{_y}% z: %{_z}%"
		wait 10 tick
		set {loc.bb.%player%} to event-block
		set block at event-block to spawner 
		reset {spawner.slime.%UUID of player%}
	
	if {spawner.ghast.%UUID of player%} is true:  
		set {poseoup.ghast.%UUID of player%} to true
		set {_x} to x coord of event-location
		set {_y} to y coord of event-location
		set {_z} to z coord of event-location
		set {spawner_location_ghast.%UUID of player%} to "x: %{_x}% y: %{_y}% z: %{_z}%"
		wait 10 tick
		set {loc.bb.%player%} to event-block
		set block at event-block to spawner 
		reset {spawner.ghast.%UUID of player%}
	
	if {spawner.enderman.%UUID of player%} is true:  
		set {poseoup.enderman.%UUID of player%} to true
		set {_x} to x coord of event-location
		set {_y} to y coord of event-location
		set {_z} to z coord of event-location
		set {spawner_location_enderman.%UUID of player%} to "x: %{_x}% y: %{_y}% z: %{_z}%"
		wait 10 tick
		set {loc.bb.%player%} to event-block
		set block at event-block to spawner 
		reset {spawner.enderman.%UUID of player%}
	
	if {spawner.blaze.%UUID of player%} is true:  
		set {poseoup.blaze.%UUID of player%} to true
		set {_x} to x coord of event-location
		set {_y} to y coord of event-location
		set {_z} to z coord of event-location
		set {spawner_location_blaze.%UUID of player%} to "x: %{_x}% y: %{_y}% z: %{_z}%"
		wait 10 tick
		set {loc.bb.%player%} to event-block
		set block at event-block to spawner 
		reset {spawner.blaze.%UUID of player%}
	
	if {spawner.witch.%UUID of player%} is true:  
		set {poseoup.witch.%UUID of player%} to true
		set {_x} to x coord of event-location
		set {_y} to y coord of event-location
		set {_z} to z coord of event-location
		set {spawner_location_witch.%UUID of player%} to "x: %{_x}% y: %{_y}% z: %{_z}%"
		wait 10 tick
		set {loc.bb.%player%} to event-block
		set block at event-block to spawner 
		reset {spawner.witch.%UUID of player%}




command /resetall:
	trigger:
		delete {poseoup.%UUID of player%}
		delete {spawner.creeper.%UUID of player%}
		wait 20 ticks
		send "%{poseoup.%UUID of player%}%"
		send "%{spawner.creeper.%UUID of player%}%"
		
		



		

 

1 réponse à cette question

Messages recommandés

Invité
Ce sujet ne peut plus recevoir de nouvelles réponses.
×
×
  • Créer...

Information importante

Nous avons placé des cookies sur votre appareil pour aider à améliorer ce site. Vous pouvez choisir d’ajuster vos paramètres de cookie, sinon nous supposerons que vous êtes d’accord pour continuer.