Facebook
From boroo, 5 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 178
  1. command /cobblex [<text>]:
  2.         aliases: cx
  3.         trigger:
  4.                 if player have 576 of cobble_stone:
  5.                         remove 576 cobble_stone from player
  6.                         give 1 mossy_cobble_stone of unbreaking 10 named "&b&lCobbleX" to player
  7.                         send "&aOtrzymałeś/aś &e1x &b&lCobbleX&a!" to player
  8.                         send "&aPostaw na ziemi, by go użyć!" to player
  9.                         send "&4&lUWAGA: &cOtwierając &b&lCobbleX&c, musisz mieć wolne miejsce w ekwipunku! Inaczej nie otrzymasz żadnego przedmiotu!" to player
  10.                 else:
  11.                         send "&cPotrzebujesz &e576 sztuk (9 stacków) &ccobblestone'a!" to player
  12.  
  13. on place of mossy_cobble_stone:
  14.         if name of player's tool is "&b&lCobbleX":
  15.                 set block to air
  16.                 send "&a&lLosowanie nagrody..." to player
  17.                 wait 2 seconds
  18.                 send "&aPomyślnie wykorzystano &b&lCobbleX&a!" to player
  19.                 set {a_} to random integer from 1 to 13
  20.                 if {a_} is greater than 1:
  21.                         if {a_} is 2:
  22.                                 execute console command "give %player% 397:3 1 player:MHF_Cactus"
  23.                                 stop
  24.                         else:
  25.                                 if {a_} is 3:
  26.                                         execute console command "give %player% 397:3 1 player:MHF_Melon"
  27.                                         stop
  28.                                 else:
  29.                                         if {a_} is 4:
  30.                                                 execute console command "give %player% 397:3 1 player:PARTY_P01S0N"
  31.                                                 stop
  32.                                         else:
  33.                                                 if {a_} is 5:
  34.                                                         execute console command "give %player% 397:3 1 player:Chuzard"
  35.                                                         stop
  36.                                                 else:
  37.                                                         if {a_} is 6:
  38.                                                                 execute console command "give %player% 397:3 1 player:JL2579"
  39.                                                                 stop
  40.                                                         else:
  41.                                                                 if {a_} is 7:
  42.                                                                         execute console command "give %player% 397:3 1 player:Edna_I"
  43.                                                                         stop
  44.                                                                 else:
  45.                                                                         if {a_} is 8:
  46.                                                                                 execute console command "give %player% 397:3 1 player:Goodle"
  47.                                                                                 stop
  48.                                                                         else:
  49.                                                                                 if {a_} is 9:
  50.                                                                                         execute console command "give %player% 397:3 1 player:Pablo_Penguin"
  51.                                                                                         stop
  52.                                                                                 else:
  53.                                                                                         if {a_} is 10:
  54.                                                                                                 execute console command "give %player% 397:3 1 player:Bendablob"
  55.                                                                                                 stop
  56.                                                                                         else:
  57.                                                                                                 if {a_} is 11:
  58.                                                                                                         execute console command "give %player% 397:3 1 player:Tereneckla"
  59.                                                                                                         stop
  60.                                                                                                 else:
  61.                                                                                                         if {a_} is 12:
  62.                                                                                                                 execute console command "give %player% 397:3 1 player:Laserpanda"
  63.                                                                                                                 stop
  64.                                                                                                         else:
  65.                                                                                                                 if {a_} is 13:
  66.                                                                                                                         execute console command "give %player% 397:3 1 player:CurXXx"
  67.                                                                                                                         stop
  68.                                                                                        
  69.                 else:
  70.                         if {a_} is 1:
  71.                                 execute console command "give %player% 397:3 1 player:MHF_OakLog"
  72.                                 stop
  73.  
  74.