| Blockland Forums > Modification Help |
| Problem with new fxdtsbrick |
| (1/1) |
| computermix:
Well, I have created a farming mod, and for all I know it works like a charm. For the most part. The problem is when I place a seed, it creates a new fxdtsbrick, so when I try to place it on someone else's bricks it continues to place itself rather than being canceled by not having trust. Here's a snip of code: --- Code: ---package CottonPackage { function fxDTSBrick::onPlant(%brick) { parent::onPlant(%brick); if(%brick.getDatablock().isCottonSeed) { %SeedPos = %brick.position; if(isObject(%brick)) { %brick.schedule(5000, "Grow", %SeedPos); %brick.schedule(5000, "delete"); } } } } }; --- End code --- So when you place it, it verifies if its a seed or not, then calls the grow function which makes it... grow. Is there a way to verify if what your placing your seed on has your trust or not? |
| Navigation |
| Message Index |