offline-fantasy-name-generators

Offline version of www.fantasynamegenerators.com
git clone https://git.neptards.moe/neptards/offline-fantasy-name-generators.git
Log | Files | Refs | README

mcSnowGolems.js (2199B)


      1 var br = "";
      2 var triggered = 0;
      3 
      4 function nameGen() {
      5     var nm1 = ["Alaska", "Laska", "Arcti", "Arctic", "Avala", "Avalan", "Avalanche", "Beanie", "Blanco", "Blizz", "Blizzard", "Blizzy", "Boots", "Brainfreeze", "Chill", "Chillis", "Chilly", "Cool", "Blockie", "Blockhead", "Coolio", "Cryo", "Cryogen", "Crystal", "Cube", "Cubit", "Drift", "Driffie", "Firn", "Flaik", "Flakie", "Flayke", "Flake", "Flakey", "Fleece", "Fleecey", "Flo", "Flurris", "Flurry", "Frappe", "Freeze", "Frozo", "Freezie", "Fridge", "Fridgy", "Friggy", "Frose", "Fross", "Frost", "Frosty", "Frozo", "Frozone", "Glace", "Glacia", "Glacier", "Glacis", "Glayze", "Gliss", "Glitz", "Hail", "Haile", "Hailey", "Hayle", "Heat", "Heater", "Hiber", "Hibernate", "Holly", "Icicle", "Icy", "Igloo", "Iciclis", "Iglis", "Jolly", "Jon", "Lanche", "Melte", "Molte", "Mittens", "Neige", "Nippy", "Olaf", "Plow", "Pola", "Pole", "Pompom", "Powder", "Pumpkin", "Rime", "Rimy", "Scarf", "Shiver", "Sleat", "Sleet", "Slush", "Slushy", "Snift", "Sno", "Snowball", "Snowcone", "Snowelle", "Snowflake", "Snowie", "Snowly", "Solstice", "Solsti", "Sorbet", "Sorbie", "Sorbette", "Sparkle", "Sticks", "Stickle", "Sweater", "Taiga", "Thaw", "Thawe", "Tinsel", "Toboggan", "Tundra", "Twinkle", "Winter", "Yce"];
      6     var element = document.createElement("div");
      7     element.setAttribute("id", "result");
      8     nTp = Math.random() * 50 | 0;
      9     if (nTp === 0 && first !== 0 && triggered === 0) {
     10         nTp = Math.random() * 5 | 0;
     11         if (nTp === 0) {
     12             creeper();
     13         } else if (nTp < 3) {
     14             herobrine();
     15         } else {
     16             enderman();
     17         }
     18     } else {
     19         for (i = 0; i < 10; i++) {
     20             rnd = Math.random() * nm1.length | 0;
     21             nMs = nm1[rnd];
     22             nm1.splice(rnd, 1);
     23             br = document.createElement('br');
     24             element.appendChild(document.createTextNode(nMs));
     25             element.appendChild(br);
     26         }
     27         first++;
     28         if (document.getElementById("result")) {
     29             document.getElementById("placeholder").removeChild(document.getElementById("result"));
     30         }
     31         document.getElementById("placeholder").appendChild(element);
     32     }
     33 }