Author Topic: [tutorial]Making simple bricks.A basic step by step guide  (Read 1299 times)

In this topic,I will teach you how to create simple bricks easily.If you want to create water and stuff in the special tab,this is not for you.

                                  Here are the steps
1.Open notepad
2.type 1 15 3(this creates a 1 by 15 BRICK)
3.Below it,type BRICK,even if it's a plate
Now it should look like this:

1 15 3
BRICK

4.Go to file - save as - mybrick.blb  It should now be a .blb file,not a text file.
5.now make a cs file and name it server
6.Now for the code.This is a pretty simple code to make

Note:Make sure where it says BrickFile = "./mybrick.blb";  It says the name of the .blb file.It doesn't have to be mybrick.blb in the code,just what the name of the .blb file is named.

Code: [Select]
datablock fxDTSBrickData (brick1x15x3Data)
{
   BrickFile = "./mybrick.blb";
   Category = "Bricks";
   SubCategory = "1x";
   UiName = "1x15x3";
   iconName = "";
};

7.Exit the file and hit save when it asks you to.
8.Make a new text file and call it description.
9.type in stuff so it looks like this:

Title: Yourbricknamehere
Author: Yournamehere
Your description here

10.Make a zip file
11.Name it Brick_testbrick
12.Move the .blb file,the description.txt,and the Cs file to the zip file
13.Move the zip to the add-ons folder
                                              IMPORTANT!!!
Make sure you check your brick in the add-ons selector.People usually forget this and spend an hour tampering with the script to learn nothing was wrong.

Now press the b button in-game.Did it show up?Post any problems with this tuturial here.



By the way, If you have any additions to making a brick(ex. water bricks)pm the tuturial and I will post it,giving 100% of the credit for that specific one.Hope this helped anyone out there who wants to start scripting.This Is in my opinion the one of the most basic script to make.

P.S. You can make a little note almost anywhere in the script. e.x.:
Code: [Select]
//Don't release this brick,already made by Annoying Orangeetfan

datablock fxDTSBrickData (brick1x15x3Data)
{
   BrickFile = "./mybrick.blb";
   Category = "Bricks";
   SubCategory = "1x";
   UiName = "1x15x3";
   iconName = "";
};

If you need more room when you maximise it,like it goes into another row,you need another // at the beginning of the row e.x.:


Code: [Select]
//I still need to test.Maybe after a game of basktetball or something.Ok, I'll play basketball then I'll play
//a game of baseball

datablock fxDTSBrickData (brick1x15x3Data)
{
   BrickFile = "./mybrick.blb";
   Category = "Bricks";
   SubCategory = "1x";
   UiName = "1x15x3";
   iconName = "";
};

As you can see,these can be used as reminders when you're going to take a break.You don't have to get rid of them when testing,though.You can keep them in there and it will still read the script.
« Last Edit: June 04, 2009, 10:11:13 AM by trumpetfan »

Didn't you just learn how to make bricks your self?

I just looked at another script to learn how to,and when I asked for help on why my brick wasn't showing up,space guy said i need a .blb file with the contents:

1 15 3
BRICK

So I had some help.
But if you mean just like yesterday,yeah,pretty much.
« Last Edit: May 24, 2009, 01:40:55 PM by trumpetfan »

Ummm. I'm sure monkeys could figure this out. This tutorial is not needed.


Ummm. I'm sure monkeys could figure this out. This tutorial is not needed.



This is for people who are too dumb to look into an original code of brick.
« Last Edit: June 03, 2009, 06:11:35 PM by trumpetfan »

This is for people who are too dump to look into an original code of  brick.
I'm sure if someone were to make a brick they would copy the brick file thern paste it in their zip while doing this tutorial.

http://bduhq.com/phpBB3/viewtopic.php?f=8&t=85
is a tutorial 4 bricks also i dont recomend releasing that brick :cookieMonster:

http://bduhq.com/phpBB3/viewtopic.php?f=8&t=85
is a tutorial 4 bricks also i dont recomend releasing that brick :cookieMonster:
I would't recommend making it either.
I never knew there was another tutorial,too.
« Last Edit: May 22, 2009, 09:27:49 PM by trumpetfan »