| Blockland Forums > Modification Help |
| Please test this Plant Anywhere script I made |
| (1/3) > >> |
| Tendon:
I made a script that allows me to plant bricks pretty much anywhere, including inside of each other. It works because: [x] Badspot added the ability to change brick datablocks after they've been planted [x] I can make bricks that have no brick grid collision, so they can be placed inside of other bricks. [x] I can overwrite the servercmdplantbrick() function to allow for floating bricks. For ease of use/coolness factor: [x] I made killBrick() delete the brick, to avoid chainkills [x] I made it give an overlap error if you plant the same exact brick in the same position, to avoid accidental doubleplanting :P Here's a picture of a 16x cube, inside of a 32x cube, inside of a 64x cube, with some 4x cubes thrown in there as well. And here's a download link: v6 - Script_PlantAnywhere Bad things/confirmed issues: The console is spammed with error messages on initial startup No more cool animation when bricks are destroyed Undo is broken No brickplant sound plays when planting No brickkill sound plays when destroying a brick Saving, then loading causes the bricks to load 1000 units higher than they should. |
| phflack:
since you increased the ground height, do loaded bricks spawn deep underground or did you also change the load offset? and does saving and loading work with overlapping bricks? |
| Blockhead31735:
Will try this out later but what happens when you use it then disable it and then load a save that used it? |
| Tendon:
--- Quote from: phflack on September 05, 2017, 06:00:17 AM ---since you increased the ground height, do loaded bricks spawn deep underground or did you also change the load offset? and does saving and loading work with overlapping bricks? --- End quote --- The load offset changes temporarily while loading bricks. Saving and- ... oh. ok well loading works. ... on to the bug list it goes. --- Quote from: Blockhead31735 on September 05, 2017, 08:16:50 AM ---Will try this out later but what happens when you use it then disable it and then load a save that used it? --- End quote --- The save will be 1000 units up, and any overlapping bricks will not load correctly. Fixed everything except the startup console spam and the missing brickkill animation. Saving and loading with the add-on enabled should work correctly. |
| Super Suit 12:
why not fakekill, then delete bricks when you killbrick(); something? |
| Navigation |
| Message Index |
| Next page |