generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

So I made this really nice script

Previous Thread :: Next Thread 
XanthicDragon is not online. XanthicDragon
Joined: 19 Jul 2011
Total Posts: 2780
19 Apr 2014 04:43 PM
I decided I'd show off my work here since it is a script. It's for those Minecrafters out there!
I wrote a full script that created the seed for a superflat world. You can check it out on my profile. What I did to get the IDs and such working properly was the rawget method. An example: I have a table named Weekdays with 5 string variables of Monday-Friday. I have a for loop: for i = 1, 5 do. Inside of that for loop I put: print(rawget (Weekdays, i)) and my console says this:

Monday
Tuesday
Wednesday
Thursday
Friday

I used that to line up 3 different tables.

BlockIDs = { --These are the blocks. Put the IDs seen in the chart below. Don't use items! (i.e diamond, spider eye, etc)
--
7, --Bedrock
0, --Air
1, --stone
2,--Grass
}

BlockQuantities = {
--These correspond with the above. This is how many of the block there is in the layer.
1, --1 of above's first variable, 7 in this case
10, --10 air spaces
4, --and so on
1
}

HasBlockData = true --If true, you can use ID's like 1:3. Remember that this is set up like BlockQuantities where the first number applies to the first ID in BlockIDs! Put NULL if you don't want data for that block
BlockData = {
NULL,
NULL,
3, --Have the stone be Diorite
NULL
}

I used that series of tables above, and the script returned....
2;1x7,10x0,4x1:3,1x2;1

If you put that into the customized flat seed box, it will do what I set up. How cool?

Post your thoughts below.
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
19 Apr 2014 04:44 PM
is there an error? If not, wrong forum
Report Abuse
XanthicDragon is not online. XanthicDragon
Joined: 19 Jul 2011
Total Posts: 2780
19 Apr 2014 04:45 PM
Meh, I worked so long on learning and getting this done I was too tired to find the right forum D':

No errors.
Report Abuse
lampwnage121 is not online. lampwnage121
Joined: 20 Oct 2012
Total Posts: 4285
19 Apr 2014 04:45 PM
"If not, wrong forum"
Go to IMT to be specific.
Report Abuse
XanthicDragon is not online. XanthicDragon
Joined: 19 Jul 2011
Total Posts: 2780
19 Apr 2014 04:48 PM
No lampownage. He did a good job realizing I have a brain that can use its skills to locate text.
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
19 Apr 2014 04:49 PM
"that can use"
Hello
Report Abuse
lampwnage121 is not online. lampwnage121
Joined: 20 Oct 2012
Total Posts: 4285
19 Apr 2014 04:50 PM
"He did a good job realizing I have a brain that can use its skills to locate text."
/Known
It`s the lack of initiative that cause you to post here. Aslo, If you`re going to spell my name,Try to get it right.
Report Abuse
lampwnage121 is not online. lampwnage121
Joined: 20 Oct 2012
Total Posts: 4285
19 Apr 2014 04:51 PM
Also*
Derpe.
Report Abuse
XanthicDragon is not online. XanthicDragon
Joined: 19 Jul 2011
Total Posts: 2780
19 Apr 2014 04:58 PM
Meh. It's here, and only a forum moderator can take it down.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image