ON INIT {
 SETNAME [description_barrel]
 SET_MATERIAL WOOD
 VIEW_BLOCK ON
 INVENTORY CREATE
 INVENTORY SKIN "ingame_inventory_wood"
  INVENTORY ADD "PROVISIONS\\SALT\\SALT"
 RANDOM 80 {
  INVENTORY ADD "PROVISIONS\\SALT\\SALT"
 }
 RANDOM 60 {
  INVENTORY ADD "PROVISIONS\\SALT\\SALT"
 }
 RANDOM 40 {
  INVENTORY ADD "PROVISIONS\\SALT\\SALT"
 }
 RANDOM 20 {
  INVENTORY ADD "PROVISIONS\\SALT\\SALT"
}
 RANDOM 10 {
  INVENTORY ADD "PROVISIONS\\SALT\\SALT"
}
 RANDOM 20 {
  INVENTORY ADD "SPECIAL\\Tool_Craft\\Tool_Craft"
}
 ACCEPT
}

ON INVENTORY2_OPEN {
 PLAY "barrel_open"
 ACCEPT
}

ON INVENTORY2_CLOSE {
 PLAY "barrel_close"
 ACCEPT
}

ON GAME_READY {
 ANCHOR_BLOCK ON
 ACCEPT
}