Skip to content

Commit

Permalink
Add flying gegy
Browse files Browse the repository at this point in the history
  • Loading branch information
UnRealDinnerbone committed Nov 23, 2024
1 parent daf516b commit cdc25dc
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 1 deletion.
4 changes: 4 additions & 0 deletions data/lt/function/gegy/on_tick.mcfunction
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
scoreboard players reset * turtle_tracker
scoreboard players set @e[tag=kill_on_no_players] turtle_tracker 0
execute as @e[tag=kill_on_no_players] on passengers on vehicle run scoreboard players add @s turtle_tracker 1
execute as @e[tag=kill_on_no_players] if score @s turtle_tracker matches 0 run kill @s
2 changes: 2 additions & 0 deletions data/lt/function/gegy/spawn_fly.mcfunction
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
summon tropicraft:turtle ~ ~ ~ {Tags:["kill_on_no_players"],Invulnerable:true,NoAI:true,NoBrakesOnThisTrain:true,DeathLootTable:"minecraft:empty",attributes:[{base:1.65,id:"minecraft:generic.movement_speed"}],LongsForTheSky:true,"neoforge:attachments": {"ltminigames:player_disguise": {entity: {tag: {collectible: "lt:gegy_potato"}, type: "ltextras:collectible"}}}}
ride @e[type=tropicraft:turtle,tag=kill_on_no_players,limit=1,sort=nearest] mount @s
3 changes: 3 additions & 0 deletions data/lt/function/main/on_load.mcfunction
Original file line number Diff line number Diff line change
Expand Up @@ -170,3 +170,6 @@ team modify quest.npc.no_collide friendlyFire false

# Mini Disguises
scoreboard objectives add mini_disguises.clock dummy

# Flying Gegy
scoreboard objectives add turtle_tracker dummy
4 changes: 3 additions & 1 deletion data/lt/function/main/on_second.mcfunction
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
execute as @a on vehicle if entity @e[type=ltextras:seat] on passengers if entity @s[type=minecraft:player] run scoreboard players add @s chair_sit_time 1
schedule function lt:main/on_second 1s replace

function lt:mini_disguises/on_second
function lt:mini_disguises/on_second

function lt:gegy/on_tick

0 comments on commit cdc25dc

Please sign in to comment.