Skip to content

Commit

Permalink
Merge pull request #6 from KobeDuda/main
Browse files Browse the repository at this point in the history
Try this again
  • Loading branch information
Geph authored May 17, 2024
2 parents 2616cfc + 26b3831 commit 4b94ab5
Show file tree
Hide file tree
Showing 785 changed files with 7,495 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"workbench.iconTheme": "mc-dp-icons"
}
17 changes: 17 additions & 0 deletions beet.json
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"]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"values" : [
"whimc:technical/load"
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"values" : [
"whimc:technical/tick"
]
}
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"
}
}
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"
}
}
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"
}
}

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"
}
}

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"
}
}

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"
}
}

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}
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
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
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}
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
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
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}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
function whimc:barrelbot/dev/create_function
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
$function whimc:barrelbot/block/$(id)/initialize
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
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: [{}]}
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
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
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
Loading

0 comments on commit 4b94ab5

Please sign in to comment.