Skip to content

Commit

Permalink
Show zone name when spawning, add death particles
Browse files Browse the repository at this point in the history
  • Loading branch information
Gegy committed Nov 17, 2024
1 parent cad7062 commit b5d483a
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 1 deletion.
1 change: 1 addition & 0 deletions data/lt/behaviors/river_race/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
"type": "ltminigames:victory_points",
"points_per_game_won": 1
},
"lt:river_race/death",
{
"type": "ltminigames:immediate_respawn",
"role": "participant",
Expand Down
35 changes: 35 additions & 0 deletions data/lt/behaviors/river_race/death.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
[
{
"type": "ltminigames:on_death",
"killed_action": [
{
"type": "ltminigames:spawn_particles_around_player",
"particles": [
{"type": "glow"},
{"type": "firework"}
],
"count": 15,
"repeats": 5,
"radius": 0.3
},
{
"type": "ltminigames:play_sound",
"sound": "entity.player.big_fall",
"source": "player",
"broadcast": true
}
],
"killer_action": [
{
"type": "ltminigames:show_title",
"subtitle": {"translate": "ltminigames.minigame.qottott.kill.subtitle"}
},
{
"type": "ltminigames:play_sound",
"sound": "minecraft:block.note_block.chime",
"source": "player",
"pitch": 2.0
}
]
}
]
5 changes: 4 additions & 1 deletion data/lt/behaviors/river_race/map.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
"type": "ltminigames:river_race/spawns",
"zone_spawns": {
"zone_1": {
"unlock_on_start": true,
"region_by_team": {
"red": "red_spawn",
"blue": "blue_spawn"
Expand Down Expand Up @@ -56,6 +55,7 @@
"type": "lt:river_race/map/zone",
"id": "zone_1",
"region": "zone_1",
"ordinal_name": {"translate": "ltminigames.minigame.river_race.zone.1"},
"display_name": {"translate": "ltminigames.minigame.river_race.zone.east_africa", "color": "red"},
"color": "red",
"colliders": []
Expand All @@ -64,6 +64,7 @@
"type": "lt:river_race/map/zone",
"id": "zone_2",
"region": "zone_2",
"ordinal_name": {"translate": "ltminigames.minigame.river_race.zone.2"},
"display_name": {"translate": "ltminigames.minigame.river_race.zone.india", "color": "yellow"},
"color": "yellow",
"colliders": [
Expand All @@ -75,6 +76,7 @@
"type": "lt:river_race/map/zone",
"id": "zone_3",
"region": "zone_3",
"ordinal_name": {"translate": "ltminigames.minigame.river_race.zone.3"},
"display_name": {"translate": "ltminigames.minigame.river_race.zone.niger_delta", "color": "green"},
"color": "green",
"colliders": [
Expand All @@ -86,6 +88,7 @@
"type": "lt:river_race/map/zone",
"id": "zone_4",
"region": "zone_4",
"ordinal_name": {"translate": "ltminigames.minigame.river_race.zone.4"},
"display_name": {"translate": "ltminigames.minigame.river_race.zone.mexico", "color": "blue"},
"color": "blue",
"colliders": [
Expand Down
1 change: 1 addition & 0 deletions data/lt/behaviors/river_race/map/zone.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"type": "ltminigames:river_race/zone",
"id": "$id",
"region": "$region",
"ordinal_name": "$ordinal_name",
"display_name": "$display_name",
"color": "$color"
},
Expand Down

0 comments on commit b5d483a

Please sign in to comment.