Skip to content

Commit 3563ddf

Browse files
authored
Add files via upload
1 parent 593606e commit 3563ddf

6 files changed

Lines changed: 155 additions & 0 deletions

File tree

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Roll a number between 1 and 1000
2+
execute store result score #chance corrupt_rng run random value 1..1000
3+
4+
# If the roll is less than or equal to your frequency setting, trigger an event
5+
execute if score #chance corrupt_rng <= frequency corrupt_settings run function corruptor:trigger_event
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
scoreboard objectives add corrupt_rng dummy
2+
scoreboard objectives add corrupt_settings dummy
3+
4+
# This is your frequency out of 1000.
5+
# 50 means a 5% chance every tick (roughly once a second).
6+
# 1000 means an event happens EVERY SINGLE TICK.
7+
scoreboard players set frequency corrupt_settings 50
8+
9+
tellraw @a {"text":"Corruptor Active! Change frequency with: /scoreboard players set frequency corrupt_settings <number>","color":"red"}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
execute as @a at @s run function corruptor:chaos
Lines changed: 129 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,129 @@
1+
# Roll WHICH event happens (1 to 115)
2+
execute store result score #event corrupt_rng run random value 1..115
3+
4+
# --- FIXED CATEGORIES ---
5+
execute if score #event corrupt_rng matches 1 run fill ~-3 ~-3 ~-3 ~3 ~3 ~3 magma_block replace dirt
6+
execute if score #event corrupt_rng matches 2 run clone ~-3 ~-3 ~-3 ~3 ~3 ~3 ~ ~15 ~
7+
execute if score #event corrupt_rng matches 3 run setblock ~ ~12 ~ anvil
8+
execute if score #event corrupt_rng matches 4 run fill ~-4 ~-4 ~-4 ~4 ~4 ~4 slime_block replace stone
9+
execute if score #event corrupt_rng matches 5 run spreadplayers ~ ~ 1 5 false @s
10+
execute if score #event corrupt_rng matches 6 run fill ~-2 ~-1 ~-2 ~2 ~2 ~2 cobweb replace air
11+
execute if score #event corrupt_rng matches 7 run fill ~-2 ~-10 ~-2 ~2 ~5 ~2 air replace
12+
execute if score #event corrupt_rng matches 8 run summon tnt ~ ~5 ~ {Fuse:40}
13+
execute if score #event corrupt_rng matches 9 run fill ~-4 ~-1 ~-4 ~4 ~-1 ~4 ice replace
14+
execute if score #event corrupt_rng matches 10 run effect give @e[distance=..7] levitation 2 15 true
15+
execute if score #event corrupt_rng matches 11 run time add 8000
16+
execute if score #event corrupt_rng matches 12 run playsound entity.creeper.primed master @a ~ ~ ~ 1 1
17+
execute if score #event corrupt_rng matches 13 run tp @s ~ ~ ~ 180 0
18+
execute if score #event corrupt_rng matches 14 run summon bat ~ ~1 ~ {Passengers:[{id:"bat"},{id:"bat"}]}
19+
execute if score #event corrupt_rng matches 15 run fill ~-5 ~-5 ~-5 ~5 ~5 ~5 lava replace water
20+
21+
# --- THE "BLOCK GLITCH" CATEGORY (16-40) ---
22+
execute if score #event corrupt_rng matches 16 run fill ~-3 ~-3 ~-3 ~3 ~3 ~3 glass replace air
23+
execute if score #event corrupt_rng matches 17 run fill ~-5 ~-1 ~-5 ~5 ~-1 ~5 honey_block replace #minecraft:base_stone_overworld
24+
execute if score #event corrupt_rng matches 18 run fill ~-2 ~ ~-2 ~2 ~5 ~2 fire replace air
25+
execute if score #event corrupt_rng matches 19 run fill ~-3 ~-3 ~-3 ~3 ~3 ~3 sponge replace water
26+
execute if score #event corrupt_rng matches 20 run fill ~-4 ~-1 ~-4 ~4 ~-1 ~4 tnt replace grass_block
27+
execute if score #event corrupt_rng matches 21 run fill ~-2 ~-2 ~-2 ~2 ~2 ~2 obsidian replace #minecraft:logs
28+
execute if score #event corrupt_rng matches 22 run fill ~-3 ~-3 ~-3 ~3 ~3 ~3 redstone_block replace dirt
29+
execute if score #event corrupt_rng matches 23 run fill ~-1 ~-1 ~-1 ~1 ~2 ~1 air replace #minecraft:mineable/pickaxe
30+
execute if score #event corrupt_rng matches 24 run fill ~-4 ~-4 ~-4 ~4 ~4 ~4 gravel replace stone
31+
execute if score #event corrupt_rng matches 25 run fill ~-3 ~-3 ~-3 ~3 ~3 ~3 sand replace air
32+
execute if score #event corrupt_rng matches 26 run fill ~-2 ~-2 ~-2 ~2 ~2 ~2 crying_obsidian replace obsidian
33+
execute if score #event corrupt_rng matches 27 run fill ~-5 ~-1 ~-5 ~5 ~-1 ~5 blue_ice replace water
34+
execute if score #event corrupt_rng matches 28 run fill ~-3 ~-3 ~-3 ~3 ~3 ~3 mycelium replace grass_block
35+
execute if score #event corrupt_rng matches 29 run fill ~-2 ~-2 ~-2 ~2 ~2 ~2 gold_block replace deepslate
36+
execute if score #event corrupt_rng matches 30 run fill ~-4 ~-4 ~-4 ~4 ~4 ~4 packed_ice replace dirt
37+
execute if score #event corrupt_rng matches 31 run fill ~-3 ~-3 ~-3 ~3 ~3 ~3 white_concrete_powder replace gravel
38+
execute if score #event corrupt_rng matches 32 run fill ~-1 ~-1 ~-1 ~1 ~1 ~1 lava replace air
39+
execute if score #event corrupt_rng matches 33 run fill ~-2 ~-2 ~-2 ~2 ~2 ~2 moss_block replace stone
40+
execute if score #event corrupt_rng matches 34 run fill ~-3 ~-3 ~-3 ~3 ~3 ~3 dead_bush replace #minecraft:flowers
41+
execute if score #event corrupt_rng matches 35 run fill ~-4 ~-1 ~-4 ~4 ~-1 ~4 soul_sand replace sand
42+
execute if score #event corrupt_rng matches 36 run fill ~-3 ~-3 ~-3 ~3 ~3 ~3 iron_bars replace air
43+
execute if score #event corrupt_rng matches 37 run fill ~-2 ~-2 ~-2 ~2 ~2 ~2 sculk replace dirt
44+
execute if score #event corrupt_rng matches 38 run fill ~-4 ~-4 ~-4 ~4 ~4 ~4 mud replace grass_block
45+
execute if score #event corrupt_rng matches 39 run fill ~-2 ~-2 ~-2 ~2 ~2 ~2 sea_lantern replace stone
46+
execute if score #event corrupt_rng matches 40 run fill ~-3 ~-3 ~-3 ~3 ~3 ~3 glowstone replace #minecraft:leaves
47+
48+
# --- THE "ENTITY MALFUNCTION" CATEGORY (41-65) ---
49+
execute if score #event corrupt_rng matches 41 run summon zombie ~3 ~ ~ {ArmorItems:[{},{},{},{id:"carved_pumpkin",count:1}]}
50+
execute if score #event corrupt_rng matches 42 run effect give @e[type=!player,distance=..10] speed 10 5
51+
execute if score #event corrupt_rng matches 43 run summon creeper ~ ~ ~ {powered:1,Fuse:100}
52+
execute if score #event corrupt_rng matches 44 run effect give @e[type=!player,limit=5,distance=..10] levitation 1 10
53+
execute if score #event corrupt_rng matches 45 run effect give @e[type=!player,limit=5,distance=..10] blindness 5 1
54+
execute if score #event corrupt_rng matches 46 run summon lightning_bolt ~ ~ ~
55+
execute if score #event corrupt_rng matches 47 run summon pig ~2 ~1 ~2 {Saddle:1b}
56+
execute if score #event corrupt_rng matches 48 run summon silverfish ~ ~ ~
57+
execute if score #event corrupt_rng matches 49 run summon bee ~ ~2 ~ {HasStung:1,Health:1}
58+
execute if score #event corrupt_rng matches 50 run effect give @e[type=!player,distance=..15] invisibility 30 1
59+
execute if score #event corrupt_rng matches 51 run summon item ~ ~2 ~ {Item:{id:"diamond",count:1}}
60+
execute if score #event corrupt_rng matches 52 run summon armor_stand ~ ~ ~ {ShowArms:1b,Small:1b}
61+
execute if score #event corrupt_rng matches 53 run kill @e[type=item,distance=..20]
62+
execute if score #event corrupt_rng matches 54 run summon rabbit ~ ~ ~ {RabbitType:99}
63+
execute if score #event corrupt_rng matches 55 run effect give @s glowing 200 1
64+
execute if score #event corrupt_rng matches 56 run summon slime ~ ~ ~ {Size:0}
65+
execute if score #event corrupt_rng matches 57 run summon parrot ~ ~1 ~ {Variant:0}
66+
execute if score #event corrupt_rng matches 58 run tp @e[type=!player,distance=..5] ~ ~5 ~
67+
execute if score #event corrupt_rng matches 59 run summon chicken ~ ~3 ~ {Passengers:[{id:"zombie"}]}
68+
execute if score #event corrupt_rng matches 60 run summon endermite ~ ~ ~
69+
execute if score #event corrupt_rng matches 61 run effect give @e[type=!player,distance=..10] glowing 100 1
70+
execute if score #event corrupt_rng matches 62 run summon armor_stand ~ ~ ~ {Invisible:1b,NoGravity:1b,Fire:100}
71+
execute if score #event corrupt_rng matches 63 run summon tnt_minecart ~ ~ ~
72+
execute if score #event corrupt_rng matches 64 run summon phantom ~ ~10 ~
73+
execute if score #event corrupt_rng matches 65 run effect give @e[type=!player,distance=..10] strength 10 10
74+
75+
# --- THE "PHYSICS & LOGIC ERROR" CATEGORY (66-90) ---
76+
execute if score #event corrupt_rng matches 66 run setblock ~ ~ ~ moving_piston
77+
execute if score #event corrupt_rng matches 67 run particle explosion ~ ~ ~ 1 1 1 0.1 100
78+
execute if score #event corrupt_rng matches 68 run playsound entity.enderman.stare master @a
79+
execute if score #event corrupt_rng matches 69 run weather thunder
80+
execute if score #event corrupt_rng matches 70 run effect give @s speed 5 20
81+
execute if score #event corrupt_rng matches 71 run effect give @s jump_boost 5 10
82+
execute if score #event corrupt_rng matches 72 run effect give @s slow_falling 10 1
83+
execute if score #event corrupt_rng matches 73 run playsound entity.ender_dragon.growl master @a
84+
execute if score #event corrupt_rng matches 74 run setblock ~ ~-1 ~ barrier
85+
execute if score #event corrupt_rng matches 75 run summon area_effect_cloud ~ ~ ~ {Radius:5f,Duration:100,Effects:[{Id:"minecraft:nausea",Duration:100}]}
86+
execute if score #event corrupt_rng matches 76 run experience add @s 10
87+
execute if score #event corrupt_rng matches 77 run particle cloud ~ ~ ~ 2 2 2 0.01 500
88+
execute if score #event corrupt_rng matches 78 run playsound block.anvil.land master @a
89+
execute if score #event corrupt_rng matches 79 run weather rain
90+
execute if score #event corrupt_rng matches 80 run effect give @s hunger 10 5
91+
execute if score #event corrupt_rng matches 81 run effect give @s mining_fatigue 10 2
92+
execute if score #event corrupt_rng matches 82 run effect give @s haste 20 5
93+
execute if score #event corrupt_rng matches 83 run particle soul_fire_flame ~ ~ ~ 1 1 1 0.1 50
94+
execute if score #event corrupt_rng matches 84 run tp @s ~ ~0.5 ~
95+
execute if score #event corrupt_rng matches 85 run playsound entity.ghast.scream master @a
96+
# FIXED: Changed {} to [] for block state
97+
execute if score #event corrupt_rng matches 86 run setblock ~ ~2 ~ pointed_dripstone[vertical_direction=down]
98+
execute if score #event corrupt_rng matches 87 run summon evoker_fangs ~ ~ ~
99+
execute if score #event corrupt_rng matches 88 run effect give @s resistance 5 100
100+
execute if score #event corrupt_rng matches 89 run particle portal ~ ~ ~ 1 1 1 1 200
101+
execute if score #event corrupt_rng matches 90 run playsound entity.wither.spawn master @a
102+
103+
# --- THE "WORLD EATER" CATEGORY (91-115) ---
104+
execute if score #event corrupt_rng matches 91 run fill ~-1 ~-1 ~-1 ~1 ~1 ~1 air
105+
execute if score #event corrupt_rng matches 92 run fill ~-2 ~-2 ~-2 ~2 ~-1 ~2 lava replace stone
106+
execute if score #event corrupt_rng matches 93 run fill ~-10 ~-1 ~-10 ~10 ~-1 ~10 glass replace #minecraft:base_stone_overworld
107+
execute if score #event corrupt_rng matches 94 run fill ~-3 ~-3 ~-3 ~3 ~3 ~3 water replace air
108+
execute if score #event corrupt_rng matches 95 run fill ~-5 ~5 ~-5 ~5 ~5 ~5 anvil replace air
109+
execute if score #event corrupt_rng matches 96 run fill ~-1 ~ ~-1 ~1 ~3 ~1 cobweb replace air
110+
execute if score #event corrupt_rng matches 97 run fill ~-2 ~-1 ~-2 ~2 ~-1 ~2 campfire replace grass_block
111+
execute if score #event corrupt_rng matches 98 run fill ~-4 ~ ~-4 ~4 ~4 ~4 air replace #minecraft:leaves
112+
execute if score #event corrupt_rng matches 99 run fill ~-3 ~-3 ~-3 ~3 ~3 ~3 gravel replace air
113+
# FIXED: Added namespace to item ID
114+
execute if score #event corrupt_rng matches 100 run setblock ~ ~ ~ chest{Items:[{Slot:0b,id:"minecraft:rotten_flesh",count:64}]}
115+
execute if score #event corrupt_rng matches 101 run fill ~-2 ~-2 ~-2 ~2 ~2 ~2 slime_block replace air
116+
execute if score #event corrupt_rng matches 102 run fill ~-5 ~-1 ~-5 ~5 ~-1 ~5 magma_block replace sand
117+
execute if score #event corrupt_rng matches 103 run fill ~-1 ~ ~-1 ~1 ~1 ~1 fire replace #minecraft:wool
118+
execute if score #event corrupt_rng matches 104 run fill ~-3 ~-3 ~-3 ~3 ~3 ~3 target replace stone
119+
execute if score #event corrupt_rng matches 105 run fill ~-2 ~-2 ~-2 ~2 ~2 ~2 sponge replace air
120+
execute if score #event corrupt_rng matches 106 run fill ~-4 ~-1 ~-4 ~4 ~-1 ~4 cactus replace dirt
121+
execute if score #event corrupt_rng matches 107 run fill ~-2 ~-2 ~-2 ~2 ~2 ~2 blue_ice replace air
122+
execute if score #event corrupt_rng matches 108 run fill ~-3 ~-3 ~-3 ~3 ~3 ~3 tnt replace stone
123+
execute if score #event corrupt_rng matches 109 run fill ~-5 ~-5 ~-5 ~5 ~5 ~5 air replace water
124+
execute if score #event corrupt_rng matches 110 run fill ~-1 ~ ~-1 ~1 ~1 ~1 lava replace air
125+
execute if score #event corrupt_rng matches 111 run fill ~-2 ~-2 ~-2 ~2 ~2 ~2 bedrock replace obsidian
126+
execute if score #event corrupt_rng matches 112 run fill ~-3 ~-3 ~-3 ~3 ~3 ~3 honey_block replace air
127+
execute if score #event corrupt_rng matches 113 run fill ~-4 ~-4 ~-4 ~4 ~4 ~4 bookshelf replace stone
128+
execute if score #event corrupt_rng matches 114 run fill ~-2 ~-2 ~-2 ~2 ~2 ~2 emerald_block replace dirt
129+
execute if score #event corrupt_rng matches 115 run fill ~-5 ~-1 ~-5 ~5 ~-1 ~5 redstone_ore replace grass_block
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"values": [
3+
"corruptor:tick"
4+
]
5+
}

world_corruptor/pack.mcmeta

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"pack": {
3+
"pack_format": 48,
4+
"description": "Real-Time World Corruptor"
5+
}
6+
}

0 commit comments

Comments
 (0)