Aller au contenu

Skript d'hammeur/dynamite


Messages recommandés

Posté(e)
Peut-être qu'il ont Whitelist Skellett :/

 

Bah au lieu de "break block" tu set loop block to air et tu drop un l'item en question

Attend j'vais te renvoyer un code sans le break comme sa sa pourra servire pour @MaxDu56YT aussi

 

Tu peut le faire silteplait? parceque je connais pas trop j'ai peur de foirais tout?

Posté(e)
options:
   GHamMSG: "&aTu as reçu %arg 2% hammeur(s) !"
   NNerr: "&cNombres négatifs non-autorisés !"

command /hammeur [<text>] [<number>] [<player>]:
   permission: hammeur.give
   trigger:
       if arg 1 is "give":
           if arg-2 > 0:
               give arg-2 of iron pickaxe of efficiency 5 and unbreaking 3 named "&c[&6Hammeur&c]" to arg-3
               send {@GHamMSG}
           else:
               send {@NNerr}
on click:
   send "%tool of player%"

on break:
   if name of player's tool is "&c[&6Hammeur&c]":
       set {_1.%player%} to location of event-block
       set {_2.%player%} to location of event-block
       if player's pitch is between -50 and 50:
           add 1 to y-coord of {_1.%player%}
           subtract 1 from y-coord of {_2.%player%}
           if player's horizontal facing is west or east:
               add 1 to z-coord of {_1.%player%}
               subtract 1 from z-coord of {_2.%player%}
               loop blocks within {_1.%player%} to {_2.%player%}:
                   id of loop-block isn't 7 or 8 or 9 or 10 or 11 or 138 or 49 or 47 or 52 or 52 or 87 or 0
                   set {_lol} to loop-block
                   if {_lol} is emerald_ore:
                       set loop-block to air

                       drop 1 emerald at loop-block
                   else if {_lol} is redstone_ore_off or redstone_ore_on:
                       set loop-block to air

                       drop 1 redstone at loop-block
                   else if {_lol} is diamond_ore:
                       set loop-block to air

                       drop 1 diamond at loop-block
                   else if {_lol} is lapis_ore:
                       set loop-block to air

                       drop 1 lapis at loop-block   
                   else if {_lol} is coal_ore:
                       set loop-block to air

                       drop 1 coal at loop-block   
                   else if {_lol} is iron_ore:
                       set loop-block to air

                       drop 1 iron_ore at loop-block
                   else if {_lol} is gold_ore:
                       set loop-block to air

                       drop 1 gold_ore at loop-block
                   else if {_lol} is nether_quartz_ore:
                       set loop-block to air

                       drop 1 nether_quartz_item at loop-block   
                   if player's tool is enchanted with fortune 1:
                       chance of 3%:
                           drop 1 diamond at loop-block
                   else if player's tool is enchanted with fortune 2:
                       chance of 3%:
                           drop 2 diamond at loop-block         
                   else if player's tool is enchanted with fortune 3:
                       chance of 3%:
                           drop 3 diamond at loop-block             
                   else if player's tool is enchanted with fortune 4:
                       chance of 3%:
                           drop 4 diamond at loop-block     
                   else if player's tool is enchanted with fortune 5:
                       chance of 3%:
                           drop 5 diamond at loop-block 
           else if player's horizontal facing is north or south:
               add 1 to x-coord of {_1.%player%}
               subtract 1 from x-coord of {_2.%player%}
               loop blocks within {_1.%player%} to {_2.%player%}:
                   id of loop-block isn't 7 or 8 or 9 or 10 or 11 or 138 or 49 or 47 or 52 or 52 or 0
                   set {_lol} to loop-block
                   if {_lol} is emerald_ore:
                       set loop-block to air

                       drop 1 emerald at loop-block
                   else if {_lol} is redstone_ore_off or redstone_ore_on:
                       set loop-block to air

                       drop 1 redstone at loop-block
                   else if {_lol} is diamond_ore:
                       set loop-block to air

                       drop 1 diamond at loop-block
                   else if {_lol} is lapis_ore:
                       set loop-block to air

                       drop 1 lapis at loop-block   
                   else if {_lol} is coal_ore:
                       set loop-block to air

                       drop 1 coal at loop-block   
                   else if {_lol} is iron_ore:
                       set loop-block to air

                       drop 1 iron_ore at loop-block
                   else if {_lol} is gold_ore:
                       set loop-block to air

                       drop 1 gold_ore at loop-block
                   else if {_lol} is nether_quartz_ore:
                       set loop-block to air

                       drop 1 nether_quartz_item at loop-block   
                   if player's tool is enchanted with fortune 1:
                       chance of 3%:
                           drop 1 diamond at loop-block
                   else if player's tool is enchanted with fortune 2:
                       chance of 3%:
                           drop 2 diamond at loop-block         
                   else if player's tool is enchanted with fortune 3:
                       chance of 3%:
                           drop 3 diamond at loop-block             
                   else if player's tool is enchanted with fortune 4:
                       chance of 3%:
                           drop 4 diamond at loop-block     
                   else if player's tool is enchanted with fortune 5:
                       chance of 3%:
                           drop 5 diamond at loop-block         
       else:
           add 1 to x-coord of {_1.%player%}
           add 1 to z-coord of {_1.%player%}
           subtract 1 from x-coord of {_2.%player%}
           subtract 1 from z-coord of {_2.%player%}
           loop blocks within {_1.%player%} to {_2.%player%}:
               id of loop-block isn't 7 or 8 or 9 or 10 or 11 or 138 or 49 or 47 or 52 or 52 or 0
               set {_lol} to loop-block
               if {_lol} is emerald_ore:
                   set loop-block to air

                   drop 1 emerald at loop-block
               else if {_lol} is redstone_ore_off or redstone_ore_on:
                   set loop-block to air

                   drop 1 redstone at loop-block
               else if {_lol} is diamond_ore:
                   set loop-block to air

                   drop 1 diamond at loop-block
               else if {_lol} is lapis_ore:
                   set loop-block to air

                   drop 1 lapis at loop-block   
               else if {_lol} is coal_ore:
                   set loop-block to air

                   drop 1 coal at loop-block   
               else if {_lol} is iron_ore:
                   set loop-block to air

                   drop 1 iron_ore at loop-block
               else if {_lol} is gold_ore:
                   set loop-block to air

                   drop 1 gold_ore at loop-block
               else if {_lol} is nether_quartz_ore:
                   set loop-block to air

                   drop 1 nether_quartz_item at loop-block   
               if player's tool is enchanted with fortune 1:
                   chance of 3%:
                       drop 1 diamond at loop-block
               else if player's tool is enchanted with fortune 2:
                   chance of 3%:
                       drop 2 diamond at loop-block         
               else if player's tool is enchanted with fortune 3:
                   chance of 3%:
                       drop 3 diamond at loop-block             
               else if player's tool is enchanted with fortune 4:
                   chance of 3%:
                       drop 4 diamond at loop-block     
               else if player's tool is enchanted with fortune 5:
                   chance of 3%:
                       drop 5 diamond at loop-block        

Posté(e)
options:
   GHamMSG: "&aTu as reçu %arg 2% hammeur(s) !"
   NNerr: "&cNombres négatifs non-autorisés !"

command /hammeur [<text>] [<number>] [<player>]:
   permission: hammeur.give
   trigger:
       if arg 1 is "give":
           if arg-2 > 0:
               give arg-2 of iron pickaxe of efficiency 5 and unbreaking 3 named "&c[&6Hammeur&c]" to arg-3
               send {@GHamMSG}
           else:
               send {@NNerr}
on click:
   send "%tool of player%"

on break:
   if name of player's tool is "&c[&6Hammeur&c]":
       set {_1.%player%} to location of event-block
       set {_2.%player%} to location of event-block
       if player's pitch is between -50 and 50:
           add 1 to y-coord of {_1.%player%}
           subtract 1 from y-coord of {_2.%player%}
           if player's horizontal facing is west or east:
               add 1 to z-coord of {_1.%player%}
               subtract 1 from z-coord of {_2.%player%}
               loop blocks within {_1.%player%} to {_2.%player%}:
                   id of loop-block isn't 7 or 8 or 9 or 10 or 11 or 138 or 49 or 47 or 52 or 52 or 87 or 0
                   set {_lol} to loop-block
                   if {_lol} is emerald_ore:
                       set loop-block to air

                       drop 1 emerald at loop-block
                   else if {_lol} is redstone_ore_off or redstone_ore_on:
                       set loop-block to air

                       drop 1 redstone at loop-block
                   else if {_lol} is diamond_ore:
                       set loop-block to air

                       drop 1 diamond at loop-block
                   else if {_lol} is lapis_ore:
                       set loop-block to air

                       drop 1 lapis at loop-block  
                   else if {_lol} is coal_ore:
                       set loop-block to air

                       drop 1 coal at loop-block  
                   else if {_lol} is iron_ore:
                       set loop-block to air

                       drop 1 iron_ore at loop-block
                   else if {_lol} is gold_ore:
                       set loop-block to air

                       drop 1 gold_ore at loop-block
                   else if {_lol} is nether_quartz_ore:
                       set loop-block to air

                       drop 1 nether_quartz_item at loop-block  
                   if player's tool is enchanted with fortune 1:
                       chance of 3%:
                           drop 1 diamond at loop-block
                   else if player's tool is enchanted with fortune 2:
                       chance of 3%:
                           drop 2 diamond at loop-block        
                   else if player's tool is enchanted with fortune 3:
                       chance of 3%:
                           drop 3 diamond at loop-block            
                   else if player's tool is enchanted with fortune 4:
                       chance of 3%:
                           drop 4 diamond at loop-block    
                   else if player's tool is enchanted with fortune 5:
                       chance of 3%:
                           drop 5 diamond at loop-block
           else if player's horizontal facing is north or south:
               add 1 to x-coord of {_1.%player%}
               subtract 1 from x-coord of {_2.%player%}
               loop blocks within {_1.%player%} to {_2.%player%}:
                   id of loop-block isn't 7 or 8 or 9 or 10 or 11 or 138 or 49 or 47 or 52 or 52 or 0
                   set {_lol} to loop-block
                   if {_lol} is emerald_ore:
                       set loop-block to air

                       drop 1 emerald at loop-block
                   else if {_lol} is redstone_ore_off or redstone_ore_on:
                       set loop-block to air

                       drop 1 redstone at loop-block
                   else if {_lol} is diamond_ore:
                       set loop-block to air

                       drop 1 diamond at loop-block
                   else if {_lol} is lapis_ore:
                       set loop-block to air

                       drop 1 lapis at loop-block  
                   else if {_lol} is coal_ore:
                       set loop-block to air

                       drop 1 coal at loop-block  
                   else if {_lol} is iron_ore:
                       set loop-block to air

                       drop 1 iron_ore at loop-block
                   else if {_lol} is gold_ore:
                       set loop-block to air

                       drop 1 gold_ore at loop-block
                   else if {_lol} is nether_quartz_ore:
                       set loop-block to air

                       drop 1 nether_quartz_item at loop-block  
                   if player's tool is enchanted with fortune 1:
                       chance of 3%:
                           drop 1 diamond at loop-block
                   else if player's tool is enchanted with fortune 2:
                       chance of 3%:
                           drop 2 diamond at loop-block        
                   else if player's tool is enchanted with fortune 3:
                       chance of 3%:
                           drop 3 diamond at loop-block            
                   else if player's tool is enchanted with fortune 4:
                       chance of 3%:
                           drop 4 diamond at loop-block    
                   else if player's tool is enchanted with fortune 5:
                       chance of 3%:
                           drop 5 diamond at loop-block        
       else:
           add 1 to x-coord of {_1.%player%}
           add 1 to z-coord of {_1.%player%}
           subtract 1 from x-coord of {_2.%player%}
           subtract 1 from z-coord of {_2.%player%}
           loop blocks within {_1.%player%} to {_2.%player%}:
               id of loop-block isn't 7 or 8 or 9 or 10 or 11 or 138 or 49 or 47 or 52 or 52 or 0
               set {_lol} to loop-block
               if {_lol} is emerald_ore:
                   set loop-block to air

                   drop 1 emerald at loop-block
               else if {_lol} is redstone_ore_off or redstone_ore_on:
                   set loop-block to air

                   drop 1 redstone at loop-block
               else if {_lol} is diamond_ore:
                   set loop-block to air

                   drop 1 diamond at loop-block
               else if {_lol} is lapis_ore:
                   set loop-block to air

                   drop 1 lapis at loop-block  
               else if {_lol} is coal_ore:
                   set loop-block to air

                   drop 1 coal at loop-block  
               else if {_lol} is iron_ore:
                   set loop-block to air

                   drop 1 iron_ore at loop-block
               else if {_lol} is gold_ore:
                   set loop-block to air

                   drop 1 gold_ore at loop-block
               else if {_lol} is nether_quartz_ore:
                   set loop-block to air

                   drop 1 nether_quartz_item at loop-block  
               if player's tool is enchanted with fortune 1:
                   chance of 3%:
                       drop 1 diamond at loop-block
               else if player's tool is enchanted with fortune 2:
                   chance of 3%:
                       drop 2 diamond at loop-block        
               else if player's tool is enchanted with fortune 3:
                   chance of 3%:
                       drop 3 diamond at loop-block            
               else if player's tool is enchanted with fortune 4:
                   chance of 3%:
                       drop 4 diamond at loop-block    
               else if player's tool is enchanted with fortune 5:
                   chance of 3%:
                       drop 5 diamond at loop-block        

 

merci je test , et aussi stp tu pourait faire que quand ont casse un block de diams il a 50% de chance de le drop ou pas? message quand il a pas de chance > &cVous avez pas eux de chance désolé ! | message chance > &bGG, vous avez reçus un diams ! |Aprêt je passe en résolu , et j'ai 3 erruer >

 

[ATTACH=full]8135[/ATTACH]

Posté(e)
merci je test , et aussi stp tu pourait faire que quand ont casse un block de diams il a 50% de chance de le drop ou pas? message quand il a pas de chance > &cVous avez pas eux de chance désolé ! | message chance > &bGG, vous avez reçus un diams ! |Aprêt je passe en résolu , et j'ai 3 erruer >

 

[ATTACH=full]8135[/ATTACH]

 

 

on break diamond ore:
   cancel event
   set block to air
   chance of 50%:
       drop diamond
       send "&bGG, vous avez reçu un diamant !" to player
   else:
       send "&cVous n'avez pas eu de chance, désolé !" to player

 

Non testé.

Posté(e)
on break diamond ore:
   cancel event
   set block to air
   chance of 50%:
       drop diamond
       send "&bGG, vous avez reçu un diamant !" to player
   else:
       send "&cVous n'avez pas eu de chance, désolé !" to player

 

Non testé.

 

SA MARCHE MERCI !!, il me faut le truc d'hammer maintenant x) stp

Posté(e)
SA MARCHE MERCI !!, il me faut le truc d'hammer maintenant x) stp

Essaye

 

loop blocks within location at {_1.%player%} to location at {_2.%player%}:

 

A la place de

 

loop blocks within {_1.%player%} to {_2.%player%}:

Posté(e)
Essaye

 

loop blocks within location at {_1.%player%} to location at {_2.%player%}:

 

A la place de

 

loop blocks within {_1.%player%} to {_2.%player%}:

 

Tu peut me le maitre dans le code parceque moi je connais rien a je vous tout niqué :x

Posté(e)
on break:
   if name of player's tool is "&c[&6Hammeur&c]":
       set {_1.%player%} to location of event-block
       set {_2.%player%} to location of event-block
       if player's pitch is between -50 and 50:
           add 1 to y-coord of {_1.%player%}
           subtract 1 from y-coord of {_2.%player%}
           if player's horizontal facing is west or east:
               add 1 to z-coord of {_1.%player%}
               subtract 1 from z-coord of {_2.%player%}
               loop blocks within location at {_1.%player%} to location at {_2.%player%}:
                   id of loop-block isn't 7 or 8 or 9 or 10 or 11 or 138 or 49 or 47 or 52 or 52 or 87 or 0
                   set {_lol} to loop-block
                   if {_lol} is emerald_ore:
                       set loop-block to air

                       drop 1 emerald at loop-block
                   else if {_lol} is redstone_ore_off or redstone_ore_on:
                       set loop-block to air

                       drop 1 redstone at loop-block
                   else if {_lol} is diamond_ore:
                       set loop-block to air

                       drop 1 diamond at loop-block
                   else if {_lol} is lapis_ore:
                       set loop-block to air

                       drop 1 lapis at loop-block   
                   else if {_lol} is coal_ore:
                       set loop-block to air

                       drop 1 coal at loop-block   
                   else if {_lol} is iron_ore:
                       set loop-block to air

                       drop 1 iron_ore at loop-block
                   else if {_lol} is gold_ore:
                       set loop-block to air

                       drop 1 gold_ore at loop-block
                   else if {_lol} is nether_quartz_ore:
                       set loop-block to air

                       drop 1 nether_quartz_item at loop-block   
                   if player's tool is enchanted with fortune 1:
                       chance of 3%:
                           drop 1 diamond at loop-block
                   else if player's tool is enchanted with fortune 2:
                       chance of 3%:
                           drop 2 diamond at loop-block         
                   else if player's tool is enchanted with fortune 3:
                       chance of 3%:
                           drop 3 diamond at loop-block             
                   else if player's tool is enchanted with fortune 4:
                       chance of 3%:
                           drop 4 diamond at loop-block     
                   else if player's tool is enchanted with fortune 5:
                       chance of 3%:
                           drop 5 diamond at loop-block
           else if player's horizontal facing is north or south:
               add 1 to x-coord of {_1.%player%}
               subtract 1 from x-coord of {_2.%player%}
               loop blocks within location at {_1.%player%} to location at {_2.%player%}:
                   id of loop-block isn't 7 or 8 or 9 or 10 or 11 or 138 or 49 or 47 or 52 or 52 or 0
                   set {_lol} to loop-block
                   if {_lol} is emerald_ore:
                       set loop-block to air

                       drop 1 emerald at loop-block
                   else if {_lol} is redstone_ore_off or redstone_ore_on:
                       set loop-block to air

                       drop 1 redstone at loop-block
                   else if {_lol} is diamond_ore:
                       set loop-block to air

                       drop 1 diamond at loop-block
                   else if {_lol} is lapis_ore:
                       set loop-block to air

                       drop 1 lapis at loop-block   
                   else if {_lol} is coal_ore:
                       set loop-block to air

                       drop 1 coal at loop-block   
                   else if {_lol} is iron_ore:
                       set loop-block to air

                       drop 1 iron_ore at loop-block
                   else if {_lol} is gold_ore:
                       set loop-block to air

                       drop 1 gold_ore at loop-block
                   else if {_lol} is nether_quartz_ore:
                       set loop-block to air

                       drop 1 nether_quartz_item at loop-block   
                   if player's tool is enchanted with fortune 1:
                       chance of 3%:
                           drop 1 diamond at loop-block
                   else if player's tool is enchanted with fortune 2:
                       chance of 3%:
                           drop 2 diamond at loop-block         
                   else if player's tool is enchanted with fortune 3:
                       chance of 3%:
                           drop 3 diamond at loop-block             
                   else if player's tool is enchanted with fortune 4:
                       chance of 3%:
                           drop 4 diamond at loop-block     
                   else if player's tool is enchanted with fortune 5:
                       chance of 3%:
                           drop 5 diamond at loop-block         
       else:
           add 1 to x-coord of {_1.%player%}
           add 1 to z-coord of {_1.%player%}
           subtract 1 from x-coord of {_2.%player%}
           subtract 1 from z-coord of {_2.%player%}
           loop blocks within location at {_1.%player%} to location at {_2.%player%}:
               id of loop-block isn't 7 or 8 or 9 or 10 or 11 or 138 or 49 or 47 or 52 or 52 or 0
               set {_lol} to loop-block
               if {_lol} is emerald_ore:
                   set loop-block to air

                   drop 1 emerald at loop-block
               else if {_lol} is redstone_ore_off or redstone_ore_on:
                   set loop-block to air

                   drop 1 redstone at loop-block
               else if {_lol} is diamond_ore:
                   set loop-block to air

                   drop 1 diamond at loop-block
               else if {_lol} is lapis_ore:
                   set loop-block to air

                   drop 1 lapis at loop-block   
               else if {_lol} is coal_ore:
                   set loop-block to air

                   drop 1 coal at loop-block   
               else if {_lol} is iron_ore:
                   set loop-block to air

                   drop 1 iron_ore at loop-block
               else if {_lol} is gold_ore:
                   set loop-block to air

                   drop 1 gold_ore at loop-block
               else if {_lol} is nether_quartz_ore:
                   set loop-block to air

                   drop 1 nether_quartz_item at loop-block   
               if player's tool is enchanted with fortune 1:
                   chance of 3%:
                       drop 1 diamond at loop-block
               else if player's tool is enchanted with fortune 2:
                   chance of 3%:
                       drop 2 diamond at loop-block         
               else if player's tool is enchanted with fortune 3:
                   chance of 3%:
                       drop 3 diamond at loop-block             
               else if player's tool is enchanted with fortune 4:
                   chance of 3%:
                       drop 4 diamond at loop-block     
               else if player's tool is enchanted with fortune 5:
                   chance of 3%:
                       drop 5 diamond at loop-block   

Posté(e)
on break:
   if name of player's tool is "&c[&6Hammeur&c]":
       set {_1.%player%} to location of event-block
       set {_2.%player%} to location of event-block
       if player's pitch is between -50 and 50:
           add 1 to y-coord of {_1.%player%}
           subtract 1 from y-coord of {_2.%player%}
           if player's horizontal facing is west or east:
               add 1 to z-coord of {_1.%player%}
               subtract 1 from z-coord of {_2.%player%}
               loop blocks within location at {_1.%player%} to location at {_2.%player%}:
                   id of loop-block isn't 7 or 8 or 9 or 10 or 11 or 138 or 49 or 47 or 52 or 52 or 87 or 0
                   set {_lol} to loop-block
                   if {_lol} is emerald_ore:
                       set loop-block to air

                       drop 1 emerald at loop-block
                   else if {_lol} is redstone_ore_off or redstone_ore_on:
                       set loop-block to air

                       drop 1 redstone at loop-block
                   else if {_lol} is diamond_ore:
                       set loop-block to air

                       drop 1 diamond at loop-block
                   else if {_lol} is lapis_ore:
                       set loop-block to air

                       drop 1 lapis at loop-block  
                   else if {_lol} is coal_ore:
                       set loop-block to air

                       drop 1 coal at loop-block  
                   else if {_lol} is iron_ore:
                       set loop-block to air

                       drop 1 iron_ore at loop-block
                   else if {_lol} is gold_ore:
                       set loop-block to air

                       drop 1 gold_ore at loop-block
                   else if {_lol} is nether_quartz_ore:
                       set loop-block to air

                       drop 1 nether_quartz_item at loop-block  
                   if player's tool is enchanted with fortune 1:
                       chance of 3%:
                           drop 1 diamond at loop-block
                   else if player's tool is enchanted with fortune 2:
                       chance of 3%:
                           drop 2 diamond at loop-block        
                   else if player's tool is enchanted with fortune 3:
                       chance of 3%:
                           drop 3 diamond at loop-block            
                   else if player's tool is enchanted with fortune 4:
                       chance of 3%:
                           drop 4 diamond at loop-block    
                   else if player's tool is enchanted with fortune 5:
                       chance of 3%:
                           drop 5 diamond at loop-block
           else if player's horizontal facing is north or south:
               add 1 to x-coord of {_1.%player%}
               subtract 1 from x-coord of {_2.%player%}
               loop blocks within location at {_1.%player%} to location at {_2.%player%}:
                   id of loop-block isn't 7 or 8 or 9 or 10 or 11 or 138 or 49 or 47 or 52 or 52 or 0
                   set {_lol} to loop-block
                   if {_lol} is emerald_ore:
                       set loop-block to air

                       drop 1 emerald at loop-block
                   else if {_lol} is redstone_ore_off or redstone_ore_on:
                       set loop-block to air

                       drop 1 redstone at loop-block
                   else if {_lol} is diamond_ore:
                       set loop-block to air

                       drop 1 diamond at loop-block
                   else if {_lol} is lapis_ore:
                       set loop-block to air

                       drop 1 lapis at loop-block  
                   else if {_lol} is coal_ore:
                       set loop-block to air

                       drop 1 coal at loop-block  
                   else if {_lol} is iron_ore:
                       set loop-block to air

                       drop 1 iron_ore at loop-block
                   else if {_lol} is gold_ore:
                       set loop-block to air

                       drop 1 gold_ore at loop-block
                   else if {_lol} is nether_quartz_ore:
                       set loop-block to air

                       drop 1 nether_quartz_item at loop-block  
                   if player's tool is enchanted with fortune 1:
                       chance of 3%:
                           drop 1 diamond at loop-block
                   else if player's tool is enchanted with fortune 2:
                       chance of 3%:
                           drop 2 diamond at loop-block        
                   else if player's tool is enchanted with fortune 3:
                       chance of 3%:
                           drop 3 diamond at loop-block            
                   else if player's tool is enchanted with fortune 4:
                       chance of 3%:
                           drop 4 diamond at loop-block    
                   else if player's tool is enchanted with fortune 5:
                       chance of 3%:
                           drop 5 diamond at loop-block        
       else:
           add 1 to x-coord of {_1.%player%}
           add 1 to z-coord of {_1.%player%}
           subtract 1 from x-coord of {_2.%player%}
           subtract 1 from z-coord of {_2.%player%}
           loop blocks within location at {_1.%player%} to location at {_2.%player%}:
               id of loop-block isn't 7 or 8 or 9 or 10 or 11 or 138 or 49 or 47 or 52 or 52 or 0
               set {_lol} to loop-block
               if {_lol} is emerald_ore:
                   set loop-block to air

                   drop 1 emerald at loop-block
               else if {_lol} is redstone_ore_off or redstone_ore_on:
                   set loop-block to air

                   drop 1 redstone at loop-block
               else if {_lol} is diamond_ore:
                   set loop-block to air

                   drop 1 diamond at loop-block
               else if {_lol} is lapis_ore:
                   set loop-block to air

                   drop 1 lapis at loop-block  
               else if {_lol} is coal_ore:
                   set loop-block to air

                   drop 1 coal at loop-block  
               else if {_lol} is iron_ore:
                   set loop-block to air

                   drop 1 iron_ore at loop-block
               else if {_lol} is gold_ore:
                   set loop-block to air

                   drop 1 gold_ore at loop-block
               else if {_lol} is nether_quartz_ore:
                   set loop-block to air

                   drop 1 nether_quartz_item at loop-block  
               if player's tool is enchanted with fortune 1:
                   chance of 3%:
                       drop 1 diamond at loop-block
               else if player's tool is enchanted with fortune 2:
                   chance of 3%:
                       drop 2 diamond at loop-block        
               else if player's tool is enchanted with fortune 3:
                   chance of 3%:
                       drop 3 diamond at loop-block            
               else if player's tool is enchanted with fortune 4:
                   chance of 3%:
                       drop 4 diamond at loop-block    
               else if player's tool is enchanted with fortune 5:
                   chance of 3%:
                       drop 5 diamond at loop-block   

 

meme erreur ..

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.