Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Asset Forge

Create your own 3D models and 2D sprites! · By Kenney

Multi Block Add Functionality

A topic by ITDominator created Jun 05, 2022 Views: 107
Viewing posts 1 to 1
(2 edits)

Is there an option to add multiple blocks by pressing and holding the mouse and expanding it to cover an area? In some instances, I don't want to scale a block due to its texture type/style and holding shift and adding one at a time is painfully slow if you want to make a larger scene.


Edit:

Well, I guess I found a small work around using the scripting engine. But, using it brought up other issues. One, the API documentation is unclear about the coordinate system used which caused me to have to test scripts until I figured it out. Two, this solution aint great because it requires me knowing exactly what size I want beforehand. Three, this is mostly my fault due to not reading thoroughly, but, the forge.getBlockType() says it "Returns currently selected block type as string, if multiple are selected returns the first entry." I ended up dealing with an index out of bounds issue because I thought the "selection" referenced was the block selection window on the left and not the world selection. But, it's actually the world selection. Again, yes, this is mostly my fault; but, it would be nice to have an API option that gets the selected block  from that menu too.


Edit2:

It would be nice to see what x, z coordinates the mouse is pointing at on the grid if only to help when writing a script that places blocks at given locations.