feat: add some things

This commit is contained in:
2025-12-14 21:59:55 +09:00
parent 0a69805d1d
commit a5fa2032a5
10 changed files with 101 additions and 0 deletions

6
carousel/effector.mcf Normal file
View File

@@ -0,0 +1,6 @@
!REPEATING
execute if entity @e[tag=c.hide] run effect give @e[tag=c.pig] invisibility infinite 1 true
execute if entity @e[tag=c.show] run effect clear @e[tag=c.pig] invisibility
kill @e[tag=c.eff]

10
carousel/getitem.mcf Normal file
View File

@@ -0,0 +1,10 @@
!REPEATING
execute as @a[tag=c.getitem] run give @s minecraft:allay_spawn_egg[entity_data={id:"minecraft:area_effect_cloud",Duration:0,Tags:["c.spawn"]}, custom_name={text:"SPAWN", italic:false},max_stack_size=1]
execute as @a[tag=c.getitem] run give @s minecraft:allay_spawn_egg[entity_data={id:"minecraft:area_effect_cloud",Duration:0,Tags:["cr", "c.kill"]}, custom_name={text:"CLEAN", italic:false},max_stack_size=1]
execute as @a[tag=c.getitem] run give @s minecraft:allay_spawn_egg[entity_data={id:"minecraft:area_effect_cloud",Duration:1201,Tags:["cr", "c.stop"]}, custom_name={text:"1m STOP", italic:false},max_stack_size=1]
execute as @a[tag=c.getitem] run give @s minecraft:allay_spawn_egg[entity_data={id:"minecraft:area_effect_cloud",Duration:0,Tags:["cr", "c.hide", "c.eff"]}, custom_name={text:"HIDE PIGS", italic:false},max_stack_size=1]
execute as @a[tag=c.getitem] run give @s minecraft:allay_spawn_egg[entity_data={id:"minecraft:area_effect_cloud",Duration:0,Tags:["cr", "c.show", "c.eff"]}, custom_name={text:"SHOW PIGS", italic:false},max_stack_size=1]
tag @e remove c.getitem

5
carousel/init.mcf Normal file
View File

@@ -0,0 +1,5 @@
!REPEATING
forceload add 0 0

3
carousel/killer.mcf Normal file
View File

@@ -0,0 +1,3 @@
!REPEATING
execute if entity @e[tag=c.kill] run kill @e[tag=cr]

14
carousel/rotator.mcf Normal file
View File

@@ -0,0 +1,14 @@
!REPEATING
execute as @e[tag=c.c.1] at @s run tp @e[tag=c.c.2] ~ ~ ~ ~90 ~
execute as @e[tag=c.c.1] at @s run tp @e[tag=c.c.3] ~ ~ ~ ~180 ~
execute as @e[tag=c.c.1] at @s run tp @e[tag=c.c.4] ~ ~ ~ ~270 ~
execute as @e[tag=c.c.1] at @s unless entity @e[tag=c.stop] run tp @s ~ ~ ~ ~2 ~
execute as @e[tag=c.c.1] at @s unless entity @e[tag=c.stop] run data modify entity @s Pos[1] set from entity @e[tag=c.sinee,limit=1] Pos[2]
execute as @e[tag=c.c.1] at @s run tp @e[tag=c.p.1] ^ ^ ^8
execute as @e[tag=c.c.2] at @s run tp @e[tag=c.p.2] ^ ^ ^8
execute as @e[tag=c.c.3] at @s run tp @e[tag=c.p.3] ^ ^ ^8
execute as @e[tag=c.c.4] at @s run tp @e[tag=c.p.4] ^ ^ ^8

4
carousel/sine.mcf Normal file
View File

@@ -0,0 +1,4 @@
!REPEATING
execute as @e[tag=c.sine] at @s run tp @e[tag=c.sinee] ^ ^ ^1
execute as @e[tag=c.sine] at @s run tp @s ~ ~ ~ ~5 ~

19
carousel/spawner.mcf Normal file
View File

@@ -0,0 +1,19 @@
!REPEATING
execute as @e[tag=c.spawn] at @s run summon armor_stand ~ ~ ~ {Tags:["cr", "c.center", "c.c.1"], Invisible: true, Invulnerable: true, NoGravity: true}
execute as @e[tag=c.spawn] at @s run summon armor_stand ~ ~ ~ {Tags:["cr", "c.center", "c.c.2"], Invisible: true, Invulnerable: true, NoGravity: true}
execute as @e[tag=c.spawn] at @s run summon armor_stand ~ ~ ~ {Tags:["cr", "c.center", "c.c.3"], Invisible: true, Invulnerable: true, NoGravity: true}
execute as @e[tag=c.spawn] at @s run summon armor_stand ~ ~ ~ {Tags:["cr", "c.center", "c.c.4"], Invisible: true, Invulnerable: true, NoGravity: true}
execute as @e[tag=c.spawn] at @s run summon pig ~ ~ ~ {Tags:["cr", "c.pig", "c.p.1"], NoGravity: true, active_effects: [{id:"resistance", show_particles: false, duration: 10000000, amplifier: 255}],Silent:true}
execute as @e[tag=c.spawn] at @s run summon pig ~ ~ ~ {Tags:["cr", "c.pig", "c.p.2"], NoGravity: true, active_effects: [{id:"resistance", show_particles: false, duration: 10000000, amplifier: 255}],Silent:true}
execute as @e[tag=c.spawn] at @s run summon pig ~ ~ ~ {Tags:["cr", "c.pig", "c.p.3"], NoGravity: true, active_effects: [{id:"resistance", show_particles: false, duration: 10000000, amplifier: 255}],Silent:true}
execute as @e[tag=c.spawn] at @s run summon pig ~ ~ ~ {Tags:["cr", "c.pig", "c.p.4"], NoGravity: true, active_effects: [{id:"resistance", show_particles: false, duration: 10000000, amplifier: 255}],Silent:true}
execute as @e[tag=c.spawn] at @s run summon armor_stand 0 0 0 {Tags:["cr", "c.sine"], Invisible: true, Invulnerable: true, NoGravity: true}
execute as @e[tag=c.spawn] at @s run summon armor_stand 0 0 0 {Tags:["cr", "c.sinee"], Invisible: true, Invulnerable: true, NoGravity: true}
execute if entity @e[tag=c.spawn] as @e[tag=c.sine] at @s run data modify entity @s Pos[2] set from entity @e[tag=c.c.1,limit=1] Pos[1]
execute as @e[tag=c.sine] at @s run forceload add ~ ~
kill @e[tag=c.spawn]