Started by
Mr. Pixel
on
Topic category: Help with Minecraft modding (Java Edition)
Hi! So, I wanted to make a block that would spawn lava when you broke it, but I couldn't figure out how to do that. Could anybody help me? I want to make it so a lava source block would replace the block when it breaks.
Edited by Mr. Pixel on Tue, 09/07/2021 - 00:47
I suggest you check our tutorials collection playlist on our YouTube channel which contains many examples and tutorials that can help you get started with MCreator: https://www.youtube.com/playlist?list=PLAeL-oIFIEngE6jRgFYeFMfuj8WQsO3Ei
I actually already am started, I just wanted to know how to do this particular part.
In the triggers section click "when block is is destroyed with tool" procedure, then click the "Block Management" tab and use the "Replace block at x, y, z" in that procedure click the blank box and it will show you a menu, click the lava. and boom, hope it helps! It only works in survival.
Uhh, I couldn't find the "when block is is destroyed with tool" trigger, I just found the "when block destroyed by player" trigger. When I try to put the code above in the "when block destroyed by player" trigger, it does not work.