diff --git a/boatsisun/init.mcf b/boatsisun/init.mcf new file mode 100644 index 0000000..1d8f69b --- /dev/null +++ b/boatsisun/init.mcf @@ -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 diff --git a/boatsisun/loop.mcf b/boatsisun/loop.mcf new file mode 100644 index 0000000..980eaf5 --- /dev/null +++ b/boatsisun/loop.mcf @@ -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"}} diff --git a/carousel/effector.mcf b/carousel/effector.mcf new file mode 100644 index 0000000..8b287d1 --- /dev/null +++ b/carousel/effector.mcf @@ -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] diff --git a/carousel/getitem.mcf b/carousel/getitem.mcf new file mode 100644 index 0000000..e53003c --- /dev/null +++ b/carousel/getitem.mcf @@ -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 diff --git a/carousel/init.mcf b/carousel/init.mcf new file mode 100644 index 0000000..0aff979 --- /dev/null +++ b/carousel/init.mcf @@ -0,0 +1,5 @@ +!REPEATING + +forceload add 0 0 + + diff --git a/carousel/killer.mcf b/carousel/killer.mcf new file mode 100644 index 0000000..8578df7 --- /dev/null +++ b/carousel/killer.mcf @@ -0,0 +1,3 @@ +!REPEATING + +execute if entity @e[tag=c.kill] run kill @e[tag=cr] diff --git a/carousel/rotator.mcf b/carousel/rotator.mcf new file mode 100644 index 0000000..4720899 --- /dev/null +++ b/carousel/rotator.mcf @@ -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 diff --git a/carousel/sine.mcf b/carousel/sine.mcf new file mode 100644 index 0000000..1e18e71 --- /dev/null +++ b/carousel/sine.mcf @@ -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 ~ diff --git a/carousel/spawner.mcf b/carousel/spawner.mcf new file mode 100644 index 0000000..fda620a --- /dev/null +++ b/carousel/spawner.mcf @@ -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] diff --git a/owlaunch/init.mcf b/owlaunch/init.mcf index 3a765a5..052642e 100644 --- a/owlaunch/init.mcf +++ b/owlaunch/init.mcf @@ -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.timer dummy scoreboard objectives add o.w.l.used minecraft.used:minecraft.feather + +forceload add 0 0