Skip to content

Commit

Permalink
Split up some more STT behaviors
Browse files Browse the repository at this point in the history
  • Loading branch information
Gegy committed Oct 14, 2023
1 parent 5052a8f commit 79cc205
Show file tree
Hide file tree
Showing 6 changed files with 103 additions and 92 deletions.
17 changes: 17 additions & 0 deletions data/lt/behaviors/survive_the_tide/balance.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
[
{
"type": "ltminigames:scale_player_damage",
"factor": 0.75,
"host_factor": 0.25
},
{
"type": "ltminigames:scale_damage_from_entity",
"factor": 0.20,
"source": "tropicraft:exploding_coconut"
},
{
"type": "ltminigames:scale_explosion_knockback",
"factor": 2.25,
"exploder": "tropicraft:exploding_coconut"
}
]
95 changes: 4 additions & 91 deletions data/lt/behaviors/survive_the_tide/common.json
Original file line number Diff line number Diff line change
@@ -1,23 +1,4 @@
[
{
"type": "ltminigames:on_death",
"actions": [
{ "type": "ltminigames:spawn_fireworks" },
{
"type": "ltminigames:play_sound",
"sound": "entity.experience_orb.pickup"
},
{
"type": "ltminigames:spawn_particles_around_player",
"particles": [
{ "type": "totem_of_undying" },
{ "type": "electric_spark" }
],
"count": 15,
"repeat": 3
}
]
},
{
"type": "ltminigames:on_damage",
"actions": [
Expand All @@ -27,29 +8,7 @@
}
]
},
{
"type": "ltminigames:on_kill",
"actions": [
{
"type": "ltminigames:play_sound",
"sound": "entity.experience_orb.pickup"
},
{
"type": "ltminigames:show_title",
"subtitle": {
"text": "💀 ",
"color": "gray",
"extra": [
{
"text": "%killed%",
"color": "red"
}
]
},
"stay": 30
}
]
},
"lt:survive_the_tide/effects/death",
{
"type": "ltminigames:immediate_respawn",
"role": "participant",
Expand All @@ -61,46 +20,15 @@
"drop_inventory": true
},
"ltminigames:place_by_death_order",
"ltminigames:tnt_auto_fuse",
{
"type": "ltminigames:reveal_players",
"players_left_required": 2,
"glow_on_time": 20,
"glow_off_time": 80
},
{
"type": "ltminigames:camping_tracker",
"trigger": {"after": "release_players"},
"camp_time_threshold": 160,
"camp_movement_threshold": 8
},
"ltminigames:cause_of_death_tracker",
"ltminigames:kills_tracker",
"ltminigames:damage_tracker",
{
"type": "ltminigames:time_survived_tracker",
"trigger": {"after": "release_players"}
},
"lt:survive_the_tide/statistics",
"ltminigames:spectator_chase",
{
"type": "ltminigames:survive_the_tide_sidebar",
"safe_period": {
"start": "start",
"end": "pvp_enabled"
},
"tide_rising_period": {
"start": "pvp_enabled",
"end": "high_tide"
},
"iceberg_growth_period": {
"start": "icebergs_start",
"end": "icebergs_end"
},
"explosive_storm_period": {
"start": "explosive_storm_start",
"end": "explosive_storm_end"
}
},
"lt:survive_the_tide/sidebar",
{
"type": "ltminigames:phase_change",
"release_players": {
Expand Down Expand Up @@ -191,21 +119,6 @@
},
"interval": 80
},
{
"type": "ltminigames:scale_player_damage",
"factor": 0.75,
"host_factor": 0.25
},

{
"type": "ltminigames:scale_damage_from_entity",
"factor": 0.20,
"source": "tropicraft:exploding_coconut"
},
{
"type": "ltminigames:scale_explosion_knockback",
"factor": 2.25,
"exploder": "tropicraft:exploding_coconut"
},
"lt:survive_the_tide/balance",
"lt:survive_the_tide/integrations"
]
44 changes: 44 additions & 0 deletions data/lt/behaviors/survive_the_tide/effects/death.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
[
{
"type": "ltminigames:on_death",
"actions": [
{ "type": "ltminigames:spawn_fireworks" },
{
"type": "ltminigames:play_sound",
"sound": "entity.experience_orb.pickup"
},
{
"type": "ltminigames:spawn_particles_around_player",
"particles": [
{ "type": "totem_of_undying" },
{ "type": "electric_spark" }
],
"count": 15,
"repeat": 3
}
]
},
{
"type": "ltminigames:on_kill",
"actions": [
{
"type": "ltminigames:play_sound",
"sound": "entity.experience_orb.pickup"
},
{
"type": "ltminigames:show_title",
"subtitle": {
"text": "💀 ",
"color": "gray",
"extra": [
{
"text": "%killed%",
"color": "red"
}
]
},
"stay": 30
}
]
}
]
3 changes: 2 additions & 1 deletion data/lt/behaviors/survive_the_tide/ruleset.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,6 @@
"fallDamage": "true",
"doTileDrops": "false"
}
}
},
"ltminigames:tnt_auto_fuse"
]
21 changes: 21 additions & 0 deletions data/lt/behaviors/survive_the_tide/sidebar.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
[
{
"type": "ltminigames:survive_the_tide_sidebar",
"safe_period": {
"start": "start",
"end": "pvp_enabled"
},
"tide_rising_period": {
"start": "pvp_enabled",
"end": "high_tide"
},
"iceberg_growth_period": {
"start": "icebergs_start",
"end": "icebergs_end"
},
"explosive_storm_period": {
"start": "explosive_storm_start",
"end": "explosive_storm_end"
}
}
]
15 changes: 15 additions & 0 deletions data/lt/behaviors/survive_the_tide/statistics.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[
{
"type": "ltminigames:camping_tracker",
"trigger": {"after": "release_players"},
"camp_time_threshold": 160,
"camp_movement_threshold": 8
},
"ltminigames:cause_of_death_tracker",
"ltminigames:kills_tracker",
"ltminigames:damage_tracker",
{
"type": "ltminigames:time_survived_tracker",
"trigger": {"after": "release_players"}
}
]

0 comments on commit 79cc205

Please sign in to comment.