-
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.
* update gitignore * update readme.md * added logic and items to change game mode with the texture pack for MC JA * added the game modes existing in the MC BE add-on * MC JA and BE pack icon and description changed * updated Readne.md * updated manifest.json
- Loading branch information
1 parent
6a76657
commit 17efb3a
Showing
36 changed files
with
209 additions
and
16 deletions.
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,2 +1,3 @@ | ||
.mcattributes | ||
.vscode/ | ||
.vscode/ | ||
/output |
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
12 changes: 12 additions & 0 deletions
12
MinecraftJava/IfTouchTheBlockDieDP/data/afunc/function/aconfig_tools.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,12 @@ | ||
clear @a minecraft:carrot_on_a_stick[minecraft:custom_model_data=1] | ||
clear @a minecraft:carrot_on_a_stick[minecraft:custom_model_data=2] | ||
clear @a minecraft:carrot_on_a_stick[minecraft:custom_model_data=3] | ||
|
||
execute as @a if data entity @s Inventory[{Slot:8b}] run tellraw @s "The slot 9 of the hotbar needs to be empty to obtain: Next Mode Item" | ||
execute as @a unless data entity @s Inventory[{Slot:8b}] run item replace entity @a hotbar.8 with minecraft:carrot_on_a_stick[minecraft:custom_model_data=1,minecraft:item_name='{text:"Next game mode"}',minecraft:rarity="rare",minecraft:lore=['{text:"Change the gamemode to the next one."}', "DataPackTool"]] | ||
|
||
execute as @a if data entity @s Inventory[{Slot:7b}] run tellraw @s "The slot 8 of the hotbar needs to be empty to obtain: Reset Mode Item" | ||
execute as @a unless data entity @s Inventory[{Slot:7b}] run item replace entity @a hotbar.7 with minecraft:carrot_on_a_stick[minecraft:custom_model_data=3,minecraft:item_name='{text:"Reset game mode"}',minecraft:rarity="rare",minecraft:lore=['{text:"Change the gamemode to the first one: All blocks."}', "DataPackTool"]] | ||
|
||
execute as @a if data entity @s Inventory[{Slot:6b}] run tellraw @s "The slot 7 of the hotbar needs to be empty to obtain: Prev Mode Item" | ||
execute as @a unless data entity @s Inventory[{Slot:6b}] run item replace entity @a hotbar.6 with minecraft:carrot_on_a_stick[minecraft:custom_model_data=2,minecraft:item_name='{text:"Prev game mode"}',minecraft:rarity="rare",minecraft:lore=['{text:"Change the gamemode to the previous one."}', "DataPackTool"]] |
2 changes: 2 additions & 0 deletions
2
...data/func/function/change_mode.mcfunction → ...func/function/change_next_mode.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,4 +1,6 @@ | ||
execute as @a if items entity @s weapon.mainhand minecraft:carrot_on_a_stick[minecraft:custom_model_data=1] run item replace entity @s weapon.mainhand with minecraft:air | ||
scoreboard players add $game_mode game_mode 1 | ||
scoreboard players set @s change_mode 0 | ||
execute as @s if score $game_mode game_mode matches 25.. run scoreboard players set $game_mode game_mode 1 | ||
function touchdie:spawn | ||
execute as @a at @a run function touchdie:mode_visor |
6 changes: 6 additions & 0 deletions
6
MinecraftJava/IfTouchTheBlockDieDP/data/afunc/function/change_prev_mode.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,6 @@ | ||
execute as @a if items entity @s weapon.mainhand minecraft:carrot_on_a_stick[minecraft:custom_model_data=2] run item replace entity @s weapon.mainhand with minecraft:air | ||
scoreboard players remove $game_mode game_mode 1 | ||
scoreboard players set @s change_mode 0 | ||
execute as @s if score $game_mode game_mode matches ..0 run scoreboard players set $game_mode game_mode 24 | ||
function touchdie:spawn | ||
execute as @a at @a run function touchdie:mode_visor |
5 changes: 5 additions & 0 deletions
5
MinecraftJava/IfTouchTheBlockDieDP/data/afunc/function/reset_mode.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 @@ | ||
execute as @a if items entity @s weapon.mainhand minecraft:carrot_on_a_stick[minecraft:custom_model_data=3] run item replace entity @s weapon.mainhand with minecraft:air | ||
scoreboard players set $game_mode game_mode 1 | ||
scoreboard players set @s change_mode 0 | ||
function touchdie:spawn | ||
execute as @a at @a run function touchdie:mode_visor |
2 changes: 1 addition & 1 deletion
2
MinecraftJava/IfTouchTheBlockDieDP/data/minecraft/tags/function/load.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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"values": [ | ||
"touchdie:spawn" | ||
"touchdie:mode_visor" | ||
] | ||
} |
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
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
18 changes: 17 additions & 1 deletion
18
MinecraftJava/IfTouchTheBlockDieDP/data/touchdie/function/clay.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,18 @@ | ||
execute as @a at @a if block ~ ~-0.01 ~ minecraft:clay run kill @s | ||
execute as @a at @a if block ~ ~-0.01 ~ minecraft:terracotta run kill @s | ||
execute as @a at @a if block ~ ~-0.01 ~ minecraft:terracotta run kill @s | ||
execute as @a at @a if block ~ ~-0.01 ~ minecraft:red_terracotta run kill @s | ||
execute as @a at @a if block ~ ~-0.01 ~ minecraft:blue_terracotta run kill @s | ||
execute as @a at @a if block ~ ~-0.01 ~ minecraft:cyan_terracotta run kill @s | ||
execute as @a at @a if block ~ ~-0.01 ~ minecraft:gray_terracotta run kill @s | ||
execute as @a at @a if block ~ ~-0.01 ~ minecraft:lime_terracotta run kill @s | ||
execute as @a at @a if block ~ ~-0.01 ~ minecraft:pink_terracotta run kill @s | ||
execute as @a at @a if block ~ ~-0.01 ~ minecraft:black_terracotta run kill @s | ||
execute as @a at @a if block ~ ~-0.01 ~ minecraft:brown_terracotta run kill @s | ||
execute as @a at @a if block ~ ~-0.01 ~ minecraft:green_terracotta run kill @s | ||
execute as @a at @a if block ~ ~-0.01 ~ minecraft:white_terracotta run kill @s | ||
execute as @a at @a if block ~ ~-0.01 ~ minecraft:orange_terracotta run kill @s | ||
execute as @a at @a if block ~ ~-0.01 ~ minecraft:purple_terracotta run kill @s | ||
execute as @a at @a if block ~ ~-0.01 ~ minecraft:yellow_terracotta run kill @s | ||
execute as @a at @a if block ~ ~-0.01 ~ minecraft:magenta_terracotta run kill @s | ||
execute as @a at @a if block ~ ~-0.01 ~ minecraft:light_blue_terracotta run kill @s | ||
execute as @a at @a if block ~ ~-0.01 ~ minecraft:light_gray_terracotta run kill @s |
3 changes: 2 additions & 1 deletion
3
MinecraftJava/IfTouchTheBlockDieDP/data/touchdie/function/dirt.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 +1,2 @@ | ||
execute as @a at @a if block ~ ~-0.01 ~ minecraft:dirt run kill @s | ||
execute as @a at @a if block ~ ~-0.01 ~ minecraft:dirt run kill @s | ||
execute as @a at @a if block ~ ~-0.01 ~ minecraft:coarse_dirt run kill @s |
3 changes: 3 additions & 0 deletions
3
MinecraftJava/IfTouchTheBlockDieDP/data/touchdie/function/mode_visor.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
2 changes: 2 additions & 0 deletions
2
MinecraftJava/IfTouchTheBlockDieDP/data/touchdie/function/mud.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 @@ | ||
execute as @a at @a if block ~ ~-0.01 ~ minecraft:mud run kill @s | ||
execute as @a at @a if block ~ ~-0.01 ~ minecraft:muddy_mangrove_roots run kill @s |
1 change: 1 addition & 0 deletions
1
MinecraftJava/IfTouchTheBlockDieDP/data/touchdie/function/netherrack.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 as @a at @a if block ~ ~-0.01 ~ minecraft:netherrack run kill @s |
2 changes: 2 additions & 0 deletions
2
MinecraftJava/IfTouchTheBlockDieDP/data/touchdie/function/sand.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 @@ | ||
execute as @a at @a if block ~ ~-0.01 ~ minecraft:sand run kill @s | ||
execute as @a at @a if block ~ ~-0.01 ~ minecraft:red_sand run kill @s |
5 changes: 5 additions & 0 deletions
5
MinecraftJava/IfTouchTheBlockDieDP/data/touchdie/function/sculk.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 @@ | ||
execute as @a at @a if block ~ ~-0.01 ~ minecraft:sculk run kill @s | ||
execute as @a at @a if block ~ ~-0.01 ~ minecraft:sculk_catalyst run kill @s | ||
execute as @a at @a if block ~ ~-0.01 ~ minecraft:sculk_sensor run kill @s | ||
execute as @a at @a if block ~ ~-0.01 ~ minecraft:sculk_shrieker run kill @s | ||
execute as @a at @a if block ~ ~-0.01 ~ minecraft:calibrated_sculk_sensor run kill @s |
2 changes: 2 additions & 0 deletions
2
MinecraftJava/IfTouchTheBlockDieDP/data/touchdie/function/snow.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 @@ | ||
execute as @a at @a if block ~ ~-0.01 ~ minecraft:snow run kill @s | ||
execute as @a at @a if block ~ ~-0.01 ~ minecraft:snow_block run kill @s |
1 change: 1 addition & 0 deletions
1
MinecraftJava/IfTouchTheBlockDieDP/data/touchdie/function/soul_sand.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 as @a at @a if block ~ ~-0.01 ~ minecraft:soul_sand run kill @s |
1 change: 1 addition & 0 deletions
1
MinecraftJava/IfTouchTheBlockDieDP/data/touchdie/function/soul_soil.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 as @a at @a if block ~ ~-0.01 ~ minecraft:soul_soil run kill @s |
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: 4 additions & 0 deletions
4
MinecraftJava/IfTouchTheBlockDieDP/data/touchdie/function/stone.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 @@ | ||
execute as @a at @a if block ~ ~-0.01 ~ minecraft:stone run kill @s | ||
execute as @a at @a if block ~ ~-0.01 ~ minecraft:granite run kill @s | ||
execute as @a at @a if block ~ ~-0.01 ~ minecraft:diorite run kill @s | ||
execute as @a at @a if block ~ ~-0.01 ~ minecraft:andesite run kill @s |
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
1 change: 1 addition & 0 deletions
1
MinecraftJava/IfTouchTheBlockDieDP/data/touchdie/function/warped.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 as @a at @a if block ~ ~-0.01 ~ minecraft:warped_nylium run kill @s |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
26 changes: 26 additions & 0 deletions
26
MinecraftJava/IfTouchTheBlockDieRP/assets/minecraft/models/item/carrot_on_a_stick.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,26 @@ | ||
{ | ||
"parent": "minecraft:item/handheld", | ||
"textures": { | ||
"layer0": "minecraft:item/carrot_on_a_stick" | ||
}, | ||
"overrides": [ | ||
{ | ||
"predicate": { | ||
"custom_model_data": 1 | ||
}, | ||
"model": "minecraft:item/next_item" | ||
}, | ||
{ | ||
"predicate": { | ||
"custom_model_data": 2 | ||
}, | ||
"model": "minecraft:item/prev_item" | ||
}, | ||
{ | ||
"predicate": { | ||
"custom_model_data": 3 | ||
}, | ||
"model": "minecraft:item/reset_item" | ||
} | ||
] | ||
} |
6 changes: 6 additions & 0 deletions
6
MinecraftJava/IfTouchTheBlockDieRP/assets/minecraft/models/item/next_item.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 @@ | ||
{ | ||
"parent": "minecraft:item/generated", | ||
"textures": { | ||
"layer0": "minecraft:item/next_icon" | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
MinecraftJava/IfTouchTheBlockDieRP/assets/minecraft/models/item/prev_item.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 @@ | ||
{ | ||
"parent": "minecraft:item/generated", | ||
"textures": { | ||
"layer0": "minecraft:item/prev_icon" | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
MinecraftJava/IfTouchTheBlockDieRP/assets/minecraft/models/item/reset_item.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 @@ | ||
{ | ||
"parent": "minecraft:item/generated", | ||
"textures": { | ||
"layer0": "minecraft:item/reset_icon" | ||
} | ||
} |
Binary file added
BIN
+524 Bytes
MinecraftJava/IfTouchTheBlockDieRP/assets/minecraft/textures/item/next_icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+549 Bytes
MinecraftJava/IfTouchTheBlockDieRP/assets/minecraft/textures/item/prev_icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+400 Bytes
MinecraftJava/IfTouchTheBlockDieRP/assets/minecraft/textures/item/reset_icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 @@ | ||
{ | ||
"pack": { | ||
"pack_format": 34, | ||
"description": [ | ||
{ | ||
"text": "(This is the RP)" | ||
}, | ||
{ | ||
"text": "If you touch the selected block, §4you'll die." | ||
}, | ||
{ | ||
"text": "§rMod by: §1L§2u§3n§4a§51§61§85" | ||
} | ||
] | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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