mcMooshrooms.js (2179B)
1 var br = ""; 2 3 function nameGen() { 4 var nm1 = ["Agaricus", "Amani", "Amanita", "Amma", "Angel", "Armillaria", "Auricularia", "Bello", "Boletus", "Bovista", "Calbovista", "Calvatia", "Cap", "Cappie", "Celium", "Clitocybe", "Clitopilus", "Coprinus", "Cordie", "Cordyceps", "Cremini", "Cremmie", "Death Cap", "Enoki", "Entoloma", "Flammulina", "Foongie", "Fungi", "Gomphus", "Grifola", "Gyromitra", "Helvella", "Hericium", "Hydnum", "Hygrophorus", "Inky", "Lacta", "Lactarius", "Lacti", "Lactius", "Lecci", "Leccinum", "Lentinus", "Lepiota", "Lepista", "Lycoperdon", "Marasmius", "Mold", "Moldie", "Moocelium", "Moold", "Mooldie", "Mooshie", "Morchella", "Morel", "Mushie", "Mushmush", "Mycelium", "Mycey", "Nameko", "Oyster", "Para", "Paramoo", "Pathie", "Pathogen", "Phlogiotis", "Pholiota", "Pleurotus", "Pluteus", "Poly", "Polyozellus", "Polypilus", "Polypore", "Polyporus", "Porcini", "Pore", "Porta", "Portabello", "Puffball", "Ramaria", "Roomba", "Rozites", "Russula", "Shaggy", "Shiitake", "Shimeji", "Shroom", "Shroomie", "Shroomoo", "Sparassis", "Spore", "Stalk", "Stew", "Steward", "Stewie", "Stinkie", "Stropharia", "Suillus", "Terfezia", "Thogennie", "Toad", "Toads", "Tremella", "Truffle", "Truffles", "Tuber", "Volvariella"]; 5 var element = document.createElement("div"); 6 element.setAttribute("id", "result"); 7 nTp = Math.random() * 50 | 0; 8 if (nTp === 0 && first !== 0 && triggered === 0) { 9 nTp = Math.random() * 5 | 0; 10 if (nTp === 0) { 11 creeper(); 12 } else if (nTp < 3) { 13 herobrine(); 14 } else { 15 enderman(); 16 } 17 } else { 18 for (i = 0; i < 10; i++) { 19 rnd = Math.random() * nm1.length | 0; 20 nMs = nm1[rnd]; 21 nm1.splice(rnd, 1); 22 br = document.createElement('br'); 23 element.appendChild(document.createTextNode(nMs)); 24 element.appendChild(br); 25 } 26 first++; 27 if (document.getElementById("result")) { 28 document.getElementById("placeholder").removeChild(document.getElementById("result")); 29 } 30 document.getElementById("placeholder").appendChild(element); 31 } 32 }