Aller au contenu

Messages recommandés

Posté(e) (modifié)

Version de Minecraft : 1.8
Version de Skript : 2.X.X

Type du skript : skript hammer

Description du script :

Bonjours, jai un probléme avec mon skript hammer la fortune ne veut pas marcher

 

command /hammer [<text>] [<player>]:
    permission: sk.WestMc
    trigger:
        if arg 1 is "Ancien":
            give 1 diamond pickaxe of efficiency 70 and unbreaking 10 and fortune 3 named "&a&k&l[ &2&lMarteau &a&lAncien &a&k&l]" with lore "&7&m---------&f&m---------&7&m---------||&e✯✯✯&7✯✯||||&7Cette pioche vous permettra||&7de miner les blocs en 3x3 !||||&2✔ &aObjet incassable.||&2❤ &aNe se perd pas à la mort.||&7&m---------&f&m---------&7&m---------" to arg 2





on break:
    if tool is a diamond pickaxe:
        if name of tool is "&a&k&l[ &2&lMarteau &a&lAncien &a&k&l]":
            loop blocks in radius 1.8:
                if loop-block is a stone:
                    set loop-block to air
                    drop a cobblestone at location of player
                    
on break:
    if tool is a diamond pickaxe:
        if name of tool is "&a&k&l[ &2&lMarteau &a&lAncien &a&k&l]":
            loop blocks in radius 1.8:
                if loop-block is a diamond ore:
                    set loop-block to air
                    drop a diamond at location of player
                    
on break:
    if tool is a diamond pickaxe:
        if name of tool is "&a&k&l[ &2&lMarteau &a&lAncien &a&k&l]":
            loop blocks in radius 1.8:
                if loop-block is a gold ore:
                    set loop-block to air
                    drop a gold ore at location of player
                    
on break:
    if tool is a diamond pickaxe:
        if name of tool is "&a&k&l[ &2&lMarteau &a&lAncien &a&k&l]":
            loop blocks in radius 1.8:
                if loop-block is a iron ore:
                    set loop-block to air
                    drop a iron ore at location of player
                    
on break:
    if tool is a diamond pickaxe:
        if name of tool is "&a&k&l[ &2&lMarteau &a&lAncien &a&k&l]":
            loop blocks in radius 1.8:
                if loop-block is a coal ore:
                    set loop-block to air
                    drop a coal at location of player
                    
on break:
    if tool is a diamond pickaxe:
        if name of tool is "&a&k&l[ &2&lMarteau &a&lAncien &a&k&l]":
            loop blocks in radius 1.8:
                if loop-block is a redstone ore:
                    set loop-block to air
                    drop a redstone at location of player
                    
on break:
    if tool is a diamond pickaxe:
        if name of tool is "&a&k&l[ &2&lMarteau &a&lAncien &a&k&l]":
            loop blocks in radius 1.8:
                if loop-block is a lapis ore:
                    set loop-block to air
                    drop a lapis at location of player
                    
on break:
    if tool is a diamond pickaxe:
        if name of tool is "&a&k&l[ &2&lMarteau &a&lAncien &a&k&l]":
            loop blocks in radius 1.8:
                if loop-block is a emerald ore:
                    set loop-block to air
                    drop a emerald at location of player
                    
on break:
    if tool is a diamond pickaxe:
        if name of tool is "&a&k&l[ &2&lMarteau &a&lAncien &a&k&l]":
            loop blocks in radius 1.8:
                if loop-block is a obsidian:
                    set loop-block to air
                    drop a obsidian at location of player
                    
on break:
    if tool is a diamond pickaxe:
        if name of tool is "&a&k&l[ &2&lMarteau &a&lAncien &a&k&l]":
            loop blocks in radius 1.8:
                if loop-block is a iron block:
                    set loop-block to air
                    drop a iron block at location of player
                    
on break:
    if tool is a diamond pickaxe:
        if name of tool is "&a&k&l[ &2&lMarteau &a&lAncien &a&k&l]":
            loop blocks in radius 1.8:
                if loop-block is a end stone:
                    set loop-block to air
                    drop a end stone at location of player
                    
on break:
    if tool is a diamond pickaxe:
        if name of tool is "&a&k&l[ &2&lMarteau &a&lAncien &a&k&l]":
            loop blocks in radius 1.8:
                if loop-block is a stone brick:
                    set loop-block to air
                    drop a stone brick at location of player
                    
on break:
    if tool is a diamond pickaxe:
        if name of tool is "&a&k&l[ &2&lMarteau &a&lAncien &a&k&l]":
            loop blocks in radius 1.8:
                if loop-block is a cobblestone:
                    set loop-block to air
                    drop a cobblestone at location of player
                    
on break:
    if tool is a diamond pickaxe:
        if name of tool is "&a&k&l[ &2&lMarteau &a&lAncien &a&k&l]":
            loop blocks in radius 1.8:
                if loop-block is a 116:
                    set loop-block to air
                    drop a 116 at location of player
                    
on break:
    if tool is a diamond pickaxe:
        if name of tool is "&a&k&l[ &2&lMarteau &a&lAncien &a&k&l]":
            loop blocks in radius 1.8:
                if loop-block is a ender chest:
                    set loop-block to air
                    drop a ender chest at location of player
                    
on break:
    if tool is a diamond pickaxe:
        if name of tool is "&a&k&l[ &2&lMarteau &a&lAncien &a&k&l]":
            loop blocks in radius 1.8:
                if loop-block is a anvil:
                    set loop-block to air
                    drop a anvil at location of player

 

Modifié par Weedistone
Posté(e)

Ouloulou, ça ne répond pas vraiment à ta question mais maybe une manière beaucoup + opti pour ton code :

- au lieu de créer un on break pour chaque block, tu peux faire

set loop-block to air

drop cobblestone if loop-block is stone

drop diamond if loop-block is diamond ore

etc

Posté(e)
Il y a 7 heures, Weedistone a dit :

Version de Minecraft : 1.8
Version de Skript : 2.X.X

Type du skript : skript hammer

Description du script :

Bonjours, jai un probléme avec mon skript hammer la fortune ne veut pas marcher

 


command /hammer [<text>] [<player>]:
    permission: sk.WestMc
    trigger:
        if arg 1 is "Ancien":
            give 1 diamond pickaxe of efficiency 70 and unbreaking 10 and fortune 3 named "&a&k&l[ &2&lMarteau &a&lAncien &a&k&l]" with lore "&7&m---------&f&m---------&7&m---------||&e✯✯✯&7✯✯||||&7Cette pioche vous permettra||&7de miner les blocs en 3x3 !||||&2✔ &aObjet incassable.||&2❤ &aNe se perd pas à la mort.||&7&m---------&f&m---------&7&m---------" to arg 2





on break:
    if tool is a diamond pickaxe:
        if name of tool is "&a&k&l[ &2&lMarteau &a&lAncien &a&k&l]":
            loop blocks in radius 1.8:
                if loop-block is a stone:
                    set loop-block to air
                    drop a cobblestone at location of player
                    
on break:
    if tool is a diamond pickaxe:
        if name of tool is "&a&k&l[ &2&lMarteau &a&lAncien &a&k&l]":
            loop blocks in radius 1.8:
                if loop-block is a diamond ore:
                    set loop-block to air
                    drop a diamond at location of player
                    
on break:
    if tool is a diamond pickaxe:
        if name of tool is "&a&k&l[ &2&lMarteau &a&lAncien &a&k&l]":
            loop blocks in radius 1.8:
                if loop-block is a gold ore:
                    set loop-block to air
                    drop a gold ore at location of player
                    
on break:
    if tool is a diamond pickaxe:
        if name of tool is "&a&k&l[ &2&lMarteau &a&lAncien &a&k&l]":
            loop blocks in radius 1.8:
                if loop-block is a iron ore:
                    set loop-block to air
                    drop a iron ore at location of player
                    
on break:
    if tool is a diamond pickaxe:
        if name of tool is "&a&k&l[ &2&lMarteau &a&lAncien &a&k&l]":
            loop blocks in radius 1.8:
                if loop-block is a coal ore:
                    set loop-block to air
                    drop a coal at location of player
                    
on break:
    if tool is a diamond pickaxe:
        if name of tool is "&a&k&l[ &2&lMarteau &a&lAncien &a&k&l]":
            loop blocks in radius 1.8:
                if loop-block is a redstone ore:
                    set loop-block to air
                    drop a redstone at location of player
                    
on break:
    if tool is a diamond pickaxe:
        if name of tool is "&a&k&l[ &2&lMarteau &a&lAncien &a&k&l]":
            loop blocks in radius 1.8:
                if loop-block is a lapis ore:
                    set loop-block to air
                    drop a lapis at location of player
                    
on break:
    if tool is a diamond pickaxe:
        if name of tool is "&a&k&l[ &2&lMarteau &a&lAncien &a&k&l]":
            loop blocks in radius 1.8:
                if loop-block is a emerald ore:
                    set loop-block to air
                    drop a emerald at location of player
                    
on break:
    if tool is a diamond pickaxe:
        if name of tool is "&a&k&l[ &2&lMarteau &a&lAncien &a&k&l]":
            loop blocks in radius 1.8:
                if loop-block is a obsidian:
                    set loop-block to air
                    drop a obsidian at location of player
                    
on break:
    if tool is a diamond pickaxe:
        if name of tool is "&a&k&l[ &2&lMarteau &a&lAncien &a&k&l]":
            loop blocks in radius 1.8:
                if loop-block is a iron block:
                    set loop-block to air
                    drop a iron block at location of player
                    
on break:
    if tool is a diamond pickaxe:
        if name of tool is "&a&k&l[ &2&lMarteau &a&lAncien &a&k&l]":
            loop blocks in radius 1.8:
                if loop-block is a end stone:
                    set loop-block to air
                    drop a end stone at location of player
                    
on break:
    if tool is a diamond pickaxe:
        if name of tool is "&a&k&l[ &2&lMarteau &a&lAncien &a&k&l]":
            loop blocks in radius 1.8:
                if loop-block is a stone brick:
                    set loop-block to air
                    drop a stone brick at location of player
                    
on break:
    if tool is a diamond pickaxe:
        if name of tool is "&a&k&l[ &2&lMarteau &a&lAncien &a&k&l]":
            loop blocks in radius 1.8:
                if loop-block is a cobblestone:
                    set loop-block to air
                    drop a cobblestone at location of player
                    
on break:
    if tool is a diamond pickaxe:
        if name of tool is "&a&k&l[ &2&lMarteau &a&lAncien &a&k&l]":
            loop blocks in radius 1.8:
                if loop-block is a 116:
                    set loop-block to air
                    drop a 116 at location of player
                    
on break:
    if tool is a diamond pickaxe:
        if name of tool is "&a&k&l[ &2&lMarteau &a&lAncien &a&k&l]":
            loop blocks in radius 1.8:
                if loop-block is a ender chest:
                    set loop-block to air
                    drop a ender chest at location of player
                    
on break:
    if tool is a diamond pickaxe:
        if name of tool is "&a&k&l[ &2&lMarteau &a&lAncien &a&k&l]":
            loop blocks in radius 1.8:
                if loop-block is a anvil:
                    set loop-block to air
                    drop a anvil at location of player

 

 

on break:
	if tool is a diamond pickaxe:
		if name of tool is "&a&k&l[ &2&lMarteau &a&lAncien &a&k&l]":
			loop blocks in radius 1.8:
				break loop-value using player's tool
				

Salut ! Je te conseille grandement d'utiliser ceci pour ton skript que la grande liste que tu as fait.

 

Pour ce qui est du problème, je n'ai pas trouvé de solution, désolé.

 

  • 4 semaines après...
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.