Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
- "http://www.w3.org/TR/html4/strict.dtd">
- <html>
- <head>
- <meta http-equiv="content-type"
- content="text/html;charset=utf-8">
- <title>What should I build? Minecraft idea generator!</title>
- <link rel="stylesheet" href="http://build-what.com/style.css" media="all">
- <link rel="icon" href="http://build-what.com/favicon.ico">
- </head>
- <body>
- <div class="result">
- <?php
- $open_line = file("arrays/open_line.txt", FILE_IGNORE_NEW_LINES);
- $size = file("arrays/size.txt", FILE_IGNORE_NEW_LINES);
- $many = file("arrays/many.txt", FILE_IGNORE_NEW_LINES);
- $build = file("arrays/build.txt", FILE_IGNORE_NEW_LINES);
- $mats = file("arrays/mats.txt", FILE_IGNORE_NEW_LINES);
- $biome = file("arrays/biome.txt", FILE_IGNORE_NEW_LINES);
- $decormat = file("arrays/decormat.txt", FILE_IGNORE_NEW_LINES);
- $embelish = file("arrays/embelish.txt", FILE_IGNORE_NEW_LINES);
- $embelishloc = file("arrays/embelishloc.txt", FILE_IGNORE_NEW_LINES);
- $feature = file("arrays/feature.txt", FILE_IGNORE_NEW_LINES);
- $nearby = file("arrays/nearby.txt", FILE_IGNORE_NEW_LINES);
- $by = file("arrays/by.txt", FILE_IGNORE_NEW_LINES);
- $statue = file("arrays/statue.txt", FILE_IGNORE_NEW_LINES);
- shuffle($open_line); $open_ran = $open_line[1];
- shuffle($size); $size_ran = $size[1];
- shuffle($many); $many_ran = $many[1];
- shuffle($build); $build_ran = $build[1];
- shuffle($mats); $mats_ran = $mats[1];
- shuffle($biome); $biome_ran = $biome[2];
- shuffle($decormat); $decormat_ran = $decormat[1];
- shuffle($embelish); $embelish_ran = $embelish[1];
- shuffle($embelishloc); $embelishloc_ran = $embelishloc[1];
- shuffle($feature); $feature_ran = $feature[1];
- shuffle($nearby); $nearby_ran = $nearby[1];
- shuffle($by); $by_ran = $by[1];
- shuffle($statue); $statue_ran = $statue[1];
- $output = array (
- "$open_ran $size_ran $build_ran out of $mats_ran. Put it $by_ran $biome_ran, and make sure there's a $feature_ran $nearby_ran.\n <br><br> \n There should be a $embelish_ran $decormat_ran $embelishloc_ran"
- ,
- "$open_ran $size_ran $build_ran out of $mats_ran. Put it $by_ran $biome_ran, and make sure there's a $feature_ran $nearby_ran.\n <br><br> \n There should be a $embelish_ran $decormat_ran $embelishloc_ran"
- ,
- "$open_ran $many_ran $build_ran" . "s out of $mats_ran. Put them $by_ran $biome_ran or " . array_shift($by) . " " . array_shift($biome) . ", and make sure there's a $feature_ran $nearby_ran.\n <br><br> \n There should be a $embelish_ran $decormat_ran $embelishloc_ran."
- ,
- "$open_ran $many_ran $build_ran" . "s out of $mats_ran. Put them $by_ran $biome_ran or " . array_shift($by) . " " . array_shift($biome) . ", and make sure there's a $feature_ran $nearby_ran.\n <br><br> \n There should be a $embelish_ran $decormat_ran $embelishloc_ran and maybe $size_ran " .array_shift($build) . " in the distance."
- ,
- "$open_ran $size_ran statue of $statue_ran out of $mats_ran."
- ,
- "$open_ran $size_ran statue of $statue_ran holding " . array_shift($statue) . ", out of $mats_ran. Make sure it's $by_ran $biome_ran!"
- );
- shuffle($output); $output = $output[1];
- // and here we are!
- echo $output
- ?>
- </div>
- <div class="footer">Made by Nettle. Send suggestions to <a href="mailto:nettle@build-what.com/?subject=MC Idea Generator">nettle@build-what.com</a> : <a href="/about">About</a></div>.
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement