-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
the display info for them hasnt been added yet, this is just the game logic for them
- Loading branch information
1 parent
c850f90
commit 20fd3f2
Showing
41 changed files
with
411 additions
and
81 deletions.
There are no files selected for viewing
6 changes: 6 additions & 0 deletions
6
world/datapacks/lem.battle/data/lem.base/tags/functions/game/end/spectate/roundend.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"values":[ | ||
"lem.battle:game/end/spectate/roundend" | ||
] | ||
} | ||
|
6 changes: 6 additions & 0 deletions
6
...d/datapacks/lem.battle/data/lem.base/tags/functions/game/start/invulnerability/count.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"values":[ | ||
"lem.battle:game/start/invulnerability/count" | ||
] | ||
} | ||
|
22 changes: 22 additions & 0 deletions
22
world/datapacks/lem.battle/data/lem.battle/advancements/balanced.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"display": { | ||
"icon": { | ||
"item": "minecraft:ghast_spawn_egg", | ||
"nbt": "{CustomModelData:6}" | ||
}, | ||
"title": { | ||
"translate": "lem.battle.advancement.balanced.name" | ||
}, | ||
"description": { | ||
"translate": "lem.battle.advancement.balanced.desc" | ||
}, | ||
"frame": "task", | ||
"hidden": true | ||
}, | ||
"parent": "lem.base:root", | ||
"criteria": { | ||
"requirement": { | ||
"trigger": "minecraft:impossible" | ||
} | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
world/datapacks/lem.battle/data/lem.battle/advancements/balanced2.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"display": { | ||
"icon": { | ||
"item": "minecraft:ghast_spawn_egg", | ||
"nbt": "{CustomModelData:6}" | ||
}, | ||
"title": { | ||
"translate": "lem.battle.advancement.balanced2.name" | ||
}, | ||
"description": { | ||
"translate": "lem.battle.advancement.balanced2.desc" | ||
}, | ||
"frame": "task", | ||
"hidden": true | ||
}, | ||
"parent": "lem.base:root", | ||
"criteria": { | ||
"requirement": { | ||
"trigger": "minecraft:impossible" | ||
} | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
world/datapacks/lem.battle/data/lem.battle/advancements/fast.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"display": { | ||
"icon": { | ||
"item": "minecraft:ghast_spawn_egg", | ||
"nbt": "{CustomModelData:6}" | ||
}, | ||
"title": { | ||
"translate": "lem.battle.advancement.fast.name" | ||
}, | ||
"description": { | ||
"translate": "lem.battle.advancement.fast.desc" | ||
}, | ||
"frame": "task", | ||
"hidden": true | ||
}, | ||
"parent": "lem.base:root", | ||
"criteria": { | ||
"requirement": { | ||
"trigger": "minecraft:impossible" | ||
} | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
world/datapacks/lem.battle/data/lem.battle/advancements/forked.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"display": { | ||
"icon": { | ||
"item": "minecraft:ghast_spawn_egg", | ||
"nbt": "{CustomModelData:6}" | ||
}, | ||
"title": { | ||
"translate": "lem.battle.advancement.forked.name" | ||
}, | ||
"description": { | ||
"translate": "lem.battle.advancement.forked.desc" | ||
}, | ||
"frame": "task", | ||
"hidden": true | ||
}, | ||
"parent": "lem.base:root", | ||
"criteria": { | ||
"requirement": { | ||
"trigger": "minecraft:impossible" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
world/datapacks/lem.battle/data/lem.battle/advancements/game/achievement/forked.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
"criteria": { | ||
"player_trident_kill": { | ||
"trigger": "minecraft:player_killed_entity", | ||
"conditions": { | ||
"player": [], | ||
"entity": [ | ||
{ | ||
"condition": "minecraft:entity_properties", | ||
"entity": "this", | ||
"predicate": { | ||
"type": "minecraft:player" | ||
} | ||
} | ||
], | ||
"killing_blow": { | ||
"direct_entity": { | ||
"type": "minecraft:trident" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"rewards": { | ||
"function": "lem.battle:game/achievement/forked/check" | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
world/datapacks/lem.battle/data/lem.battle/advancements/game/achievement/sick.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"criteria": { | ||
"requirement": { | ||
"trigger": "minecraft:player_killed_entity", | ||
"conditions": { | ||
"player": { | ||
"effects": { | ||
"minecraft:nausea": {} | ||
} | ||
}, | ||
"entity": { | ||
"type": "minecraft:player" | ||
} | ||
} | ||
} | ||
}, | ||
"rewards": { | ||
"function": "lem.battle:game/achievement/sick/check" | ||
} | ||
} | ||
|
43 changes: 0 additions & 43 deletions
43
world/datapacks/lem.battle/data/lem.battle/advancements/game/cupid/mainhand.json
This file was deleted.
Oops, something went wrong.
22 changes: 22 additions & 0 deletions
22
world/datapacks/lem.battle/data/lem.battle/advancements/golden.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"display": { | ||
"icon": { | ||
"item": "minecraft:ghast_spawn_egg", | ||
"nbt": "{CustomModelData:6}" | ||
}, | ||
"title": { | ||
"translate": "lem.battle.advancement.golden.name" | ||
}, | ||
"description": { | ||
"translate": "lem.battle.advancement.golden.desc" | ||
}, | ||
"frame": "task", | ||
"hidden": true | ||
}, | ||
"parent": "lem.base:root", | ||
"criteria": { | ||
"requirement": { | ||
"trigger": "minecraft:impossible" | ||
} | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
world/datapacks/lem.battle/data/lem.battle/advancements/sick.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"display": { | ||
"icon": { | ||
"item": "minecraft:ghast_spawn_egg", | ||
"nbt": "{CustomModelData:6}" | ||
}, | ||
"title": { | ||
"translate": "lem.battle.advancement.sick.name" | ||
}, | ||
"description": { | ||
"translate": "lem.battle.advancement.sick.desc" | ||
}, | ||
"frame": "task", | ||
"hidden": true | ||
}, | ||
"parent": "lem.base:root", | ||
"criteria": { | ||
"requirement": { | ||
"trigger": "minecraft:impossible" | ||
} | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
world/datapacks/lem.battle/data/lem.battle/advancements/walls.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"display": { | ||
"icon": { | ||
"item": "minecraft:ghast_spawn_egg", | ||
"nbt": "{CustomModelData:6}" | ||
}, | ||
"title": { | ||
"translate": "lem.battle.advancement.walls.name" | ||
}, | ||
"description": { | ||
"translate": "lem.battle.advancement.walls.desc" | ||
}, | ||
"frame": "task", | ||
"hidden": true | ||
}, | ||
"parent": "lem.base:root", | ||
"criteria": { | ||
"requirement": { | ||
"trigger": "minecraft:impossible" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 10 additions & 3 deletions
13
world/datapacks/lem.battle/data/lem.battle/functions/game/achievement/check.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
world/datapacks/lem.battle/data/lem.battle/functions/game/achievement/cupid/count.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
##Cupid | ||
#Add count | ||
##Add count | ||
scoreboard players add @s lem.battle.cupid 1 | ||
#Give achivement | ||
|
||
##Give achievement | ||
execute as @s[scores={lem.battle.cupid=2..}] run function lem.battle:game/achievement/give/cupid |
4 changes: 4 additions & 0 deletions
4
world/datapacks/lem.battle/data/lem.battle/functions/game/achievement/fast/check.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
##Check if container is opened | ||
execute if score @s lem.battle.fast.chest matches 1.. run function lem.battle:game/achievement/fast/chestcheck | ||
execute if score @s lem.battle.fast.shulker_box matches 1.. run function lem.battle:game/achievement/fast/chestcheck | ||
execute if score @s lem.battle.fast.barrel matches 1.. run function lem.battle:game/achievement/fast/chestcheck |
7 changes: 7 additions & 0 deletions
7
...atapacks/lem.battle/data/lem.battle/functions/game/achievement/fast/chestcheck.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
##Check if nearest chest is a power chest | ||
execute at @e[type=minecraft:area_effect_cloud,sort=nearest,tag=Chest,limit=1] if entity @e[tag=PowerfulChest,sort=nearest,limit=1,distance=..0.1] run function lem.battle:game/achievement/give/fast | ||
|
||
##Reset scores | ||
scoreboard players reset @s lem.battle.fast.chest | ||
scoreboard players reset @s lem.battle.fast.shulker_box | ||
scoreboard players reset @s lem.battle.fast.barrel |
5 changes: 5 additions & 0 deletions
5
...d/datapacks/lem.battle/data/lem.battle/functions/game/achievement/forked/check.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
##Run if recon is disabled | ||
execute unless score #Store lem.recon matches 1 if entity @s[tag=ingame] unless score @s lem.battle.forked matches 2.. run function lem.battle:game/achievement/forked/count | ||
|
||
##Revoke advancement | ||
advancement revoke @s only lem.battle:game/achievement/forked |
5 changes: 5 additions & 0 deletions
5
...d/datapacks/lem.battle/data/lem.battle/functions/game/achievement/forked/count.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
##Add count | ||
scoreboard players add @s lem.battle.forked 1 | ||
|
||
##Give achievement | ||
execute as @s[scores={lem.battle.forked=2..}] run function lem.battle:game/achievement/give/forked |
8 changes: 8 additions & 0 deletions
8
.../datapacks/lem.battle/data/lem.battle/functions/game/achievement/give/balanced.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
##Display in chat | ||
userconfig @s test lem.battle:achievement_balanced NOT_EQUAL true runCommand advancement grant @s only lem.battle:balanced | ||
|
||
##Save achievement | ||
userconfig @s set lem.battle:achievement_balanced true | ||
|
||
##Run global functions | ||
function lem.base:game/achievement/give/global |
Oops, something went wrong.