Skip to content

Commit

Permalink
Chairs: Add workaround to prevent players on improperly configured sp…
Browse files Browse the repository at this point in the history
…igot servers from dying in the void.

* Rely on Tag instead of Team
  • Loading branch information
Bloo-dev authored Sep 29, 2023
1 parent f1773b8 commit a2b0774
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gm4_chairs/data/gm4_chairs/advancements/hit.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"entity": "this",
"predicate": {
"type": "minecraft:pig",
"team": "gm4_chairs"
"nbt": "{Tags:[\"gm4_chairs\"]}"
}
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# run from main

# spawn chair
summon minecraft:pig ~ ~-10000.39 ~ {Tags:["gm4_chairs","smithed.entity","smithed.strict","smithed.block"],Team:"gm4_chairs",NoAI:1b,Saddle:1b,NoGravity:1b,Silent:1b,DeathTime:19s,InLove:2147483647,Attributes:[{Name:"generic.max_health",Base:1.0},{Name:"generic.movement_speed",Base:0.0}],ActiveEffects:[{Id:14,Amplifier:0,Duration:2147483647,ShowParticles:0b},{Id:11,Amplifier:10b,Duration:2147483647,ShowParticles:0b}],DeathLootTable:"minecraft:empty"}
summon minecraft:pig ~ ~-10000.39 ~ {CustomName:'"gm4_chair"',Tags:["gm4_chairs","smithed.entity","smithed.strict","smithed.block"],Team:"gm4_chairs",NoAI:1b,Saddle:1b,NoGravity:1b,Silent:1b,DeathTime:19s,InLove:2147483647,Attributes:[{Name:"generic.max_health",Base:1.0},{Name:"generic.movement_speed",Base:0.0}],ActiveEffects:[{Id:14,Amplifier:0,Duration:2147483647,ShowParticles:0b},{Id:11,Amplifier:10b,Duration:2147483647,ShowParticles:0b}],DeathLootTable:"minecraft:empty"}

# set chair to orientation of stairs
execute if block ~ ~ ~ #minecraft:stairs[facing=north] positioned ~ ~-10000 ~ as @e[type=minecraft:pig,tag=gm4_chairs,distance=..0.4,limit=1] at @s run tp @s ~ ~10000 ~.05 0 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"predicate": {
"vehicle": {
"type": "minecraft:pig",
"team": "gm4_chairs"
"nbt": "{Tags:[\"gm4_chairs\"]}"
}
}
}

0 comments on commit a2b0774

Please sign in to comment.