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

13
boatsisun/init.mcf Normal file
View File

@@ -0,0 +1,13 @@
!IMPULSE
scoreboard objectives add bs.x1 dummy
scoreboard objectives add bs.y1 dummy
scoreboard objectives add bs.z1 dummy
scoreboard objectives add bs.x2 dummy
scoreboard objectives add bs.y2 dummy
scoreboard objectives add bs.z2 dummy
scoreboard objectives add bs.c dummy
scoreboard objectives add bs.r dummy
scoreboard players set #1000 bs.c 1000

25
boatsisun/loop.mcf Normal file
View File

@@ -0,0 +1,25 @@
execute as @a[tag=boatsisun] on vehicle store result score @s bs.x1 run data get entity @s Pos[0] 1000
execute as @a[tag=boatsisun] on vehicle store result score @s bs.y1 run data get entity @s Pos[1] 1000
execute as @a[tag=boatsisun] on vehicle store result score @s bs.z1 run data get entity @s Pos[2] 1000
execute as @a[tag=boatsisun] on vehicle run scoreboard players operation @s bs.x1 -= @s bs.x2
execute as @a[tag=boatsisun] on vehicle run scoreboard players operation @s bs.y1 -= @s bs.y2
execute as @a[tag=boatsisun] on vehicle run scoreboard players operation @s bs.z1 -= @s bs.z2
execute as @a[tag=boatsisun] on vehicle run scoreboard players operation @s bs.x1 *= @s bs.x1
execute as @a[tag=boatsisun] on vehicle run scoreboard players operation @s bs.y1 *= @s bs.y1
execute as @a[tag=boatsisun] on vehicle run scoreboard players operation @s bs.z1 *= @s bs.z1
execute as @a[tag=boatsisun] on vehicle run scoreboard players operation @s bs.x1 /= #1000 bs.c
execute as @a[tag=boatsisun] on vehicle run scoreboard players operation @s bs.y1 /= #1000 bs.c
execute as @a[tag=boatsisun] on vehicle run scoreboard players operation @s bs.z1 /= #1000 bs.c
execute as @a[tag=boatsisun] on vehicle store result score @s bs.x2 run data get entity @s Pos[0] 1000
execute as @a[tag=boatsisun] on vehicle store result score @s bs.y2 run data get entity @s Pos[1] 1000
execute as @a[tag=boatsisun] on vehicle store result score @s bs.z2 run data get entity @s Pos[2] 1000
execute as @a[tag=boatsisun] on vehicle run scoreboard players operation @s bs.r = @s bs.x1
execute as @a[tag=boatsisun] on vehicle run scoreboard players operation @s bs.r += @s bs.y1
execute as @a[tag=boatsisun] on vehicle run scoreboard players operation @s bs.r += @s bs.z1
execute as @a[tag=boatsisun] on vehicle run tellraw @a[limit=1,sort=nearest,tag=boatsisun] {"score":{objective:"bs.r",name:"@s"}}

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]

View File

@@ -5,3 +5,5 @@ scoreboard objectives add o.w.l.puid dummy
scoreboard objectives add o.w.l.cloud dummy scoreboard objectives add o.w.l.cloud dummy
scoreboard objectives add o.w.l.timer dummy scoreboard objectives add o.w.l.timer dummy
scoreboard objectives add o.w.l.used minecraft.used:minecraft.feather scoreboard objectives add o.w.l.used minecraft.used:minecraft.feather
forceload add 0 0