Aller au contenu

[HUB] Skript complet pour un HUB


Messages recommandés

Posté(e)

Version de minecraft / skript : 1.9.4

Type du skript : Skript Pour HUB

Description du script :

 

J'aimerais un Skirpt de HUB Full configurable avec 2 Item (une tete du joueur en question au 9eme slot qui s'appelle "&6Friend" ainsi que un lingot d'or au 1erqui s'appelle "Cosmétique"

j'aimerais que quand nouc cliquons sur le lingot nous arrvon sur un menu avec 2 Catégorie : "Shop" et "En ma Possession"

J'aimerais que dans shop il y'est 2 catégorie "pets" et "particule"

j'aimerais que dans particule il y'est plusieurs particule coutant chacun un nombre de jeton (a vous de choisir)   (la variable jeton est a creé)

j'aimerais quand dans pets il y'est des animaux de compagnie qui coutent aussi des jetons (a vous de choisir aussi)

j'aimerais que dans "en me possession" il y'est tous les articles acheter

 

j'aimerais que en cliquandt sur la tête nommer friends un menu s'ouvre avec un systeme de friend    (5 friend max pour "friendjoueur.perm" , 10 friend pour "friendchevalier.perm" , 15 pour "friendheros.perm" et 50 pour "friendlegende.perm")

 

j'aimerais que tous ceci reste juste sur la map HUB

 

merci pour ce qui vont essayer et si vous avez des questions merci de les poser ICI

Posté(e) (modifié)

Je peux te le faire assez simplement, mais il faut juste que tu me dises si le système de pets est déjà en place ou si tu veux qu'il soit rajouté.

Si tu veux qu'il soit rajouté, précise si tu veux que ce soit avec Skript ou directement avec un plugin ?

Modifié par PulsePvP
Posté(e)
il y a 27 minutes, PulsePvP a dit :

Je peux te le faire assez simplement, mais il faut juste que tu me dises si le système de pets est déjà en place ou si tu veux qu'il soit rajouté.

Si tu veux qu'il soit rajouté, précise si tu veux que ce soit avec Skript ou directement avec un plugin ?

Le systeme de pets n'est pas en place et j'aimerais quil soit rajouté (tu fait comme tu veu ; plugin ou skript) si c'est plugin envoi le moi

Posté(e) (modifié)

Pour ceux qui veulent le skript, le voici

on teleport:
	if "%world%" is not "HUB":
		set {hub.particules.%player%} to false
		set {hub.pets.%player%} to false
on join:
	if {hub.jetons.%player%} is not set:
		set {hub.jetons.%player%} to 0
on region enter:
	if "%world%" is "HUB":
		clear player's inventory
		set slot 0 of player to gold ingot named "&a&lCosmétiques"
		set slot 8 of player to skull of "%player%" parsed as offline player named "&6Amis"
		set {hub.particules.%player%} to true
on rightclick with gold ingot:
	if "%world%" is "HUB":
		wait 1 seconds
		open chest with 5 rows named "&4&lCosmétiques" to player
		make a gui slot 0, 1, 2, 3, 4, 5, 6, 7, 8, 17, 26, 35, 44, 43, 42, 41, 40, 39, 38, 37, 36, 27, 18 and 9 of player with 1 lime stained glass to do nothing
		make a gui slot 20 of player with 1 gold ingot named "&8» &aBoutique" with lore "&7 || &7Achetez des &eParticules &7ou|| &7des &ePets &7!" to close then run player command "/hubshop"
		make a gui slot 24 of player with 1 chest named "&8» &aInventaire" with lore "&7 || &7Équipez vos &eParticules &7ou|| &7vos &ePets &7!" to close then run player command "/hubinv"
on drop:
	if "%world%" is "HUB":
		cancel event
on inventory click:
	if "%world%" is "HUB":
		cancel event
command /hubshop [<text>]:
	trigger:
		if "%world%" is "HUB":
			if arg 1 is not set:
				open chest with 5 rows named "&4Boutique &8»" to player
				make a gui slot 0, 1, 2, 3, 4, 5, 6, 7, 8, 17, 26, 35, 44, 43, 42, 41, 40, 39, 38, 37, 36, 27, 18 and 9 of player with 1 lime stained glass to do nothing
				make a gui slot 20 of player with skull of "MHF_Blaze" parsed as offline player named "&aPets" with lore "&7 || &7Achetez des &eanimaux &7qui|| &7vous suivront &7partout !" to close then run player command "/hubshop pets"
				make a gui slot 24 of player with 1 nether star named "&bParticules" with lore "&7 || &7Achetez des &eParticules &7qui|| &7vous suivront  partout &7!" to close then run player command "/hubshop particules"
			if arg 1 is "pets":
				open chest with 5 rows named "&4Boutique &8» &cPets" to player
				make a gui slot 0, 1, 2, 3, 4, 5, 6, 7, 8, 17, 26, 35, 44, 43, 42, 41, 39, 38, 37, 36, 27, 18 and 9 of player with 1 lime stained glass to do nothing
				make a gui slot 10 of player with skull of "MHF_Spider" parsed as offline player named "&eAraignée" with lore "&7 || &7Prix : &a10 Jetons" to close then run player command "/hubshoppets MHF_Spider 10"
				make a gui slot 11 of player with skull of "MHF_CaveSpider" parsed as offline player named "&eAraignée des cavernes" with lore "&7 || &7Prix : &a10 Jetons" to close then run player command "/hubshoppets MHF_CaveSpider 10"
				make a gui slot 12 of player with skull of "MHF_Blaze" parsed as offline player named "&eBlaze" with lore "&7 || &7Prix : &a10 Jetons" to close then run player command "/hubshoppets MHF_Blaze 10"
				make a gui slot 13 of player with skull of "MHF_Pig" parsed as offline player named "&eCochon" with lore "&7 || &7Prix : &a10 Jetons" to close then run player command "/hubshoppets MHF_Pig 10"
				make a gui slot 14 of player with skull of "MHF_Enderman" parsed as offline player named "&eEnderMan" with lore "&7 || &7Prix : &a10 Jetons" to close then run player command "/hubshoppets MHF_Enderman 10"
				make a gui slot 15 of player with skull of "MHF_Ghast" parsed as offline player named "&eGhast" with lore "&7 || &7Prix : &a10 Jetons" to close then run player command "/hubshoppets MHF_Ghast 10"
				make a gui slot 16 of player with skull of "MHF_Golem" parsed as offline player named "&eGolem" with lore "&7 || &7Prix : &a10 Jetons" to close then run player command "/hubshoppets MHF_Golem 10"
				make a gui slot 19 of player with skull of "Budwolf" parsed as offline player named "&eLoup" with lore "&7 || &7Prix : &a10 Jetons" to close then run player command "/hubshoppets Budwolf 10"
				make a gui slot 20 of player with skull of "MHF_Sheep" parsed as offline player named "&eMouton" with lore "&7 || &7Prix : &a10 Jetons" to close then run player command "/hubshoppets MHF_Sheep 10"
				make a gui slot 21 of player with skull of "MHF_Ocelot" parsed as offline player named "&eChat" with lore "&7 || &7Prix : &a10 Jetons" to close then run player command "/hubshoppets MHF_Ocelot 10"
				make a gui slot 22 of player with skull of "MHF_Chicken" parsed as offline player named "&ePoule" with lore "&7 || &7Prix : &a10 Jetons" to close then run player command "/hubshoppets MHF_Chicken 10"
				make a gui slot 23 of player with skull of "MHF_Squid" parsed as offline player named "&ePoulpe" with lore "&7 || &7Prix : &a10 Jetons" to close then run player command "/hubshoppets MHF_Squid 10"
				make a gui slot 24 of player with skull of "MHF_Cow" parsed as offline player named "&eVache" with lore "&7 || &7Prix : &a10 Jetons" to close then run player command "/hubshoppets MHF_Cow 10"
				make a gui slot 25 of player with skull of "MHF_MushroomCow" parsed as offline player named "&eVache champignon" with lore "&7 || &7Prix : &a10 Jetons" to close then run player command "/hubshoppets MHF_MushroomCow 10"
				make a gui slot 29 of player with skull of "MHF_Villager" parsed as offline player named "&ePNJ" with lore "&7 || &7Prix : &a10 Jetons" to close then run player command "/hubshoppets pnj 10"
				make a gui slot 30 of player with skull of "MHF_Slime" parsed as offline player named "&eSlime" with lore "&7 || &7Prix : &a10 Jetons" to close then run player command "/hubshoppets MHF_Slime 10"
				make a gui slot 31 of player with skull of "MHF_LavaSlime" parsed as offline player named "&eLava Slime" with lore "&7 || &7Prix : &a10 Jetons" to close then run player command "/hubshoppets MHF_LavaSlime 10"
				make a gui slot 32 of player with skull of "MHF_PigZombie" parsed as offline player named "&ePigZombie" with lore "&7 || &7Prix : &a10 Jetons" to close then run player command "/hubshoppets MHF_PigZombie 10"
				make a gui slot 40 of player with arrow named "&c<< RETOUR <<" to close then run player command "/hubshop"
			if arg 1 is "particules":
				open chest with 6 rows named "&4Boutique &8» &cParticules" to player
				make a gui slot 0, 1, 2, 3, 4, 5, 6, 7, 8, 17, 26, 35, 44, 53, 52, 51, 50, 49, 48, 47, 46, 45, 36, 27, 18 and 9 of player with 1 lime stained glass to do nothing
				make a gui slot 10 of player with rose red named "<light red>Coeurs" with lore "&7 || &7Prix : &a10 Jetons" to close then run player command "/hubshopparticules Coeurs 10"
				make a gui slot 11 of player with bone meal named "<white>Nuages" with lore "&7 || &7Prix : &a10 Jetons" to close then run player command "/hubshopparticules Nuages 10"
				make a gui slot 12 of player with stick named "<dark gray>Ninjaku" with lore "&7 || &7Prix : &a10 Jetons" to close then run player command "/hubshopparticules Ninjaku 10"
				make a gui slot 13 of player with light blue dye named "&9Magie bleue" with lore "&7 || &7Prix : &a10 Jetons" to close then run player command "/hubshopparticules Magie_Bleue 10"
				make a gui slot 14 of player with clay named "<gray>Magie" with lore "&7 || &7Prix : &a10 Jetons" to close then run player command "/hubshopparticules Magie 10"
				make a gui slot 15 of player with light gray dye named "<aqua>WinterFlow" with lore "&7 || &7Prix : &a10 Jetons" to close then run player command "/hubshopparticules WinterFlow 10"
				make a gui slot 16 of player with orange dye named "<orange>Flaming" with lore "&7 || &7Prix : &a10 Jetons" to close then run player command "/hubshopparticules Flaming 10"
				make a gui slot 19 of player with prismarine shard named "&9Geometry" with lore "&7 || &7Prix : &a10 Jetons" to close then run player command "/hubshopparticules Geometry 10"
				make a gui slot 20 of player with torch named "&ePetites flammes" with lore "&7 || &7Prix : &a10 Jetons" to close then run player command "/hubshopparticules Petites_Flammes 10"
				make a gui slot 21 of player with jukebox named "&dNotes de musique" with lore "&7 || &7Prix : &a10 Jetons" to close then run player command "/hubshopparticules Musique 10"
				make a gui slot 22 of player with obsidian named "&5Portail" with lore "&7 || &7Prix : &a10 Jetons" to close then run player command "/hubshopparticules Portail 10"
				make a gui slot 23 of player with redstone named "<red>Sang" with lore "&7 || &7Prix : &a10 Jetons" to close then run player command "/hubshopparticules Sang 10"
				make a gui slot 24 of player with slimeball named "<green>Slime" with lore "&7 || &7Prix : &a10 Jetons" to close then run player command "/hubshopparticules Slime 10"
				make a gui slot 25 of player with gray dye named "<gray>Ninja" with lore "&7 || &7Prix : &a10 Jetons" to close then run player command "/hubshopparticules Ninja 10"
				make a gui slot 28 of player with snowball named "<white>Neige cassée" with lore "&7 || &7Prix : &a10 Jetons" to close then run player command "/hubshopparticules Neige_cassée 10"
				make a gui slot 29 of player with diamond named "<light blue>Tornade" with lore "&7 || &7Prix : &a10 Jetons" to close then run player command "/hubshopparticules Tornade 10"
				make a gui slot 30 of player with nether star named "&7Whiteku" with lore "&7 || &7Prix : &a10 Jetons" to close then run player command "/hubshopparticules Whiteku 10"
				make a gui slot 31 of player with coal named "<gray>Tornade noire" with lore "&7 || &7Prix : &a10 Jetons" to close then run player command "/hubshopparticules Tornade_noire 10"
				make a gui slot 32 of player with purple dye named "<purple>Fumée de sorcière" with lore "&7 || &7Prix : &a10 Jetons" to close then run player command "/hubshopparticules Fummée_de_sorcières 10"
				make a gui slot 33 of player with ice named "<blue>Papillons" with lore "&7 || &7Prix : &a10 Jetons" to close then run player command "/hubshopparticules Papillons 10"
				make a gui slot 34 of player with brick named "<gray>Villageois faché" with lore "&7 || &7Prix : &a10 Jetons" to close then run player command "/hubshopparticules PNJ_Faché 10"
				make a gui slot 39 of player with emerald named "<lime>Poussière d'émeraude" with lore "&7 || &7Prix : &a10 Jetons" to close then run player command "/hubshopparticules Poussière_Emeraude 10"
				make a gui slot 40 of player with water bucket named "<light blue>Trainée de goutte" with lore "&7 || &7Prix : &a10 Jetons" to close then run player command "/hubshopparticules Eau 10"
				make a gui slot 41 of player with lava bucket named "<red>Trainée de cendre" with lore "&7 || &7Prix : &a10 Jetons" to close then run player command "/hubshopparticules Cendres 10"
command /hubshoppets [<text>] [<number>]:
	trigger:
		if "%world%" is "HUB":
			set {_prix} to arg 2
			set {_prix} to {_prix} parsed as integer
			if {hub.jetons.%player%} < {_prix}:
				send "&c&lHUB &8» &cVous n'avez pas assez de jetons !"
			else:
				if {hub.pets.%arg-1%.%player%} exists:
					send "&c&lHUB &8» &cVous possèdez déjà ce pet !"
				else:
					reduce {hub.jetons.%player%} by arg-2
					set {hub.pets.%arg-1%.%player%} to 1
					send "&c&lHUB &8» &aVous avez acheté un pets !"
command /hubshopparticules [<text>] [<number>]:
	trigger:
		if "%world%" is "HUB":
			set {_prix} to arg 2
			set {_prix} to {_prix} parsed as integer
			if {hub.jetons.%player%} < {_prix}:
				send "&c&lHUB &8» &cVous n'avez pas assez de jetons !"
			else:
				if {hub.particules.%arg-1%.%player%} exists:
					send "&c&lHUB &8» &cVous possèdez déjà cette particule !"
				else:
					reduce {hub.jetons.%player%} by arg-2
					set {hub.particules.%arg-1%.%player%} to 1
					send "&c&lHUB &8» &aVous avez acheté une particule !"
command /hubinv [<text>]:
	trigger:
		if arg 1 is not set:
			open chest with 5 rows named "&4Inventaire &8»" to player
			make a gui slot 0, 1, 2, 3, 4, 5, 6, 7, 8, 17, 26, 35, 44, 43, 42, 41, 40, 39, 38, 37, 36, 27, 18 and 9 of player with 1 lime stained glass to do nothing
			make a gui slot 20 of player with skull of "MHF_Blaze" parsed as offline player named "&aPets" with lore "&7 || &7Voir la liste des &eanimaux &7que|| &7vous possèdez" to close then run player command "/hubinv pets"
			make a gui slot 24 of player with 1 nether star named "&bParticules" with lore "&7 || &7Voir la liste des &eparticules &7que|| &7vous possèdez"  to close then run player command "/hubinv particules"
		if arg 1 is "pets":
			open chest with 5 rows named "&4Inventaire &8» &cPets" to player
			make a gui slot 0, 1, 2, 3, 4, 5, 6, 7, 8, 17, 26, 35, 44, 43, 42, 41, 39, 38, 37, 36, 27, 18 and 9 of player with 1 lime stained glass to do nothing
			if {hub.pets.MHF_Spider.%player%} exists:
				make a gui slot 10 of player with skull of "MHF_Spider" parsed as offline player named "&eAraignée" with lore "&7 || &7Cliquez pour équiper" to close then run player command "/pets Spider"
			if {hub.pets.MHF_CaveSpider.%player%} exists:
				make a gui slot 11 of player with skull of "MHF_CaveSpider" parsed as offline player named "&eAraignée des cavernes" with lore "&7 || &7Cliquez pour équiper" to close then run player command "/pets CaveSpider"
			if {hub.pets.MHF_Blaze.%player%} exists:
				make a gui slot 12 of player with skull of "MHF_Blaze" parsed as offline player named "&eBlaze" with lore "&7 || &7Cliquez pour équiper" to close then run player command "/pets Blaze"
			if {hub.pets.MHF_Pig.%player%} exists:
				make a gui slot 13 of player with skull of "MHF_Pig" parsed as offline player named "&eCochon" with lore "&7 || &7Cliquez pour équiper" to close then run player command "/pets Pig"
			if {hub.pets.MHF_Enderman.%player%} exists:
				make a gui slot 14 of player with skull of "MHF_Enderman" parsed as offline player named "&eEnderMan" with lore "&7 || &7Cliquez pour équiper" to close then run player command "/pets Enderman"
			if {hub.pets.MHF_Ghast.%player%} exists:
				make a gui slot 15 of player with skull of "MHF_Ghast" parsed as offline player named "&eGhast" with lore "&7 || &7Cliquez pour équiper" to close then run player command "/pets Ghast"
			if {hub.pets.MHF_Golem.%player%} exists:
				make a gui slot 16 of player with skull of "MHF_Golem" parsed as offline player named "&eGolem" with lore "&7 || &7Cliquez pour équiper" to close then run player command "/pets VillagerGolem"
			if {hub.pets.Budwolf.%player%} exists:
				make a gui slot 19 of player with skull of "Budwolf" parsed as offline player named "&eLoup" with lore "&7 || &7Cliquez pour équiper" to close then run player command "/pets Wolf"
			if {hub.pets.MHF_Sheep.%player%} exists:
				make a gui slot 20 of player with skull of "MHF_Sheep" parsed as offline player named "&eMouton" with lore "&7 || &7Cliquez pour équiper" to close then run player command "/pets Sheep"
			if {hub.pets.MHF_Ocelot.%player%} exists:
				make a gui slot 21 of player with skull of "MHF_Ocelot" parsed as offline player named "&eChat" with lore "&7 || &7Cliquez pour équiper" to close then run player command "/pets Ocelot"
			if {hub.pets.MHF_Chicken.%player%} exists:
				make a gui slot 22 of player with skull of "MHF_Chicken" parsed as offline player named "&ePoule" with lore "&7 || &7Cliquez pour équiper" to close then run player command "/pets Chicken"
			if {hub.pets.MHF_Squid.%player%} exists:
				make a gui slot 23 of player with skull of "MHF_Squid" parsed as offline player named "&ePoulpe" with lore "&7 || &7Cliquez pour équiper" to close then run player command "/pets Squid"
			if {hub.pets.MHF_Cow.%player%} exists:
				make a gui slot 24 of player with skull of "MHF_Cow" parsed as offline player named "&eVache" with lore "&7 || &7Cliquez pour équiper" to close then run player command "/pets Cow"
			if {hub.pets.MHF_MushroomCow.%player%} exists:
				make a gui slot 25 of player with skull of "MHF_MushroomCow" parsed as offline player named "&eVache champignon" with lore "&7 || &7Cliquez pour équiper" to close then run player command "/pets MushroomCow"
			if {hub.pets.MHF_Villager.%player%} exists:
				make a gui slot 29 of player with skull of "MHF_Villager" parsed as offline player named "&ePNJ" with lore "&7 || &7Cliquez pour équiper" to close then run player command "/pets Villager"
			if {hub.pets.MHF_Slime.%player%} exists:
				make a gui slot 30 of player with skull of "MHF_Slime" parsed as offline player named "&eSlime" with lore "&7 || &7Cliquez pour équiper" to close then run player command "/pets Slime"
			if {hub.pets.MHF_LavaSlime.%player%} exists:
				make a gui slot 31 of player with skull of "MHF_LavaSlime" parsed as offline player named "&eLava Slime" with lore "&7 || &7Cliquez pour équiper" to close then run player command "/pets LavaSlime"
			if {hub.pets.MHF_PigZombie.%player%} exists:
				make a gui slot 32 of player with skull of "MHF_PigZombie" parsed as offline player named "&ePigZombie" with lore "&7 || &7Cliquez pour équiper" to close then run player command "/pets PigZombie"
			make a gui slot 40 of player with arrow named "&c<< RETOUR <<" to close then run player command "/hubinv"
		if arg 1 is "particules":
			open chest with 6 rows named "&4Inventaire &8» &cParticules" to player
			make a gui slot 0, 1, 2, 3, 4, 5, 6, 7, 8, 17, 26, 35, 44, 53, 52, 51, 50, 49, 48, 47, 46, 45, 36, 27, 18 and 9 of player with 1 lime stained glass to do nothing
			if {hub.particules.Coeurs.%player%} exists:
				make a gui slot 10 of player with rose red named "<light red>Coeurs" with lore "&7 || &7Cliquez pour équiper" to close then run player command "/particules heart"
			if {hub.particules.Nuages.%player%} exists:
				make a gui slot 11 of player with bone meal named "<white>Nuages" with lore "&7 || &7Cliquez pour équiper" to close then run player command "/particules cloud"
			if {hub.particules.Ninjaku.%player%} exists:
				make a gui slot 12 of player with stick named "<dark gray>Ninjaku" with lore "&7 || &7Cliquez pour équiper" to close then run player command "/particules crit"
			if {hub.particules.Magie_Bleue.%player%} exists:
				make a gui slot 13 of player with light blue dye named "&9Magie bleue" with lore "&7 || &7Cliquez pour équiper" to close then run player command "/particules crit_magic"
			if {hub.particules.Magie.%player%} exists:
				make a gui slot 14 of player with clay named "<gray>Magie" with lore "&7 || &7Cliquez pour équiper" to close then run player command "/particules ENCHANTMENT_TABLE"
			if {hub.particules.WinterFlow.%player%} exists:
				make a gui slot 15 of player with light gray dye named "<aqua>WinterFlow" with lore "&7 || &7Cliquez pour équiper" to close then run player command "/particules fireworks_spark"
			if {hub.particules.Flaming.%player%} exists:
				make a gui slot 16 of player with orange dye named "<orange>Flaming" with lore "&7 || &7Cliquez pour équiper" to close then run player command "/particules flame"
			if {hub.particules.Geometry.%player%} exists:
				make a gui slot 19 of player with prismarine shard named "&9Geometry" with lore "&7 || &7Cliquez pour équiper" to close then run player command "/particules footstep"
			if {hub.particules.Petites_Flammes.%player%} exists:
				make a gui slot 20 of player with torch named "&ePetites flammes" with lore "&7 || &7Cliquez pour équiper" to close then run player command "/particules lava"
			if {hub.particules.Musique.%player%} exists:
				make a gui slot 21 of player with jukebox named "&dNotes de musique" with lore "&7 || &7Cliquez pour équiper" to close then run player command "/particules note"
			if {hub.particules.Portail.%player%} exists:
				make a gui slot 22 of player with obsidian named "&5Portail" with lore "&7 || &7Cliquez pour équiper" to close then run player command "/particules portal"
			if {hub.particules.Sang.%player%} exists:
				make a gui slot 23 of player with redstone named "<red>Sang" with lore "&7 || &7Cliquez pour équiper" to close then run player command "/particules redstone"
			if {hub.particules.Slime.%player%} exists:
				make a gui slot 24 of player with slimeball named "<green>Slime" with lore "&7 || &7Cliquez pour équiper" to close then run player command "/particules slime"
			if {hub.particules.Ninja.%player%} exists:
				make a gui slot 25 of player with gray dye named "<gray>Ninja" with lore "&7 || &7Cliquez pour équiper" to close then run player command "/particules smoke_normal"
			if {hub.particules.Neige_cassée.%player%} exists:
				make a gui slot 28 of player with snowball named "<white>Neige cassée" with lore "&7 || &7Cliquez pour équiper" to close then run player command "/particules snow_shovel"
			if {hub.particules.Tornade.%player%} exists:
				make a gui slot 29 of player with diamond named "<light blue>Tornade" with lore "&7 || &7Cliquez pour équiper" to close then run player command "/particules spell"
			if {hub.particules.Whiteku.%player%} exists:
				make a gui slot 30 of player with nether star named "&7Whiteku" with lore "&7 || &7Cliquez pour équiper" to close then run player command "/particules spell_instant"
			if {hub.particules.Tornade_noire.%player%} exists:
				make a gui slot 31 of player with coal named "<gray>Tornade noire" with lore "&7 || &7Cliquez pour équiper" to close then run player command "/particules spell_mob"
			if {hub.particules.Fummée_de_sorcières.%player%} exists:
				make a gui slot 32 of player with purple dye named "<purple>Fumée de sorcière" with lore "&7 || &7Cliquez pour équiper" to close then run player command "/particules spell_witch"
			if {hub.particules.Papillons.%player%} exists:
				make a gui slot 33 of player with ice named "<blue>Papillons" with lore "&7 || &7Cliquez pour équiper" to close then run player command "/particules water_wake"
			if {hub.particules.PNJ_Faché.%player%} exists:
				make a gui slot 34 of player with brick named "<gray>Villageois faché" with lore "&7 || &7Cliquez pour équiper" to close then run player command "/particules villager_angry"
			if {hub.particules.Poussière_Emeraude.%player%} exists:
				make a gui slot 39 of player with emerald named "<lime>Poussière d'émeraude" with lore "&7 || &7Cliquez pour équiper" to close then run player command "/particules villager_happy"
			if {hub.particules.Eau.%player%} exists:
				make a gui slot 40 of player with water bucket named "<light blue>Trainée de goutte" with lore "&7 || &7Cliquez pour équiper" to close then run player command "/particules drip_water"
			if {hub.particules.Cendres.%player%} exists:
				make a gui slot 41 of player with lava bucket named "<red>Trainée de cendre" with lore "&7 || &7Cliquez pour équiper" to close then run player command "/particules drip_lava"
command /jetons [<text>] [<player>] [<number>]:
	trigger:
		if arg 1 is "help":
			send "&7&m--------------------------------"
			send "       &cJetons"
			send ""
			send "&8» &e/jetons add <joueur> <nombre>"
			send "&8» &7Ajouter des jetons à un joueurs"
			send ""
			send "&7&m--------------------------------"
		if arg 1 is not set:
			send "&7&m--------------------------------"
			send "       &cJetons"
			send ""
			send "&8» &e/jetons add <joueur> <nombre>"
			send "&8» &7Ajouter des jetons à un joueurs"
			send ""
			send "&7&m--------------------------------"
		if arg 1 is "add":
			if arg 2 is not set:
				send "&cVous devez indiquer un joueur et le nombre de jetons"
			else:
				if arg 3 is not set:
					send "&cVous devez indiquer un joueur et le nombre de jetons"
				else:
					increase {hub.jetons.%arg-2%} by number-arg
					send "&aVous avez ajouté &7%number-arg% &ajetons à &7%player-arg%"
command /particules [<text>]:
	trigger:
		if arg 1 is "stop":
			if {hub.particules.%player%} is true:
				set {hub.particules.%player%} to false
				send "&c&lHUB &8» &cVous venez de désactiver votre particule !"
			else:
				send "&c&lHUB &8» &cVous n'avez aucune particule active"
		if {hub.particules.%player%} is true:
			send "&c&lHUB &8» &cVous avez déjà une particule active !"
			send "&c&lHUB &8» &7Faites &c/particules stop&7 pour l'enlever"
		else:
			if arg 1 is not "stop":
				set {hub.particules.%player%} to true
				send "&c&lHUB &8» &aVous venez d'activer une particule !"
				send "&c&lHUB &8» &aFaites &7/particules stop &apour l'enlever"
				while {hub.particules.%player%} is true:
					loop all players:
						show 5 "%arg 1%" particles at location of player for loop-player offset by 0.4, 0.7, 0.4
					wait 0.2 second
command /pets [<entity type>]:
	trigger:
		if {hub.pets.%player%} is true:
			send "&c&lHUB &8» &cVous avez déjà un pet actif !"
			send "&c&lHUB &8» &7Faites &c/pet stop&7 pour le désactiver"
		else:
			set {hub.pets.%player%} to true
			send "&c&lHUB &8» &aVous venez de faire spawn votre pet !"
			send "&c&lHUB &8» &aFaites &7/pets stop &apour l'enlever"
			spawn 1 of arg 1 at location of player
			add spawned entity to {pet.%player%::*} 
			make last spawned entity pathfind to player with speed 1.5
			while spawned entity exists:
				make spawned entity pathfind to player with speed 2
				wait 1 tick
command /pet [<text>]:
	trigger:
		if arg 1 is "stop":
			loop {pet.%player%::*}:
				set {hub.pets.%player%} to false
				clear {pet.%player%::*}
				kill loop-value
				send "&c&lHUB &8» &aVotre &7Pet &aa été désactivé !"
			

PS : Le code n'est pas du tout optimisé

PS bis : Il vous faut l'addon Tuske

Modifié par PulsePvP
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.