Oct 21, 2013

Programmable Dirt

Sorry I haven't been on in a while. I have been on this website called Planet Minecraft, or PMC. Some of you may know me as CPUNerd01 (CPUNerd123) or the guy who made CPUPack. Yeah, its pretty awesome being up there. But finally, after so long, I will share some BATCH CODE!!! This one allows you to make a MUD with one tier. A MUD is not just dirt with water (and how would you program dirt?) but a type of RPG like:

So and so happened. What do you do?

Choice A
Choice B
Choice C

Today I will be showing you how to do this using batch code. If you look in some of "The Archived Files" *hint hint* it will show you. Or, Rather, Codernet (don't mind him) will show you.

The code is: (GET READY)


@echo off
title Minecraft - Batch Edition
color B7
echo Minecraft Batch Edition - Copyright Mojang
pause
set /a brainpower==1
set /a strength==1
set /a pork==0
set /a energy==10
:beginning
cls
echo(
echo(
echo You awaken in a strange world
echo made up completely of block-
echo like figures shaped and textured
echo like real things, such as animals.
echo(
echo What do you do?
echo(
echo(
echo Wisdom = %brainpower%
echo Strength = %strength%
echo Porkchops = %pork%
echo Energy = %energy%
echo(
echo Attempt to study the terrain- A
echo(
echo Walk around punching pigs - B
echo(
echo Make a dirt house, you n00b - C
set /p input=
if %input%==A goto studyworld
if %input%==B goto pigpunch
if %input%==C goto noobhouse
goto beginning
:studyworld
cls
echo(
echo(
echo Studying the terrain...
ping localhost -n 5 >nul
set /a brainpower %brainpower%+3
echo You found out many more facts about the terrain!  Plus 3 wisdom.
pause >nul
goto beginning
:pigpunch
cls
echo(
echo(
echo Punching pigs... *squee!*
ping localhost -n 8 >nul
set pork=%pork%+2
echo That took longer than expected. You got 2 pork.
pause >nul
goto beginning
:noobhouse
cls
if %energy%=<5 goto noneenergy
echo(
echo Wow. You really just did that. Well then, get on with it.
pause >nul
echo Building the house...
ping localhost -n 20 >nul
set /a strength==%strength%+5
set /a energy==%energy%-5
echo(
echo Looks like the house-building bulked you up. Awsum. Don't get tired, though.
pause >nul
echo OH NOES! A creeper blew up your house! Better build it again.
pause >nul
goto beginning
:noneenergy
cls
echo You are too tired to work. Buy the full version to access more stats and raise them infinitely! *almost*
pause >nul
goto beginning


I will explain all of this in the Multi-Tier post that I will do a little later. Note: There is a small bug with 3 and the variables that I am still working on. Please ignore those.

No comments:

Post a Comment