So I was working on a Minecraft game and I was wondering how to put a smaller “structure tilemap” into the larger “world tilemap” so it would have stuff like houses and portals and whatnot
Is this what you mean?
(not made by me; @richard made it for someone else)
Use the doors blocks in tile util or use arrays to organise them and store the tile maps and connections. You can also manually make different tiles and code them in with overlap blocks
Hi, to my knowledge, what you’re looking for is makecode’s tilemaps extension. It contains a lot of new blocks, including one to connect tilemaps by a “door”, essentially allowing you to create the houses and portals you mentioned. Also, depending on what you’ve already implemented or what your plans are for allowing the player to move between adjacent tilemaps, I’d recommend checking out Richard’s arcade-overworld extension, which makes this kind of thing much more intuitive. It can be found at github.com/riknoll/arcade-overworld
Hope this helps!
The color-coded tilemaps extension works great for this, as you can just draw the house image onto map the world image with 1 block. Otherwise you would need nested for each loops to run through a tilemaps one by one and place each tile on a position on the main map.
I feel nest loops would be easier lol
The default tilemap utility extension has a very handy “get tile at location in specific tilemap” block. You could use this to “scan” tilemaps and then place them at a location within a separate larger tilemap.