How to replace vanila block with custom block when burned

Started by kepitsa on

Topic category: Help with modding (Java Edition)

Last seen on 08:08, 2. Jul 2024
Joined Jun 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to replace vanila block with custom block when burned
Sun, 06/30/2024 - 23:21 (edited)

V: Mcreator 2023.4
M.V:1.20.1

Hello MCreator Community,

I am working on a mod for Fabric that is intended to replace burned leaves with a custom block. The mod changes do not seem to take effect in the game, and nothing happens when leaves are supposed to burn and be replaced.

Here's what I've done:
1. Set the trigger to "Block destroyed".
2. Checked if the destroyed block is leaves.
3. Checked for the presence of fire in adjacent blocks.
4. Supposed to replace the block with custom block if both conditions are met.

However, even with these conditions seemingly met, the leaves just disappear without being replaced by the custom block as if the mod isn't active or the changes aren't being recognized by the game.

Could anyone offer insights into why the mod might not be functioning as expected? If anyone has encountered similar issues or has suggestions on troubleshooting steps, please share. Additionally, if you could provide screenshots of your setups that work, it would help me understand what might be going wrong in my mod.

Thank you for your help!

Edited by kepitsa on Sun, 06/30/2024 - 23:21