|
| 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
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 19 Apr 2014 04:44 PM |
| is there an error? If not, wrong forum |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 19 Apr 2014 04:45 PM |
"If not, wrong forum" Go to IMT to be specific. |
|
|
| Report Abuse |
|
|
|
| 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
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
| |
|
|
| 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 |
|
|
| |
|
|
| 19 Apr 2014 04:58 PM |
| Meh. It's here, and only a forum moderator can take it down. |
|
|
| Report Abuse |
|
|