Blockland Forums > Modification Help
phflack's thread of questions
Treynolds416:
--- Quote from: phflack on June 22, 2012, 04:07:44 PM ---I was unaware that baseplates could be floating
--- End quote ---
They can't
--- Code: ---package floatingBricks
{
function fxDTSBrick::isBaseplate(%brick)
{
if(%brick.isFloatingBaseplate)
return true;
else
return parent::isBaseplate(%brick)
}
function secretFloatPlanting()
{
//wont tell you how to actually do it, on the forums
//after the brick has been planted in the air...
if(%brick.getNumUpBricks() + %brick.getNumDownBricks() == 0)
%brick.isFloatingBaseplate = true;
}
};
activatePackage(floatingBricks);
--- End code ---
This makes it so the first brick that has been planted that doesn't touch any other bricks to become a psuedo-baseplate
Lugnut:
--- Quote from: Treynolds416 on June 22, 2012, 04:04:36 PM ---Lug, did you change your name?
--- End quote ---
--- Quote from: Lugnut on June 20, 2012, 02:22:07 PM ---oh
and does anyone notice anything different about me
--- End quote ---
--- Quote from: Lugnut on June 20, 2012, 02:39:27 PM ---i got my 1206 surgically removed by badspot :)
he so nice
--- End quote ---
--- Quote from: curiosblockland6 on June 22, 2012, 03:52:53 PM ---My name is pretty stupid, I wish I could change it.
--- End quote ---
--- Quote from: Eksi on June 22, 2012, 03:54:36 PM ---Try a message asking Badspot to do it. He changed mine from xC a long time ago.
--- End quote ---
--- Quote from: Lugnut on June 22, 2012, 03:55:36 PM ---he removed the numbers from the end of mine a few days ago, all i had to do was ask nicely
--- End quote ---
--- Quote from: Treynolds416 on June 22, 2012, 04:04:36 PM ---phlack, here's my suggestion: package isBaseplate (I think it's a function) and have certain floating bricks act as baseplates, set them to a variable and have isBaseplate return true.
--- End quote ---
%brick.isBaseplate is a variable/tagged field i think, %brick.dump();?
Treynolds416:
--- Quote from: Lugnut on June 22, 2012, 04:16:22 PM ---%brick.isBaseplate is a variable/tagged field i think, %brick.dump();?
--- End quote ---
that's even easier then, set it to true if it's a psuedo-baseplate
phflack:
do you guys understand what I'm asking?
it seems that you guys think that I want to turn a brick into a baseplate
I actualy want to make a floating brick that acts as if it is grounded, so wanding something on it won't break it
I thought the OP was clear enough
Treynolds416:
--- Quote from: phflack on June 22, 2012, 04:29:04 PM ---do you guys understand what I'm asking?
it seems that you guys think that I want to turn a brick into a baseplate
I actualy want to make a floating brick that acts as if it is grounded, so wanding something on it won't break it
I thought the OP was clear enough
--- End quote ---
Setting a brick as a baseplate effectively grounds it. If it doesn't work, then you might need to rewrite .getDistanceFromGround()