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.
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.:
//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.:
//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.