Blockland Forums > Modification Help
Brick with Multiple Datablocks?
Nitramtj:
--- Quote from: [GSF]Ghost on March 22, 2012, 05:48:13 PM ---Really? How would it be scripted? I'm not a scripter, but maybe there is a way to parent the datablocks under a main datablock.
--- End quote ---
You wouldn't do anything like that, what you would do is make each separate piece its own brick. Then, have the onplant of one of those bricks go ahead and place the other bricks when you plant it. That only takes care of placing the bricks, you'd have to make methods that specially handle other events such as undoing or hammering.
Chrono:
--- Quote from: Nitramtj on March 22, 2012, 05:53:37 PM ---You wouldn't do anything like that, what you would do is make each separate piece its own brick. Then, have the onplant of one of those bricks go ahead and place the other bricks when you plant it. That only takes care of placing the bricks, you'd have to make methods that specially handle other events such as undoing or hammering.
--- End quote ---
Pretty much this.
Lamebro1:
It would be possible.
I think we can assign names to each face of a .blb, i'm not 100% sure though.
[GSF]Ghost:
--- Quote from: Nitramtj on March 22, 2012, 05:53:37 PM ---You wouldn't do anything like that, what you would do is make each separate piece its own brick. Then, have the onplant of one of those bricks go ahead and place the other bricks when you plant it. That only takes care of placing the bricks, you'd have to make methods that specially handle other events such as undoing or hammering.
--- End quote ---
Thanks Nitramtj. It seems rather complicated, but at least I know it's possible.
Electrk:
The problem is also getting someone willing enough to do it if you can't yourself.