Skip to content

Commit

Permalink
♻️ Refactor block generator
Browse files Browse the repository at this point in the history
  • Loading branch information
aksiome committed Mar 17, 2024
1 parent 24d3590 commit d897ec8
Show file tree
Hide file tree
Showing 129 changed files with 364 additions and 326 deletions.
Binary file modified assets/command_storage_bs.dat
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ execute if block ~ ~ ~ #bs.block:has_state[facing=south] run data modify storage
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
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
Expand Up @@ -16,4 +16,4 @@ execute if block ~ ~ ~ #bs.block:has_state[rotation=13] run data modify storage
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
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
@@ -1,4 +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
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
Expand Up @@ -6,4 +6,4 @@ execute if block ~ ~ ~ #bs.block:has_state[layers=4] run data modify storage bs:
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
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
Expand Up @@ -2,4 +2,4 @@
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
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
Expand Up @@ -2,4 +2,4 @@
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
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
@@ -1,3 +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
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
@@ -1,3 +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
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
Expand Up @@ -4,4 +4,4 @@ execute if block ~ ~ ~ #bs.block:has_state[trial_spawner_state=waiting_for_playe
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
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
Expand Up @@ -12,4 +12,4 @@ execute if block ~ ~ ~ #bs.block:has_state[powered=true] run data modify storage
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
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
Expand Up @@ -6,4 +6,4 @@ execute if block ~ ~ ~ #bs.block:has_state[facing=south] run data modify storage
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
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
Expand Up @@ -5,4 +5,4 @@ execute if block ~ ~ ~ #bs.block:has_state[eggs=3] run data modify storage bs:ou
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
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
Expand Up @@ -3,4 +3,4 @@ execute if block ~ ~ ~ #bs.block:has_state[type=bottom] run data modify storage
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
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
Expand Up @@ -8,4 +8,4 @@ execute if block ~ ~ ~ #bs.block:has_state[south=true] run data modify storage b
execute if block ~ ~ ~ #bs.block:has_state[up=false] run data modify storage bs:out block.iterable_properties[{name:"up"}].options[{value:"false"}].selected set value 1b
execute if block ~ ~ ~ #bs.block:has_state[up=true] run data modify storage bs:out block.iterable_properties[{name:"up"}].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
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
Expand Up @@ -11,4 +11,4 @@ execute if block ~ ~ ~ #bs.block:has_state[shape=inner_right] run data modify st
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=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[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
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
Expand Up @@ -10,4 +10,4 @@ execute if block ~ ~ ~ #bs.block:has_state[open=true] run data modify storage bs
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[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
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
Expand Up @@ -4,4 +4,4 @@ execute if block ~ ~ ~ #bs.block:has_state[facing=south] run data modify storage
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[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
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
Expand Up @@ -8,4 +8,4 @@ execute if block ~ ~ ~ #bs.block:has_state[shape=ascending_west] run data modify
execute if block ~ ~ ~ #bs.block:has_state[shape=ascending_north] run data modify storage bs:out block.iterable_properties[{name:"shape"}].options[{value:"ascending_north"}].selected set value 1b
execute if block ~ ~ ~ #bs.block:has_state[shape=ascending_south] run data modify storage bs:out block.iterable_properties[{name:"shape"}].options[{value:"ascending_south"}].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
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
Expand Up @@ -6,4 +6,4 @@ execute if block ~ ~ ~ #bs.block:has_state[facing=east] run data modify storage
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[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
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
Expand Up @@ -14,4 +14,4 @@ execute if block ~ ~ ~ #bs.block:has_state[waterlogged=false] run data modify st
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
execute if block ~ ~ ~ #bs.block:has_state[west=none] run data modify storage bs:out block.iterable_properties[{name:"west"}].options[{value:"none"}].selected set value 1b
execute if block ~ ~ ~ #bs.block:has_state[west=low] run data modify storage bs:out block.iterable_properties[{name:"west"}].options[{value:"low"}].selected set value 1b
execute if block ~ ~ ~ #bs.block:has_state[west=tall] run data modify storage bs:out block.iterable_properties[{name:"west"}].options[{value:"tall"}].selected set value 1b
execute if block ~ ~ ~ #bs.block:has_state[west=tall] run data modify storage bs:out block.iterable_properties[{name:"west"}].options[{value:"tall"}].selected set value 1b
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
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[facing=east] run data modify storage bs:out block.iterable_properties[{name:"facing"}].options[{value:"east"}].selected set value 1b
Loading

0 comments on commit d897ec8

Please sign in to comment.