MrSheep77 Posté(e) le 19 décembre 2015 Posté(e) le 19 décembre 2015 Bonjour, bonjour ! J'aimerais que quelqu'un me fasse un Skript/Plugin pour que les gens puissent avoir des familiers qui flottent a côté de leur tête un peu comme sur Epicube avec la possibilitée de les renomer en couleur. Animaux : -Sheep -Rabbit -Ocelot -Wolf -Slime -MagmaCube Merci ! :D
XxSEEDYxX Posté(e) le 10 janvier 2016 Posté(e) le 10 janvier 2016 Voilà en 1 heure : command /spawnpet <text>: description: Permet d'invoquer un pet usage: &c/spawnpet &6<Animal> trigger: argument 1 is "creeper": if {active.%player%.pet} is true: send "&eAnimal > &7Vous avez déja un animal !" stop spawn 1 creeper at the player set {active.%player%.pet} to true set name of spawned entity to "%name of player%" add spawned entity to {pet.%player%.follow::*} while spawned entity exists: make spawned entity pathfind to player with speed 1 wait 1 tick argument 1 is "sheep": if {active.%player%.pet} is true: send "&eAnimal > &7Vous avez déja un animal !" stop spawn 1 sheep at the player set {active.%player%.pet} to true set name of spawned entity to "%name of player%" add spawned entity to {pet.%player%.follow::*} while spawned entity exists: make spawned entity pathfind to player with speed 1 wait 1 tick argument 1 is "pig": if {active.%player%.pet} is true: send "&eAnimal > &7Vous avez déja un animal !" stop spawn 1 pig at the player set {active.%player%.pet} to true set name of spawned entity to "%name of player%" add spawned entity to {pet.%player%.follow::*} while spawned entity exists: make spawned entity pathfind to player with speed 1 wait 1 tick argument 1 is "chicken": if {active.%player%.pet} is true: send "&eAnimal > &7Vous avez déja un animal !" stop spawn 1 chicken at the player set {active.%player%.pet} to true set name of spawned entity to "%name of player%" add spawned entity to {pet.%player%.follow::*} while spawned entity exists: make spawned entity pathfind to player with speed 1 wait 1 tick argument 1 is "cow": if {active.%player%.pet} is true: send "&eAnimal > &7Vous avez déja un animal !" stop spawn 1 cow at the player set {active.%player%.pet} to true set name of spawned entity to "%name of player%" add spawned entity to {pet.%player%.follow::*} while spawned entity exists: make spawned entity pathfind to player with speed 1 wait 1 tick argument 1 is "blaze": if {active.%player%.pet} is true: send "&eAnimal > &7Vous avez déja un animal !" stop spawn 1 blaze at the player set {active.%player%.pet} to true set name of spawned entity to "%name of player%" add spawned entity to {pet.%player%.follow::*} while spawned entity exists: make spawned entity pathfind to player with speed 1 wait 1 tick argument 1 is "wolf": if {active.%player%.pet} is true: send "&eAnimal > &7Vous avez déja un animal !" stop spawn 1 wolf at the player set {active.%player%.pet} to true set name of spawned entity to "%name of player%" add spawned entity to {pet.%player%.follow::*} while spawned entity exists: make spawned entity pathfind to player with speed 1 wait 1 tick argument 1 is "ocelot": if {active.%player%.pet} is true: send "&eAnimal > &7Vous avez déja un animal !" stop spawn 1 ocelot at the player set {active.%player%.pet} to true set name of spawned entity to "%name of player%" add spawned entity to {pet.%player%.follow::*} while spawned entity exists: make spawned entity pathfind to player with speed 1 wait 1 tick argument 1 is "slime": if {active.%player%.pet} is true: send "&eAnimal > &7Vous avez déja un animal !" stop spawn 1 slime at the player set {active.%player%.pet} to true set name of spawned entity to "%name of player%" add spawned entity to {pet.%player%.follow::*} while spawned entity exists: make spawned entity pathfind to player with speed 1 wait 1 tick argument 1 is "zombie": if {active.%player%.pet} is true: send "&eAnimal > &7Vous avez déja un animal !" stop spawn 1 zombie at the player set {active.%player%.pet} to true set name of spawned entity to "%name of player%" set helmet of the spawned entity to chain helmet add spawned entity to {pet.%player%.follow::*} while spawned entity exists: make spawned entity pathfind to player with speed 1 wait 1 tick argument 1 is "skeleton": if {active.%player%.pet} is true: send "&eAnimal > &7Vous avez déja un animal !" stop spawn 1 skeleton at the player set {active.%player%.pet} to true set helmet of the spawned entity to chain helmet set name of spawned entity to "%name of player%" add spawned entity to {pet.%player%.follow::*} while spawned entity exists: make spawned entity pathfind to player with speed 1 wait 1 tick argument 1 is "bat": spawn 1 bat at the player if {active.%player%.pet} is true: send "&eAnimal > &7Vous avez déja un animal !" stop set {active.%player%.pet} to true set helmet of the spawned entity to chain helmet set name of spawned entity to "%name of player%" add spawned entity to {pet.%player%.follow::*} while spawned entity exists: make spawned entity pathfind to player with speed 1 wait 1 tick argument 1 is "spider": if {active.%player%.pet} is true: send "&eAnimal > &7Vous avez déja un animal !" stop spawn 1 spider at the player set {active.%player%.pet} to true set helmet of the spawned entity to chain helmet set name of spawned entity to "%name of player%" add spawned entity to {pet.%player%.follow::*} while spawned entity exists: make spawned entity pathfind to player with speed 1 wait 1 tick command /callpet: trigger: loop {pet.%player%.follow::*}: teleport loop-value to location of player send "&eAnimal > &7Votre animal c'est TP à vous" command /removepet: trigger: if {active.%player%.pet} is true: loop {pet.%player%.follow::*}: kill loop-value set {active.%player%.pet} to false send "&eAnimal > &7Votre animal est parti" clear {pet.%player%.follow::*} else: send "&eAnimal > &7Vous n'avez aucun animal" On Entity Target: loop all players: loop {pet.%loop-player%.follow::*}: if event-entity is loop-value: cancel event
Doc Posté(e) le 10 janvier 2016 Posté(e) le 10 janvier 2016 Lol? -> https://skript-mc.fr/forum/index.php?threads/pets-des-animaux-pour-votre-hub.59/ Lolx2 -> https://forum.epicube.fr/threads/skript-besoin-daide-laissez-un-message-ici.107926/#post-677871
Messages recommandés