<commit_before>/*
  RPG Mod Pack- Cuby Coins
  Creator : REDevilLord & respectZ
*/

var copperCuby;
var silverCuby;
var goldCuby;

function deathHook(m,v) {
  if(m == getPlayerEnt()) {
    copperCuby = copperCuby + Math.floor(Math.random()*(100));
    var dd = Math.floor(Math.random()*(10));
    if(dd <= 7) {
      silverCuby++;
    }
    if(dd > 7) {
      goldCuby++;
    }
    if(copperCuby >= 100) {
      copperCuby = copperCuby - 100;
      silverCuby = silverCuby + 1;
    }
    if(silverCuby >= 100) {
      silverCuby = silverCuby - 100;
      goldCuby = goldCuby + 1;
    }
  }
}

function destroyBlock(x,y,z,side) {
  var d = getTile(x,y,z) {
    if(d == 1 || d == 4 || d == 14 || d == 15 || d == 16 || d == 56) {
      copperCuby = copperCuby + Math.floor(Math.random()*(100));
      var dd = Math.floor(Math.random()*(10));
      if(dd <= 7) {
        silverCuby++;
      }
      if(dd > 7) {
        goldCuby++;
      }
      if(copperCuby >= 100) {
        copperCuby = copperCuby - 100;
        silverCuby = silverCuby + 1;
      }
      if(silverCuby >= 100) {
        silverCuby = silverCuby - 100;
        goldCuby = goldCuby + 1;
      }
    }
  }
}

function procCmd(cmd) {
  var c = cmd.split(" ");
  if(cmd == "shop") {
    if(!c[1]) {
      clientMessage(" /shop buy <number> <amount");
      clientMessage(" /shop buy 1 5");
      clientMessage("Shop 1/69");
      clientMessage("1.Apple 20c");
      clientMessage("2.Steak 30c");
    }
    if(c[1]) {
      if(c[1] == "1") {
        clientMessage("3.Diamond Sword 3g 25s 80c");
      }
      if(c[1] == "buy") {
        if(c[2]) {
          if(c[2] == "3") {
            if(goldCuby < 3) {
              clientMessage("Dont Have Enough GOld")l
            }
            if(goldCuby >= 3) {
              if(silverCuby < 25) {
                if(goldCuby >= 4) {
                  goldCuby--;
                  silverCuby+=100;
                  if(copperCuby >= 80) {
                    silverCuby -= 25;
                    copperCuby -= 80;
                    goldCuby -= 3;
                    addItemInventory(267,1,0);
                  }
                  if(copperCuby < 80) {
                    silverCuby --;
                    copperCuby +=100;
                    addItemInventory(267,1,0);
                    copperCuby -= 80;
                  }
                }
              }
              if(silverCuby >= 25) {
                if(copperCuby >= 80) {
                  silverCuby -= 25;
                  copperCuby -= 80;<commit_msg>Changed GOld to Gold changed l to ; < best error ever<commit_after>/*
  RPG Mod Pack- Cuby Coins
  Creator : REDevilLord & respectZ
*/

var copperCuby;
var silverCuby;
var goldCuby;

function deathHook(m,v) {
  if(m == getPlayerEnt()) {
    copperCuby = copperCuby + Math.floor(Math.random()*(100));
    var dd = Math.floor(Math.random()*(10));
    if(dd <= 7) {
      silverCuby++;
    }
    if(dd > 7) {
      goldCuby++;
    }
    if(copperCuby >= 100) {
      copperCuby = copperCuby - 100;
      silverCuby = silverCuby + 1;
    }
    if(silverCuby >= 100) {
      silverCuby = silverCuby - 100;
      goldCuby = goldCuby + 1;
    }
  }
}

function destroyBlock(x,y,z,side) {
  var d = getTile(x,y,z) {
    if(d == 1 || d == 4 || d == 14 || d == 15 || d == 16 || d == 56) {
      copperCuby = copperCuby + Math.floor(Math.random()*(100));
      var dd = Math.floor(Math.random()*(10));
      if(dd <= 7) {
        silverCuby++;
      }
      if(dd > 7) {
        goldCuby++;
      }
      if(copperCuby >= 100) {
        copperCuby = copperCuby - 100;
        silverCuby = silverCuby + 1;
      }
      if(silverCuby >= 100) {
        silverCuby = silverCuby - 100;
        goldCuby = goldCuby + 1;
      }
    }
  }
}

function procCmd(cmd) {
  var c = cmd.split(" ");
  if(cmd == "shop") {
    if(!c[1]) {
      clientMessage(" /shop buy <number> <amount");
      clientMessage(" /shop buy 1 5");
      clientMessage("Shop 1/69");
      clientMessage("1.Apple 20c");
      clientMessage("2.Steak 30c");
    }
    if(c[1]) {
      if(c[1] == "1") {
        clientMessage("3.Diamond Sword 3g 25s 80c");
      }
      if(c[1] == "buy") {
        if(c[2]) {
          if(c[2] == "3") {
            if(goldCuby < 3) {
              clientMessage("Dont Have Enough Gold");
            }
            if(goldCuby >= 3) {
              if(silverCuby < 25) {
                if(goldCuby >= 4) {
                  goldCuby--;
                  silverCuby+=100;
                  if(copperCuby >= 80) {
                    silverCuby -= 25;
                    copperCuby -= 80;
                    goldCuby -= 3;
                    addItemInventory(267,1,0);
                  }
                  if(copperCuby < 80) {
                    silverCuby --;
                    copperCuby +=100;
                    addItemInventory(267,1,0);
                    copperCuby -= 80;
                  }
                }
              }
              if(silverCuby >= 25) {
                if(copperCuby >= 80) {
                  silverCuby -= 25;
                  copperCuby -= 80;
{'fraction_non_alphanumeric': 0.149706457925636, 'fraction_numerical': 0.04579256360078278, 'mean_word_length': 1.4040451552210724, 'pattern_counts': {'":': 0, '<': 18, '<?xml version=': 0, '>': 27, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5671491', 'n_tokens_mistral': 2049, 'n_tokens_neox': 1841, 'n_words': 344}