Ledger Nano X - The secure hardware wallet
SHARE
TWEET

Untitled

a guest Apr 3rd, 2020 596 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function LuckyBlock(type: text, luck: text, loc: location, p: player,):
  2.     if {_type} = "Spiral":
  3.         if {_luck} = "Super":
  4.  
  5.             set {_chance.super} to random integer between 1 and 10
  6.             if {_chance.super} is 1:
  7.                 set {_luckchance} to "&7Low Drop Value &8- &a10%%"
  8.                 set {_random} to random integer between 1 and 20
  9.                 LuckyBlockDrop("1", leather helmet, "", "1", "{}", {_p}, {_loc}, {_random})
  10.                 LuckyBlockDrop("2", leather chestplate, "", "1", "{}", {_p}, {_loc}, {_random})
  11.                 LuckyBlockDrop("3", leather leggings, "", "1", "{}", {_p}, {_loc}, {_random})
  12.                 LuckyBlockDrop("4", leather boots, "", "1", "{}", {_p}, {_loc}, {_random})
  13.                 LuckyBlockCommand("5", "execute positioned [BlockLocation] run summon minecraft:falling_block ~ ~1 ~ {BlockState:{Name:""minecraft:diamond_ore""},Time:1,Motion:[0.0,1.0,0.0]}", 1, {_p}, {_loc}, {_random})
  14.                 LuckyBlockCommand("6", "execute positioned [PlayerLocation] run execute positioned ~ ~20 ~ run fill ~1 ~2 ~1 ~-1 ~1 ~-1 minecraft:sand", 1, {_p}, {_loc}, {_random})
  15.                 LuckyBlockCommand("7", "summon creeper [BlockLocation] {Fuse:400,ignited:1b,ExplosionRadius:1b,Invulnerable:1b}", 1, {_p}, {_loc}, {_random})
  16.                 LuckyBlockPotion("8", slowness, 60 seconds, 1, {_p}, {_random})
  17.                 LuckyBlockPotion("9", weakness, 60 seconds, 1, {_p}, {_random})
  18.                 LuckyBlockPotion("10", poison, 25 seconds, 1, {_p}, {_random})
  19.                 LuckyBlockDrop("11", golden apple, "", "1-3", "{}", {_p}, {_loc}, {_random})
  20.                 LuckyBlockDrop("12", golden carrot, "", "6-12", "{}", {_p}, {_loc}, {_random})
  21.                 LuckyBlockDrop("13", cooked beef, "", "4-8", "{}", {_p}, {_loc}, {_random})
  22.                 LuckyBlockPotion("14", invisibility, 60 seconds, 1, {_p}, {_random})
  23.                 LuckyBlockPotion("15", fire resistance, 60 seconds, 1, {_p}, {_random})
  24.                 LuckyBlockPotion("16", strength, 60 seconds, 1, {_p}, {_random})
  25.                 LuckyBlockPotion("17", regeneration, 60 seconds, 1, {_p}, {_random})
  26.                 LuckyBlockPotion("18", slow falling, 60 seconds, 1, {_p}, {_random})
  27.                 LuckyBlockDrop("19", end stone, "", "4-16", "{}", {_p}, {_loc}, {_random})
  28.                 LuckyBlockDrop("20", fishing rod, "", "1", "{}", {_p}, {_loc}, {_random})
  29.  
  30.  
  31.             if {_chance.super} is between 2 and 5:
  32.                 set {_luckchance} to "&7Medium Drop Value &8- &a40%%"
  33.                 set {_random} to random integer between 1 and 32
  34.                 LuckyBlockDrop("1", crossbow, "", "1", "{}", {_p}, {_loc}, {_random})
  35.                 LuckyBlockDrop("1", arrow, "", "4-32", "{}", {_p}, {_loc}, {_random})
  36.                 LuckyBlockDrop("2", totem of undying, "", "1", "{}", {_p}, {_loc}, {_random})
  37.                 LuckyBlockDrop("3", trident, "", "1", "{}", {_p}, {_loc}, {_random})
  38.                 LuckyBlockCommand("4", "summon wolf [BlockLocation] {Invulnerable:1b,CustomNameVisible:1b,Age:-100,OwnerUUID:""[PlayerUUID]"",CustomName:'{""text"":""[Player]'s' Super Lucky Wolf"",""color"":""aqua"",""bold"":true}'}", 3, {_p}, {_loc}, {_random})
  39.                 LuckyBlockCommand("5", "summon enderman [BlockLocation] {carriedBlockState:{Name:""minecraft:diamond_block""}}", 2, {_p}, {_loc}, {_random})
  40.                 LuckyBlockCommand("6", "execute positioned [BlockLocation] run summon minecraft:falling_block ~ ~1 ~ {BlockState:{Name:""minecraft:iron_block""},Time:1,Motion:[0.0,1.0,0.0]}", 1, {_p}, {_loc}, {_random})
  41.                 LuckyBlockCommand("7", "summon pig [BlockLocation] {Motion:[0.0,4.0,0.0]}", 8, {_p}, {_loc}, {_random})
  42.                 LuckyBlockDrop("8", diamond helmet, "", "1", "{}", {_p}, {_loc}, {_random})
  43.                 LuckyBlockDrop("8", diamond chestplate, "", "1", "{}", {_p}, {_loc}, {_random})
  44.                 LuckyBlockDrop("8", diamond leggings, "", "1", "{}", {_p}, {_loc}, {_random})
  45.                 LuckyBlockDrop("8", diamond boots, "", "1", "{}", {_p}, {_loc}, {_random})
  46.                 LuckyBlockDrop("9", diamond sword, "", "1", "{}", {_p}, {_loc}, {_random})
  47.                 LuckyBlockDrop("10", golden helmet, "", "1", "{}", {_p}, {_loc}, {_random})
  48.                 LuckyBlockDrop("10", golden chestplate, "", "1", "{}", {_p}, {_loc}, {_random})
  49.                 LuckyBlockDrop("10", golden leggings, "", "1", "{}", {_p}, {_loc}, {_random})
  50.                 LuckyBlockDrop("10", golden boots, "", "1", "{}", {_p}, {_loc}, {_random})
  51.                 LuckyBlockDrop("11", golden sword, "", "1", "{}", {_p}, {_loc}, {_random})
  52.                 LuckyBlockDrop("12", diamond pickaxe, "", "1", "{}", {_p}, {_loc}, {_random})
  53.                 LuckyBlockDrop("13", diamond axe, "", "1", "{}", {_p}, {_loc}, {_random})
  54.                 # *NOTE*: This Red Dye is a Special Item! (Grenade)
  55.                 LuckyBlockDrop("14", red dye, "", "4-16", "{}", {_p}, {_loc}, {_random})
  56.                 # *NOTE*: This Black Terracotta is a Special Item! (Spiral Blocks)
  57.                 LuckyBlockDrop("15", black glazed terracotta, "", "8-16", "{}", {_p}, {_loc}, {_random})
  58.                 # *NOTE*: This Light Gray Terracotta is a Special Item! (Normal Lucky Block)
  59.                 LuckyBlockDrop("16", light gray terracotta, "", "1-5", "{}", {_p}, {_loc}, {_random})
  60.                 LuckyBlockCommand("17", "execute positioned [BlockLocation] run summon minecraft:experience_bottle ~ ~2 ~ {Motion:[0.0,3.0,0.0]}", 10, {_p}, {_loc}, {_random})
  61.                 LuckyBlockDrop("18", arrow, "", "4-32", "{}", {_p}, {_loc}, {_random})
  62.                 LuckyBlockDrop("18", bow, "", "1", "{}", {_p}, {_loc}, {_random})
  63.                 LuckyBlockDrop("19", iron sword, "", "1", "{}", {_p}, {_loc}, {_random})
  64.                 LuckyBlockDrop("20", enchanted golden apple, "", "1-4", "{}", {_p}, {_loc}, {_random})
  65.                 LuckyBlockDrop("21", golden pickaxe, "", "1", "{}", {_p}, {_loc}, {_random})
  66.                 LuckyBlockDrop("22", obsidian, "", "4-10", "{}", {_p}, {_loc}, {_random})
  67.                 LuckyBlockDrop("23", ender pearl, "", "1-3", "{}", {_p}, {_loc}, {_random})
  68.                 LuckyBlockDrop("24", elytra, "", "1", "{}", {_p}, {_loc}, {_random})
  69.                 LuckyBlockDrop("24", firework rocket, "", "1-4", "{}", {_p}, {_loc}, {_random})
  70.                 LuckyBlockDrop("25", cake, "", "2", "{}", {_p}, {_loc}, {_random})
  71.                 LuckyBlockDrop("26", dragon egg, "", "1", "{}", {_p}, {_loc}, {_random})
  72.                 LuckyBlockDrop("27", beacon, "", "1", "{}", {_p}, {_loc}, {_random})
  73.                 LuckyBlockDrop("28", nether star, "", "1", "{}", {_p}, {_loc}, {_random})
  74.                 LuckyBlockDrop("29", end portal frame, "", "1-4", "{}", {_p}, {_loc}, {_random})
  75.                 LuckyBlockDrop("30", golden horse armor, "", "1", "{}", {_p}, {_loc}, {_random})
  76.                 LuckyBlockDrop("30", iron horse armor, "", "1", "{}", {_p}, {_loc}, {_random})
  77.                 LuckyBlockDrop("30", diamond horse armor, "", "1", "{}", {_p}, {_loc}, {_random})
  78.                 LuckyBlockDrop("31", saddle, "", "1-7", "{}", {_p}, {_loc}, {_random})
  79.                 LuckyBlockDrop("32", emerald, "", "2-8", "{}", {_p}, {_loc}, {_random})
  80.                 LuckyBlockDrop("32", diamond, "", "2-8", "{}", {_p}, {_loc}, {_random})
  81.                 LuckyBlockDrop("32", iron ingot, "", "2-6", "{}", {_p}, {_loc}, {_random})
  82.                 LuckyBlockDrop("32", gold ingot, "", "2-10", "{}", {_p}, {_loc}, {_random})
  83.                
  84.             if {_chance.super} is between 6 and 10:
  85.                 broadcast "it hit it"
  86.                 set {_luckchance} to "&7High Drop Value &8- &a50%%"
  87.                 set {_random} to random integer between 1 and 7
  88.                 LuckyBlockCommand("1", "execute positioned [BlockLocation] run summon minecraft:falling_block ~ ~1 ~ {BlockState:{Name:""minecraft:diamond_block""},Time:1,Motion:[0.0,1.0,0.0]}", 1, {_p}, {_loc}, {_random})
  89.                 LuckyBlockCommand("2", "execute positioned [BlockLocation] run summon minecraft:falling_block ~ ~1 ~ {BlockState:{Name:""minecraft:emerald_block""},Time:1,Motion:[0.0,1.0,0.0]}", 1, {_p}, {_loc}, {_random})
  90.                 LuckyBlockCommand("3", "execute positioned [BlockLocation] run summon minecraft:falling_block ~ ~20 ~ {BlockState:{Name:""minecraft:redstone_block""},Time:1}", 1, {_p}, {_loc}, {_random})
  91.                 LuckyBlockCommand("3", "execute positioned [BlockLocation] run summon minecraft:falling_block ~ ~22 ~ {BlockState:{Name:""minecraft:coal_ore""},Time:1}", 1, {_p}, {_loc}, {_random})
  92.                 LuckyBlockCommand("3", "execute positioned [BlockLocation] run summon minecraft:falling_block ~ ~24 ~ {BlockState:{Name:""minecraft:gold_ore""},Time:1}", 1, {_p}, {_loc}, {_random})
  93.                 LuckyBlockCommand("3", "execute positioned [BlockLocation] run summon minecraft:falling_block ~ ~26 ~ {BlockState:{Name:""minecraft:diamond_ore""},Time:1}", 1, {_p}, {_loc}, {_random})
  94.                 LuckyBlockCommand("3", "execute positioned [BlockLocation] run summon minecraft:falling_block ~ ~28 ~ {BlockState:{Name:""minecraft:emerald_ore""},Time:1}", 1, {_p}, {_loc}, {_random})
  95.                 LuckyBlockCommand("3", "execute positioned [BlockLocation] run summon minecraft:falling_block ~ ~30 ~ {BlockState:{Name:""minecraft:redstone_ore""},Time:1}", 1, {_p}, {_loc}, {_random})
  96.                 LuckyBlockCommand("3", "execute positioned [BlockLocation] run summon minecraft:falling_block ~ ~32 ~ {BlockState:{Name:""minecraft:beacon""},Time:1}", 1, {_p}, {_loc}, {_random})
  97.                 LuckyBlockDrop("4", diamond helmet, "", "1", "{Enchantments:[{id:""minecraft:protection"",lvl:3s},{id:""minecraft:fire_protection"",lvl:2s},{id:""minecraft:blast_protection"",lvl:1s},{id:""minecraft:thorns"",lvl:3s},{id:""minecraft:depth_strider"",lvl:1s},{id:""minecraft:frost_walker"",lvl:1s}]}", {_p}, {_loc}, {_random})
  98.                 LuckyBlockDrop("4", diamond chestplate, "", "1", "{Enchantments:[{id:""minecraft:protection"",lvl:3s},{id:""minecraft:fire_protection"",lvl:2s},{id:""minecraft:blast_protection"",lvl:1s},{id:""minecraft:thorns"",lvl:3s},{id:""minecraft:depth_strider"",lvl:1s},{id:""minecraft:frost_walker"",lvl:1s}]}", {_p}, {_loc}, {_random})
  99.                 LuckyBlockDrop("4", diamond leggings, "", "1", "{Enchantments:[{id:""minecraft:protection"",lvl:3s},{id:""minecraft:fire_protection"",lvl:2s},{id:""minecraft:blast_protection"",lvl:1s},{id:""minecraft:thorns"",lvl:3s},{id:""minecraft:depth_strider"",lvl:1s},{id:""minecraft:frost_walker"",lvl:1s}]}", {_p}, {_loc}, {_random})
  100.                 LuckyBlockDrop("4", diamond boots, "", "1", "{Enchantments:[{id:""minecraft:protection"",lvl:3s},{id:""minecraft:fire_protection"",lvl:2s},{id:""minecraft:blast_protection"",lvl:1s},{id:""minecraft:thorns"",lvl:3s},{id:""minecraft:depth_strider"",lvl:1s},{id:""minecraft:frost_walker"",lvl:1s}]}", {_p}, {_loc}, {_random})
  101.                 # *NOTE*: This Gray Terracotta is a Special Item! (Super Lucky Block)
  102.                 LuckyBlockDrop("5", gray terracotta, "", "1-3", "{}", {_p}, {_loc}, {_random})
  103.                 LuckyBlockSpawn("6", zombie, "1", {_p}, {_loc}, {_random})
  104.                 LuckyBlockSpawn("7", bee, "1-8", {_p}, {_loc}, {_random})
  105.                 LuckyBlockDrop("8", tnt, "", "2-10", "{}", {_p}, {_loc}, {_random})
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top