IMPORTANT:
This is just the packs data in a readable format used for debugging stuff.
Changes made here have no effect at all. This is intended.

{
   ManagerList: {
      [0]: {
         Name: "OreDictEntryRegistry"
         ContentList: {
         }
      }
      [1]: {
         Name: "CreativeTabRegistry"
         ContentList: {
            [0]: {
               Icon: {
                  Damage: 0s
                  ItemName: "Rewardyourself:rewardbag943"
                  Count: 1b
               }
               Name: "rewardyourself"
               Label: "Լ"
            }
         }
      }
      [2]: {
         Name: "FuelRegistry"
         ContentList: {
         }
      }
      [3]: {
         Name: "SmeltingRecipeRegistry"
         ContentList: {
         }
      }
      [4]: {
         Name: "ShapedRecipeRegistry"
         ContentList: {
         }
      }
      [5]: {
         Name: "ShapelessRecipeRegistry"
         ContentList: {
         }
      }
      [6]: {
         Name: "ArmorMaterialRegistry"
         ContentList: {
         }
      }
      [7]: {
         Name: "ItemRegistry"
         ContentList: {
            [0]: {
               Type: "normal"
               Attributes: {
                  displayName: {
                     Value: "Eins"
                  }
                  onUpdate: {
                  }
                  enchantability: {
                     Value: 0
                  }
                  efficiency: {
                     Value: 1.0f
                  }
                  onHitEntity: {
                  }
                  onEaten: {
                  }
                  hasEffect: {
                     Value: 0b
                  }
                  onDroppedByPlayer: {
                  }
                  anvilMaterial: {
                  }
                  onCreated: {
                  }
                  onUsing: {
                  }
                  onLeftClickPlayer: {
                  }
                  full3d: {
                     Value: 0b
                  }
                  information: {
                     Value: "򿪺иʻƷ
rɫػ x6 6.25%
rɫػ x6 6.25%
rƷɫػ x6 6.25%
rɫػ x6 6.25%
rɫػ x6 6.25%
rɫػ x6 6.25%
rɫػ x6 6.25%
rɫػ x6 6.25%
rɫػ x6 6.25%
rɫػ x6 6.25%
rɫػ x6 6.25%
rɫػ x6 6.25%
rɫػ x6 6.25%
rɫػ x6 6.25%
rɫػ x6 6.25%
rɫػ x6 6.25%"
                  }
                  onUseOnPlayer: {
                  }
                  maxStack: {
                     Value: 64
                  }
                  onUseOnEntity: {
                  }
                  icon: {
                     Value: "rewardyourself:rewardbag1"
                  }
                  maxUsingDuration: {
                     Value: 0
                  }
                  onStoppedUsing: {
                  }
                  toolClasses: {
                     Value: {
                     }
                  }
                  onLeftClickLiving: {
                  }
                  damage: {
                     Value: 0
                  }
                  renderScale: {
                     Value: 1.0f
                  }
                  onBlockDestroyed: {
                  }
                  containerItem: {
                  }
                  onBlockStartBreak: {
                  }
                  creativeTab: {
                     Value: "rewardyourself"
                  }
                  onRightClick: {
                     Value: "var Inventory = player.getInventory();
var x = player.getPosX();
var y = player.getPosY() + 0.2;
var z = player.getPosZ();
var random = Math.ceil(Math.random() * 100)
Inventory.removeFromSlot(player.getCurrentSlot(), 1), world.spawnItem(x, y, z, "Botania:petal", 6, Math.floor(random / 6.25))"
                  }
                  onUse: {
                  }
                  onUseFirst: {
                  }
                  maxDamage: {
                     Value: 0
                  }
                  leaveContainerItem: {
                     Value: 0b
                  }
                  usingAction: {
                     Value: "none"
                  }
               }
               Name: "rewardbag1"
            }
            [1]: {
               Type: "normal"
               Attributes: {
                  displayName: {
                     Value: "Zwei"
                  }
                  onUpdate: {
                  }
                  enchantability: {
                     Value: 0
                  }
                  efficiency: {
                     Value: 1.0f
                  }
                  onHitEntity: {
                  }
                  onEaten: {
                  }
                  hasEffect: {
                     Value: 0b
                  }
                  onDroppedByPlayer: {
                  }
                  anvilMaterial: {
                  }
                  onCreated: {
                  }
                  onUsing: {
                  }
                  onLeftClickPlayer: {
                  }
                  full3d: {
                     Value: 0b
                  }
                  information: {
                     Value: "򿪺иʻƷ
rˮ֮ x1 12.50%
r֮ x1 12.50%
r֮ x1 12.50%
r֮ x1 12.50%
r֮ x1 12.50%
r֮ x1 12.50%
r֮ x1 12.50%
r֮ x1 12.50%"
                  }
                  onUseOnPlayer: {
                  }
                  maxStack: {
                     Value: 64
                  }
                  onUseOnEntity: {
                  }
                  icon: {
                     Value: "rewardyourself:rewardbag2"
                  }
                  maxUsingDuration: {
                     Value: 0
                  }
                  onStoppedUsing: {
                  }
                  toolClasses: {
                     Value: {
                     }
                  }
                  onLeftClickLiving: {
                  }
                  damage: {
                     Value: 0
                  }
                  renderScale: {
                     Value: 1.0f
                  }
                  onBlockDestroyed: {
                  }
                  containerItem: {
                  }
                  onBlockStartBreak: {
                  }
                  creativeTab: {
                     Value: "rewardyourself"
                  }
                  onRightClick: {
                     Value: "var Inventory = player.getInventory();
var x = player.getPosX();
var y = player.getPosY() + 0.2;
var z = player.getPosZ();
var random = Math.ceil(Math.random() * 100)
var trueopen = Math.floor(random / 12.5);
Inventory.removeFromSlot(player.getCurrentSlot(), 1)
if (trueopen < 8) {
    world.spawnItem(x, y, z, "Botania:rune", 1, trueopen)
} else { world.spawnItem(x, y, z, "Botania:rune", 1, 0) }"
                  }
                  onUse: {
                  }
                  onUseFirst: {
                  }
                  maxDamage: {
                     Value: 0
                  }
                  leaveContainerItem: {
                     Value: 0b
                  }
                  usingAction: {
                     Value: "none"
                  }
               }
               Name: "rewardbag2"
            }
            [2]: {
               Type: "normal"
               Attributes: {
                  displayName: {
                     Value: "Drei"
                  }
                  onUpdate: {
                  }
                  enchantability: {
                     Value: 0
                  }
                  efficiency: {
                     Value: 1.0f
                  }
                  onHitEntity: {
                  }
                  onEaten: {
                  }
                  hasEffect: {
                     Value: 0b
                  }
                  onDroppedByPlayer: {
                  }
                  anvilMaterial: {
                  }
                  onCreated: {
                  }
                  onUsing: {
                  }
                  onLeftClickPlayer: {
                  }
                  full3d: {
                     Value: 0b
                  }
                  information: {
                     Value: "򿪺иʻƷ
rħֶ x5 12.0%
rħ x5 12.0%
rħʯ x5 12.0%
rֶ̩ x1 9.0%
rħ x12 10.0%
rǻ궧 x1 7.0%
r֮ x4 8.0%
rԴʸֶ x3 10.0%
r鳾 x3 10.0%
rʯ x3 10.0%"
                  }
                  onUseOnPlayer: {
                  }
                  maxStack: {
                     Value: 64
                  }
                  onUseOnEntity: {
                  }
                  icon: {
                     Value: "rewardyourself:rewardbag3"
                  }
                  maxUsingDuration: {
                     Value: 0
                  }
                  onStoppedUsing: {
                  }
                  toolClasses: {
                     Value: {
                     }
                  }
                  onLeftClickLiving: {
                  }
                  damage: {
                     Value: 0
                  }
                  renderScale: {
                     Value: 1.0f
                  }
                  onBlockDestroyed: {
                  }
                  containerItem: {
                  }
                  onBlockStartBreak: {
                  }
                  creativeTab: {
                     Value: "rewardyourself"
                  }
                  onRightClick: {
                     Value: "var _prize = ['A','B','C','D','E','F','G','H','I','J']
var _prop = [7, 13, 25, 37, 46, 56, 63, 71, 81, 91, 100]
var a = 0, b = 0, c = 0, d = 0, e = 0;
var count = 0;
var Inventory = player.getInventory();
var x = player.getPosX();
var y = player.getPosY() + 0.2;
var z = player.getPosZ();
 
var getPrize = () => {
    var random = Math.ceil(Math.random() * 100)
    var low = 0
    var high = _prop.length - 1
    count++;
    while (low < high){
        var mid = Math.floor((low + high) / 2)
        if (random > _prop[mid] && random <= _prop[mid + 1]){
            return _prize[mid + 1]
        } else if (random > _prop[mid + 1]){
            low = mid 
        } else {
            high = mid 
        }
    }
    return _prize[0]
}
 

function rewardbag(func, times) {
    while (count < times){
        var cur_prize = func()
        switch (cur_prize){
            case 'A':
                world.spawnItem(x, y, z, "Botania:manaResource", 1, 14)
                break
            case 'B':
                world.spawnItem(x, y, z, "Botania:manaResource", 5, 1)
                break
            case 'C':
                world.spawnItem(x, y, z, "Botania:manaResource", 12, 23)
                break
            case 'D':
                world.spawnItem(x, y, z, "Botania:manaResource", 1, 4)
                break
            case 'E':
                world.spawnItem(x, y, z, "Botania:manaResource", 5, 2)
                break
            case 'F':
                world.spawnItem(x, y, z, "Botania:manaResource", 5, 0)
                break
            case 'G':
                world.spawnItem(x, y, z, "Botania:manaResource", 4, 5)
                break
            case 'H':
                world.spawnItem(x, y, z, "Botania:manaResource", 3, 7)
                break
            case 'I':
                world.spawnItem(x, y, z, "Botania:manaResource", 3, 8)
                break
            case 'J':
                world.spawnItem(x, y, z, "Botania:manaResource", 3, 9)
                break
        }
    }   
}

rewardbag(getPrize, 1), Inventory.removeFromSlot(player.getCurrentSlot(), 1)"
                  }
                  onUse: {
                  }
                  onUseFirst: {
                  }
                  maxDamage: {
                     Value: 0
                  }
                  leaveContainerItem: {
                     Value: 0b
                  }
                  usingAction: {
                     Value: "none"
                  }
               }
               Name: "rewardbag3"
            }
            [3]: {
               Type: "normal"
               Attributes: {
                  displayName: {
                     Value: "Vier"
                  }
                  onUpdate: {
                  }
                  enchantability: {
                     Value: 0
                  }
                  efficiency: {
                     Value: 1.0f
                  }
                  onHitEntity: {
                  }
                  onEaten: {
                  }
                  hasEffect: {
                     Value: 0b
                  }
                  onDroppedByPlayer: {
                  }
                  anvilMaterial: {
                  }
                  onCreated: {
                  }
                  onUsing: {
                  }
                  onLeftClickPlayer: {
                  }
                  full3d: {
                     Value: 0b
                  }
                  information: {
                     Value: "򿪺иʻƷ
r x1 12.50%
rʳ x1 12.50%
r̰ x1 12.50%
r x1 12.50%
rŭ x1 12.50%
rʷ x1 12.50%
r x1 12.50%
rħ x1 12.50%"
                  }
                  onUseOnPlayer: {
                  }
                  maxStack: {
                     Value: 64
                  }
                  onUseOnEntity: {
                  }
                  icon: {
                     Value: "rewardyourself:rewardbag4"
                  }
                  maxUsingDuration: {
                     Value: 0
                  }
                  onStoppedUsing: {
                  }
                  toolClasses: {
                     Value: {
                     }
                  }
                  onLeftClickLiving: {
                  }
                  damage: {
                     Value: 0
                  }
                  renderScale: {
                     Value: 1.0f
                  }
                  onBlockDestroyed: {
                  }
                  containerItem: {
                  }
                  onBlockStartBreak: {
                  }
                  creativeTab: {
                     Value: "rewardyourself"
                  }
                  onRightClick: {
                     Value: "var Inventory = player.getInventory();
var x = player.getPosX();
var y = player.getPosY() + 0.2;
var z = player.getPosZ();
var random = Math.ceil(Math.random() * 100)
var trueopen = 7 + Math.ceil(random / 12.5);
Inventory.removeFromSlot(player.getCurrentSlot(), 1)
world.spawnItem(x, y, z, "Botania:rune", 1, trueopen)"
                  }
                  onUse: {
                  }
                  onUseFirst: {
                  }
                  maxDamage: {
                     Value: 0
                  }
                  leaveContainerItem: {
                     Value: 0b
                  }
                  usingAction: {
                     Value: "none"
                  }
               }
               Name: "rewardbag4"
            }
            [4]: {
               Type: "normal"
               Attributes: {
                  displayName: {
                     Value: "ķ֮"
                  }
                  onUpdate: {
                  }
                  enchantability: {
                     Value: 0
                  }
                  efficiency: {
                     Value: 1.0f
                  }
                  onHitEntity: {
                  }
                  onEaten: {
                  }
                  hasEffect: {
                     Value: 0b
                  }
                  onDroppedByPlayer: {
                  }
                  anvilMaterial: {
                  }
                  onCreated: {
                  }
                  onUsing: {
                  }
                  onLeftClickPlayer: {
                  }
                  full3d: {
                     Value: 0b
                  }
                  information: {
                     Value: "Ҽʹ֮ʻƷ
rEins x16 60.0%
rZwei x5 20.0%
rDrei x6 7.0%
rVier x6 7.0%
r֮ x4 4%
rǻ궧 x1 2%"
                  }
                  onUseOnPlayer: {
                  }
                  maxStack: {
                     Value: 64
                  }
                  onUseOnEntity: {
                  }
                  icon: {
                     Value: "rewardyourself:rewardbag943"
                  }
                  maxUsingDuration: {
                     Value: 0
                  }
                  onStoppedUsing: {
                  }
                  toolClasses: {
                     Value: {
                     }
                  }
                  onLeftClickLiving: {
                  }
                  damage: {
                     Value: 0
                  }
                  renderScale: {
                     Value: 1.0f
                  }
                  onBlockDestroyed: {
                  }
                  containerItem: {
                  }
                  onBlockStartBreak: {
                  }
                  creativeTab: {
                     Value: "rewardyourself"
                  }
                  onRightClick: {
                     Value: "var _prize = ['A','B','C','D','E','F']
var _prop = [7, 12, 20, 35, 50, 100]
var a = 0, b = 0, c = 0, d = 0, e = 0;
var count = 0;
var Inventory = player.getInventory();
var x = player.getPosX();
var y = player.getPosY() + 0.2;
var z = player.getPosZ();

 
var getPrize = () => {
    var random = Math.ceil(Math.random() * 100)
    var low = 0
    var high = _prop.length - 1
    count++;
    while (low < high){
        var mid = Math.floor((low + high) / 2)
        if (random > _prop[mid] && random <= _prop[mid + 1]){
            return _prize[mid + 1]
        } else if (random > _prop[mid + 1]){
            low = mid 
        } else {
            high = mid 
        }
    }
    return _prize[0]
}
 

function rewardbag(func, times) {
    while (count < times){
        var cur_prize = func()
        switch (cur_prize){
            case 'A':
                world.spawnItem(x, y, z, "Botania:manaResource", 1, 14)
                break
            case 'B':
                world.spawnItem(x, y, z, "Botania:manaResource", 4, 5)
                break
            case 'C':
                world.spawnItem(x, y, z, "Rewardyourself:rewardbag4", 6, 0)
                break
            case 'D':
                world.spawnItem(x, y, z, "Rewardyourself:rewardbag3", 6, 0)
                break
            case 'E':
                world.spawnItem(x, y, z, "Rewardyourself:rewardbag2", 5, 0)
                break
            case 'F':
                world.spawnItem(x, y, z, "Rewardyourself:rewardbag1", 16, 0)
                break
        }
    }   
}

rewardbag(getPrize, 1), Inventory.removeFromSlot(player.getCurrentSlot(), 1)"
                  }
                  onUse: {
                  }
                  onUseFirst: {
                  }
                  maxDamage: {
                     Value: 0
                  }
                  leaveContainerItem: {
                     Value: 0b
                  }
                  usingAction: {
                     Value: "none"
                  }
               }
               Name: "rewardbag943"
            }
            [5]: {
               Type: "normal"
               Attributes: {
                  displayName: {
                     Value: "NPC"
                  }
                  onUpdate: {
                  }
                  enchantability: {
                     Value: 0
                  }
                  efficiency: {
                     Value: 1.0f
                  }
                  onHitEntity: {
                  }
                  onEaten: {
                  }
                  hasEffect: {
                     Value: 0b
                  }
                  onDroppedByPlayer: {
                  }
                  anvilMaterial: {
                  }
                  onCreated: {
                  }
                  onUsing: {
                  }
                  onLeftClickPlayer: {
                  }
                  full3d: {
                     Value: 1b
                  }
                  information: {
                  }
                  onUseOnPlayer: {
                  }
                  maxStack: {
                     Value: 1
                  }
                  onUseOnEntity: {
                  }
                  icon: {
                     Value: "rewardyourself:npcseegod"
                  }
                  maxUsingDuration: {
                     Value: 0
                  }
                  onStoppedUsing: {
                  }
                  toolClasses: {
                     Value: {
                     }
                  }
                  onLeftClickLiving: {
                     Value: "var NpcName = living.getName();
if (NpcName == "manametalmod.EntityManaNPC") {
    player.getInventory().removeFromSlot(player.getCurrentSlot(), 1), living.setDead(), player.sendMessage("NPC")
} else { 
    //player.sendMessage("ȷħNPC")
    player.sendMessage(NpcName)
}"
                  }
                  damage: {
                     Value: 64
                  }
                  renderScale: {
                     Value: 1.0f
                  }
                  onBlockDestroyed: {
                  }
                  containerItem: {
                  }
                  onBlockStartBreak: {
                  }
                  creativeTab: {
                     Value: "rewardyourself"
                  }
                  onRightClick: {
                  }
                  onUse: {
                  }
                  onUseFirst: {
                  }
                  maxDamage: {
                     Value: 0
                  }
                  leaveContainerItem: {
                     Value: 0b
                  }
                  usingAction: {
                     Value: "none"
                  }
               }
               Name: "npcseegod"
            }
            [6]: {
               Type: "normal"
               Attributes: {
                  displayName: {
                     Value: "Unnamed"
                  }
                  onUpdate: {
                  }
                  enchantability: {
                     Value: 0
                  }
                  efficiency: {
                     Value: 1.0f
                  }
                  onHitEntity: {
                  }
                  onEaten: {
                  }
                  hasEffect: {
                     Value: 0b
                  }
                  onDroppedByPlayer: {
                  }
                  anvilMaterial: {
                  }
                  onCreated: {
                  }
                  onUsing: {
                  }
                  onLeftClickPlayer: {
                  }
                  full3d: {
                     Value: 0b
                  }
                  information: {
                  }
                  onUseOnPlayer: {
                  }
                  maxStack: {
                     Value: 64
                  }
                  onUseOnEntity: {
                  }
                  icon: {
                     Value: "rewardyourself:bronze_trophy"
                  }
                  maxUsingDuration: {
                     Value: 0
                  }
                  onStoppedUsing: {
                  }
                  toolClasses: {
                     Value: {
                     }
                  }
                  onLeftClickLiving: {
                  }
                  damage: {
                     Value: 0
                  }
                  renderScale: {
                     Value: 1.0f
                  }
                  onBlockDestroyed: {
                  }
                  containerItem: {
                  }
                  onBlockStartBreak: {
                  }
                  creativeTab: {
                     Value: "rewardyourself"
                  }
                  onRightClick: {
                  }
                  onUse: {
                  }
                  onUseFirst: {
                  }
                  maxDamage: {
                     Value: 0
                  }
                  leaveContainerItem: {
                     Value: 0b
                  }
                  usingAction: {
                     Value: "none"
                  }
               }
               Name: "GoldenCup_1"
            }
            [7]: {
               Type: "normal"
               Attributes: {
                  displayName: {
                     Value: "Unnamed"
                  }
                  onUpdate: {
                  }
                  enchantability: {
                     Value: 0
                  }
                  efficiency: {
                     Value: 1.0f
                  }
                  onHitEntity: {
                  }
                  onEaten: {
                  }
                  hasEffect: {
                     Value: 0b
                  }
                  onDroppedByPlayer: {
                  }
                  anvilMaterial: {
                  }
                  onCreated: {
                  }
                  onUsing: {
                  }
                  onLeftClickPlayer: {
                  }
                  full3d: {
                     Value: 0b
                  }
                  information: {
                  }
                  onUseOnPlayer: {
                  }
                  maxStack: {
                     Value: 64
                  }
                  onUseOnEntity: {
                  }
                  icon: {
                     Value: "rewardyourself:bronze_trophy_with_pedestal"
                  }
                  maxUsingDuration: {
                     Value: 0
                  }
                  onStoppedUsing: {
                  }
                  toolClasses: {
                     Value: {
                     }
                  }
                  onLeftClickLiving: {
                  }
                  damage: {
                     Value: 0
                  }
                  renderScale: {
                     Value: 1.0f
                  }
                  onBlockDestroyed: {
                  }
                  containerItem: {
                  }
                  onBlockStartBreak: {
                  }
                  creativeTab: {
                     Value: "rewardyourself"
                  }
                  onRightClick: {
                  }
                  onUse: {
                  }
                  onUseFirst: {
                  }
                  maxDamage: {
                     Value: 0
                  }
                  leaveContainerItem: {
                     Value: 0b
                  }
                  usingAction: {
                     Value: "none"
                  }
               }
               Name: "GoldenCup_2"
            }
            [8]: {
               Type: "normal"
               Attributes: {
                  displayName: {
                     Value: "Unnamed"
                  }
                  onUpdate: {
                  }
                  enchantability: {
                     Value: 0
                  }
                  efficiency: {
                     Value: 1.0f
                  }
                  onHitEntity: {
                  }
                  onEaten: {
                  }
                  hasEffect: {
                     Value: 0b
                  }
                  onDroppedByPlayer: {
                  }
                  anvilMaterial: {
                  }
                  onCreated: {
                  }
                  onUsing: {
                  }
                  onLeftClickPlayer: {
                  }
                  full3d: {
                     Value: 0b
                  }
                  information: {
                  }
                  onUseOnPlayer: {
                  }
                  maxStack: {
                     Value: 64
                  }
                  onUseOnEntity: {
                  }
                  icon: {
                     Value: "rewardyourself:trophy_tall"
                  }
                  maxUsingDuration: {
                     Value: 0
                  }
                  onStoppedUsing: {
                  }
                  toolClasses: {
                     Value: {
                     }
                  }
                  onLeftClickLiving: {
                  }
                  damage: {
                     Value: 0
                  }
                  renderScale: {
                     Value: 1.0f
                  }
                  onBlockDestroyed: {
                  }
                  containerItem: {
                  }
                  onBlockStartBreak: {
                  }
                  creativeTab: {
                     Value: "rewardyourself"
                  }
                  onRightClick: {
                  }
                  onUse: {
                  }
                  onUseFirst: {
                  }
                  maxDamage: {
                     Value: 0
                  }
                  leaveContainerItem: {
                     Value: 0b
                  }
                  usingAction: {
                     Value: "none"
                  }
               }
               Name: "GoldenCup_3"
            }
            [9]: {
               Type: "normal"
               Attributes: {
                  displayName: {
                     Value: "Unnamed"
                  }
                  onUpdate: {
                  }
                  enchantability: {
                     Value: 0
                  }
                  efficiency: {
                     Value: 1.0f
                  }
                  onHitEntity: {
                  }
                  onEaten: {
                  }
                  hasEffect: {
                     Value: 0b
                  }
                  onDroppedByPlayer: {
                  }
                  anvilMaterial: {
                  }
                  onCreated: {
                  }
                  onUsing: {
                  }
                  onLeftClickPlayer: {
                  }
                  full3d: {
                     Value: 0b
                  }
                  information: {
                  }
                  onUseOnPlayer: {
                  }
                  maxStack: {
                     Value: 64
                  }
                  onUseOnEntity: {
                  }
                  icon: {
                     Value: "rewardyourself:bronze_trophy_with_pedestal_and_gear"
                  }
                  maxUsingDuration: {
                     Value: 0
                  }
                  onStoppedUsing: {
                  }
                  toolClasses: {
                     Value: {
                     }
                  }
                  onLeftClickLiving: {
                  }
                  damage: {
                     Value: 0
                  }
                  renderScale: {
                     Value: 1.0f
                  }
                  onBlockDestroyed: {
                  }
                  containerItem: {
                  }
                  onBlockStartBreak: {
                  }
                  creativeTab: {
                     Value: "rewardyourself"
                  }
                  onRightClick: {
                  }
                  onUse: {
                  }
                  onUseFirst: {
                  }
                  maxDamage: {
                     Value: 0
                  }
                  leaveContainerItem: {
                     Value: 0b
                  }
                  usingAction: {
                     Value: "none"
                  }
               }
               Name: "GoldenCup_4"
            }
            [10]: {
               Type: "normal"
               Attributes: {
                  displayName: {
                     Value: "Unnamed"
                  }
                  onUpdate: {
                  }
                  enchantability: {
                     Value: 0
                  }
                  efficiency: {
                     Value: 1.0f
                  }
                  onHitEntity: {
                  }
                  onEaten: {
                  }
                  hasEffect: {
                     Value: 0b
                  }
                  onDroppedByPlayer: {
                  }
                  anvilMaterial: {
                  }
                  onCreated: {
                  }
                  onUsing: {
                  }
                  onLeftClickPlayer: {
                  }
                  full3d: {
                     Value: 0b
                  }
                  information: {
                  }
                  onUseOnPlayer: {
                  }
                  maxStack: {
                     Value: 64
                  }
                  onUseOnEntity: {
                  }
                  icon: {
                     Value: "rewardyourself:trophy_cog_pedestal"
                  }
                  maxUsingDuration: {
                     Value: 0
                  }
                  onStoppedUsing: {
                  }
                  toolClasses: {
                     Value: {
                     }
                  }
                  onLeftClickLiving: {
                  }
                  damage: {
                     Value: 0
                  }
                  renderScale: {
                     Value: 1.0f
                  }
                  onBlockDestroyed: {
                  }
                  containerItem: {
                  }
                  onBlockStartBreak: {
                  }
                  creativeTab: {
                     Value: "rewardyourself"
                  }
                  onRightClick: {
                  }
                  onUse: {
                  }
                  onUseFirst: {
                  }
                  maxDamage: {
                     Value: 0
                  }
                  leaveContainerItem: {
                     Value: 0b
                  }
                  usingAction: {
                     Value: "none"
                  }
               }
               Name: "GoldenCup_5"
            }
            [11]: {
               Type: "normal"
               Attributes: {
                  displayName: {
                     Value: "Unnamed"
                  }
                  onUpdate: {
                  }
                  enchantability: {
                     Value: 0
                  }
                  efficiency: {
                     Value: 1.0f
                  }
                  onHitEntity: {
                  }
                  onEaten: {
                  }
                  hasEffect: {
                     Value: 0b
                  }
                  onDroppedByPlayer: {
                  }
                  anvilMaterial: {
                  }
                  onCreated: {
                  }
                  onUsing: {
                  }
                  onLeftClickPlayer: {
                  }
                  full3d: {
                     Value: 0b
                  }
                  information: {
                  }
                  onUseOnPlayer: {
                  }
                  maxStack: {
                     Value: 64
                  }
                  onUseOnEntity: {
                  }
                  icon: {
                     Value: "rewardyourself:little_gear_trophy"
                  }
                  maxUsingDuration: {
                     Value: 0
                  }
                  onStoppedUsing: {
                  }
                  toolClasses: {
                     Value: {
                     }
                  }
                  onLeftClickLiving: {
                  }
                  damage: {
                     Value: 0
                  }
                  renderScale: {
                     Value: 1.0f
                  }
                  onBlockDestroyed: {
                  }
                  containerItem: {
                  }
                  onBlockStartBreak: {
                  }
                  creativeTab: {
                     Value: "rewardyourself"
                  }
                  onRightClick: {
                  }
                  onUse: {
                  }
                  onUseFirst: {
                  }
                  maxDamage: {
                     Value: 0
                  }
                  leaveContainerItem: {
                     Value: 0b
                  }
                  usingAction: {
                     Value: "none"
                  }
               }
               Name: "GoldenCup_6"
            }
            [12]: {
               Type: "normal"
               Attributes: {
                  displayName: {
                     Value: "Unnamed"
                  }
                  onUpdate: {
                  }
                  enchantability: {
                     Value: 0
                  }
                  efficiency: {
                     Value: 1.0f
                  }
                  onHitEntity: {
                  }
                  onEaten: {
                  }
                  hasEffect: {
                     Value: 0b
                  }
                  onDroppedByPlayer: {
                  }
                  anvilMaterial: {
                  }
                  onCreated: {
                  }
                  onUsing: {
                  }
                  onLeftClickPlayer: {
                  }
                  full3d: {
                     Value: 0b
                  }
                  information: {
                  }
                  onUseOnPlayer: {
                  }
                  maxStack: {
                     Value: 64
                  }
                  onUseOnEntity: {
                  }
                  icon: {
                     Value: "rewardyourself:gear_trophy"
                  }
                  maxUsingDuration: {
                     Value: 0
                  }
                  onStoppedUsing: {
                  }
                  toolClasses: {
                     Value: {
                     }
                  }
                  onLeftClickLiving: {
                  }
                  damage: {
                     Value: 0
                  }
                  renderScale: {
                     Value: 1.0f
                  }
                  onBlockDestroyed: {
                  }
                  containerItem: {
                  }
                  onBlockStartBreak: {
                  }
                  creativeTab: {
                     Value: "rewardyourself"
                  }
                  onRightClick: {
                  }
                  onUse: {
                  }
                  onUseFirst: {
                  }
                  maxDamage: {
                     Value: 0
                  }
                  leaveContainerItem: {
                     Value: 0b
                  }
                  usingAction: {
                     Value: "none"
                  }
               }
               Name: "GoldenCup_7"
            }
            [13]: {
               Type: "food"
               Attributes: {
                  potionAmplifier: {
                     Value: 0
                  }
                  displayName: {
                     Value: "Unnamed"
                  }
                  onUpdate: {
                  }
                  potionProbability: {
                     Value: 1.0f
                  }
                  enchantability: {
                     Value: 0
                  }
                  efficiency: {
                     Value: 1.0f
                  }
                  onHitEntity: {
                  }
                  onEaten: {
                     Value: "JsUtil.initTopPackage("project");
project.studio.manametalmod.potion.PotionEffectM3.addPotion(player.player,project.studio.manametalmod.potion.PotionM3.potionOpblessing,1800,0)"
                  }
                  hasEffect: {
                     Value: 0b
                  }
                  onDroppedByPlayer: {
                  }
                  onUsing: {
                  }
                  anvilMaterial: {
                  }
                  onCreated: {
                  }
                  onLeftClickPlayer: {
                  }
                  onUseOnPlayer: {
                  }
                  onUseOnEntity: {
                  }
                  potionDuration: {
                     Value: 60
                  }
                  information: {
                     Value: "5ζĵ65ҪΪ֮dߵ

5ʳú:
6Աף (30:00)"
                  }
                  maxStack: {
                     Value: 64
                  }
                  full3d: {
                     Value: 0b
                  }
                  icon: {
                     Value: "rewardyourself:cosmic_cake_slice"
                  }
                  maxUsingDuration: {
                     Value: 32
                  }
                  onStoppedUsing: {
                  }
                  toolClasses: {
                     Value: {
                     }
                  }
                  onLeftClickLiving: {
                  }
                  damage: {
                     Value: 0
                  }
                  onBlockDestroyed: {
                  }
                  renderScale: {
                     Value: 1.0f
                  }
                  containerItem: {
                  }
                  onBlockStartBreak: {
                  }
                  saturation: {
                     Value: 0.3f
                  }
                  creativeTab: {
                     Value: "rewardyourself"
                  }
                  onUse: {
                  }
                  onRightClick: {
                  }
                  onUseFirst: {
                  }
                  maxDamage: {
                     Value: 0
                  }
                  hunger: {
                     Value: 2
                  }
                  leaveContainerItem: {
                     Value: 0b
                  }
                  alwaysEdible: {
                     Value: 1b
                  }
                  usingAction: {
                     Value: "eat"
                  }
               }
               Name: "AdminBlessings"
            }
         }
      }
      [8]: {
         Name: "TileEntityRegistry"
         ContentList: {
            [0]: {
               Type: "inventory"
               Attributes: {
                  furnaceModules: {
                     DataList: {
                     }
                  }
                  onUpdate: {
                     Value: "var x = position.x;
var y = position.y;
var z = position.z;
var Spin = world.getTileEntityIntData(x, y, z, "Spin");
var Size = world.getTileEntityIntData(x, y, z, "Size");
var goS = world.getTileEntityStringData(x, y, z, "goS");
Spin++
world.setTileEntityIntData(x, y, z, "Spin", Spin)

world.setTileEntityRotate(x, y, z, Spin),
world.setTileEntitySize(x, y, z, 5.0, 1.0, 5.0)
world.setTileEntityTrans(x, y, z, 0.0, -2.0, 0.0)
world.setTileEntityModel(x, y, z, "rewardyourself", "textures/blocks/model.obj")
world.setTileEntityTexture(x, y, z, "rewardyourself", "textures/blocks/0-0012-2.png")"
                  }
                  slotCount: {
                     Value: 1
                  }
               }
               Name: "AutoGravityWell"
            }
         }
      }
      [9]: {
         Name: "GuiRegistry"
         ContentList: {
            [0]: {
               Type: "container"
               Attributes: {
                  shiftClickRules: {
                     DataList: {
                     }
                  }
                  guiData: {
                     Controls: {
                        [0]: {
                           Y: 45
                           FurnaceOutput: 0b
                           RecipeList: "vanilla"
                           Width: 0
                           X: 82
                           Height: 0
                           ControlType: "invSlot"
                        }
                        [1]: {
                           Y: 114
                           Width: 0
                           X: 10
                           Height: 0
                           ControlType: "playerInventory"
                        }
                     }
                  }
                  height: {
                     Value: 198
                  }
                  width: {
                     Value: 198
                  }
                  background: {
                     Value: "rewardyourself:textures/gui/G7.png"
                  }
                  bgU: {
                     Value: 0
                  }
                  bgV: {
                     Value: 0
                  }
               }
               Name: "AutoManaGravityWell"
            }
         }
      }
      [10]: {
         Name: "BlockRegistry"
         ContentList: {
            [0]: {
               Type: "normal"
               Attributes: {
                  onBonemeal: {
                  }
                  onCollided: {
                  }
                  flammability: {
                     Value: 10
                  }
                  transparent: {
                     Value: 0b
                  }
                  expDropMin: {
                     Value: 0
                  }
                  textureBottom: {
                     Value: "manametalmod:MetalSeparator_5"
                  }
                  onPlacedByPlayer: {
                  }
                  onClicked: {
                  }
                  canPlaceOnFloor: {
                     Value: 1b
                  }
                  canPlaceOnWall: {
                     Value: 1b
                  }
                  onUpdate: {
                  }
                  onBreak: {
                  }
                  canRotatable: {
                     Value: 0b
                  }
                  useFortune: {
                     Value: 0b
                  }
                  fortuneModifier: {
                     Value: 0
                  }
                  resistance: {
                     Value: 0.0f
                  }
                  textureTop: {
                     Value: "manametalmod:MetalSeparator_5"
                  }
                  hasCollision: {
                     Value: 1b
                  }
                  textureSouth: {
                     Value: "manametalmod:MetalSeparator_5"
                  }
                  material: {
                     Value: "ground"
                  }
                  onAdded: {
                  }
                  textureEast: {
                     Value: "manametalmod:MetalSeparator_5"
                  }
                  stepSound: {
                     Value: "stone"
                  }
                  toolClass: {
                     Value: "pickaxe"
                  }
                  containerItem: {
                  }
                  harvestLevel: {
                     Value: 3
                  }
                  pick: {
                     Damage: 0s
                     ItemName: "Rewardyourself:TESTBLOCK"
                     Count: 1b
                  }
                  addToCreative: {
                     Value: 1b
                  }
                  leaveContainerItem: {
                     Value: 0b
                  }
                  blocksPiston: {
                     Value: 0b
                  }
                  expDropMax: {
                     Value: 0
                  }
                  onFallenUpon: {
                  }
                  opacity: {
                     Value: 255
                  }
                  isFireSource: {
                     Value: 0b
                  }
                  onWalking: {
                  }
                  displayName: {
                     Value: "ԱԷ"
                  }
                  semiTransparent: {
                     Value: 0b
                  }
                  textureNorth: {
                     Value: "manametalmod:MetalSeparator_5"
                  }
                  canSilkHarvest: {
                     Value: 0b
                  }
                  onRedstoneSignal: {
                  }
                  onPlacedBy: {
                  }
                  onPlaced: {
                  }
                  light: {
                     Value: 0
                  }
                  isBurning: {
                     Value: 0b
                  }
                  onActivated: {
                  }
                  tickrate: {
                     Value: 10
                  }
                  maxStack: {
                     Value: 64
                  }
                  canPlaceOnCeiling: {
                     Value: 1b
                  }
                  information: {
                  }
                  tileTransparent: {
                     Value: 0b
                  }
                  isWood: {
                     Value: 0b
                  }
                  drop: {
                     Drops: {
                        [0]: {
                           Max: 1
                           Item: "Rewardyourself:TESTBLOCK"
                           DV: 0
                           Min: 1
                        }
                     }
                  }
                  onNeighborChange: {
                  }
                  slipperiness: {
                     Value: 0.6f
                  }
                  textureWest: {
                     Value: "manametalmod:MetalSeparator_5"
                  }
                  tileEntity: {
                     TileEntityName: "AutoGravityWell"
                     PackName: "Rewardyourself"
                  }
                  creativeTab: {
                     Value: "search"
                  }
                  onDestroyedByPlayer: {
                  }
                  hardness: {
                     Value: 10.0f
                  }
                  isBeaconBase: {
                     Value: 0b
                  }
                  onRandomDisplayTick: {
                  }
                  fireSpreadSpeed: {
                     Value: 10
                  }
               }
               Name: "TESTBLOCK"
            }
            [1]: {
               Type: "normal"
               Attributes: {
                  onBonemeal: {
                  }
                  onCollided: {
                  }
                  flammability: {
                     Value: 10
                  }
                  transparent: {
                     Value: 0b
                  }
                  expDropMin: {
                     Value: 0
                  }
                  textureBottom: {
                     Value: "rewardyourself:G9"
                  }
                  onPlacedByPlayer: {
                  }
                  onClicked: {
                  }
                  canPlaceOnFloor: {
                     Value: 1b
                  }
                  canPlaceOnWall: {
                     Value: 1b
                  }
                  onUpdate: {
                     Value: "var coreX = position.x;
var coreY = position.y;
var coreZ = position.z;

function wB(name, meta, x, y, z) {
    this.name = name;
    this.x = x;
    this.y = y;
    this.z = z;
    this.meta = meta;
}

var activation = world.getTileEntityStringData(position, "activation");
if (activation == null) { world.setTileEntityStringData(position, "activation", "false"); }

var broadcast = world.getTileEntityStringData(position, "broadcast");
if (broadcast == null) { world.setTileEntityStringData(position, "broadcast", "on"); }

function check(wB) {
    var offsetX = coreX + wB.x;
    var offsetY = coreY + wB.y;
    var offsetZ = coreZ + wB.z;
    return world.getBlockName(offsetX, offsetY, offsetZ) == wB.name
    && world.getBlockMetadata(offsetX, offsetY, offsetZ) == wB.meta;
}

var construction = new Array(
    new wB("manametalmod:LapudaBlocks", 9, 3, 0, 0),
    new wB("manametalmod:LapudaBlocks", 9, 0, 0, 3),
    new wB("manametalmod:LapudaBlocks", 9, -3, 0, 0),
    new wB("manametalmod:LapudaBlocks", 9, 0, 0, -3),
    new wB("manametalmod:BlockLapudaRuneC", 0, 3, 1, 0),
    new wB("manametalmod:BlockLapudaRuneC", 0, 0, 1, 3),
    new wB("manametalmod:BlockLapudaRuneC", 0, -3, 1, 0),
    new wB("manametalmod:BlockLapudaRuneC", 0, 0, 1, -3),
    new wB("manametalmod:LapudaBlocks", 11, 3, 2, 0),
    new wB("manametalmod:LapudaBlocks", 11, 0, 2, 3),
    new wB("manametalmod:LapudaBlocks", 11, -3, 2, 0),
    new wB("manametalmod:LapudaBlocks", 11, 0, 2, -3),
    new wB("manametalmod:BlockLapudaRune", 0, 2, -1, -2),
    new wB("manametalmod:BlockLapudaRune", 0, -2, -1, 2),
    new wB("manametalmod:BlockLapudaRune", 0, -2, -1, -2),
    new wB("manametalmod:BlockLapudaRune", 0, 2, -1, 2),
    //б
    new wB("manametalmod:BlockLapudaRuneC", 0, 2, 0, -2),
    new wB("manametalmod:BlockLapudaRuneC", 0, -2, 0, 2),
    new wB("manametalmod:BlockLapudaRuneC", 0, -2, 0, -2),
    new wB("manametalmod:BlockLapudaRuneC", 0, 2, 0, 2),
    new wB("manametalmod:BlockLapudaRuneC", 0, 2, 1, -2),
    new wB("manametalmod:BlockLapudaRuneC", 0, -2, 1, 2),
    new wB("manametalmod:BlockLapudaRuneC", 0, -2, 1, -2),
    new wB("manametalmod:BlockLapudaRuneC", 0, 2, 1, 2),
    new wB("manametalmod:BlockLapudaRuneC", 0, 2, 2, -2),
    new wB("manametalmod:BlockLapudaRuneC", 0, -2, 2, 2),
    new wB("manametalmod:BlockLapudaRuneC", 0, -2, 2, -2),
    new wB("manametalmod:BlockLapudaRuneC", 0, 2, 2, 2),
    new wB("manametalmod:BlockLapudaLight", 0, 2, 3, -2),
    new wB("manametalmod:BlockLapudaLight", 0, -2, 3, 2),
    new wB("manametalmod:BlockLapudaLight", 0, -2, 3, -2),
    new wB("manametalmod:BlockLapudaLight", 0, 2, 3, 2),
);
var right = true;

for (i = 0; i < construction.length; i++) {
    var element = construction[i];
    if (!right) break;
    if (!check(element)) right = false;
}

if (right) {
    world.setTileEntityStringData(position, "activation", "true");
    //Ҫ֧ position
    var x = position.x;
    var y = position.y;
    var z = position.z;
    
    //ȡǰ(Block||Player)X Y Z (Int Int Int)
    var Core = world.getBlockName(x, y - 4, z);
    var Inventory = world.getInventory(x, y - 4, z);
    var onGui = world.getInventory(position);
    var slotName = Inventory.getItemName(12);
    if (Core == "manametalmod:ManaGravityWell") {
        var tile = world.world.getTileEntity(x, y - 4, z);
        var rua = world.getTileEntityIntData(position, "rua");
        if (rua <= 0) { world.setTileEntityIntData(position, "rua", -1); }
        if (tile.Craft != -1) {
            world.setTileEntityStringData(position, "broadcast", "false");
            world.setTileEntityIntData(position, "rua", tile.Craft);
        }
        if (slotName != null) {
            var slotmeta = Inventory.getDamage(12);
            var slotstack = Inventory.getStackSize(12);
            Inventory.removeFromSlot(12, slotstack);
            onGui.add(slotName, slotmeta, slotstack);
        }
        if (rua >= 0 && tile.Craft == -1) {
                tile.Craft = rua
        } else { if (tile.Craft == -1 && rua != -1) { world.setTileEntityIntData(position, "rua", -1) } }
        for (i = 0; i < 11; i++) { if (Inventory.getItemName(i) == null && broadcast == "false") { tile.Craft = -1; world.setTileEntityIntData(position, "rua", -1); world.setTileEntityStringData(position, "broadcast", "true"); } }
        if (tile.Craft == -1 && rua == -1 && broadcast == "true") {
            var Players = world.enumEntities(x - 48, y - 48, z - 48, x + 48, y + 48, z + 48, "player")
                for(var l = 0; l < Players.length; l++) {
                    world.sendMessageToPlayer(Players[l].asPlayer().getUsername(),"d[մ] bɣ")
            }
            world.setTileEntityStringData(position, "broadcast", "on");
        }
    }
} else {
    world.setTileEntityStringData(position, "activation", "false");
}"
                  }
                  onBreak: {
                  }
                  canRotatable: {
                     Value: 0b
                  }
                  useFortune: {
                     Value: 0b
                  }
                  fortuneModifier: {
                     Value: 0
                  }
                  resistance: {
                     Value: 0.0f
                  }
                  textureTop: {
                     Value: "rewardyourself:G9"
                  }
                  hasCollision: {
                     Value: 1b
                  }
                  textureSouth: {
                     Value: "rewardyourself:G8"
                  }
                  material: {
                     Value: "ground"
                  }
                  onAdded: {
                  }
                  textureEast: {
                     Value: "rewardyourself:G8"
                  }
                  stepSound: {
                     Value: "stone"
                  }
                  toolClass: {
                     Value: "pickaxe"
                  }
                  containerItem: {
                  }
                  harvestLevel: {
                     Value: 3
                  }
                  pick: {
                     Damage: 0s
                     ItemName: "Rewardyourself:GravityWell_Extraction"
                     Count: 1b
                  }
                  addToCreative: {
                     Value: 1b
                  }
                  leaveContainerItem: {
                     Value: 0b
                  }
                  blocksPiston: {
                     Value: 0b
                  }
                  expDropMax: {
                     Value: 0
                  }
                  onFallenUpon: {
                  }
                  opacity: {
                     Value: 255
                  }
                  isFireSource: {
                     Value: 0b
                  }
                  onWalking: {
                  }
                  displayName: {
                     Value: "մ"
                  }
                  semiTransparent: {
                     Value: 0b
                  }
                  textureNorth: {
                     Value: "rewardyourself:G8"
                  }
                  canSilkHarvest: {
                     Value: 0b
                  }
                  onRedstoneSignal: {
                  }
                  onPlacedBy: {
                  }
                  onPlaced: {
                  }
                  light: {
                     Value: 15
                  }
                  isBurning: {
                     Value: 0b
                  }
                  onActivated: {
                     Value: "var activation = world.getTileEntityStringData(position, "activation");
if (activation == "true") {
    player.openBlockGui("AutoManaGravityWell", position);
} else {
    player.sendMessage("෽ṹ");
}"
                  }
                  tickrate: {
                     Value: 10
                  }
                  maxStack: {
                     Value: 64
                  }
                  canPlaceOnCeiling: {
                     Value: 1b
                  }
                  information: {
                  }
                  tileTransparent: {
                     Value: 0b
                  }
                  isWood: {
                     Value: 0b
                  }
                  drop: {
                     Drops: {
                        [0]: {
                           Max: 1
                           Item: "Rewardyourself:GravityWell_Extraction"
                           DV: 0
                           Min: 1
                        }
                     }
                  }
                  onNeighborChange: {
                  }
                  slipperiness: {
                     Value: 0.6f
                  }
                  textureWest: {
                     Value: "rewardyourself:G8"
                  }
                  tileEntity: {
                     TileEntityName: "AutoGravityWell"
                     PackName: "Rewardyourself"
                  }
                  creativeTab: {
                     Value: "rewardyourself"
                  }
                  onDestroyedByPlayer: {
                  }
                  hardness: {
                     Value: 30.0f
                  }
                  isBeaconBase: {
                     Value: 0b
                  }
                  onRandomDisplayTick: {
                  }
                  fireSpreadSpeed: {
                     Value: 10
                  }
               }
               Name: "GravityWell_Extraction"
            }
         }
      }
      [11]: {
         Name: "WorldGenRegistry"
         ContentList: {
         }
      }
      [12]: {
         Name: "TradeRecipeRegistry"
         ContentList: {
         }
      }
      [13]: {
         Name: "GrassPlantRegistry"
         ContentList: {
         }
      }
      [14]: {
         Name: "GrassSeedRegistry"
         ContentList: {
         }
      }
      [15]: {
         Name: "ChestItemRegistry"
         ContentList: {
         }
      }
      [16]: {
         Name: "MobSpawnRegistry"
         ContentList: {
         }
      }
      [17]: {
         Name: "DungeonMobRegistry"
         ContentList: {
         }
      }
      [18]: {
         Name: "MobDropRegistry"
         ContentList: {
         }
      }
      [19]: {
         Name: "EventRegistry"
         ContentList: {
         }
      }
      [20]: {
         Name: "Ʒע"
         ContentList: {
         }
      }
   }
}
