forked from KobeDuda/Barrelbot
-
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 #6 from KobeDuda/main
Try this again
- Loading branch information
Showing
785 changed files
with
7,495 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"workbench.iconTheme": "mc-dp-icons" | ||
} |
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,17 @@ | ||
{ | ||
"author": "Kobe Duda", | ||
"name": "barrelbot", | ||
"data_pack": { | ||
"load": ["src"] | ||
}, | ||
"resource_pack": { | ||
"load": ["src"] | ||
}, | ||
"description": "WHIMC Barrelbot Pack", | ||
"meta": { | ||
"bolt": {"entrypoint":"whimc:main"} | ||
}, | ||
"pipeline": ["mecha"], | ||
"output": "build", | ||
"require": ["bolt"] | ||
} |
5 changes: 5 additions & 0 deletions
5
build/barrelbot_data_pack/data/minecraft/tags/functions/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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"values" : [ | ||
"whimc:technical/load" | ||
] | ||
} |
5 changes: 5 additions & 0 deletions
5
build/barrelbot_data_pack/data/minecraft/tags/functions/tick.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,5 @@ | ||
{ | ||
"values" : [ | ||
"whimc:technical/tick" | ||
] | ||
} |
25 changes: 25 additions & 0 deletions
25
build/barrelbot_data_pack/data/whimc/advancements/block/place_custom_block.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,25 @@ | ||
{ | ||
"criteria": { | ||
"requirement": { | ||
"trigger": "minecraft:placed_block", | ||
"conditions": { | ||
"item": { | ||
"nbt": "{BlockEntityTag:{Items:[{tag:{whimc:{block:{}}}}]}}" | ||
}, | ||
"location": [ | ||
{ | ||
"condition": "minecraft:location_check", | ||
"predicate": { | ||
"block": { | ||
"tag": "whimc:custom_blocks" | ||
} | ||
} | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
"rewards": { | ||
"function": "whimc:barrelbot/block/place_custom_block" | ||
} | ||
} |
27 changes: 27 additions & 0 deletions
27
build/barrelbot_data_pack/data/whimc/advancements/block/place_puzzle_button.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": { | ||
"requirement": { | ||
"trigger": "minecraft:placed_block", | ||
"conditions": { | ||
"item": { | ||
"nbt": "{whimc:{puzzle_button:1b}}" | ||
}, | ||
"location": [ | ||
{ | ||
"condition": "minecraft:location_check", | ||
"predicate": { | ||
"block": { | ||
"blocks": [ | ||
"minecraft:stone_button" | ||
] | ||
} | ||
} | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
"rewards": { | ||
"function": "whimc:barrelbot/block/puzzle_button/place" | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
build/barrelbot_data_pack/data/whimc/advancements/interact/right_click_editor.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,17 @@ | ||
{ | ||
"criteria": { | ||
"requirement": { | ||
"trigger": "minecraft:player_interacted_with_entity", | ||
"conditions": { | ||
"entity": { | ||
"type": "minecraft:interaction", | ||
"nbt": "{Tags:[\"whimc.editor_click\"]}" | ||
} | ||
} | ||
} | ||
}, | ||
"rewards": { | ||
"function": "whimc:barrelbot/editor/edit_wand/edit_mode/click" | ||
} | ||
} | ||
|
17 changes: 17 additions & 0 deletions
17
build/barrelbot_data_pack/data/whimc/advancements/interact/right_click_function.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,17 @@ | ||
{ | ||
"criteria": { | ||
"requirement": { | ||
"trigger": "minecraft:player_interacted_with_entity", | ||
"conditions": { | ||
"entity": { | ||
"type": "minecraft:interaction", | ||
"nbt": "{Tags:[\"whimc.barrelbot.function_interaction\"]}" | ||
} | ||
} | ||
} | ||
}, | ||
"rewards": { | ||
"function": "whimc:barrelbot/functions/interact/right_click" | ||
} | ||
} | ||
|
17 changes: 17 additions & 0 deletions
17
build/barrelbot_data_pack/data/whimc/advancements/interact/right_click_node.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,17 @@ | ||
{ | ||
"criteria": { | ||
"requirement": { | ||
"trigger": "minecraft:player_interacted_with_entity", | ||
"conditions": { | ||
"entity": { | ||
"type": "minecraft:interaction", | ||
"nbt": "{Tags:[\"whimc.editor_node\"]}" | ||
} | ||
} | ||
} | ||
}, | ||
"rewards": { | ||
"function": "whimc:barrelbot/editor/drag/click_node" | ||
} | ||
} | ||
|
18 changes: 18 additions & 0 deletions
18
build/barrelbot_data_pack/data/whimc/advancements/inventory/receive_puzzle_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,18 @@ | ||
{ | ||
"criteria": { | ||
"requirement": { | ||
"trigger": "minecraft:inventory_changed", | ||
"conditions": { | ||
"items": [ | ||
{ | ||
"nbt": "{barrelbot:{puzzle_item:1b}}" | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
"rewards": { | ||
"function": "whimc:barrelbot/no_smuggle/receive_puzzle_item" | ||
} | ||
} | ||
|
1 change: 1 addition & 0 deletions
1
build/barrelbot_data_pack/data/whimc/functions/barrelbot/block/barrelbot/give.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 @@ | ||
give @s barrel{display: {Name: '{"text":"Barrelbot","color":"yellow","italic":false}'}, BlockEntityTag: {Items: [{id: "minecraft:barrier", Count: 1b, Slot: 0b, tag: {whimc: {block: {id: "barrelbot"}}}}]}, CustomModelData: 130123} |
4 changes: 4 additions & 0 deletions
4
.../barrelbot_data_pack/data/whimc/functions/barrelbot/block/barrelbot/initialize.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 summon marker run function whimc:barrelbot/manager/get_execution_direction | ||
setblock ~ ~ ~ air | ||
setblock ~ ~ ~ barrel[facing=up] | ||
execute align xyz positioned ~0.5 ~0.5 ~0.5 summon item_display run function whimc:barrelbot/bot/setup |
2 changes: 2 additions & 0 deletions
2
build/barrelbot_data_pack/data/whimc/functions/barrelbot/block/block_found.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 @@ | ||
data modify storage whimc:macro block.id set from block ~ ~ ~ Items[0].tag.whimc.block.id | ||
function whimc:barrelbot/block/initialize with storage whimc:macro block |
1 change: 1 addition & 0 deletions
1
build/barrelbot_data_pack/data/whimc/functions/barrelbot/block/dispenser_bot/give.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 @@ | ||
give @s dispenser{display: {Name: '{"text":"Dispenser Bot","color":"yellow","italic":false}'}, BlockEntityTag: {Items: [{id: "minecraft:barrier", Count: 1b, Slot: 0b, tag: {whimc: {block: {id: "dispenser_bot"}}}}]}, CustomModelData: 130123} |
4 changes: 4 additions & 0 deletions
4
...relbot_data_pack/data/whimc/functions/barrelbot/block/dispenser_bot/initialize.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 summon marker run function whimc:barrelbot/manager/get_execution_direction | ||
setblock ~ ~ ~ air | ||
setblock ~ ~ ~ dispenser[facing=up] | ||
execute align xyz positioned ~0.5 ~0.5 ~0.5 summon item_display run function whimc:barrelbot/block/dispenser_bot/initialize/nested_execute_0 |
2 changes: 2 additions & 0 deletions
2
...data/whimc/functions/barrelbot/block/dispenser_bot/initialize/nested_execute_0.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 whimc:barrelbot/bot/setup | ||
function whimc:barrelbot/dispenser_bot/convert |
1 change: 1 addition & 0 deletions
1
build/barrelbot_data_pack/data/whimc/functions/barrelbot/block/function/give.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 @@ | ||
give @s shulker_box{display: {Name: '{"text":"Function","color":"cyan","italic":false}'}, BlockEntityTag: {Items: [{id: "minecraft:barrier", Count: 1b, Slot: 0b, tag: {whimc: {block: {id: "function"}}}}]}, CustomModelData: 130123} |
1 change: 1 addition & 0 deletions
1
...d/barrelbot_data_pack/data/whimc/functions/barrelbot/block/function/initialize.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 @@ | ||
function whimc:barrelbot/dev/create_function |
1 change: 1 addition & 0 deletions
1
build/barrelbot_data_pack/data/whimc/functions/barrelbot/block/initialize.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 @@ | ||
$function whimc:barrelbot/block/$(id)/initialize |
15 changes: 15 additions & 0 deletions
15
build/barrelbot_data_pack/data/whimc/functions/barrelbot/block/place_custom_block.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,15 @@ | ||
advancement revoke @s only whimc:block/place_custom_block | ||
execute align xyz positioned ~0.5 ~-6.5 ~0.5 run function whimc:barrelbot/block/scan_layer | ||
execute align xyz positioned ~0.5 ~-5.5 ~0.5 run function whimc:barrelbot/block/scan_layer | ||
execute align xyz positioned ~0.5 ~-4.5 ~0.5 run function whimc:barrelbot/block/scan_layer | ||
execute align xyz positioned ~0.5 ~-3.5 ~0.5 run function whimc:barrelbot/block/scan_layer | ||
execute align xyz positioned ~0.5 ~-2.5 ~0.5 run function whimc:barrelbot/block/scan_layer | ||
execute align xyz positioned ~0.5 ~-1.5 ~0.5 run function whimc:barrelbot/block/scan_layer | ||
execute align xyz positioned ~0.5 ~-0.5 ~0.5 run function whimc:barrelbot/block/scan_layer | ||
execute align xyz positioned ~0.5 ~0.5 ~0.5 run function whimc:barrelbot/block/scan_layer | ||
execute align xyz positioned ~0.5 ~1.5 ~0.5 run function whimc:barrelbot/block/scan_layer | ||
execute align xyz positioned ~0.5 ~2.5 ~0.5 run function whimc:barrelbot/block/scan_layer | ||
execute align xyz positioned ~0.5 ~3.5 ~0.5 run function whimc:barrelbot/block/scan_layer | ||
execute align xyz positioned ~0.5 ~4.5 ~0.5 run function whimc:barrelbot/block/scan_layer | ||
execute align xyz positioned ~0.5 ~5.5 ~0.5 run function whimc:barrelbot/block/scan_layer | ||
execute align xyz positioned ~0.5 ~6.5 ~0.5 run function whimc:barrelbot/block/scan_layer |
1 change: 1 addition & 0 deletions
1
build/barrelbot_data_pack/data/whimc/functions/barrelbot/block/puzzle_button/give.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 @@ | ||
give @s minecraft:stone_button{whimc: {puzzle_button: 1b}, display: {Name: '{"text":"Puzzle Button","italic":false}'}, Enchantments: [{}]} |
2 changes: 2 additions & 0 deletions
2
...relbot_data_pack/data/whimc/functions/barrelbot/block/puzzle_button/initialize.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 @@ | ||
scoreboard players set $raycast whimc.dummy 0 | ||
function whimc:barrelbot/dev/spawn_manager |
3 changes: 3 additions & 0 deletions
3
...d/barrelbot_data_pack/data/whimc/functions/barrelbot/block/puzzle_button/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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
advancement revoke @s only whimc:block/place_puzzle_button | ||
scoreboard players set $raycast whimc.dummy 60 | ||
execute anchored eyes positioned ^ ^ ^ run function whimc:barrelbot/block/puzzle_button/raycast |
3 changes: 3 additions & 0 deletions
3
...barrelbot_data_pack/data/whimc/functions/barrelbot/block/puzzle_button/raycast.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,3 @@ | ||
execute if block ~ ~ ~ stone_button align xyz positioned ~0.5 ~0.5 ~0.5 run function whimc:barrelbot/block/puzzle_button/initialize | ||
scoreboard players remove $raycast whimc.dummy 1 | ||
execute if score $raycast whimc.dummy matches 1.. positioned ^ ^ ^0.1 run function whimc:barrelbot/block/puzzle_button/raycast |
Oops, something went wrong.