Aller au contenu

McLincoln2

Membre
  • Compteur de contenus

    90
  • Inscription

  • Dernière visite

  • Jours gagnés

    6

McLincoln2 a gagné pour la dernière fois le 26 avril

McLincoln2 a eu le contenu le plus aimé !

Réputation sur la communauté

39 Neutral

À propos de McLincoln2

  • Rang
    Membre
  1. McLincoln2

    [SK] WorldEdit

    Tu aurais pu te démarquer en ayant la possibilité de faire une taille illimitée pour tes structures ce qui est possible, de plus il n'y a pas de //undo pas vraiment acceptable
  2. Mon premier plugin, un plugin KOTH mis en relation avec Factions. C'est un début :)
  3. Le java c'est cool à développer pour ceux qui n'en n'ont jamais fait.
  4. McLincoln2

    Détecter un bloc sur la tête d'un joueur

    Essaie: block above block at player isn't air #ou block above block above block at player isn't air
  5. McLincoln2

    Zégonia | Recherche de skripteur expérimenter.

    Je peux aider volontiers, si ce projet tient toujours.
  6. McLincoln2

    Skript en rapport avec le soleil

    C'est possible mais je ne pourrais pas te le faire désolé.
  7. McLincoln2

    Scoreboard ne fonctionnant pas

    Tu peux utiliser ce script sinon: scoreboards
  8. McLincoln2

    Problème avec 2 skript claim et hammeur.

    Mon script (ici), dans la function 'start' plus précisément.
  9. McLincoln2

    Problème avec 2 skript claim et hammeur.

    C'est utile dans les boucles, mais pas ici visiblement.
  10. Exemple de configuration pour mon petit jeu avec autant de partie possbile; https://pastebin.com/raw/EgeFYWXe
  11. J'ai bien avancé dans mon petit jeu pour ceux que ça peut intéresser je vous montre demain :p
  12. McLincoln2

    Classement dans le tab...

    Je viens de voir cela avec TuSKe 1.0 loop alphabetical order of all players: send "%loop-object%" Donc on a: function players(permissions:objects) :: players: loop {_permissions::*}: loop alphabetical order of all players: if loop-object has permission "%loop-value-1%": if {_players::%loop-object%} is not set: set {_players::%loop-object%} to loop-object add loop-object to {_R::*} return {_R::*} C'est pas bien ça pour trier en fonction des permissions ? command /tri: trigger: set {_permissions::*} to "a", "b", "c" and "d" loop players({_permissions::*}): #ETC
  13. Petit jeu: https://www.youtube.com/watch?v=v15QfS2qzmk&feature=youtu.be Merci @[3033:@4rno] pour l'algorithme du labyrinthe.
  14. McLincoln2

    [Shop/Spawners/SkyBlock] Skript de spawners pour un skybloc

    @MaxDu56YT @Ertonia J'ai réalisé ce script, il marche pour moi. Version de mon serveur: 1.11.2 Add-ons: - TuSKe 1.8.3-PikachuPatch-v1 - Skript 2.2-dev32d - SkStuff - skript-yaml Dans 'plugins/Skript/scripts/' load: load yaml "plugins/sS/config.yml" as "sSConfig" function spawners() :: objects: loop skript-yaml nodes with keys "GUI.spawners" from "sSConfig" without string checks: if loop-value is not "global item": add loop-value to {_S::*} return {_S::*} function decorations() :: objects: set {_R::*} to skript-yaml list "GUI.decoration" from "sSConfig" return {_R::*} function d(S:string) :: string: set {_R} to skript-yaml value "GUI.spawners.%{_S}%.data" from "sSConfig" return {_R} function s(S:string) :: number: set {_R} to skript-yaml value "GUI.spawners.%{_S}%.slot" from "sSConfig" return {_R} function p(S:string) :: number: set {_R} to skript-yaml value "GUI.spawners.%{_S}%.price" from "sSConfig" return {_R} function nbt(S:object) :: string: set {_R} to skript-yaml value "GUI.spawners.%{_S}%.nbt" from "sSConfig" replace all "$s" with "%s({_S})%" in {_R} replace all "$p" with "%p({_S})%" in {_R} replace all "$id" with "%{_S}%" in {_R} return {_R} on command: set {_CMD} to skript-yaml value "command" from "sSConfig" if command is {_CMD}: cancel event set {_NAME} to skript-yaml value "GUI.name" from "sSConfig" set {_S} to skript-yaml value "GUI.height" from "sSConfig" set {_B} to "%skript-yaml value ""GUI.spawners.global item"" from ""sSConfig""%" parsed as item open virtual chest inventory with size {_S} named "%{_NAME}%" to player loop spawners(): set {_S} to loop-value format gui slot s({_S}) of player with {_B} with custom nbt "%nbt({_S})%" to run: if targeted block of player is a mob spawner: set {_E} to "%nbt of targeted block%" set {_E::*} to {_E} split by ":{Entity:{id:""" set {_F} to first element of {_E::2} split by """}" if d({_S}) is not "%{_F}%": replace all "%{_F}%" with "%d({_S})%" in {_E} if money of player is bigger or equal to p({_S}): remove p({_S}) from money of player set block at targeted block to mob spawner add "%{_E}%" to nbt of targeted block loop decorations(): set {_I} to loop-value set {_I::*} to {_I} split by "|" if {_I::4} is "confirmation": format gui slot {_I::1} parsed as number of player with "%{_I::2}%" parsed as item with custom nbt "%{_I::3}%" to run: set {_P} to skript-yaml value "GUI.basic spawner.price" from "sSConfig" set {_NAME} to skript-yaml value "GUI.basic spawner.confirmation.name" from "sSConfig" set {_S} to skript-yaml value "GUI.basic spawner.confirmation.height" from "sSConfig" open virtual chest inventory with size {_S} named "%{_NAME}%" to player set {_I::*} to "GUI.basic spawner.confirmation.accept" and "GUI.basic spawner.confirmation.deny" set {_I2::*} to "slot", "item" and "nbt" loop {_I::*}: loop {_I2::*}: set {_I3::%loop-value-3%} to skript-yaml value "%loop-value-2%.%loop-value-3%" from "sSConfig" set {_A} to loop-value-2 format gui slot {_I3::slot} of player with "%{_I3::item}%" parsed as item with custom nbt "%{_I3::nbt}%" to run: if {_A} is "GUI.basic spawner.confirmation.accept": if player's money is bigger or equal to {_P}: remove {_P} from money of player execute console command "/give %player% mob_spawner 1 0 {BlockEntityTag:{EntityId:minecraft:pig}}" else: execute player command "%{_CMD}%" clear {_I3::*} loop skript-yaml list "GUI.basic spawner.decoration" from "sSConfig": set {_F} to loop-value-2 set {_F::*} to {_F} split by "|" format gui slot {_F::1} parsed as number of player with "%{_F::2}%" parsed as item with custom nbt "%{_F::3}%" else: format gui slot {_I::1} parsed as number of player with "%{_I::2}%" parsed as item with custom nbt "%{_I::3}%" 'plugins/sS/config.yml' command: sS-edit GUI: name: '§3Spawners' height: 6 basic spawner: price: 50000 confirmation: name: '§3Spawners' height: 3 # between 1 and 6 accept: slot: 15 item: emerald nbt: '{display:{Name:"§2Valider l''achat"}}' deny: slot: 11 item: rose red nbt: '{display:{Name:"§4Annuler l''achat"}}' decoration: - '4|mob spawner|{display:{Name:"§3Achat Spawner Cochon"}}|confirmation' decoration: - '53|mob spawner|{display:{Name:"§3Achat Spawner Cochon"}}|confirmation' # You can add others decoration tools spawners: global item: 'spawn egg' # do not edit this # http://minecraft-ids.grahamedgecombe.com/entities # $p is price # $s is slot # $id is ID, for llama is 'llama' llama: slot: 0 data: 'minecraft:llama' nbt: '{EntityTag:{id:minecraft:llama},display:{Name:"$id",Lore:["$p$"]}}' price: 5000 enderman: slot: 1 data: 'minecraft:enderman' nbt: '{EntityTag:{id:minecraft:enderman},display:{Name:"$id",Lore:["$p$"]}}' price: 10000 endermite: slot: 2 data: 'minecraft:endermite' nbt: '{EntityTag:{id:minecraft:endermite},display:{Name:"$id",Lore:["$p$"]}}' price: 5000 spider: slot: 3 data: 'minecraft:spider' nbt: '{EntityTag:{id:minecraft:spider},display:{Name:"$id",Lore:["$p$"]}}' price: 2500 blaze: slot: 4 data: 'minecraft:blaze' nbt: '{EntityTag:{id:minecraft:blaze},display:{Name:"$id",Lore:["$p$"]}}' price: 5000 chicken: slot: 5 data: 'minecraft:chicken' nbt: '{EntityTag:{id:minecraft:chicken},display:{Name:"$id",Lore:["$p$"]}}' price: 1000 cow: slot: 6 data: 'minecraft:cow' nbt: '{EntityTag:{id:minecraft:cow},display:{Name:"$id",Lore:["$p$"]}}' price: 2500
  15. McLincoln2

    Addon Skutilities

    TuSKe suffit amplement.
×

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.