Custom Wither Spawning

Started by Electro94 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Aug 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Custom Wither Spawning

I'm making a mod that, along with other things, changes how the wither spawns. Basically, instead of using four soul sand and three wither skulls, it replaces the center soul sand with a different block (like how it uses a command block in the middle for Minecraft Story Mode's wither storm). Is there any way to change the blocks/ order of blocks needed to spawn the wither in base MCreator? Or would I need a plugin? Or would I need to dig into the game's code? Thanks!

Joined Nov 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I know how to do that! First…
Mon, 08/11/2025 - 20:14

I know how to do that!

First, you need to make the center block an entity, and then use this code:

execute if block ~~~ yourmodid:block_collision if block ~ ~-1 ~ soul_sand if block ~-1 ~ ~ soul_sand if block ~1 ~ ~ soul_sand if block ~1 ~1 ~ wither_skeleton_skull if block ~-1 ~1 ~ skull if block ~ ~1 ~ wither_skeleton_skull if block ~1 ~-1 ~ air if block ~-1 ~-1 ~ air run summon yourmodid:your_mob_here ~ ~-1 ~~~",
						"execute if block ~~~ yourmodid:block_collision if block ~ ~-1 ~ soul_sand if block ~-1 ~ ~ soul_sand if block ~1 ~ ~ soul_sand if block ~1 ~1 ~ skull if block ~-1 ~1 ~ wither_skeleton_skull if block ~ ~1 ~ wither_skeleton_skull if block ~1 ~-1 ~ air if block ~-1 ~-1 ~ air run playsound optionalsoundhere @a ~~~",
						"execute if block ~~~ yourmodid:block_collision if block ~ ~-1 ~ soul_sand if block ~-1 ~ ~ soul_sand if block ~1 ~ ~ soul_sand if block ~1 ~1 ~ wither_skeleton_skull if block ~-1 ~1 ~ wither_skeleton_skull if block ~ ~1 ~ wither_skeleton_skull if block ~1 ~-1 ~ air if block ~-1 ~-1 ~ air run fill ~-1 ~-1 ~ ~1 ~1 ~ air destroy"

When doing this in-game, make sure the structure is built with your custom block in the center. I am using this code in my Wither Storm Mod, but I'm sharing it with others like you.

Joined Nov 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Optionally, if you want, you…
Mon, 08/11/2025 - 20:18

Optionally, if you want, you can make your own Wither Storm mod with this code I shared with you.