Started by
DanilaWiedzmin
on
Topic category: Help with Minecraft modding (Java Edition)
Hello to all who read this forum message. I need help to create a random event. I want to make a falling meteor from high on any place and any biome. And with random chance, in example 1.3% at day, 4% at night. After falling they make small crater and 2-5 meteor blocks remain in it. I already have my own meteor block.
In example i can say if u remember mod who named "Falling Meteors!"
Please help, how can i do it? Sorry for bad English!
I did this before in my mod, but it was completely random without percentage chance.
My falling meteor are custom entities that spawn naturally (like how normal mobs spawn) but very rarely. As soon as they are spawned, they get teleported hundreds of block above the surface block.
Also made it have a chance of exploding mid-air like it's burning up to make it even rarer. Basically made an if statement on update tick of the meteor entity if random chance of #% it despawns and spawns an explosion.