Initial commit with changes

This commit is contained in:
oitsjustjose 2022-06-22 11:53:31 -05:00
commit 98a6f01558
371 changed files with 16687 additions and 58 deletions

View file

@ -0,0 +1,2 @@
tag @s add cftCreep.done
execute at @s[nbt={Effects: [{Id: 26b, Amplifier: 10b, ShowParticles: 0b}]}] run function confetti_creepers:create_confetti

View file

@ -0,0 +1,3 @@
schedule function confetti_creepers:check_trigger 10t
scoreboard players enable @a cftCreep
execute as @a[scores={cftCreep=1}] run function confetti_creepers:trigger

View file

@ -0,0 +1,7 @@
tellraw @s {"text":" ","color":"dark_gray","strikethrough":true}
tellraw @s [" Confetti Creepers",{"text":" / ","color":"gray"},"Global Settings "]
tellraw @s {"text":" ","color":"dark_gray","strikethrough":true}
tellraw @s ["",{"text":"[ ✎ ]","color":"gray","clickEvent":{"action":"suggest_command","value":"/scoreboard players set #chance cftCreep.config "},"hoverEvent":{"action":"show_text","contents":["",{"text":"Click to enter the percent chance each creeper will be a confetti creeper.\nSet this to a low but not-too-low value like 20 for pleasant surprises. :)","color":"gray"},{"text":"\nAccepts: whole numbers 0-100\nDefault: 100","color":"dark_gray"}]}}," Confetti Chance ",{"text":"(Current: ","color":"gray"},{"score":{"name":"#chance","objective":"cftCreep.config"},"color":"gray"},{"text":"%)","color":"gray"}]
tellraw @s {"text":" ","color":"dark_gray","strikethrough":true}
execute store result score #sendCommandFeedback cftCreep.config run gamerule sendCommandFeedback
execute if score #sendCommandFeedback cftCreep.config matches 1 run function confetti_creepers:hide_command_feedback

View file

@ -0,0 +1,3 @@
summon minecraft:firework_rocket ~ ~ ~ {LifeTime: 0, FireworksItem: {id: "minecraft:creeper_head", Count: 1b, tag: {Fireworks: {Explosions: [{Flicker: 0b, Trail: 0b, Type: 4b, Colors: [I; 11743532, 15435844, 14602026, 4312372, 6719955, 8073150, 14188952]}]}}}}
data remove entity @s Effects[{Id: 26b, Amplifier: 10b, ShowParticles: 0b}]
execute unless data entity @s Effects[0] run kill @s

View file

@ -0,0 +1,16 @@
schedule function confetti_creepers:give_effects 1000000t
effect give @e[type=minecraft:creeper,tag=cftCreep.confetti] minecraft:luck 1000000 10 true
effect give @e[type=creeperoverhaul:badlands_creeper,tag=cftCreep.confetti] minecraft:luck 1000000 10 true
effect give @e[type=creeperoverhaul:bamboo_creeper,tag=cftCreep.confetti] minecraft:luck 1000000 10 true
effect give @e[type=creeperoverhaul:beach_creeper,tag=cftCreep.confetti] minecraft:luck 1000000 10 true
effect give @e[type=creeperoverhaul:cave_creeper,tag=cftCreep.confetti] minecraft:luck 1000000 10 true
effect give @e[type=creeperoverhaul:dark_oak_creeper,tag=cftCreep.confetti] minecraft:luck 1000000 10 true
effect give @e[type=creeperoverhaul:desert_creeper,tag=cftCreep.confetti] minecraft:luck 1000000 10 true
effect give @e[type=creeperoverhaul:dripstone_creeper,tag=cftCreep.confetti] minecraft:luck 1000000 10 true
effect give @e[type=creeperoverhaul:hills_creeper,tag=cftCreep.confetti] minecraft:luck 1000000 10 true
effect give @e[type=creeperoverhaul:jungle_creeper,tag=cftCreep.confetti] minecraft:luck 1000000 10 true
effect give @e[type=creeperoverhaul:mushroom_creeper,tag=cftCreep.confetti] minecraft:luck 1000000 10 true
effect give @e[type=creeperoverhaul:savannah_creeper,tag=cftCreep.confetti] minecraft:luck 1000000 10 true
effect give @e[type=creeperoverhaul:snowy_creeper,tag=cftCreep.confetti] minecraft:luck 1000000 10 true
effect give @e[type=creeperoverhaul:spruce_creeper,tag=cftCreep.confetti] minecraft:luck 1000000 10 true
effect give @e[type=creeperoverhaul:swamp_creeper,tag=cftCreep.confetti] minecraft:luck 1000000 10 true

View file

@ -0,0 +1,2 @@
gamerule sendCommandFeedback false
schedule function confetti_creepers:restore_command_feedback 1t replace

View file

@ -0,0 +1,4 @@
tag @s add cftCreep.done
execute store result score #value cftCreep.config run data get entity @s UUID[0]
scoreboard players operation #value cftCreep.config %= #total cftCreep.config
execute if score #value cftCreep.config < #chance cftCreep.config run function confetti_creepers:set_confetti

View file

@ -0,0 +1,4 @@
scoreboard objectives add cftCreep.config dummy "Confetti Creepers Config"
scoreboard objectives add cftCreep trigger "Confetti Creepers"
scoreboard players set #total cftCreep.config 100
execute unless score #chance cftCreep.config matches 0..100 run scoreboard players set #chance cftCreep.config 100

View file

@ -0,0 +1 @@
gamerule sendCommandFeedback true

View file

@ -0,0 +1,3 @@
data modify entity @s ExplosionRadius set value 0b
effect give @s minecraft:luck 1000000 10 true
tag @s add cftCreep.confetti

View file

@ -0,0 +1,17 @@
schedule function confetti_creepers:tick 1t
execute as @e[type=minecraft:creeper,tag=!cftCreep.done] at @s run function confetti_creepers:initiate_creeper
execute as @e[type=creeperoverhaul:badlands_creeper,tag=!cftCreep.done] at @s run function confetti_creepers:initiate_creeper
execute as @e[type=creeperoverhaul:bamboo_creeper,tag=!cftCreep.done] at @s run function confetti_creepers:initiate_creeper
execute as @e[type=creeperoverhaul:beach_creeper,tag=!cftCreep.done] at @s run function confetti_creepers:initiate_creeper
execute as @e[type=creeperoverhaul:cave_creeper,tag=!cftCreep.done] at @s run function confetti_creepers:initiate_creeper
execute as @e[type=creeperoverhaul:dark_oak_creeper,tag=!cftCreep.done] at @s run function confetti_creepers:initiate_creeper
execute as @e[type=creeperoverhaul:desert_creeper,tag=!cftCreep.done] at @s run function confetti_creepers:initiate_creeper
execute as @e[type=creeperoverhaul:dripstone_creeper,tag=!cftCreep.done] at @s run function confetti_creepers:initiate_creeper
execute as @e[type=creeperoverhaul:hills_creeper,tag=!cftCreep.done] at @s run function confetti_creepers:initiate_creeper
execute as @e[type=creeperoverhaul:jungle_creeper,tag=!cftCreep.done] at @s run function confetti_creepers:initiate_creeper
execute as @e[type=creeperoverhaul:mushroom_creeper,tag=!cftCreep.done] at @s run function confetti_creepers:initiate_creeper
execute as @e[type=creeperoverhaul:savannah_creeper,tag=!cftCreep.done] at @s run function confetti_creepers:initiate_creeper
execute as @e[type=creeperoverhaul:snowy_creeper,tag=!cftCreep.done] at @s run function confetti_creepers:initiate_creeper
execute as @e[type=creeperoverhaul:spruce_creeper,tag=!cftCreep.done] at @s run function confetti_creepers:initiate_creeper
execute as @e[type=creeperoverhaul:swamp_creeper,tag=!cftCreep.done] at @s run function confetti_creepers:initiate_creeper
execute as @e[type=minecraft:area_effect_cloud,tag=!cftCreep.done] run function confetti_creepers:check_effect_cloud

View file

@ -0,0 +1,6 @@
tellraw @s {"text":" ","color":"dark_gray","strikethrough":true}
tellraw @s [" Confetti Creepers",{"text":" / ","color":"gray"},"Info "]
tellraw @s {"text":" ","color":"dark_gray","strikethrough":true}
tellraw @s ["",{"text":">> ","color":"gray"},"There is a ",{"score":{"name":"#chance","objective":"cftCreep.config"}},"% chance each creeper will explode into confetti and do no damage to blocks."]
tellraw @s {"text":" ","color":"dark_gray","strikethrough":true}
scoreboard players set @s cftCreep 0

View file

@ -0,0 +1,5 @@
schedule clear confetti_creepers:tick
schedule clear confetti_creepers:check_trigger
schedule clear confetti_creepers:give_effects
scoreboard objectives remove cftCreep
scoreboard objectives remove cftCreep.config

1
kubejs/data/credits.txt Normal file
View file

@ -0,0 +1 @@
CREEPER CONFETTI: vanillatweaks.net/

View file

@ -0,0 +1,77 @@
{
"type": "minecraft:entity",
"pools": [
{
"rolls": 1.0,
"bonus_rolls": 0.0,
"entries": [
{
"type": "minecraft:item",
"functions": [
{
"function": "minecraft:set_count",
"count": {
"type": "minecraft:uniform",
"min": 2.0,
"max": 4.0
},
"add": false
},
{
"function": "minecraft:looting_enchant",
"count": {
"type": "minecraft:uniform",
"min": 0.0,
"max": 1.0
}
}
],
"name": "minecraft:leather"
}
]
},
{
"rolls": 1.0,
"bonus_rolls": 0.0,
"entries": [
{
"type": "minecraft:item",
"functions": [
{
"function": "minecraft:set_count",
"count": {
"type": "minecraft:uniform",
"min": 1.0,
"max": 3.0
},
"add": false
},
{
"function": "minecraft:furnace_smelt",
"conditions": [
{
"condition": "minecraft:entity_properties",
"predicate": {
"flags": {
"is_on_fire": true
}
},
"entity": "this"
}
]
},
{
"function": "minecraft:looting_enchant",
"count": {
"type": "minecraft:uniform",
"min": 0.0,
"max": 1.0
}
}
],
"name": "minecraft:beef"
}
]
}
]
}

View file

@ -0,0 +1,31 @@
{
"type": "minecraft:entity",
"pools": [
{
"rolls": 1,
"entries": [
{
"type": "minecraft:item",
"functions": [
{
"function": "minecraft:set_count",
"count": {
"min": 3.0,
"max": 7.0,
"type": "minecraft:uniform"
}
},
{
"function": "minecraft:looting_enchant",
"count": {
"min": 0.0,
"max": 1.0
}
}
],
"name": "minecraft:leather"
}
]
}
]
}

View file

@ -0,0 +1,31 @@
{
"type": "minecraft:entity",
"pools": [
{
"rolls": 1,
"entries": [
{
"type": "minecraft:item",
"functions": [
{
"function": "minecraft:set_count",
"count": {
"min": 1.0,
"max": 2.0,
"type": "minecraft:uniform"
}
},
{
"function": "minecraft:looting_enchant",
"count": {
"min": 0.0,
"max": 1.0
}
}
],
"name": "minecraft:ender_pearl"
}
]
}
]
}

View file

@ -0,0 +1,31 @@
{
"type": "minecraft:entity",
"pools": [
{
"rolls": 1,
"entries": [
{
"type": "minecraft:item",
"functions": [
{
"function": "minecraft:set_count",
"count": {
"min": 3.0,
"max": 7.0,
"type": "minecraft:uniform"
}
},
{
"function": "minecraft:looting_enchant",
"count": {
"min": 0.0,
"max": 1.0
}
}
],
"name": "minecraft:leather"
}
]
}
]
}

View file

@ -0,0 +1,72 @@
{
"type": "minecraft:entity",
"pools": [
{
"rolls": 1,
"entries": [
{
"type": "minecraft:item",
"functions": [
{
"function": "minecraft:set_count",
"count": {
"type": "minecraft:uniform",
"min": 2.0,
"max": 4.0
},
"add": false
},
{
"function": "minecraft:looting_enchant",
"count": {
"min": 0.0,
"max": 1.0
}
}
],
"name": "minecraft:leather"
}
]
},
{
"rolls": 1,
"entries": [
{
"type": "minecraft:item",
"functions": [
{
"function": "minecraft:set_count",
"count": {
"min": 1.0,
"max": 3.0,
"type": "minecraft:uniform"
}
},
{
"function": "minecraft:furnace_smelt",
"conditions": [
{
"condition": "minecraft:entity_properties",
"predicate": {
"flags": {
"is_on_fire": true
}
},
"entity": "this"
}
]
},
{
"function": "minecraft:looting_enchant",
"count": {
"min": 0.0,
"max": 1.0
}
}
],
"name": "minecraft:beef"
}
]
}
]
}

View file

@ -0,0 +1,31 @@
{
"type": "minecraft:entity",
"pools": [
{
"rolls": 1,
"entries": [
{
"type": "minecraft:item",
"functions": [
{
"function": "minecraft:set_count",
"count": {
"min": 3.0,
"max": 7.0,
"type": "minecraft:uniform"
}
},
{
"function": "minecraft:looting_enchant",
"count": {
"min": 0.0,
"max": 1.0
}
}
],
"name": "minecraft:leather"
}
]
}
]
}

View file

@ -0,0 +1,3 @@
{
"values": ["confetti_creepers:uninstall"]
}

View file

@ -0,0 +1,20 @@
{
"type": "minecraft:block",
"pools": [
{
"rolls": 1.0,
"bonus_rolls": 0.0,
"entries": [
{
"type": "minecraft:item",
"name": "natprog:stone_pebble"
}
],
"conditions": [
{
"condition": "minecraft:survives_explosion"
}
]
}
]
}

View file

@ -0,0 +1,20 @@
{
"type": "minecraft:block",
"pools": [
{
"rolls": 2.0,
"bonus_rolls": 0.0,
"entries": [
{
"type": "minecraft:item",
"name": "natprog:stone_pebble"
}
],
"conditions": [
{
"condition": "minecraft:survives_explosion"
}
]
}
]
}