-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #19 from TriLinder/v2
LexiQuest v2.0.0
- Loading branch information
Showing
27,369 changed files
with
770 additions
and
187,366 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
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,3 +1,5 @@ | ||
python-scripts/assets/* | ||
python-scripts/output/* | ||
python-scripts/venv/* | ||
python-scripts/venv/* | ||
|
||
datapacks/game/data/wordlist/functions |
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
4 changes: 2 additions & 2 deletions
4
datapacks/game/data/effects/functions/hud/game_title.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,7 +1,7 @@ | ||
#Title | ||
title @s times 0 10 10 | ||
title @s subtitle "\uE000" | ||
title @s title "\uE001\uE002\uE003\uE004\uE005\uE003\uE006\uE007\uE008" | ||
title @s title "\uE001\uE002\uE003\uE004\uE005\uE006\uE002\uE007\uE008" | ||
|
||
#Sound | ||
playsound minecraft:wordcraft.dice master @s ~ ~ ~ 1 1 | ||
playsound minecraft:custom.dice master @s ~ ~ ~ 1 1 1 |
1 change: 1 addition & 0 deletions
1
datapacks/game/data/effects/functions/sound/confirm_sound.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 @@ | ||
playsound minecraft:entity.experience_orb.pickup master @s ~ ~ ~ 1 1.75 1 |
1 change: 1 addition & 0 deletions
1
datapacks/game/data/effects/functions/sound/error_sound.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 @@ | ||
playsound minecraft:block.note_block.guitar master @s ~ ~ ~ 1 1 1 |
1 change: 1 addition & 0 deletions
1
datapacks/game/data/effects/functions/sound/notification_sound.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 @@ | ||
playsound minecraft:entity.experience_orb.pickup master @s ~ ~ ~ 1 1.75 1 |
9 changes: 9 additions & 0 deletions
9
datapacks/game/data/game/functions/board/recall_letters.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,9 @@ | ||
execute as @e[tag=tile_marker] at @s if block ~ ~-2 ~ minecraft:yellow_concrete run tag @s add placed_letter | ||
|
||
execute as @e[tag=placed_letter] at @s as @p[tag=current_player] run function game:tile_placing/destroy_tile | ||
execute as @e[tag=placed_letter] at @s unless entity @p[tag=current_player] run function game:tile_placing/destroy_tile | ||
execute as @e[tag=placed_letter] at @s if block ~ ~-2 ~ minecraft:red_concrete run setblock ~ ~-2 ~ minecraft:air | ||
|
||
tag @e remove placed_letter | ||
|
||
function game:board/update |
4 changes: 4 additions & 0 deletions
4
datapacks/game/data/game/functions/end_game_vote/end_vote.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 @@ | ||
scoreboard players set vote_in_progress end_game_vote 0 | ||
tag @a remove has_not_voted | ||
|
||
execute if score non_spectator_player_count state matches 2.. run tellraw @a "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n" |
9 changes: 9 additions & 0 deletions
9
datapacks/game/data/game/functions/end_game_vote/message.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,9 @@ | ||
scoreboard players operation vote_end_timer_seconds end_game_vote = vote_end_timer end_game_vote | ||
scoreboard players operation vote_end_timer_seconds end_game_vote /= 20 numerals | ||
|
||
tellraw @a "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n" | ||
tellraw @a ["",{"text":"===== VOTE TO END THE GAME =====\n","bold":true},{"text":"Players left to vote:","color":"white"},{"text":" "},{"selector":"@a[tag=has_not_voted]"},{"text":"\nTime left: "},{"score":{"name":"vote_end_timer_seconds","objective":"end_game_vote"}},{"text":"s"}] | ||
|
||
tellraw @a[tag=!player] {"text":"You can not vote.","color":"gray"} | ||
execute as @a[tag=player] unless entity @s[tag=has_not_voted] run tellraw @s {"text":"You have already voted.","color":"gray"} | ||
execute as @a[tag=player] if entity @s[tag=has_not_voted] run tellraw @s ["",{"text":"Click "},{"text":"[HERE]","bold":true,"color":"white","clickEvent":{"action":"run_command","value":"/trigger trigger set 201"}},{"text":" to vote."}] |
5 changes: 5 additions & 0 deletions
5
datapacks/game/data/game/functions/end_game_vote/start_vote.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 @@ | ||
scoreboard players set vote_in_progress end_game_vote 1 | ||
scoreboard players set vote_end_timer end_game_vote 300 | ||
|
||
tag @a[tag=player] add has_not_voted | ||
tag @s remove has_not_voted |
1 change: 1 addition & 0 deletions
1
datapacks/game/data/game/functions/end_game_vote/tick.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 @@ | ||
execute if score vote_in_progress end_game_vote matches 1.. run function game:end_game_vote/vote_tick |
2 changes: 2 additions & 0 deletions
2
datapacks/game/data/game/functions/end_game_vote/vote_success.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,2 @@ | ||
function game:end_game_vote/end_vote | ||
function game:end_game |
16 changes: 16 additions & 0 deletions
16
datapacks/game/data/game/functions/end_game_vote/vote_tick.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,16 @@ | ||
#Don't count non-players | ||
tag @a[tag=!player] remove has_not_voted | ||
|
||
#Show the message in chat (unless we're in singleplayer) | ||
execute if score non_spectator_player_count state matches 2.. run function game:end_game_vote/message | ||
|
||
#Handle players voting | ||
execute as @a[scores={trigger=201}, tag=has_not_voted] run function effects:sound/confirm_sound | ||
tag @a[scores={trigger=201}] remove has_not_voted | ||
|
||
#Vote successful | ||
execute unless entity @a[tag=has_not_voted] run function game:end_game_vote/vote_success | ||
|
||
#Countdown to vote end | ||
scoreboard players remove vote_end_timer end_game_vote 1 | ||
execute if score vote_end_timer end_game_vote matches ..0 run function game:end_game_vote/end_vote |
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
2 changes: 2 additions & 0 deletions
2
datapacks/game/data/game/functions/letter_swapping/cancel_swapping_letters.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,2 @@ | ||
tag @s remove swapping_letters | ||
scoreboard players set @s swapped_letters 0 |
2 changes: 2 additions & 0 deletions
2
datapacks/game/data/game/functions/letter_swapping/start_swapping_letters.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,2 @@ | ||
tag @s add swapping_letters | ||
scoreboard players set @s swapped_letters 0 |
6 changes: 5 additions & 1 deletion
6
datapacks/game/data/game/functions/letter_swapping/tick.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,3 +1,7 @@ | ||
title @s actionbar {"text": "Drop letters to swap them", "bold": true} | ||
|
||
execute if score @s dropped_item matches 1.. run function game:inventory/clear_selected_slot | ||
execute if score @s dropped_item matches 1.. if score @s swapped_letters = letters_left letter_bag run tellraw @s {"text":"Not enough letters left in the bag!","color":"red"} | ||
execute if score @s dropped_item matches 1.. if score @s swapped_letters = letters_left letter_bag run function effects:sound/error_sound | ||
|
||
execute if score @s dropped_item matches 1.. unless score @s swapped_letters = letters_left letter_bag run function game:inventory/clear_selected_slot | ||
execute if score @s dropped_item matches 1.. unless score @s swapped_letters = letters_left letter_bag unless entity @s[nbt={SelectedItemSlot:7}] unless entity @s[nbt={SelectedItemSlot:8}] run scoreboard players add @s swapped_letters 1 |
4 changes: 4 additions & 0 deletions
4
datapacks/game/data/game/functions/letter_swapping/turn_over.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 @@ | ||
#Add the letters back to the letter bag if we're not in singleplayer | ||
execute as @a[tag=swapping_letters] if score non_spectator_player_count state matches 2.. run scoreboard players operation letters_left letter_bag += @s swapped_letters | ||
|
||
tag @a remove swapping_letters |
1 change: 1 addition & 0 deletions
1
datapacks/game/data/game/functions/players/spectator_tick.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,2 +1,3 @@ | ||
tp @s @p[tag=current_player] | ||
spectate @p[tag=current_player] | ||
title @s actionbar ["",{"text":"Spectating: ","bold":true},{"selector":"@p[tag=current_player]","bold":true}] |
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
2 changes: 2 additions & 0 deletions
2
datapacks/game/data/game/functions/tile_placing/attempt_to_place.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,6 +1,8 @@ | ||
execute as @e[tag=center_tile] at @s store result score center_tile_filled current_round run execute if block ~ ~-4 ~ minecraft:pink_concrete | ||
|
||
execute if score center_tile_filled current_round matches 0 unless block ~ ~ ~ minecraft:blue_wool run tellraw @s {"text":"The first letter must be placed on the center tile!","color":"red"} | ||
execute if score center_tile_filled current_round matches 0 unless block ~ ~ ~ minecraft:blue_wool run function effects:sound/error_sound | ||
|
||
execute if score center_tile_filled current_round matches 0 if block ~ ~ ~ minecraft:blue_wool run function game:tile_placing/set_selected_block | ||
|
||
execute if score center_tile_filled current_round matches 1 run function game:tile_placing/set_selected_block |
5 changes: 4 additions & 1 deletion
5
datapacks/game/data/game/functions/turns/next_player.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,8 +1,11 @@ | ||
tag @a remove current_player | ||
tag @a remove swapping_letters | ||
execute if entity @a[tag=swapping_letters] run function game:letter_swapping/turn_over | ||
|
||
function game:board/recall_letters | ||
|
||
scoreboard players add $current turn_order 1 | ||
execute if score $current turn_order >= $incremental turn_order run scoreboard players set $current turn_order 0 | ||
|
||
execute as @a[tag=player] if score @s turn_order = $current turn_order run tag @s add current_player | ||
execute if score non_spectator_player_count state matches 2.. as @a[tag=current_player] at @s run function game:turns/notify | ||
function game:board/update |
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,2 @@ | ||
tellraw @s {"text": "It's your turn!", "color": "green"} | ||
function effects:sound/notification_sound |
Oops, something went wrong.