I have created natural disasters in minecraft using python. It adds many disasters to your minecraft that happen randomly wherever you are in your world. The program randomly starts disasters on it’s own so you should keep moving to avoid getting hit.
|Disaster Name||Effects||Duration||Image||Extra Info|
|Earthquake||Creates random holes around you.||About 1 minute.||Effects have a range of about 15 blocks from the epicentre.|
|Sinkhole||Creates hole in the ground below you.||Instant.||The hole has random edges.|
|Meteor||Fires a meteor from the sky that crashes into the ground below you.||Instant.||The meteor will not stop until it either reaches the highest point of the world at your position or the program crashes.|
|Meteor shower||Fires down 10 meteors that crash into the ground around you.||10 meteors.||The best thing to do when this occurs is to stand still and wait, the meteors from this disaster only rarely crash into you.|
|Heatwave||Causes the area around you to die out.||50 – 90 seconds.||Only affects wood logs, leaves, water, and grass.|
|Geyser||Creates a column of water that starts at y -60 and ends 5 blocks above the highest point in your world.||25 seconds.||The flood left behind once it ends takes a while to dry up.|
|Eruption||Erects a massive structure using water and lava.||1 minute and 15 seconds.||Lava still remains on the inside.|
What this code requires to run
Example of how to manually start a disaster
To start a meteor at the position 0, 0 I would use:
Example of my code
def meteor(x, z): mc.postToChat('Meteor approaching!') y = 64 h = mc.getHeight(x, z) x -= (64 - h) meteorSound.play() while y > h: y -= 1 x += 1 mc.setBlocks(x-2, y-2, z-2, x+2, y+2, z+2, block.OBSIDIAN.id) time.sleep(0.05) mc.setBlocks(x-2, y-2, z-2, x+2, y+2, z+2, block.AIR.id) mc.setBlocks(x-2, y-2, z-2, x+2, y+2, z+2, block.LAVA.id) mc.setBlocks(x-1, y-1, z-1, x+1, y+1, z+1, block.OBSIDIAN.id)
the full code is in the download link below
To download my code click here.