Author Topic: Where are the cs files for base bricks.  (Read 927 times)

I have looked very hard and I can only find the blb and png files. Where can I find them, or is there some way of telling my mod how to link to the data of a certen brick.

allGameScripts.cs.dso, which is a compiled file and you cannot access the source of it.

hmm I got it open but it was filled with lemon chatter, you don't happen to know what the data for the 2x2 brick is?

...What?
There is no 'code' for a brick file. It uses .blb files and the code is automatically generated in the game scripts. For a 2x2 Brick you'd use this line in a .blb file:
Code: [Select]
2 2 3
BRICK

Wrong, you need code to make the brick datablock.  The .blb file alone does nothing.

I thought he was asking for the code of the .blb.  You can find out how to do the datablock code in various brick packs.

I'm not trying to make a brick, I am makeing a mod and it has a tool that only works on the 2x2 brick. I just want to find out what the (brick****data) is.

brick2x2Data

Look at a 2x2 brick.
/getid
echo(ID.getDatablock().getName());

/getid is a seriously useful tool. It's like the Mission Editor, but it doesn't break respawning.

making bricks is easy, i made a 256x cube that lags the computer when you hammer it. people say "use big bricks so there will be less lag" well there is a point where it would be better to use smaller bricks.

/getid is a seriously useful tool. It's like the Mission Editor, but it doesn't break respawning.
I know this was bumped, but:

v11 has fixed this :D

But the Wrench doesn't give me brick IDs any more :(