Advertisement
PaffcioStudio

Untitled

Jun 2nd, 2016
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 7.39 KB | None | 0 0
  1. options:
  2.   diamond: 0.1
  3.   emerald: 0.5
  4.   iron: 1.5
  5.   gold: 0.25
  6.   gun_powder: 0.9
  7.   apple: 0.75
  8.   redstone: 1.25
  9.   lapis: 1
  10.   wegiel: 1
  11.   piasek: 1.5
  12.   magiczna_skrzynia: 0.001
  13.  
  14.   vip_diamond: 0.75
  15.   vip_emerald: 0.5
  16.   vip_iron: 1.5
  17.   vip_gold: 0.25
  18.   vip_gun_powder: 2.5
  19.   vip_apple: 0.75
  20.   vip_redstone:  1.25
  21.   vip_lapis: 1.25
  22.   vip_wegiel: 1.5
  23.   vip_piasek: 2.5
  24.   vip_magiczna_skrzynia: 0.001
  25.  
  26.   fortuna_1: true
  27.   fortuna_2: true
  28.   fortuna_3: true
  29.  
  30.   drop_cobble: true
  31.   drop_stone: true
  32.  
  33.   exp_stone: 2
  34.   exp_cobble: 1
  35.  
  36.   # give X xp to the player
  37.  
  38.  
  39.   msg_diamond: "Otrzymujesz 1 diament!"
  40.   msg_emerald: "Otrzymujesz 1 emerald!"
  41.   msg_iron: "Otrzymujesz 1 zelazo!"
  42.   msg_gold: "Otrzymujesz 1 zloto!"
  43.   msg_gun_powder: "Otrzymujesz 1 gunpowder!"
  44.   msg_apple: "Otrzymujesz 1 jablko!"
  45.   msg_redstone: "Otrzymujesz 1 redstone!"
  46.   msg_lapis: "Otrzymujesz 1 lapis!"
  47.   msg_wegiel: "Otrzymujesz 1 wegiel!"
  48.   msg_piasek: "Otrzymujesz 1 piasek!"
  49.   msg_magiczna_skrzynia: "Otrzymujesz 1 magiczna skrzynie!"
  50.  
  51.  
  52. on mine:
  53.   if event-block is stone:
  54.     # SZANSA NA DIAMENT
  55.     chance of {@diamond}:
  56.       cancel event
  57.       set event-block to air
  58.       drop 1 diamond
  59.       drop 1 cobblestone
  60.       stop
  61.       send {@msg_diamond}
  62.       stop
  63.      
  64.       if player is holding a any pickaxe of fortune 1:
  65.         chance of 33%:
  66.           give 2 xp to the player
  67.           drop 1 diamond
  68.           stop
  69.      
  70.       if player is holding a any pickaxe of fortune 2:
  71.         chance of 33%:
  72.           give 2 xp to the player
  73.           drop 1 diamond
  74.           stop
  75.          
  76.         chance of 22%:
  77.           give 2 xp to the player
  78.           drop 1 diamond
  79.           stop
  80.      
  81.       if player is holding a any pickaxe of fortune 3:
  82.         chance of 33%:
  83.           give 2 xp to the player
  84.           drop 1 diamond
  85.           stop
  86.          
  87.         chance of 22%:
  88.           give 2 xp to the player
  89.           drop 1 diamond
  90.           stop
  91.          
  92.         chance of 11%:
  93.           give 2 xp to the player
  94.           drop 1 diamond  
  95.           stop
  96.        
  97.  
  98.          
  99.  
  100.  
  101.  
  102.     # SZANSA NA EMERALD
  103.     chance of {@emerald}:
  104.       cancel event
  105.       set event-block to air
  106.       drop 1 emerald
  107.       drop 1 cobblestone
  108.       send {@msg_emerald}
  109.       stop
  110.      
  111.       if player is holding a any pickaxe of fortune 1:
  112.         chance of 33%:
  113.           give 2 xp to the player
  114.           drop 1 emerald
  115.           stop
  116.      
  117.       if player is holding a any pickaxe of fortune 2:
  118.         chance of 33%:
  119.           give 2 xp to the player
  120.           drop 1 emerald
  121.           stop
  122.          
  123.         chance of 22%:
  124.           give 2 xp to the player
  125.           drop 1 emerald
  126.           stop
  127.      
  128.       if player is holding a any pickaxe of fortune 3:
  129.         chance of 33%:
  130.           give 2 xp to the player
  131.           drop 1 emerald
  132.           stop
  133.          
  134.         chance of 22%:
  135.           give 2 xp to the player
  136.           drop 1 emerald
  137.           stop
  138.          
  139.         chance of 11%:
  140.           give 2 xp to the player
  141.           drop 1 emerald
  142.           stop
  143.  
  144.  
  145.  
  146.  
  147.  
  148.  
  149.     # SZANSA NA IRON
  150.     chance of {@iron}:
  151.       cancel event
  152.       set event-block to air
  153.       drop 1 iron ore
  154.       give 2 xp to the player
  155.       send {@msg_iron}
  156.       stop
  157.  
  158.  
  159.  
  160.  
  161.     # SZANSA NA GOLD
  162.     chance of {@gold}:
  163.       cancel event
  164.       set event-block to air
  165.       drop 1 gold ore
  166.       give 2 xp to the player
  167.       send {@msg_gold}
  168.       stop
  169.  
  170.  
  171.  
  172.  
  173.     # SZANSA NA GUN POWDER
  174.     chance of {@gun_powder}:
  175.       cancel event
  176.       set event-block to air
  177.       drop 1 gunpowder
  178.       give 2 xp to the player
  179.       send {@msg_gun_powder}
  180.       stop
  181.  
  182.  
  183.  
  184.  
  185.     # SZANSA NA APPLE
  186.     chance of {@apple}:
  187.       cancel event
  188.       set event-block to air
  189.       drop 1 apple
  190.       give 2 xp to the player
  191.       send {@msg_apple}
  192.       stop
  193.  
  194.  
  195.  
  196.  
  197.     # SZANSA NA APPLE
  198.     chance of {@apple}:
  199.       cancel event
  200.       set event-block to air
  201.       drop 1 apple
  202.       give 2 xp to the player
  203.       send {@msg_apple}
  204.       stop
  205.  
  206.  
  207.  
  208.  
  209.  
  210.     # SZANSA NA REDSTONE
  211.     chance of {@redstone}:
  212.       cancel event
  213.       set event-block to air
  214.       drop 1 redstone dust
  215.       drop 1 cobblestone
  216.       send {@msg_redstone}
  217.       stop
  218.      
  219.       if player is holding a any pickaxe of fortune 1:
  220.         chance of 33%:
  221.           give 2 xp to the player
  222.           drop 1 redstone dust
  223.           stop
  224.      
  225.       if player is holding a any pickaxe of fortune 2:
  226.         chance of 33%:
  227.           give 2 xp to the player
  228.           drop 1 redstone dust
  229.           stop
  230.          
  231.         chance of 22%:
  232.           give 2 xp to the player
  233.           drop 1 redstone dust
  234.           stop
  235.      
  236.       if player is holding a any pickaxe of fortune 3:
  237.         chance of 33%:
  238.           give 2 xp to the player
  239.           drop 1 redstone dust
  240.           stop
  241.          
  242.         chance of 22%:
  243.           give 2 xp to the player
  244.           drop 1 redstone dust  
  245.           stop
  246.          
  247.         chance of 11%:
  248.           give 2 xp to the player
  249.           drop 1 redstone dust
  250.           stop
  251.  
  252.  
  253.  
  254.  
  255.  
  256.     # SZANSA NA LAPIS
  257.     chance of {@lapis}:
  258.       cancel event
  259.       set event-block to air
  260.       drop 1 lapis lazuli
  261.       drop 1 cobblestone
  262.       send {@msg_lapis}
  263.       stop
  264.      
  265.       if player is holding a any pickaxe of fortune 1:
  266.         chance of 33%:
  267.           give 2 xp to the player
  268.           drop 1 lapis lazuli
  269.           stop
  270.      
  271.       if player is holding a any pickaxe of fortune 2:
  272.         chance of 33%:
  273.           give 2 xp to the player
  274.           drop 1 lapis lazuli
  275.           stop
  276.          
  277.         chance of 22%:
  278.           give 2 xp to the player
  279.           drop 1 lapis lazuli
  280.           stop
  281.      
  282.       if player is holding a any pickaxe of fortune 3:
  283.         chance of 33%:
  284.           give 2 xp to the player
  285.           drop 1 lapis lazuli
  286.           stop
  287.          
  288.         chance of 22%:
  289.           give 2 xp to the player
  290.           drop 1 lapis lazuli
  291.           stop
  292.          
  293.         chance of 11%:
  294.           give 2 xp to the player
  295.           drop 1 lapis lazuli
  296.           stop
  297.  
  298.  
  299.  
  300.  
  301.  
  302.  
  303.     # SZANSA NA WEGIEL
  304.     chance of {@wegiel}:
  305.       cancel event
  306.       set event-block to air
  307.       drop 1 coal
  308.       drop 1 cobblestone
  309.       send {@msg_wegiel}
  310.       stop
  311.      
  312.       if player is holding a any pickaxe of fortune 1:
  313.         chance of 33%:
  314.           give 2 xp to the player
  315.           drop 1 coal
  316.           stop
  317.      
  318.       if player is holding a any pickaxe of fortune 2:
  319.         chance of 33%:
  320.           give 2 xp to the player
  321.           drop 1 coal
  322.           stop
  323.          
  324.         chance of 22%:
  325.           give 2 xp to the player
  326.           drop 1 coal
  327.           stop
  328.      
  329.       if player is holding a any pickaxe of fortune 3:
  330.         chance of 33%:
  331.           give 2 xp to the player
  332.           drop 1 coal
  333.           stop
  334.          
  335.         chance of 22%:
  336.           give 2 xp to the player
  337.           drop 1 coal
  338.           stop
  339.          
  340.         chance of 11%:
  341.           give 2 xp to the player
  342.           drop 1 coal
  343.           stop
  344.  
  345.  
  346.  
  347.  
  348.  
  349.     # SZANSA NA PIASEK
  350.     chance of {@piasek}:
  351.       cancel event
  352.       set event-block to air
  353.       drop 1 sand
  354.       give 2 xp to the player
  355.       send {@msg_piasek}
  356.       stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement