Aller au contenu

Messages recommandés

Hello,

Je vous fourni un vieux code d'un vieux serveur à moi.

C'est une commande pour faire un topluck un peu comme sur Paladium.

C'est tellement vieux que je vous le largue comme ça. Faites en ce que vous voulez.

options:
	cmdInvsee: XXXXXXXXX
	cmdAvertMod: XXXXXXX

on break diamond ore:
    if {break.bigore.%player%} is not set:
        set {break.bigore.%player%} to 0
    add 1 to {break.bigore.%player%}
on break emerald ore:
    if {break.bigore.%player%} is not set:
        set {break.bigore.%player%} to 0
    add 1 to {break.bigore.%player%}
on break a stone:
    if {break.stone.%player%} is not set:
        set {break.stone.%player%} to 0
    if {break.bigore.%player%} is not set:
        set {break.bigore.%player%} to 0
    add 1 to {break.stone.%player%}
        
on quit:
    delete {break.bigore.%player%}
    delete {break.stone.%player%}
        
command /topluck [<player>]:
    trigger:
        if player has permission "mod.use":
            if arg 1 is not set:
                open chest with 6 rows named "&5TopLuck" to player
                wait 3 tick
                set {_s} to 0
                loop all players:
                    if player is loop-player:
                        if {break.bigore.%loop-player%} is not set:
                            set {break.bigore.%loop-player%} to 0
                        if {break.stone.%loop-player%} is not set:
                            set {break.stone.%loop-player%} to 0
                        set {_topluck.%loop-player%} to {break.bigore.%loop-player%} / {break.stone.%loop-player%}
                        format slot {_s} of player with loop-player's skull named "&f%loop-player%" with lore "&eMinerais riche &7- &6&lPourcentage||&e%{break.bigore.%loop-player%}%||&6&o%{_topluck.%loop-player%}%&c&o%%" to run [make player execute command "/topluck %loop-player%"]
                        add loop-player to {_dejalook.%player%}
                    else:
                        if {break.bigore.%loop-player%} is not set:
                            set {break.bigore.%loop-player%} to 0
                        if {break.stone.%loop-player%} is not set:
                            set {break.stone.%loop-player%} to 0
                        set {_topluck.%loop-player%} to {break.bigore.%loop-player%} / {break.stone.%loop-player%}
                        format slot {_s} of player with loop-player's skull named "&f%loop-player%" with lore "&eMinerais riche &7- &6&lPourcentage||&e%{break.bigore.%loop-player%}%||&6&o%{_topluck.%loop-player%}%&c&o%%" to run [make player execute command "/topluck %loop-player%"]
                        add loop-player to {_dejalook.%player%}
                    add 1 to {_s}
                    if {_s} > 51:
                        stop
            if arg 1 is set:
                open chest with 3 rows named "&6%arg-1%" to player
                wait 3 tick
                format slot 1 of player with chest named "&fInventaire" to close then run [make player execute command "{@cmdInvsee}"]
                format slot 2 of player with eye of ender named "&fTeleportation" to close then run [make player execute command "/tp %arg 1%"]
                format slot 3 of player with stone sword named "&fAvertir" to close then run [make player execute command "{@cmdAvertMod}"]
                format slot 10 of player with 223:5 named "&fMinerais minés" with lore "%{break.bigore.%arg-1%}%" to be unstealable
                format slot 11 of player with stone named "&fStones" with lore "%{break.stone.%arg-1%}%" to be unstealable

Cadeau ? 

A plus tard ! Je risque de mettre plein de truc comme ça à l'avenir si je fouille un peu mon HDD xD.

Partager ce message


Lien à poster
Partager sur d’autres sites

Salut ! 

Merci pour le partage ! 

 

Je comptais en créer un mais tu vien de me rendre la tâche plus facile ! ?

 

 

Partager ce message


Lien à poster
Partager sur d’autres sites

Créer un compte ou se connecter pour commenter

Vous devez être membre afin de pouvoir déposer un commentaire

Créer un compte

Créez un compte sur notre communauté. C’est facile !

Créer un nouveau compte

Se connecter

Vous avez déjà un compte ? Connectez-vous ici.

Connectez-vous maintenant

×

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.