Aller au contenu

Bobinho

Membre
  • Compteur de contenus

    410
  • Inscription

  • Dernière visite

  • Jours gagnés

    12

Tout ce qui a été posté par Bobinho

  1. Je ne pense pas que ça soit possible que des joueurs différents voit le nom d'un même joueur de manière différente
  2. command /test: trigger: set {TeleportBase1} to the location at 1, 50, 1 set {TeleportBase2} to the location at 150, 50, 150 set {_tp} to a random integer between 1 and 2 teleport player at {TeleportBase%{_tp}%}
  3. Les points de téléportation sont fixe et on choisit parmis la liste des points aléatoirement où on tp aléatoirement dans une zone ?
  4. if level of unbreaking of event-item is 1:
  5. tu as discord ?
  6. # - Give baguette command /givesort: permission: blabla trigger: set {_item} to blaze rod named "&5Baguette" with lore "&6Sort actif:" add "&5Sort de &lSOIN" to {_item}'s lore give {_item} to the player
  7. # - nom des sorts (si tu changes le nom, faut aussi le changer de le on rightclick (sans couleur), et durée des cooldowns options: cooldownTime: 60, 90, 135, 120, 240, 300 nameSorts: &5Sort de &lSOIN, &4Degat, &1Vitesse, &2Lenteur, &3Coeur bonus, &aPrison # - Give baguette command /givesort: permission: blabla trigger: give 1 blaze rod named "&5Baguette" with lore "&6Sort actif:" and "&5Sort de &lSOIN" to the player # - Utilisation de la baguette on rightclick with blaze rod: if name of player's tool is "&5Baguette": set {_time} to "{@cooldownTime}" set {_time::*} to {_time} split at ", " set {_sort} to "{@nameSorts}" set {_sort::*} to {_sort} split at ", " loop {_sort::*}: if uncolored loop-value is uncolored line 2 of lore of player's tool: set {_cooldown} to "%{_time::%loop-index%}% seconds" parsed as timespan set {_waited} to difference between {cooldown::%uncolored line 2 of lore of player's tool%::%player%} and now if {_waited} < {_cooldown}: message "&cVous devez attendre avant de réutiliser ce sort: &6%uncolored line 2 of lore of player's tool%" stop # - Sort soin if uncolored line 2 of lore of player's tool is "Sort de SOIN": heal player by 4 hearts message "&aVous avez été heal" to the player # - Sort degat if uncolored line 2 of lore of player's tool is "Degat": loop all players in radius 10 around the player: if loop-player is targeted entity: damage targeted entity by 6 hearts message "&aLa cible a été touché ! (Degat)" to the player stop message "&cVous avez loupé votre cible ! (Degat)" to the player # - Sort vitesse if uncolored line 2 of lore of player's tool is "Vitesse": apply speed 2 to player for 30 seconds message "&aVous avez reçu un boost de vitesse" to the player # - Sort lenteur if uncolored line 2 of lore of player's tool is "Lenteur": loop all players in radius 10 around the player: if loop-player is targeted entity: apply slowness 1 to targeted entity for 5 seconds message "&aLa cible a été touché ! (Lenteur)" to the player stop message "&cVous avez loupé votre cible ! (Lenteur)" to the player # - Sort coeur bonus if uncolored line 2 of lore of player's tool is "Coeur bonus": apply absorption 10 to player for 90 seconds message "&aVous avez reçu un boost de vie" to the player # - Sort prison if uncolored line 2 of lore of player's tool is "Prison": loop all players in radius 10 around the player: if loop-player is targeted entity: set {_p} to targeted player's location set {_pos1} to location at x-coord of {_p} + 1, y-coord of {_p}, z-coord of {_p} + 1 set {_pos2} to location at x-coord of {_p} - 1, y-coord of {_p}, z-coord of {_p} - 1 loop blocks within {_pos1} to {_pos2}: if block at loop-block's location is air: add loop-block's location to {_location::*} set block at loop-block's location to stone slab set {_pos1} to location at x-coord of {_p} + 1, y-coord of {_p} +2, z-coord of {_p} + 1 set {_pos2} to location at x-coord of {_p} - 1, y-coord of {_p} +2, z-coord of {_p} - 1 loop blocks within {_pos1} to {_pos2}: if block at loop-block's location is air: add loop-block's location to {_location::*} set block at loop-block's location to stone slab set block at {_p} to air message "&aLa cible a été touché ! (Prison)" to the player set {_decompte} to 0 while {_decompte} < 5: add 1 to {_decompte} wait 1 second loop {_location::*}: set block at {_location::%loop-index%} to air stop message "&cVous avez loupé votre cible ! (Prison)" to the player set {cooldown::%uncolored line 2 of lore of player's tool%::%player%} to now # - Changement de sort on leftclick with blaze rod: if name of player's tool is "&5Baguette": set {_sort} to "{@nameSorts}" set {_sort::*} to {_sort} split at ", " loop {_sort::*}: if uncolored loop-value is uncolored line 2 of lore of player's tool: set {_nb} to loop-index parsed as number +1 if loop-index parsed as number = 6: set {_nb} to 1 set line 2 of lore of player's tool to "&1%{_sort::%{_nb}%}%" message "&6Le sort %{_sort::%{_nb}%}% &6est actif" to the player stop
  8. bah tu ajoutes on rightclick: broadcast "%event-block%" au skript. Tu reloads. Tu fais un clique droit sur une dalle de pierre lisse et tu me dis ce que ça écrit dans le chat
  9. merde y a pas de s à permission, et pour l'autre erreur c'est juste un problème de nom: rajoute ça: on rightclick: broadcast "%event-block%" Puis tu cliques sur la dalle de stone lisse (clique droit), et tu remplaces dans le skript "smooth stone slab" par le nom que skript a renvoyé (après vire ce bout de code)
  10. C'est quoi les erreurs, tu as pris quelle version ? Tu avais skquery avant ?si oui quelle version ?
  11. Va sur skript tool et tu cherches skquerylime
  12. Tu dois pas avoir skquery lime (3.6.2 minimum)
  13. command /givesort: permissions: blabla trigger: give 1 blaze rod named "&5Baguette" with lore "&6Sort actif:" and "&5Sort de &lSOIN" to the player Pour le reste ça doit être du à ta version de skript. Essaye pour le lore de faire give 1 blaze rod named "&5Baguette" with lore "&6Sort actif:%nl%&5Sort de &lSOIN" to the player ou give 1 blaze rod named "&5Baguette" with lore "&6Sort actif:||&5Sort de &lSOIN" to the player Et dis moi si y en a un des deux qui te crée bien 2 lignes dans le lore Et pour le système de prison si cette syntaxe fonctionne pas dans ta version je te ferai un autre système (surement un peu sale x) )
  14. # - nom des sorts (si tu changes le nom, faut aussi le changer de le on rightclick (sans couleur), et durée des cooldowns options: cooldownTime: 60, 90, 135, 120, 240, 300 nameSorts: &5Sort de &lSOIN, &4Degat, &1Vitesse, &2Lenteur, &3Coeur bonus, &aPrison # - Give baguette command /givesort: trigger: give 1 blaze rod named "&5Baguette" with lore "&6Sort actif:" and "&5Sort de &lSOIN" to the player # - Utilisation de la baguette on rightclick with blaze rod: if name of player's tool is "&5Baguette": set {_time} to "{@cooldownTime}" set {_time::*} to {_time} split at ", " set {_sort} to "{@nameSorts}" set {_sort::*} to {_sort} split at ", " loop {_sort::*}: if uncolored loop-value is uncolored line 2 of lore of player's tool: set {_cooldown} to "%{_time::%loop-index%}% seconds" parsed as timespan set {_waited} to difference between {cooldown::%uncolored line 2 of lore of player's tool%::%player%} and now if {_waited} < {_cooldown}: message "&cVous devez attendre avant de réutiliser ce sort: &6%uncolored line 2 of lore of player's tool%" stop # - Sort soin if uncolored line 2 of lore of player's tool is "Sort de SOIN": heal player by 4 hearts message "&aVous avez été heal" to the player # - Sort degat if uncolored line 2 of lore of player's tool is "Degat": loop all players in radius 10 around the player: if loop-player is targeted entity: damage targeted entity by 6 hearts message "&aLa cible a été touché ! (Degat)" to the player stop message "&cVous avez loupé votre cible ! (Degat)" to the player # - Sort vitesse if uncolored line 2 of lore of player's tool is "Vitesse": apply speed 2 to player for 30 seconds message "&aVous avez reçu un boost de vitesse" to the player # - Sort lenteur if uncolored line 2 of lore of player's tool is "Lenteur": loop all players in radius 10 around the player: if loop-player is targeted entity: apply slowness 1 to targeted entity for 5 seconds message "&aLa cible a été touché ! (Lenteur)" to the player stop message "&cVous avez loupé votre cible ! (Lenteur)" to the player # - Sort coeur bonus if uncolored line 2 of lore of player's tool is "Coeur bonus": apply absorption 10 to player for 90 seconds message "&aVous avez reçu un boost de vie" to the player # - Sort prison if uncolored line 2 of lore of player's tool is "Prison": loop all players in radius 10 around the player: if loop-player is targeted entity: set {_p} to targeted player's location set {_pos1} to location at x-coord of {_p} + 1, y-coord of {_p}, z-coord of {_p} + 1 set {_pos2} to location at x-coord of {_p} - 1, y-coord of {_p}, z-coord of {_p} - 1 loop blocks within {_pos1} to {_pos2}: if block at loop-block's location is air: add loop-block's location to {_location::*} set block at loop-block's location to smooth stone slab set {_pos1} to location at x-coord of {_p} + 1, y-coord of {_p} +2, z-coord of {_p} + 1 set {_pos2} to location at x-coord of {_p} - 1, y-coord of {_p} +2, z-coord of {_p} - 1 loop blocks within {_pos1} to {_pos2}: if block at loop-block's location is air: add loop-block's location to {_location::*} set block at loop-block's location to smooth stone slab set block at {_p} to air message "&aLa cible a été touché ! (Prison)" to the player set {_decompte} to 0 while {_decompte} < 5: add 1 to {_decompte} wait 1 second loop {_location::*}: set block at {_location::%loop-index%} to air stop message "&cVous avez loupé votre cible ! (Prison)" to the player set {cooldown::%uncolored line 2 of lore of player's tool%::%player%} to now # - Changement de sort on leftclick with blaze rod: if name of player's tool is "&5Baguette": set {_sort} to "{@nameSorts}" set {_sort::*} to {_sort} split at ", " loop {_sort::*}: if uncolored loop-value is uncolored line 2 of lore of player's tool: set {_nb} to loop-index parsed as number +1 if loop-index parsed as number = 6: set {_nb} to 1 set line 2 of lore of player's tool to "&1%{_sort::%{_nb}%}%" message "&6Le sort %{_sort::%{_nb}%}% &6est actif" to the player stop Hésites pas à faire des retours, des trucs que tu veux en plus, à modifier etc
  15. Bobinho

    Largage de poulets

    # - delete les poulets 1/2 function despawnentity(entity: entity): set {_location} to {_entity}'s location add 1000 to y-coordinate of {_location} teleport {_entity} at {_location} add "{CustomNameVisible:1}" to nbt of {_entity} wait 1 tick kill {_entity} # - delete les poulets 2/2 On death: if victim is a chicken: if nbt of victim contain "{CustomNameVisible:1}": clear drops command /parachutedepoulet <number> <number> <number>: trigger: set {_spawnLocation} to the location at arg-1, arg-2, arg-3 # - Spawn armor stand spawn an armor stand at {_spawnLocation} set {_armorStand} to last spawned entity add "{Invisible:1}" to {_armorStand}'s nbt set armor stand helmet of {_armorStand} to chest apply levitation -3 to {_armorStand} for 99 days # - Spawn poulet loop 15 times: set {_x} to x-coordinate of {_armorStand} + random number between -3 and 3 set {_y} to y-coordinate of {_armorStand} + 1 set {_z} to z-coordinate of {_armorStand} + random number between -3 and 3 set {_chickenLocation} to the location at {_x}, {_y}, {_z} spawn a chicken at {_chickenLocation} add last spawned entity to {_chickens::%{_armorStand}%::*} loop {_chickens::%{_armorStand}%::*}: leash loop-value to {_armorStand} # - Placement cible au sol set {_positionArmorStand} to {_armorStand}'s location while block at {_positionArmorStand} is air: remove 1 from y-coordinate of {_positionArmorStand} add 1 to y-coordinate of {_positionArmorStand} drawWarpRings style 1, particle "redstone", center {_positionArmorStand}, id "%{_positionArmorStand}%.1", rainbowMode true, scan true, height 0, radius 2, ringCount 40, ringDensity 20, visibleRange 100 wait 3 ticks drawWarpRings style 1, particle "redstone", center {_positionArmorStand}, id "%{_positionArmorStand}%.2", rainbowMode true, scan true, height 0, radius 1.7, ringCount 40, ringDensity 20, visibleRange 100 wait 3 ticks drawWarpRings style 1, particle "redstone", center {_positionArmorStand}, id "%{_positionArmorStand}%.3", rainbowMode true, scan true, height 0, radius 1.4, ringCount 40, ringDensity 20, visibleRange 100 wait 3 ticks drawWarpRings style 1, particle "redstone", center {_positionArmorStand}, id "%{_positionArmorStand}%.4", rainbowMode true, scan true, height 0, radius 1.1, ringCount 40, ringDensity 20, visibleRange 100 wait 3 ticks drawWarpRings style 1, particle "redstone", center {_positionArmorStand}, id "%{_positionArmorStand}%.5", rainbowMode true, scan true, height 0, radius .8, ringCount 40, ringDensity 20, visibleRange 100 wait 3 ticks drawWarpRings style 1, particle "redstone", center {_positionArmorStand}, id "%{_positionArmorStand}%.6", rainbowMode true, scan true, height 0, radius .5, ringCount 40, ringDensity 20, visibleRange 100 wait 3 ticks drawWarpRings style 1, particle "redstone", center {_positionArmorStand}, id "%{_positionArmorStand}%.7", rainbowMode true, scan true, height 0, radius .2, ringCount 40, ringDensity 20, visibleRange 100 wait 3 ticks drawWarpRings style 1, particle "redstone", center {_positionArmorStand}, id "%{_positionArmorStand}%.8", rainbowMode true, scan true, height 0, radius 0, ringCount 40, ringDensity 20, visibleRange 100 # - Attente que l'armor stand soit au sol while y-coordinate of {_armorStand}'s location rounded to the nearest 1 decimal place is not y-coordinate of {_positionArmorStand} rounded to the nearest 1 decimal place: wait 1 tick # - Suppression entitées et particules loop 8 times: stopEffect id "%{_positionArmorStand}%.%loop-number%" kill {_armorStand} loop {_chickens::%{_armorStand}%::*}: despawnentity(loop-value) set block at {_positionArmorStand} to a chest # - Item dans le coffre add 5 torch to block at {_positionArmorStand}'s inventory J'ai fais ça 🙂 Bon c'est pas vraiment fini, genre le système pour ajouter des items dans le coffre est pas fait, j'ajoute juste 5 torches, mais l'idée est là. Faut skDragon, SkQuery-Lime Y a surement des choses à optimiser Apparemment le système de laisse ne marche pas chez l'auteur (que ça soit la syntaxe du skQuary ou Skript), surement du au fait qu'il soit encore sur la 1.8 (faudrait changer depuis le temps 🙂 ) Si des gens sont intéressé pour continuer le système, pour pourquoi pas le poster dans les ressources contacter moi 🙂 Il manque pas mal de truc, notamment:- custom du contenu du chest- custom des particules - sécurité anti con (exemple, faire spawn casi simultanément 2 "coffres" au même coordonnée. J'ai pas testé, mais ça fait surement de la merde 🙂 ) -...
  16. Bobinho

    Largage de poulets

    Heu mon truc c'est skquery lime je crois
  17. Bobinho

    Largage de poulets

    Ça c'est pas très compliqué faut juste lui ajouter des nbt Et je suis pas chez moi pour l'instant
  18. Bobinho

    Largage de poulets

    command /test: trigger: spawn an armor stand at player's location set {_armor} to last spawned entity loop 15 times: spawn a chicken at player's location add last spawned entity to {_chicken::*} loop {_chicken::*}: leash loop-value to {_armor} si ça peut aider 🙂 J'ai pas trop eu le temps de continuer. Faudrait que les poulets spawn aléatoirement dans un radius de 2-3 autour de la position juste au dessus de l'armor stand. Et pour l'instant, l'armor stand tombe beaucoup trop vite x) et ça casse les liens. Faudrait peut être téléporter l'armor stand à une position relative au poulet (sur la coordonnée y) le temps de la chute 🙂
  19. oui le setblock fait apparaître que un seul bloc, mais tes autres blocs que tu veux faire apparaitre en même temps, on les mets ou ?
  20. C'est pas très clair x) Tu veux les faire spawn ou tes autres blocs ? à des coordonnées précises par rapport au bloc que tu poses actuellement ? Aléatoirement ?
  21. command /test: trigger: delete {point::*} add 10 to {point::Leo} add 20 to {point::Test} add 5 to {point::Bob} loop {point::*}: if {_min} is not set: set {_min} to {point::%loop-index%} +1 if {point::%loop-index%} < {_min}: set {_min} to {point::%loop-index%} set {_player} to loop-index broadcast "valeur minimum: %{_min}% joueur: %{_player}%" On suppose que les {point::Leo/bob/etc} sont les variables de tes joueurs (à définir comme montrer plus haut). Donc tu auras pas besoin de mettre les lignes de delete à add 5, c'est juste pour comprendre comment ça fonctionne Et s'était un lien: https://skript-mc.fr/forum/topic/724-tutoriel-skript-les-listes/
  22. set {point::%player%} to xxx add xxx to {point::%player%} remove xxx from {point::%player%} Dans ton cas, faudrait les utiliser comme ça. En gros la variable {point::*} est une liste. et à l'intérieur de cette liste seront stocké toutes les variables {point::%player%}. Donc si tu fais loop {point::*}: ça va te sortir les points de tous les joueurs Si ça peut t'aider à comprendre:
  23. bah ça va être compliqué de trier tes {point.%player%} si tu as pas la liste de tous les joueurs ayant cette variable de définis (à moins que tu veuilles faire ton classement seulement pour les joueurs connecté), ou alors une variable liste du type: {point::*} avec dedans les points de tous tes joueurs.
  24. bah si tu sais pas c'est quoi le nom de tes variables on va avoir du mal à t'aider x)
  25. tes "variables" sont stocké comment ? Dans une variable liste, c'est un truc de genre {money.%player%}... ?
×
×
  • 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.