Started by
Xx_Develater24_xX
on
Topic category: Help with Minecraft modding (Java Edition)
So I've recently been working on a mod that lets you obtain and break illegal blocks in Survival such as: Command Blocks, Structure Blocks, etc. And I was stumped. I made the way to obtain the blocks, but now I need help knowing how to make unbreakable and unplaceable blocks placeable and breakable. Do you have any tips, suggestions, or even ways to do this?
It is possible if you make and item that when you right click with it on a block pos, it will place the illegal block. The illegal blocks have no item form, because they are some really weird like Piston Head that don't have a purpose, but they are funny and cool.
I recently remembered that there is even easy way to do it. Just make a block with the texture of the illegal block you want to make like a real block, then go in Procedures -> When block placed and click Add new procedure. In the procedure drag the block - Replace block with {block} and replace the block with example; Portal Block.