Skip to content

Commit

Permalink
Merge branch 'master' into module-test
Browse files Browse the repository at this point in the history
  • Loading branch information
aksiome committed Mar 16, 2024
2 parents 0bb8dac + b09d318 commit 24d3590
Show file tree
Hide file tree
Showing 163 changed files with 1,686 additions and 1,390 deletions.
3 changes: 3 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,6 @@ indent_style = space
indent_size = 2
insert_final_newline = true
trim_trailing_whitespace = true

[*.py]
indent_size = 4
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,3 @@
/venv/

/.vscode/

/docs/_build/
Binary file added assets/command_storage_bs.dat
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@

scoreboard objectives add bs.data dummy [{"text":"BS ","color":"dark_gray"},{"text":"Data","color":"aqua"}]

function bs.block:load/lookup_table
function bs.block:load/types_table
function bs.block:load/states_table
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# This file was automatically generated, do not edit it
execute if block ~ ~ ~ #bs.block:has_state[face=wall] run data modify storage bs:out block.iterable_properties[{name:"face"}].options[{value:"wall"}].selected set value 1b
execute if block ~ ~ ~ #bs.block:has_state[face=ceiling] run data modify storage bs:out block.iterable_properties[{name:"face"}].options[{value:"ceiling"}].selected set value 1b
execute if block ~ ~ ~ #bs.block:has_state[face=floor] run data modify storage bs:out block.iterable_properties[{name:"face"}].options[{value:"floor"}].selected set value 1b
execute if block ~ ~ ~ #bs.block:has_state[facing=north] run data modify storage bs:out block.iterable_properties[{name:"facing"}].options[{value:"north"}].selected set value 1b
execute if block ~ ~ ~ #bs.block:has_state[facing=south] run data modify storage bs:out block.iterable_properties[{name:"facing"}].options[{value:"south"}].selected set value 1b
execute if block ~ ~ ~ #bs.block:has_state[facing=west] run data modify storage bs:out block.iterable_properties[{name:"facing"}].options[{value:"west"}].selected set value 1b
execute if block ~ ~ ~ #bs.block:has_state[facing=east] run data modify storage bs:out block.iterable_properties[{name:"facing"}].options[{value:"east"}].selected set value 1b

execute if block ~ ~ ~ #bs.block:has_state[shape=straight] run data modify storage bs:out block.iterable_properties[{name:"shape"}].options[{value:"straight"}].selected set value 1b
execute if block ~ ~ ~ #bs.block:has_state[shape=inner_left] run data modify storage bs:out block.iterable_properties[{name:"shape"}].options[{value:"inner_left"}].selected set value 1b
execute if block ~ ~ ~ #bs.block:has_state[shape=outer_left] run data modify storage bs:out block.iterable_properties[{name:"shape"}].options[{value:"outer_left"}].selected set value 1b
execute if block ~ ~ ~ #bs.block:has_state[shape=inner_right] run data modify storage bs:out block.iterable_properties[{name:"shape"}].options[{value:"inner_right"}].selected set value 1b
execute if block ~ ~ ~ #bs.block:has_state[shape=outer_right] run data modify storage bs:out block.iterable_properties[{name:"shape"}].options[{value:"outer_right"}].selected set value 1b
execute if block ~ ~ ~ #bs.block:has_state[powered=false] run data modify storage bs:out block.iterable_properties[{name:"powered"}].options[{value:"false"}].selected set value 1b
execute if block ~ ~ ~ #bs.block:has_state[powered=true] run data modify storage bs:out block.iterable_properties[{name:"powered"}].options[{value:"true"}].selected set value 1b
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# This file was automatically generated, do not edit it
execute if block ~ ~ ~ #bs.block:has_state[rotation=0] run data modify storage bs:out block.iterable_properties[{name:"rotation"}].options[{value:"0"}].selected set value 1b
execute if block ~ ~ ~ #bs.block:has_state[rotation=1] run data modify storage bs:out block.iterable_properties[{name:"rotation"}].options[{value:"1"}].selected set value 1b
execute if block ~ ~ ~ #bs.block:has_state[rotation=2] run data modify storage bs:out block.iterable_properties[{name:"rotation"}].options[{value:"2"}].selected set value 1b
execute if block ~ ~ ~ #bs.block:has_state[rotation=3] run data modify storage bs:out block.iterable_properties[{name:"rotation"}].options[{value:"3"}].selected set value 1b
execute if block ~ ~ ~ #bs.block:has_state[rotation=4] run data modify storage bs:out block.iterable_properties[{name:"rotation"}].options[{value:"4"}].selected set value 1b
execute if block ~ ~ ~ #bs.block:has_state[rotation=5] run data modify storage bs:out block.iterable_properties[{name:"rotation"}].options[{value:"5"}].selected set value 1b
execute if block ~ ~ ~ #bs.block:has_state[rotation=6] run data modify storage bs:out block.iterable_properties[{name:"rotation"}].options[{value:"6"}].selected set value 1b
execute if block ~ ~ ~ #bs.block:has_state[rotation=7] run data modify storage bs:out block.iterable_properties[{name:"rotation"}].options[{value:"7"}].selected set value 1b
execute if block ~ ~ ~ #bs.block:has_state[rotation=8] run data modify storage bs:out block.iterable_properties[{name:"rotation"}].options[{value:"8"}].selected set value 1b
execute if block ~ ~ ~ #bs.block:has_state[rotation=9] run data modify storage bs:out block.iterable_properties[{name:"rotation"}].options[{value:"9"}].selected set value 1b
execute if block ~ ~ ~ #bs.block:has_state[rotation=10] run data modify storage bs:out block.iterable_properties[{name:"rotation"}].options[{value:"10"}].selected set value 1b
execute if block ~ ~ ~ #bs.block:has_state[rotation=11] run data modify storage bs:out block.iterable_properties[{name:"rotation"}].options[{value:"11"}].selected set value 1b
execute if block ~ ~ ~ #bs.block:has_state[rotation=12] run data modify storage bs:out block.iterable_properties[{name:"rotation"}].options[{value:"12"}].selected set value 1b
execute if block ~ ~ ~ #bs.block:has_state[rotation=13] run data modify storage bs:out block.iterable_properties[{name:"rotation"}].options[{value:"13"}].selected set value 1b
execute if block ~ ~ ~ #bs.block:has_state[rotation=14] run data modify storage bs:out block.iterable_properties[{name:"rotation"}].options[{value:"14"}].selected set value 1b
execute if block ~ ~ ~ #bs.block:has_state[rotation=15] run data modify storage bs:out block.iterable_properties[{name:"rotation"}].options[{value:"15"}].selected set value 1b
execute if block ~ ~ ~ #bs.block:has_state[waterlogged=false] run data modify storage bs:out block.iterable_properties[{name:"waterlogged"}].options[{value:"false"}].selected set value 1b
execute if block ~ ~ ~ #bs.block:has_state[waterlogged=true] run data modify storage bs:out block.iterable_properties[{name:"waterlogged"}].options[{value:"true"}].selected set value 1b
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# This file was automatically generated, do not edit it
execute if block ~ ~ ~ #bs.block:has_state[hatch=0] run data modify storage bs:out block.iterable_properties[{name:"hatch"}].options[{value:"0"}].selected set value 1b
execute if block ~ ~ ~ #bs.block:has_state[hatch=1] run data modify storage bs:out block.iterable_properties[{name:"hatch"}].options[{value:"1"}].selected set value 1b
execute if block ~ ~ ~ #bs.block:has_state[hatch=2] run data modify storage bs:out block.iterable_properties[{name:"hatch"}].options[{value:"2"}].selected set value 1b
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# This file was automatically generated, do not edit it
execute if block ~ ~ ~ #bs.block:has_state[layers=1] run data modify storage bs:out block.iterable_properties[{name:"layers"}].options[{value:"1"}].selected set value 1b
execute if block ~ ~ ~ #bs.block:has_state[layers=2] run data modify storage bs:out block.iterable_properties[{name:"layers"}].options[{value:"2"}].selected set value 1b
execute if block ~ ~ ~ #bs.block:has_state[layers=3] run data modify storage bs:out block.iterable_properties[{name:"layers"}].options[{value:"3"}].selected set value 1b
execute if block ~ ~ ~ #bs.block:has_state[layers=4] run data modify storage bs:out block.iterable_properties[{name:"layers"}].options[{value:"4"}].selected set value 1b
execute if block ~ ~ ~ #bs.block:has_state[layers=5] run data modify storage bs:out block.iterable_properties[{name:"layers"}].options[{value:"5"}].selected set value 1b
execute if block ~ ~ ~ #bs.block:has_state[layers=6] run data modify storage bs:out block.iterable_properties[{name:"layers"}].options[{value:"6"}].selected set value 1b
execute if block ~ ~ ~ #bs.block:has_state[layers=7] run data modify storage bs:out block.iterable_properties[{name:"layers"}].options[{value:"7"}].selected set value 1b
execute if block ~ ~ ~ #bs.block:has_state[layers=8] run data modify storage bs:out block.iterable_properties[{name:"layers"}].options[{value:"8"}].selected set value 1b
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# This file was automatically generated, do not edit it
execute if block ~ ~ ~ #bs.block:has_state[mode=load] run data modify storage bs:out block.iterable_properties[{name:"mode"}].options[{value:"load"}].selected set value 1b
execute if block ~ ~ ~ #bs.block:has_state[mode=corner] run data modify storage bs:out block.iterable_properties[{name:"mode"}].options[{value:"corner"}].selected set value 1b
execute if block ~ ~ ~ #bs.block:has_state[mode=data] run data modify storage bs:out block.iterable_properties[{name:"mode"}].options[{value:"data"}].selected set value 1b
execute if block ~ ~ ~ #bs.block:has_state[mode=save] run data modify storage bs:out block.iterable_properties[{name:"mode"}].options[{value:"save"}].selected set value 1b
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# This file was automatically generated, do not edit it
execute if block ~ ~ ~ #bs.block:has_state[dusted=0] run data modify storage bs:out block.iterable_properties[{name:"dusted"}].options[{value:"0"}].selected set value 1b
execute if block ~ ~ ~ #bs.block:has_state[dusted=1] run data modify storage bs:out block.iterable_properties[{name:"dusted"}].options[{value:"1"}].selected set value 1b
execute if block ~ ~ ~ #bs.block:has_state[dusted=2] run data modify storage bs:out block.iterable_properties[{name:"dusted"}].options[{value:"2"}].selected set value 1b
execute if block ~ ~ ~ #bs.block:has_state[dusted=3] run data modify storage bs:out block.iterable_properties[{name:"dusted"}].options[{value:"3"}].selected set value 1b
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# This file was automatically generated, do not edit it
execute if block ~ ~ ~ #bs.block:has_state[unstable=false] run data modify storage bs:out block.iterable_properties[{name:"unstable"}].options[{value:"false"}].selected set value 1b
execute if block ~ ~ ~ #bs.block:has_state[unstable=true] run data modify storage bs:out block.iterable_properties[{name:"unstable"}].options[{value:"true"}].selected set value 1b
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# This file was automatically generated, do not edit it
execute if block ~ ~ ~ #bs.block:has_state[age=0] run data modify storage bs:out block.iterable_properties[{name:"age"}].options[{value:"0"}].selected set value 1b
execute if block ~ ~ ~ #bs.block:has_state[age=1] run data modify storage bs:out block.iterable_properties[{name:"age"}].options[{value:"1"}].selected set value 1b
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# This file was automatically generated, do not edit it
execute if block ~ ~ ~ #bs.block:has_state[trial_spawner_state=inactive] run data modify storage bs:out block.iterable_properties[{name:"trial_spawner_state"}].options[{value:"inactive"}].selected set value 1b
execute if block ~ ~ ~ #bs.block:has_state[trial_spawner_state=waiting_for_players] run data modify storage bs:out block.iterable_properties[{name:"trial_spawner_state"}].options[{value:"waiting_for_players"}].selected set value 1b
execute if block ~ ~ ~ #bs.block:has_state[trial_spawner_state=active] run data modify storage bs:out block.iterable_properties[{name:"trial_spawner_state"}].options[{value:"active"}].selected set value 1b
execute if block ~ ~ ~ #bs.block:has_state[trial_spawner_state=waiting_for_reward_ejection] run data modify storage bs:out block.iterable_properties[{name:"trial_spawner_state"}].options[{value:"waiting_for_reward_ejection"}].selected set value 1b
execute if block ~ ~ ~ #bs.block:has_state[trial_spawner_state=ejecting_reward] run data modify storage bs:out block.iterable_properties[{name:"trial_spawner_state"}].options[{value:"ejecting_reward"}].selected set value 1b
execute if block ~ ~ ~ #bs.block:has_state[trial_spawner_state=cooldown] run data modify storage bs:out block.iterable_properties[{name:"trial_spawner_state"}].options[{value:"cooldown"}].selected set value 1b
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# This file was automatically generated, do not edit it
execute if block ~ ~ ~ #bs.block:has_state[attached=false] run data modify storage bs:out block.iterable_properties[{name:"attached"}].options[{value:"false"}].selected set value 1b
execute if block ~ ~ ~ #bs.block:has_state[attached=true] run data modify storage bs:out block.iterable_properties[{name:"attached"}].options[{value:"true"}].selected set value 1b
execute if block ~ ~ ~ #bs.block:has_state[disarmed=false] run data modify storage bs:out block.iterable_properties[{name:"disarmed"}].options[{value:"false"}].selected set value 1b
execute if block ~ ~ ~ #bs.block:has_state[disarmed=true] run data modify storage bs:out block.iterable_properties[{name:"disarmed"}].options[{value:"true"}].selected set value 1b
execute if block ~ ~ ~ #bs.block:has_state[east=false] run data modify storage bs:out block.iterable_properties[{name:"east"}].options[{value:"false"}].selected set value 1b
execute if block ~ ~ ~ #bs.block:has_state[east=true] run data modify storage bs:out block.iterable_properties[{name:"east"}].options[{value:"true"}].selected set value 1b
execute if block ~ ~ ~ #bs.block:has_state[north=false] run data modify storage bs:out block.iterable_properties[{name:"north"}].options[{value:"false"}].selected set value 1b
execute if block ~ ~ ~ #bs.block:has_state[north=true] run data modify storage bs:out block.iterable_properties[{name:"north"}].options[{value:"true"}].selected set value 1b
execute if block ~ ~ ~ #bs.block:has_state[powered=false] run data modify storage bs:out block.iterable_properties[{name:"powered"}].options[{value:"false"}].selected set value 1b
execute if block ~ ~ ~ #bs.block:has_state[powered=true] run data modify storage bs:out block.iterable_properties[{name:"powered"}].options[{value:"true"}].selected set value 1b
execute if block ~ ~ ~ #bs.block:has_state[south=false] run data modify storage bs:out block.iterable_properties[{name:"south"}].options[{value:"false"}].selected set value 1b
execute if block ~ ~ ~ #bs.block:has_state[south=true] run data modify storage bs:out block.iterable_properties[{name:"south"}].options[{value:"true"}].selected set value 1b
execute if block ~ ~ ~ #bs.block:has_state[west=false] run data modify storage bs:out block.iterable_properties[{name:"west"}].options[{value:"false"}].selected set value 1b
execute if block ~ ~ ~ #bs.block:has_state[west=true] run data modify storage bs:out block.iterable_properties[{name:"west"}].options[{value:"true"}].selected set value 1b
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# This file was automatically generated, do not edit it
execute if block ~ ~ ~ #bs.block:has_state[attached=false] run data modify storage bs:out block.iterable_properties[{name:"attached"}].options[{value:"false"}].selected set value 1b
execute if block ~ ~ ~ #bs.block:has_state[attached=true] run data modify storage bs:out block.iterable_properties[{name:"attached"}].options[{value:"true"}].selected set value 1b
execute if block ~ ~ ~ #bs.block:has_state[facing=north] run data modify storage bs:out block.iterable_properties[{name:"facing"}].options[{value:"north"}].selected set value 1b
execute if block ~ ~ ~ #bs.block:has_state[facing=south] run data modify storage bs:out block.iterable_properties[{name:"facing"}].options[{value:"south"}].selected set value 1b
execute if block ~ ~ ~ #bs.block:has_state[facing=west] run data modify storage bs:out block.iterable_properties[{name:"facing"}].options[{value:"west"}].selected set value 1b
execute if block ~ ~ ~ #bs.block:has_state[facing=east] run data modify storage bs:out block.iterable_properties[{name:"facing"}].options[{value:"east"}].selected set value 1b
execute if block ~ ~ ~ #bs.block:has_state[powered=false] run data modify storage bs:out block.iterable_properties[{name:"powered"}].options[{value:"false"}].selected set value 1b
execute if block ~ ~ ~ #bs.block:has_state[powered=true] run data modify storage bs:out block.iterable_properties[{name:"powered"}].options[{value:"true"}].selected set value 1b
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# This file was automatically generated, do not edit it
execute if block ~ ~ ~ #bs.block:has_state[eggs=1] run data modify storage bs:out block.iterable_properties[{name:"eggs"}].options[{value:"1"}].selected set value 1b
execute if block ~ ~ ~ #bs.block:has_state[eggs=2] run data modify storage bs:out block.iterable_properties[{name:"eggs"}].options[{value:"2"}].selected set value 1b
execute if block ~ ~ ~ #bs.block:has_state[eggs=3] run data modify storage bs:out block.iterable_properties[{name:"eggs"}].options[{value:"3"}].selected set value 1b
execute if block ~ ~ ~ #bs.block:has_state[eggs=4] run data modify storage bs:out block.iterable_properties[{name:"eggs"}].options[{value:"4"}].selected set value 1b
execute if block ~ ~ ~ #bs.block:has_state[hatch=0] run data modify storage bs:out block.iterable_properties[{name:"hatch"}].options[{value:"0"}].selected set value 1b
execute if block ~ ~ ~ #bs.block:has_state[hatch=1] run data modify storage bs:out block.iterable_properties[{name:"hatch"}].options[{value:"1"}].selected set value 1b
execute if block ~ ~ ~ #bs.block:has_state[hatch=2] run data modify storage bs:out block.iterable_properties[{name:"hatch"}].options[{value:"2"}].selected set value 1b
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# This file was automatically generated, do not edit it
execute if block ~ ~ ~ #bs.block:has_state[type=bottom] run data modify storage bs:out block.iterable_properties[{name:"type"}].options[{value:"bottom"}].selected set value 1b
execute if block ~ ~ ~ #bs.block:has_state[type=double] run data modify storage bs:out block.iterable_properties[{name:"type"}].options[{value:"double"}].selected set value 1b
execute if block ~ ~ ~ #bs.block:has_state[type=top] run data modify storage bs:out block.iterable_properties[{name:"type"}].options[{value:"top"}].selected set value 1b
execute if block ~ ~ ~ #bs.block:has_state[waterlogged=false] run data modify storage bs:out block.iterable_properties[{name:"waterlogged"}].options[{value:"false"}].selected set value 1b
execute if block ~ ~ ~ #bs.block:has_state[waterlogged=true] run data modify storage bs:out block.iterable_properties[{name:"waterlogged"}].options[{value:"true"}].selected set value 1b
Loading

0 comments on commit 24d3590

Please sign in to comment.