diff --git a/.gitignore b/.gitignore index f2233cb..9372921 100644 --- a/.gitignore +++ b/.gitignore @@ -1,9 +1,3 @@ /.idea/ -/Fortress.dat -/Mineshaft.dat -/scoreboard.dat -/villages.dat -/villages_end.dat -/villages_nether.dat __pycache__/ diff --git a/data/b7s/advancements/_biome_any.json b/data/b7s/advancements/_biome_any.json deleted file mode 100644 index 622598b..0000000 --- a/data/b7s/advancements/_biome_any.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "parent": "b7s:root", - "criteria": { - "b7s:_biome_any": { - "trigger": "minecraft:location" - } - }, - "rewards": { - "function": "b7s:advancement/_biome_any" - } -} diff --git a/data/b7s/advancements/_biome_beaches.json b/data/b7s/advancements/_biome_beaches.json deleted file mode 100644 index 8ea7050..0000000 --- a/data/b7s/advancements/_biome_beaches.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "parent": "b7s:root", - "criteria": { - "b7s:_biome_beaches": { - "trigger": "minecraft:location", - "conditions": { - "biome": "minecraft:beaches" - } - } - }, - "rewards": { - "function": "b7s:advancement/_biome_beaches" - } -} diff --git a/data/b7s/advancements/_biome_birch_forest.json b/data/b7s/advancements/_biome_birch_forest.json deleted file mode 100644 index 22c0407..0000000 --- a/data/b7s/advancements/_biome_birch_forest.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "parent": "b7s:root", - "criteria": { - "b7s:_biome_birch_forest": { - "trigger": "minecraft:location", - "conditions": { - "biome": "minecraft:birch_forest" - } - } - }, - "rewards": { - "function": "b7s:advancement/_biome_birch_forest" - } -} diff --git a/data/b7s/advancements/_biome_birch_forest_hills.json b/data/b7s/advancements/_biome_birch_forest_hills.json deleted file mode 100644 index 58ef86c..0000000 --- a/data/b7s/advancements/_biome_birch_forest_hills.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "parent": "b7s:root", - "criteria": { - "b7s:_biome_birch_forest_hills": { - "trigger": "minecraft:location", - "conditions": { - "biome": "minecraft:birch_forest_hills" - } - } - }, - "rewards": { - "function": "b7s:advancement/_biome_birch_forest_hills" - } -} diff --git a/data/b7s/advancements/_biome_cold_beach.json b/data/b7s/advancements/_biome_cold_beach.json deleted file mode 100644 index 5313977..0000000 --- a/data/b7s/advancements/_biome_cold_beach.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "parent": "b7s:root", - "criteria": { - "b7s:_biome_cold_beach": { - "trigger": "minecraft:location", - "conditions": { - "biome": "minecraft:cold_beach" - } - } - }, - "rewards": { - "function": "b7s:advancement/_biome_cold_beach" - } -} diff --git a/data/b7s/advancements/_biome_deep_ocean.json b/data/b7s/advancements/_biome_deep_ocean.json deleted file mode 100644 index 482b5d2..0000000 --- a/data/b7s/advancements/_biome_deep_ocean.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "parent": "b7s:root", - "criteria": { - "b7s:_biome_deep_ocean": { - "trigger": "minecraft:location", - "conditions": { - "biome": "minecraft:deep_ocean" - } - } - }, - "rewards": { - "function": "b7s:advancement/_biome_deep_ocean" - } -} diff --git a/data/b7s/advancements/_biome_desert.json b/data/b7s/advancements/_biome_desert.json deleted file mode 100644 index 618a46e..0000000 --- a/data/b7s/advancements/_biome_desert.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "parent": "b7s:root", - "criteria": { - "b7s:_biome_desert": { - "trigger": "minecraft:desert", - "conditions": { - "biome": "minecraft:desert" - } - } - }, - "rewards": { - "function": "b7s:advancement/_biome_desert" - } -} diff --git a/data/b7s/advancements/_biome_desert_hills.json b/data/b7s/advancements/_biome_desert_hills.json deleted file mode 100644 index 321de86..0000000 --- a/data/b7s/advancements/_biome_desert_hills.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "parent": "b7s:root", - "criteria": { - "b7s:_biome_desert_hills": { - "trigger": "minecraft:location", - "conditions": { - "biome": "minecraft:desert_hills" - } - } - }, - "rewards": { - "function": "b7s:advancement/_biome_desert_hills" - } -} diff --git a/data/b7s/advancements/_biome_extreme_hills.json b/data/b7s/advancements/_biome_extreme_hills.json deleted file mode 100644 index b70b620..0000000 --- a/data/b7s/advancements/_biome_extreme_hills.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "parent": "b7s:root", - "criteria": { - "b7s:_biome_extreme_hills": { - "trigger": "minecraft:location", - "conditions": { - "biome": "minecraft:extreme_hills" - } - } - }, - "rewards": { - "function": "b7s:advancement/_biome_extreme_hills" - } -} diff --git a/data/b7s/advancements/_biome_extreme_hills_with_trees.json b/data/b7s/advancements/_biome_extreme_hills_with_trees.json deleted file mode 100644 index 5836ece..0000000 --- a/data/b7s/advancements/_biome_extreme_hills_with_trees.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "parent": "b7s:root", - "criteria": { - "b7s:_biome_extreme_hills_with_trees": { - "trigger": "minecraft:location", - "conditions": { - "biome": "minecraft:extreme_hills_with_trees" - } - } - }, - "rewards": { - "function": "b7s:advancement/_biome_extreme_hills_with_trees" - } -} diff --git a/data/b7s/advancements/_biome_forest.json b/data/b7s/advancements/_biome_forest.json deleted file mode 100644 index 368c3a7..0000000 --- a/data/b7s/advancements/_biome_forest.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "parent": "b7s:root", - "criteria": { - "b7s:_biome_forest": { - "trigger": "minecraft:location", - "conditions": { - "biome": "minecraft:forest" - } - } - }, - "rewards": { - "function": "b7s:advancement/_biome_forest" - } -} diff --git a/data/b7s/advancements/_biome_forest_hills.json b/data/b7s/advancements/_biome_forest_hills.json deleted file mode 100644 index 1ec476f..0000000 --- a/data/b7s/advancements/_biome_forest_hills.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "parent": "b7s:root", - "criteria": { - "b7s:_biome_forest_hills": { - "trigger": "minecraft:location", - "conditions": { - "biome": "minecraft:forest_hills" - } - } - }, - "rewards": { - "function": "b7s:advancement/_biome_forest_hills" - } -} diff --git a/data/b7s/advancements/_biome_frozen_ocean.json b/data/b7s/advancements/_biome_frozen_ocean.json deleted file mode 100644 index ab509d9..0000000 --- a/data/b7s/advancements/_biome_frozen_ocean.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "parent": "b7s:root", - "criteria": { - "b7s:_biome_frozen_ocean": { - "trigger": "minecraft:location", - "conditions": { - "biome": "minecraft:frozen_ocean" - } - } - }, - "rewards": { - "function": "b7s:advancement/_biome_frozen_ocean" - } -} diff --git a/data/b7s/advancements/_biome_frozen_river.json b/data/b7s/advancements/_biome_frozen_river.json deleted file mode 100644 index 9b5841c..0000000 --- a/data/b7s/advancements/_biome_frozen_river.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "parent": "b7s:root", - "criteria": { - "b7s:_biome_frozen_river": { - "trigger": "minecraft:location", - "conditions": { - "biome": "minecraft:frozen_river" - } - } - }, - "rewards": { - "function": "b7s:advancement/_biome_frozen_river" - } -} diff --git a/data/b7s/advancements/_biome_hell.json b/data/b7s/advancements/_biome_hell.json deleted file mode 100644 index 1966312..0000000 --- a/data/b7s/advancements/_biome_hell.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "parent": "b7s:root", - "criteria": { - "b7s:_biome_hell": { - "trigger": "minecraft:location", - "conditions": { - "biome": "minecraft:hell" - } - } - }, - "rewards": { - "function": "b7s:advancement/_biome_hell" - } -} diff --git a/data/b7s/advancements/_biome_ice_flats.json b/data/b7s/advancements/_biome_ice_flats.json deleted file mode 100644 index 966dd04..0000000 --- a/data/b7s/advancements/_biome_ice_flats.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "parent": "b7s:root", - "criteria": { - "b7s:_biome_ice_flats": { - "trigger": "minecraft:location", - "conditions": { - "biome": "minecraft:ice_flats" - } - } - }, - "rewards": { - "function": "b7s:advancement/_biome_ice_flats" - } -} diff --git a/data/b7s/advancements/_biome_ice_mountains.json b/data/b7s/advancements/_biome_ice_mountains.json deleted file mode 100644 index 2726816..0000000 --- a/data/b7s/advancements/_biome_ice_mountains.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "parent": "b7s:root", - "criteria": { - "b7s:_biome_ice_mountains": { - "trigger": "minecraft:location", - "conditions": { - "biome": "minecraft:ice_mountains" - } - } - }, - "rewards": { - "function": "b7s:advancement/_biome_ice_mountains" - } -} diff --git a/data/b7s/advancements/_biome_jungle.json b/data/b7s/advancements/_biome_jungle.json deleted file mode 100644 index 1c09e62..0000000 --- a/data/b7s/advancements/_biome_jungle.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "parent": "b7s:root", - "criteria": { - "b7s:_biome_jungle": { - "trigger": "minecraft:location", - "conditions": { - "biome": "minecraft:jungle" - } - } - }, - "rewards": { - "function": "b7s:advancement/_biome_jungle" - } -} diff --git a/data/b7s/advancements/_biome_jungle_edge.json b/data/b7s/advancements/_biome_jungle_edge.json deleted file mode 100644 index df56a1f..0000000 --- a/data/b7s/advancements/_biome_jungle_edge.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "parent": "b7s:root", - "criteria": { - "b7s:_biome_jungle_edge": { - "trigger": "minecraft:location", - "conditions": { - "biome": "minecraft:jungle_edge" - } - } - }, - "rewards": { - "function": "b7s:advancement/_biome_jungle_edge" - } -} diff --git a/data/b7s/advancements/_biome_jungle_hills.json b/data/b7s/advancements/_biome_jungle_hills.json deleted file mode 100644 index 221ff2d..0000000 --- a/data/b7s/advancements/_biome_jungle_hills.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "parent": "b7s:root", - "criteria": { - "b7s:_biome_jungle_hills": { - "trigger": "minecraft:location", - "conditions": { - "biome": "minecraft:jungle_hills" - } - } - }, - "rewards": { - "function": "b7s:advancement/_biome_jungle_hills" - } -} diff --git a/data/b7s/advancements/_biome_mesa.json b/data/b7s/advancements/_biome_mesa.json deleted file mode 100644 index e768933..0000000 --- a/data/b7s/advancements/_biome_mesa.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "parent": "b7s:root", - "criteria": { - "b7s:_biome_mesa": { - "trigger": "minecraft:location", - "conditions": { - "biome": "minecraft:mesa" - } - } - }, - "rewards": { - "function": "b7s:advancement/_biome_mesa" - } -} diff --git a/data/b7s/advancements/_biome_mesa_clear_rock.json b/data/b7s/advancements/_biome_mesa_clear_rock.json deleted file mode 100644 index 7a96dff..0000000 --- a/data/b7s/advancements/_biome_mesa_clear_rock.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "parent": "b7s:root", - "criteria": { - "b7s:_biome_mesa_clear_rock": { - "trigger": "minecraft:location", - "conditions": { - "biome": "minecraft:mesa_clear_rock" - } - } - }, - "rewards": { - "function": "b7s:advancement/_biome_mesa_clear_rock" - } -} diff --git a/data/b7s/advancements/_biome_mesa_rock.json b/data/b7s/advancements/_biome_mesa_rock.json deleted file mode 100644 index ce5930b..0000000 --- a/data/b7s/advancements/_biome_mesa_rock.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "parent": "b7s:root", - "criteria": { - "b7s:_biome_mesa_rock": { - "trigger": "minecraft:location", - "conditions": { - "biome": "minecraft:mesa_rock" - } - } - }, - "rewards": { - "function": "b7s:advancement/_biome_mesa_rock" - } -} diff --git a/data/b7s/advancements/_biome_mushroom_island.json b/data/b7s/advancements/_biome_mushroom_island.json deleted file mode 100644 index c5d5e18..0000000 --- a/data/b7s/advancements/_biome_mushroom_island.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "parent": "b7s:root", - "criteria": { - "b7s:_biome_mushroom_island": { - "trigger": "minecraft:location", - "conditions": { - "biome": "minecraft:mushroom_island" - } - } - }, - "rewards": { - "function": "b7s:advancement/_biome_mushroom_island" - } -} diff --git a/data/b7s/advancements/_biome_mushroom_island_shore.json b/data/b7s/advancements/_biome_mushroom_island_shore.json deleted file mode 100644 index cf80209..0000000 --- a/data/b7s/advancements/_biome_mushroom_island_shore.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "parent": "b7s:root", - "criteria": { - "b7s:_biome_mushroom_island_shore": { - "trigger": "minecraft:location", - "conditions": { - "biome": "minecraft:mushroom_island_shore" - } - } - }, - "rewards": { - "function": "b7s:advancement/_biome_mushroom_island_shore" - } -} diff --git a/data/b7s/advancements/_biome_mutated_birch_forest.json b/data/b7s/advancements/_biome_mutated_birch_forest.json deleted file mode 100644 index d4c9a31..0000000 --- a/data/b7s/advancements/_biome_mutated_birch_forest.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "parent": "b7s:root", - "criteria": { - "b7s:_biome_mutated_birch_forest": { - "trigger": "minecraft:location", - "conditions": { - "biome": "minecraft:mutated_birch_forest" - } - } - }, - "rewards": { - "function": "b7s:advancement/_biome_mutated_birch_forest" - } -} diff --git a/data/b7s/advancements/_biome_mutated_birch_forest_hills.json b/data/b7s/advancements/_biome_mutated_birch_forest_hills.json deleted file mode 100644 index 755db4d..0000000 --- a/data/b7s/advancements/_biome_mutated_birch_forest_hills.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "parent": "b7s:root", - "criteria": { - "b7s:_biome_mutated_birch_forest_hills": { - "trigger": "minecraft:location", - "conditions": { - "biome": "minecraft:mutated_birch_forest_hills" - } - } - }, - "rewards": { - "function": "b7s:advancement/_biome_mutated_birch_forest_hills" - } -} diff --git a/data/b7s/advancements/_biome_mutated_desert.json b/data/b7s/advancements/_biome_mutated_desert.json deleted file mode 100644 index 89a7d1b..0000000 --- a/data/b7s/advancements/_biome_mutated_desert.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "parent": "b7s:root", - "criteria": { - "b7s:_biome_mutated_desert": { - "trigger": "minecraft:location", - "conditions": { - "biome": "minecraft:mutated_desert" - } - } - }, - "rewards": { - "function": "b7s:advancement/_biome_mutated_desert" - } -} diff --git a/data/b7s/advancements/_biome_mutated_extreme_hills.json b/data/b7s/advancements/_biome_mutated_extreme_hills.json deleted file mode 100644 index 6a0c828..0000000 --- a/data/b7s/advancements/_biome_mutated_extreme_hills.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "parent": "b7s:root", - "criteria": { - "b7s:_biome_mutated_extreme_hills": { - "trigger": "minecraft:location", - "conditions": { - "biome": "minecraft:mutated_extreme_hills" - } - } - }, - "rewards": { - "function": "b7s:advancement/_biome_mutated_extreme_hills" - } -} diff --git a/data/b7s/advancements/_biome_mutated_extreme_hills_with_trees.json b/data/b7s/advancements/_biome_mutated_extreme_hills_with_trees.json deleted file mode 100644 index 4880e83..0000000 --- a/data/b7s/advancements/_biome_mutated_extreme_hills_with_trees.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "parent": "b7s:root", - "criteria": { - "b7s:_biome_mutated_extreme_hills_with_trees": { - "trigger": "minecraft:location", - "conditions": { - "biome": "minecraft:mutated_extreme_hills_with_trees" - } - } - }, - "rewards": { - "function": "b7s:advancement/_biome_mutated_extreme_hills_with_trees" - } -} diff --git a/data/b7s/advancements/_biome_mutated_forest.json b/data/b7s/advancements/_biome_mutated_forest.json deleted file mode 100644 index 3f6c959..0000000 --- a/data/b7s/advancements/_biome_mutated_forest.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "parent": "b7s:root", - "criteria": { - "b7s:_biome_mutated_forest": { - "trigger": "minecraft:location", - "conditions": { - "biome": "minecraft:mutated_forest" - } - } - }, - "rewards": { - "function": "b7s:advancement/_biome_mutated_forest" - } -} diff --git a/data/b7s/advancements/_biome_mutated_ice_flats.json b/data/b7s/advancements/_biome_mutated_ice_flats.json deleted file mode 100644 index a8600fc..0000000 --- a/data/b7s/advancements/_biome_mutated_ice_flats.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "parent": "b7s:root", - "criteria": { - "b7s:_biome_mutated_ice_flats": { - "trigger": "minecraft:location", - "conditions": { - "biome": "minecraft:mutated_ice_flats" - } - } - }, - "rewards": { - "function": "b7s:advancement/_biome_mutated_ice_flats" - } -} diff --git a/data/b7s/advancements/_biome_mutated_jungle.json b/data/b7s/advancements/_biome_mutated_jungle.json deleted file mode 100644 index 644461b..0000000 --- a/data/b7s/advancements/_biome_mutated_jungle.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "parent": "b7s:root", - "criteria": { - "b7s:_biome_mutated_jungle": { - "trigger": "minecraft:location", - "conditions": { - "biome": "minecraft:mutated_jungle" - } - } - }, - "rewards": { - "function": "b7s:advancement/_biome_mutated_jungle" - } -} diff --git a/data/b7s/advancements/_biome_mutated_jungle_edge.json b/data/b7s/advancements/_biome_mutated_jungle_edge.json deleted file mode 100644 index 512bcfa..0000000 --- a/data/b7s/advancements/_biome_mutated_jungle_edge.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "parent": "b7s:root", - "criteria": { - "b7s:_biome_mutated_jungle_edge": { - "trigger": "minecraft:location", - "conditions": { - "biome": "minecraft:mutated_jungle_edge" - } - } - }, - "rewards": { - "function": "b7s:advancement/_biome_mutated_jungle_edge" - } -} diff --git a/data/b7s/advancements/_biome_mutated_mesa.json b/data/b7s/advancements/_biome_mutated_mesa.json deleted file mode 100644 index d2cdf85..0000000 --- a/data/b7s/advancements/_biome_mutated_mesa.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "parent": "b7s:root", - "criteria": { - "b7s:_biome_mutated_mesa": { - "trigger": "minecraft:location", - "conditions": { - "biome": "minecraft:mutated_mesa" - } - } - }, - "rewards": { - "function": "b7s:advancement/_biome_mutated_mesa" - } -} diff --git a/data/b7s/advancements/_biome_mutated_mesa_clear_rock.json b/data/b7s/advancements/_biome_mutated_mesa_clear_rock.json deleted file mode 100644 index 3c9a7f5..0000000 --- a/data/b7s/advancements/_biome_mutated_mesa_clear_rock.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "parent": "b7s:root", - "criteria": { - "b7s:_biome_mutated_mesa_clear_rock": { - "trigger": "minecraft:location", - "conditions": { - "biome": "minecraft:mutated_mesa_clear_rock" - } - } - }, - "rewards": { - "function": "b7s:advancement/_biome_mutated_mesa_clear_rock" - } -} diff --git a/data/b7s/advancements/_biome_mutated_mesa_rock.json b/data/b7s/advancements/_biome_mutated_mesa_rock.json deleted file mode 100644 index 02d3524..0000000 --- a/data/b7s/advancements/_biome_mutated_mesa_rock.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "parent": "b7s:root", - "criteria": { - "b7s:_biome_mutated_mesa_rock": { - "trigger": "minecraft:location", - "conditions": { - "biome": "minecraft:mutated_mesa_rock" - } - } - }, - "rewards": { - "function": "b7s:advancement/_biome_mutated_mesa_rock" - } -} diff --git a/data/b7s/advancements/_biome_mutated_plains.json b/data/b7s/advancements/_biome_mutated_plains.json deleted file mode 100644 index 8c3b6f7..0000000 --- a/data/b7s/advancements/_biome_mutated_plains.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "parent": "b7s:root", - "criteria": { - "b7s:_biome_mutated_plains": { - "trigger": "minecraft:location", - "conditions": { - "biome": "minecraft:mutated_plains" - } - } - }, - "rewards": { - "function": "b7s:advancement/_biome_mutated_plains" - } -} diff --git a/data/b7s/advancements/_biome_mutated_redwood_taiga.json b/data/b7s/advancements/_biome_mutated_redwood_taiga.json deleted file mode 100644 index 18ae716..0000000 --- a/data/b7s/advancements/_biome_mutated_redwood_taiga.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "parent": "b7s:root", - "criteria": { - "b7s:_biome_mutated_redwood_taiga": { - "trigger": "minecraft:location", - "conditions": { - "biome": "minecraft:mutated_redwood_taiga" - } - } - }, - "rewards": { - "function": "b7s:advancement/_biome_mutated_redwood_taiga" - } -} diff --git a/data/b7s/advancements/_biome_mutated_redwood_taiga_hills.json b/data/b7s/advancements/_biome_mutated_redwood_taiga_hills.json deleted file mode 100644 index 361da51..0000000 --- a/data/b7s/advancements/_biome_mutated_redwood_taiga_hills.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "parent": "b7s:root", - "criteria": { - "b7s:_biome_mutated_redwood_taiga_hills": { - "trigger": "minecraft:location", - "conditions": { - "biome": "minecraft:mutated_redwood_taiga_hills" - } - } - }, - "rewards": { - "function": "b7s:advancement/_biome_mutated_redwood_taiga_hills" - } -} diff --git a/data/b7s/advancements/_biome_mutated_roofed_forest.json b/data/b7s/advancements/_biome_mutated_roofed_forest.json deleted file mode 100644 index 3063918..0000000 --- a/data/b7s/advancements/_biome_mutated_roofed_forest.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "parent": "b7s:root", - "criteria": { - "b7s:_biome_mutated_roofed_forest": { - "trigger": "minecraft:location", - "conditions": { - "biome": "minecraft:mutated_roofed_forest" - } - } - }, - "rewards": { - "function": "b7s:advancement/_biome_mutated_roofed_forest" - } -} diff --git a/data/b7s/advancements/_biome_mutated_savanna.json b/data/b7s/advancements/_biome_mutated_savanna.json deleted file mode 100644 index dc04577..0000000 --- a/data/b7s/advancements/_biome_mutated_savanna.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "parent": "b7s:root", - "criteria": { - "b7s:_biome_mutated_savanna": { - "trigger": "minecraft:location", - "conditions": { - "biome": "minecraft:mutated_savanna" - } - } - }, - "rewards": { - "function": "b7s:advancement/_biome_mutated_savanna" - } -} diff --git a/data/b7s/advancements/_biome_mutated_savanna_rock.json b/data/b7s/advancements/_biome_mutated_savanna_rock.json deleted file mode 100644 index 54535de..0000000 --- a/data/b7s/advancements/_biome_mutated_savanna_rock.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "parent": "b7s:root", - "criteria": { - "b7s:_biome_mutated_savanna_rock": { - "trigger": "minecraft:location", - "conditions": { - "biome": "minecraft:mutated_savanna_rock" - } - } - }, - "rewards": { - "function": "b7s:advancement/_biome_mutated_savanna_rock" - } -} diff --git a/data/b7s/advancements/_biome_mutated_swampland.json b/data/b7s/advancements/_biome_mutated_swampland.json deleted file mode 100644 index 12cf579..0000000 --- a/data/b7s/advancements/_biome_mutated_swampland.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "parent": "b7s:root", - "criteria": { - "b7s:_biome_mutated_swampland": { - "trigger": "minecraft:location", - "conditions": { - "biome": "minecraft:mutated_swampland" - } - } - }, - "rewards": { - "function": "b7s:advancement/_biome_mutated_swampland" - } -} diff --git a/data/b7s/advancements/_biome_mutated_taiga.json b/data/b7s/advancements/_biome_mutated_taiga.json deleted file mode 100644 index b4fdcb6..0000000 --- a/data/b7s/advancements/_biome_mutated_taiga.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "parent": "b7s:root", - "criteria": { - "b7s:_biome_mutated_taiga": { - "trigger": "minecraft:location", - "conditions": { - "biome": "minecraft:mutated_taiga" - } - } - }, - "rewards": { - "function": "b7s:advancement/_biome_mutated_taiga" - } -} diff --git a/data/b7s/advancements/_biome_mutated_taiga_cold.json b/data/b7s/advancements/_biome_mutated_taiga_cold.json deleted file mode 100644 index f447fdd..0000000 --- a/data/b7s/advancements/_biome_mutated_taiga_cold.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "parent": "b7s:root", - "criteria": { - "b7s:_biome_mutated_taiga_cold": { - "trigger": "minecraft:location", - "conditions": { - "biome": "minecraft:mutated_taiga_cold" - } - } - }, - "rewards": { - "function": "b7s:advancement/_biome_mutated_taiga_cold" - } -} diff --git a/data/b7s/advancements/_biome_ocean.json b/data/b7s/advancements/_biome_ocean.json deleted file mode 100644 index 726de22..0000000 --- a/data/b7s/advancements/_biome_ocean.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "parent": "b7s:root", - "criteria": { - "b7s:_biome_ocean": { - "trigger": "minecraft:location", - "conditions": { - "biome": "minecraft:ocean" - } - } - }, - "rewards": { - "function": "b7s:advancement/_biome_ocean" - } -} diff --git a/data/b7s/advancements/_biome_plains.json b/data/b7s/advancements/_biome_plains.json deleted file mode 100644 index 4bcd76c..0000000 --- a/data/b7s/advancements/_biome_plains.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "parent": "b7s:root", - "criteria": { - "b7s:_biome_plains": { - "trigger": "minecraft:location", - "conditions": { - "biome": "minecraft:plains" - } - } - }, - "rewards": { - "function": "b7s:advancement/_biome_plains" - } -} diff --git a/data/b7s/advancements/_biome_redwood_taiga.json b/data/b7s/advancements/_biome_redwood_taiga.json deleted file mode 100644 index dda1ad0..0000000 --- a/data/b7s/advancements/_biome_redwood_taiga.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "parent": "b7s:root", - "criteria": { - "b7s:_biome_redwood_taiga": { - "trigger": "minecraft:location", - "conditions": { - "biome": "minecraft:redwood_taiga" - } - } - }, - "rewards": { - "function": "b7s:advancement/_biome_redwood_taiga" - } -} diff --git a/data/b7s/advancements/_biome_redwood_taiga_hills.json b/data/b7s/advancements/_biome_redwood_taiga_hills.json deleted file mode 100644 index 1cfa95e..0000000 --- a/data/b7s/advancements/_biome_redwood_taiga_hills.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "parent": "b7s:root", - "criteria": { - "b7s:_biome_redwood_taiga_hills": { - "trigger": "minecraft:location", - "conditions": { - "biome": "minecraft:redwood_taiga_hills" - } - } - }, - "rewards": { - "function": "b7s:advancement/_biome_redwood_taiga_hills" - } -} diff --git a/data/b7s/advancements/_biome_river.json b/data/b7s/advancements/_biome_river.json deleted file mode 100644 index 518e300..0000000 --- a/data/b7s/advancements/_biome_river.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "parent": "b7s:root", - "criteria": { - "b7s:_biome_river": { - "trigger": "minecraft:location", - "conditions": { - "biome": "minecraft:river" - } - } - }, - "rewards": { - "function": "b7s:advancement/_biome_river" - } -} diff --git a/data/b7s/advancements/_biome_roofed_forest.json b/data/b7s/advancements/_biome_roofed_forest.json deleted file mode 100644 index 4e7528e..0000000 --- a/data/b7s/advancements/_biome_roofed_forest.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "parent": "b7s:root", - "criteria": { - "b7s:_biome_roofed_forest": { - "trigger": "minecraft:location", - "conditions": { - "biome": "minecraft:roofed_forest" - } - } - }, - "rewards": { - "function": "b7s:advancement/_biome_roofed_forest" - } -} diff --git a/data/b7s/advancements/_biome_savanna.json b/data/b7s/advancements/_biome_savanna.json deleted file mode 100644 index 2c62b78..0000000 --- a/data/b7s/advancements/_biome_savanna.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "parent": "b7s:root", - "criteria": { - "b7s:_biome_savanna": { - "trigger": "minecraft:location", - "conditions": { - "biome": "minecraft:savanna" - } - } - }, - "rewards": { - "function": "b7s:advancement/_biome_savanna" - } -} diff --git a/data/b7s/advancements/_biome_savanna_rock.json b/data/b7s/advancements/_biome_savanna_rock.json deleted file mode 100644 index 2e59c66..0000000 --- a/data/b7s/advancements/_biome_savanna_rock.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "parent": "b7s:root", - "criteria": { - "b7s:_biome_savanna_rock": { - "trigger": "minecraft:location", - "conditions": { - "biome": "minecraft:savanna_rock" - } - } - }, - "rewards": { - "function": "b7s:advancement/_biome_savanna_rock" - } -} diff --git a/data/b7s/advancements/_biome_sky.json b/data/b7s/advancements/_biome_sky.json deleted file mode 100644 index ed99ac3..0000000 --- a/data/b7s/advancements/_biome_sky.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "parent": "b7s:root", - "criteria": { - "b7s:_biome_sky": { - "trigger": "minecraft:location", - "conditions": { - "biome": "minecraft:sky" - } - } - }, - "rewards": { - "function": "b7s:advancement/_biome_sky" - } -} diff --git a/data/b7s/advancements/_biome_smaller_extreme_hills.json b/data/b7s/advancements/_biome_smaller_extreme_hills.json deleted file mode 100644 index 60c2e8a..0000000 --- a/data/b7s/advancements/_biome_smaller_extreme_hills.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "parent": "b7s:root", - "criteria": { - "b7s:_biome_smaller_extreme_hills": { - "trigger": "minecraft:location", - "conditions": { - "biome": "minecraft:smaller_extreme_hills" - } - } - }, - "rewards": { - "function": "b7s:advancement/_biome_smaller_extreme_hills" - } -} diff --git a/data/b7s/advancements/_biome_stone_beach.json b/data/b7s/advancements/_biome_stone_beach.json deleted file mode 100644 index 19f0500..0000000 --- a/data/b7s/advancements/_biome_stone_beach.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "parent": "b7s:root", - "criteria": { - "b7s:_biome_stone_beach": { - "trigger": "minecraft:location", - "conditions": { - "biome": "minecraft:stone_beach" - } - } - }, - "rewards": { - "function": "b7s:advancement/_biome_stone_beach" - } -} diff --git a/data/b7s/advancements/_biome_swampland.json b/data/b7s/advancements/_biome_swampland.json deleted file mode 100644 index 05ac028..0000000 --- a/data/b7s/advancements/_biome_swampland.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "parent": "b7s:root", - "criteria": { - "b7s:_biome_swampland": { - "trigger": "minecraft:location", - "conditions": { - "biome": "minecraft:swampland" - } - } - }, - "rewards": { - "function": "b7s:advancement/_biome_swampland" - } -} diff --git a/data/b7s/advancements/_biome_taiga.json b/data/b7s/advancements/_biome_taiga.json deleted file mode 100644 index d7f3d98..0000000 --- a/data/b7s/advancements/_biome_taiga.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "parent": "b7s:root", - "criteria": { - "b7s:_biome_taiga": { - "trigger": "minecraft:location", - "conditions": { - "biome": "minecraft:taiga" - } - } - }, - "rewards": { - "function": "b7s:advancement/_biome_taiga" - } -} diff --git a/data/b7s/advancements/_biome_taiga_cold.json b/data/b7s/advancements/_biome_taiga_cold.json deleted file mode 100644 index 373545d..0000000 --- a/data/b7s/advancements/_biome_taiga_cold.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "parent": "b7s:root", - "criteria": { - "b7s:_biome_taiga_cold": { - "trigger": "minecraft:location", - "conditions": { - "biome": "minecraft:taiga_cold" - } - } - }, - "rewards": { - "function": "b7s:advancement/_biome_taiga_cold" - } -} diff --git a/data/b7s/advancements/_biome_taiga_cold_hills.json b/data/b7s/advancements/_biome_taiga_cold_hills.json deleted file mode 100644 index 3c9fee5..0000000 --- a/data/b7s/advancements/_biome_taiga_cold_hills.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "parent": "b7s:root", - "criteria": { - "b7s:_biome_taiga_cold_hills": { - "trigger": "minecraft:location", - "conditions": { - "biome": "minecraft:taiga_cold_hills" - } - } - }, - "rewards": { - "function": "b7s:advancement/_biome_taiga_cold_hills" - } -} diff --git a/data/b7s/advancements/_biome_taiga_hills.json b/data/b7s/advancements/_biome_taiga_hills.json deleted file mode 100644 index 90e6813..0000000 --- a/data/b7s/advancements/_biome_taiga_hills.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "parent": "b7s:root", - "criteria": { - "b7s:_biome_taiga_hills": { - "trigger": "minecraft:location", - "conditions": { - "biome": "minecraft:taiga_hills" - } - } - }, - "rewards": { - "function": "b7s:advancement/_biome_taiga_hills" - } -} diff --git a/data/b7s/advancements/_biome_the_void.json b/data/b7s/advancements/_biome_the_void.json deleted file mode 100644 index 052f4a5..0000000 --- a/data/b7s/advancements/_biome_the_void.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "parent": "b7s:root", - "criteria": { - "b7s:_biome_the_void": { - "trigger": "minecraft:location", - "conditions": { - "biome": "minecraft:the_void" - } - } - }, - "rewards": { - "function": "b7s:advancement/_biome_the_void" - } -} diff --git a/data/b7s/advancements/root.json b/data/b7s/advancements/root.json deleted file mode 100644 index 9ea6435..0000000 --- a/data/b7s/advancements/root.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "criteria": { - "b7s:impossible": { - "trigger": "minecraft:impossible" - } - } -} diff --git a/data/b7s/functions/advancement/_biome_beaches.mcfunction b/data/b7s/functions/advancement/_biome_beaches.mcfunction deleted file mode 100644 index d73688c..0000000 --- a/data/b7s/functions/advancement/_biome_beaches.mcfunction +++ /dev/null @@ -1,6 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -scoreboard players set @s b7s:biome 16 -advancement revoke @s only b7s:_biome_beaches diff --git a/data/b7s/functions/advancement/_biome_birch_forest.mcfunction b/data/b7s/functions/advancement/_biome_birch_forest.mcfunction deleted file mode 100644 index 6000343..0000000 --- a/data/b7s/functions/advancement/_biome_birch_forest.mcfunction +++ /dev/null @@ -1,6 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -scoreboard players set @s b7s:biome 27 -advancement revoke @s only b7s:_biome_forest diff --git a/data/b7s/functions/advancement/_biome_birch_forest_hills.mcfunction b/data/b7s/functions/advancement/_biome_birch_forest_hills.mcfunction deleted file mode 100644 index 2e157fc..0000000 --- a/data/b7s/functions/advancement/_biome_birch_forest_hills.mcfunction +++ /dev/null @@ -1,6 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -scoreboard players set @s b7s:biome 28 -advancement revoke @s only b7s:_biome_forest_hills diff --git a/data/b7s/functions/advancement/_biome_cold_beach.mcfunction b/data/b7s/functions/advancement/_biome_cold_beach.mcfunction deleted file mode 100644 index 8f92e04..0000000 --- a/data/b7s/functions/advancement/_biome_cold_beach.mcfunction +++ /dev/null @@ -1,6 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -scoreboard players set @s b7s:biome 26 -advancement revoke @s only b7s:_biome_cold_beach diff --git a/data/b7s/functions/advancement/_biome_deep_ocean.mcfunction b/data/b7s/functions/advancement/_biome_deep_ocean.mcfunction deleted file mode 100644 index 127ddeb..0000000 --- a/data/b7s/functions/advancement/_biome_deep_ocean.mcfunction +++ /dev/null @@ -1,6 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -scoreboard players set @s b7s:biome 24 -advancement revoke @s only b7s:_biome_deep_ocean diff --git a/data/b7s/functions/advancement/_biome_desert.mcfunction b/data/b7s/functions/advancement/_biome_desert.mcfunction deleted file mode 100644 index f160d1a..0000000 --- a/data/b7s/functions/advancement/_biome_desert.mcfunction +++ /dev/null @@ -1,6 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -scoreboard players set @s b7s:biome 2 -advancement revoke @s only b7s:_biome_desert diff --git a/data/b7s/functions/advancement/_biome_desert_hills.mcfunction b/data/b7s/functions/advancement/_biome_desert_hills.mcfunction deleted file mode 100644 index 6d43fe7..0000000 --- a/data/b7s/functions/advancement/_biome_desert_hills.mcfunction +++ /dev/null @@ -1,6 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -scoreboard players set @s b7s:biome 17 -advancement revoke @s only b7s:_biome_desert_hills diff --git a/data/b7s/functions/advancement/_biome_extreme_hills.mcfunction b/data/b7s/functions/advancement/_biome_extreme_hills.mcfunction deleted file mode 100644 index 2dc8df0..0000000 --- a/data/b7s/functions/advancement/_biome_extreme_hills.mcfunction +++ /dev/null @@ -1,6 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -scoreboard players set @s b7s:biome 3 -advancement revoke @s only b7s:_biome_extreme_hills diff --git a/data/b7s/functions/advancement/_biome_extreme_hills_with_trees.mcfunction b/data/b7s/functions/advancement/_biome_extreme_hills_with_trees.mcfunction deleted file mode 100644 index 54f01b1..0000000 --- a/data/b7s/functions/advancement/_biome_extreme_hills_with_trees.mcfunction +++ /dev/null @@ -1,6 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -scoreboard players set @s b7s:biome 34 -advancement revoke @s only b7s:_biome_extreme_hills_with_trees diff --git a/data/b7s/functions/advancement/_biome_forest.mcfunction b/data/b7s/functions/advancement/_biome_forest.mcfunction deleted file mode 100644 index 97cc7f1..0000000 --- a/data/b7s/functions/advancement/_biome_forest.mcfunction +++ /dev/null @@ -1,6 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -scoreboard players set @s b7s:biome 4 -advancement revoke @s only b7s:_biome_forest diff --git a/data/b7s/functions/advancement/_biome_forest_hills.mcfunction b/data/b7s/functions/advancement/_biome_forest_hills.mcfunction deleted file mode 100644 index 887bb5b..0000000 --- a/data/b7s/functions/advancement/_biome_forest_hills.mcfunction +++ /dev/null @@ -1,6 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -scoreboard players set @s b7s:biome 18 -advancement revoke @s only b7s:_biome_forest_hills diff --git a/data/b7s/functions/advancement/_biome_frozen_ocean.mcfunction b/data/b7s/functions/advancement/_biome_frozen_ocean.mcfunction deleted file mode 100644 index 17d6cff..0000000 --- a/data/b7s/functions/advancement/_biome_frozen_ocean.mcfunction +++ /dev/null @@ -1,6 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -scoreboard players set @s b7s:biome 10 -advancement revoke @s only b7s:_biome_frozen_ocean diff --git a/data/b7s/functions/advancement/_biome_frozen_river.mcfunction b/data/b7s/functions/advancement/_biome_frozen_river.mcfunction deleted file mode 100644 index d06200d..0000000 --- a/data/b7s/functions/advancement/_biome_frozen_river.mcfunction +++ /dev/null @@ -1,6 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -scoreboard players set @s b7s:biome 11 -advancement revoke @s only b7s:_biome_frozen_river diff --git a/data/b7s/functions/advancement/_biome_hell.mcfunction b/data/b7s/functions/advancement/_biome_hell.mcfunction deleted file mode 100644 index f562ec2..0000000 --- a/data/b7s/functions/advancement/_biome_hell.mcfunction +++ /dev/null @@ -1,6 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -scoreboard players set @s b7s:biome 8 -advancement revoke @s only b7s:_biome_hell diff --git a/data/b7s/functions/advancement/_biome_ice_flats.mcfunction b/data/b7s/functions/advancement/_biome_ice_flats.mcfunction deleted file mode 100644 index 7351c49..0000000 --- a/data/b7s/functions/advancement/_biome_ice_flats.mcfunction +++ /dev/null @@ -1,6 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -scoreboard players set @s b7s:biome 12 -advancement revoke @s only b7s:_biome_ice_flats diff --git a/data/b7s/functions/advancement/_biome_ice_mountains.mcfunction b/data/b7s/functions/advancement/_biome_ice_mountains.mcfunction deleted file mode 100644 index 586e9b2..0000000 --- a/data/b7s/functions/advancement/_biome_ice_mountains.mcfunction +++ /dev/null @@ -1,6 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -scoreboard players set @s b7s:biome 13 -advancement revoke @s only b7s:_biome_ice_mountains diff --git a/data/b7s/functions/advancement/_biome_jungle.mcfunction b/data/b7s/functions/advancement/_biome_jungle.mcfunction deleted file mode 100644 index 384c9cb..0000000 --- a/data/b7s/functions/advancement/_biome_jungle.mcfunction +++ /dev/null @@ -1,6 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -scoreboard players set @s b7s:biome 21 -advancement revoke @s only b7s:_biome_jungle diff --git a/data/b7s/functions/advancement/_biome_jungle_edge.mcfunction b/data/b7s/functions/advancement/_biome_jungle_edge.mcfunction deleted file mode 100644 index 58223e4..0000000 --- a/data/b7s/functions/advancement/_biome_jungle_edge.mcfunction +++ /dev/null @@ -1,6 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -scoreboard players set @s b7s:biome 23 -advancement revoke @s only b7s:_biome_jungle_edge diff --git a/data/b7s/functions/advancement/_biome_jungle_hills.mcfunction b/data/b7s/functions/advancement/_biome_jungle_hills.mcfunction deleted file mode 100644 index 7b3d7da..0000000 --- a/data/b7s/functions/advancement/_biome_jungle_hills.mcfunction +++ /dev/null @@ -1,6 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -scoreboard players set @s b7s:biome 22 -advancement revoke @s only b7s:_biome_jungle_hills diff --git a/data/b7s/functions/advancement/_biome_mesa.mcfunction b/data/b7s/functions/advancement/_biome_mesa.mcfunction deleted file mode 100644 index bdaf09e..0000000 --- a/data/b7s/functions/advancement/_biome_mesa.mcfunction +++ /dev/null @@ -1,6 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -scoreboard players set @s b7s:biome 37 -advancement revoke @s only b7s:_biome_mesa diff --git a/data/b7s/functions/advancement/_biome_mesa_clear_rock.mcfunction b/data/b7s/functions/advancement/_biome_mesa_clear_rock.mcfunction deleted file mode 100644 index 9f5b667..0000000 --- a/data/b7s/functions/advancement/_biome_mesa_clear_rock.mcfunction +++ /dev/null @@ -1,6 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -scoreboard players set @s b7s:biome 39 -advancement revoke @s only b7s:_biome_mesa_clear_rock diff --git a/data/b7s/functions/advancement/_biome_mesa_rock.mcfunction b/data/b7s/functions/advancement/_biome_mesa_rock.mcfunction deleted file mode 100644 index ae1312a..0000000 --- a/data/b7s/functions/advancement/_biome_mesa_rock.mcfunction +++ /dev/null @@ -1,6 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -scoreboard players set @s b7s:biome 38 -advancement revoke @s only b7s:_biome_mesa_rock diff --git a/data/b7s/functions/advancement/_biome_mushroom_island.mcfunction b/data/b7s/functions/advancement/_biome_mushroom_island.mcfunction deleted file mode 100644 index 98a361d..0000000 --- a/data/b7s/functions/advancement/_biome_mushroom_island.mcfunction +++ /dev/null @@ -1,6 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -scoreboard players set @s b7s:biome 14 -advancement revoke @s only b7s:_biome_mushroom_island diff --git a/data/b7s/functions/advancement/_biome_mushroom_island_shore.mcfunction b/data/b7s/functions/advancement/_biome_mushroom_island_shore.mcfunction deleted file mode 100644 index 5037b33..0000000 --- a/data/b7s/functions/advancement/_biome_mushroom_island_shore.mcfunction +++ /dev/null @@ -1,6 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -scoreboard players set @s b7s:biome 15 -advancement revoke @s only b7s:_biome_mushroom_island_shore diff --git a/data/b7s/functions/advancement/_biome_mutated_birch_forest.mcfunction b/data/b7s/functions/advancement/_biome_mutated_birch_forest.mcfunction deleted file mode 100644 index 4024f0b..0000000 --- a/data/b7s/functions/advancement/_biome_mutated_birch_forest.mcfunction +++ /dev/null @@ -1,6 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -scoreboard players set @s b7s:biome 155 -advancement revoke @s only b7s:_biome_mutated_birch_forest diff --git a/data/b7s/functions/advancement/_biome_mutated_birch_forest_hills.mcfunction b/data/b7s/functions/advancement/_biome_mutated_birch_forest_hills.mcfunction deleted file mode 100644 index be1416b..0000000 --- a/data/b7s/functions/advancement/_biome_mutated_birch_forest_hills.mcfunction +++ /dev/null @@ -1,6 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -scoreboard players set @s b7s:biome 156 -advancement revoke @s only b7s:_biome_mutated_birch_forest_hills diff --git a/data/b7s/functions/advancement/_biome_mutated_desert.mcfunction b/data/b7s/functions/advancement/_biome_mutated_desert.mcfunction deleted file mode 100644 index 71b4374..0000000 --- a/data/b7s/functions/advancement/_biome_mutated_desert.mcfunction +++ /dev/null @@ -1,6 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -scoreboard players set @s b7s:biome 130 -advancement revoke @s only b7s:_biome_mutated_desert diff --git a/data/b7s/functions/advancement/_biome_mutated_extreme_hills.mcfunction b/data/b7s/functions/advancement/_biome_mutated_extreme_hills.mcfunction deleted file mode 100644 index f506daa..0000000 --- a/data/b7s/functions/advancement/_biome_mutated_extreme_hills.mcfunction +++ /dev/null @@ -1,6 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -scoreboard players set @s b7s:biome 131 -advancement revoke @s only b7s:_biome_mutated_extreme_hills diff --git a/data/b7s/functions/advancement/_biome_mutated_extreme_hills_with_trees.mcfunction b/data/b7s/functions/advancement/_biome_mutated_extreme_hills_with_trees.mcfunction deleted file mode 100644 index 03127c9..0000000 --- a/data/b7s/functions/advancement/_biome_mutated_extreme_hills_with_trees.mcfunction +++ /dev/null @@ -1,6 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -scoreboard players set @s b7s:biome 162 -advancement revoke @s only b7s:_biome_mutated_extreme_hills_with_trees diff --git a/data/b7s/functions/advancement/_biome_mutated_forest.mcfunction b/data/b7s/functions/advancement/_biome_mutated_forest.mcfunction deleted file mode 100644 index e808846..0000000 --- a/data/b7s/functions/advancement/_biome_mutated_forest.mcfunction +++ /dev/null @@ -1,6 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -scoreboard players set @s b7s:biome 132 -advancement revoke @s only b7s:_biome_mutated_forest diff --git a/data/b7s/functions/advancement/_biome_mutated_ice_flats.mcfunction b/data/b7s/functions/advancement/_biome_mutated_ice_flats.mcfunction deleted file mode 100644 index aaa4a28..0000000 --- a/data/b7s/functions/advancement/_biome_mutated_ice_flats.mcfunction +++ /dev/null @@ -1,6 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -scoreboard players set @s b7s:biome 140 -advancement revoke @s only b7s:_biome_mutated_ice_flats diff --git a/data/b7s/functions/advancement/_biome_mutated_jungle.mcfunction b/data/b7s/functions/advancement/_biome_mutated_jungle.mcfunction deleted file mode 100644 index 126454c..0000000 --- a/data/b7s/functions/advancement/_biome_mutated_jungle.mcfunction +++ /dev/null @@ -1,6 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -scoreboard players set @s b7s:biome 149 -advancement revoke @s only b7s:_biome_mutated_jungle diff --git a/data/b7s/functions/advancement/_biome_mutated_jungle_edge.mcfunction b/data/b7s/functions/advancement/_biome_mutated_jungle_edge.mcfunction deleted file mode 100644 index 1c4a434..0000000 --- a/data/b7s/functions/advancement/_biome_mutated_jungle_edge.mcfunction +++ /dev/null @@ -1,6 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -scoreboard players set @s b7s:biome 151 -advancement revoke @s only b7s:_biome_mutated_jungle_edge diff --git a/data/b7s/functions/advancement/_biome_mutated_mesa.mcfunction b/data/b7s/functions/advancement/_biome_mutated_mesa.mcfunction deleted file mode 100644 index c22a94d..0000000 --- a/data/b7s/functions/advancement/_biome_mutated_mesa.mcfunction +++ /dev/null @@ -1,6 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -scoreboard players set @s b7s:biome 165 -advancement revoke @s only b7s:_biome_mutated_mesa diff --git a/data/b7s/functions/advancement/_biome_mutated_mesa_clear_rock.mcfunction b/data/b7s/functions/advancement/_biome_mutated_mesa_clear_rock.mcfunction deleted file mode 100644 index 52646a0..0000000 --- a/data/b7s/functions/advancement/_biome_mutated_mesa_clear_rock.mcfunction +++ /dev/null @@ -1,6 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -scoreboard players set @s b7s:biome 167 -advancement revoke @s only b7s:_biome_mutated_mesa_clear_rock diff --git a/data/b7s/functions/advancement/_biome_mutated_mesa_rock.mcfunction b/data/b7s/functions/advancement/_biome_mutated_mesa_rock.mcfunction deleted file mode 100644 index c277248..0000000 --- a/data/b7s/functions/advancement/_biome_mutated_mesa_rock.mcfunction +++ /dev/null @@ -1,6 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -scoreboard players set @s b7s:biome 166 -advancement revoke @s only b7s:_biome_mutated_mesa_rock diff --git a/data/b7s/functions/advancement/_biome_mutated_plains.mcfunction b/data/b7s/functions/advancement/_biome_mutated_plains.mcfunction deleted file mode 100644 index 0656ba1..0000000 --- a/data/b7s/functions/advancement/_biome_mutated_plains.mcfunction +++ /dev/null @@ -1,6 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -scoreboard players set @s b7s:biome 129 -advancement revoke @s only b7s:_biome_mutated_plains diff --git a/data/b7s/functions/advancement/_biome_mutated_redwood_taiga.mcfunction b/data/b7s/functions/advancement/_biome_mutated_redwood_taiga.mcfunction deleted file mode 100644 index 7496445..0000000 --- a/data/b7s/functions/advancement/_biome_mutated_redwood_taiga.mcfunction +++ /dev/null @@ -1,6 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -scoreboard players set @s b7s:biome 160 -advancement revoke @s only b7s:_biome_mutated_redwood_taiga diff --git a/data/b7s/functions/advancement/_biome_mutated_redwood_taiga_hills.mcfunction b/data/b7s/functions/advancement/_biome_mutated_redwood_taiga_hills.mcfunction deleted file mode 100644 index f4a6598..0000000 --- a/data/b7s/functions/advancement/_biome_mutated_redwood_taiga_hills.mcfunction +++ /dev/null @@ -1,6 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -scoreboard players set @s b7s:biome 161 -advancement revoke @s only b7s:_biome_mutated_redwood_taiga_hills diff --git a/data/b7s/functions/advancement/_biome_mutated_roofed_forest.mcfunction b/data/b7s/functions/advancement/_biome_mutated_roofed_forest.mcfunction deleted file mode 100644 index 78e2330..0000000 --- a/data/b7s/functions/advancement/_biome_mutated_roofed_forest.mcfunction +++ /dev/null @@ -1,6 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -scoreboard players set @s b7s:biome 157 -advancement revoke @s only b7s:_biome_mutated_roofed_forest diff --git a/data/b7s/functions/advancement/_biome_mutated_savanna.mcfunction b/data/b7s/functions/advancement/_biome_mutated_savanna.mcfunction deleted file mode 100644 index 01646b3..0000000 --- a/data/b7s/functions/advancement/_biome_mutated_savanna.mcfunction +++ /dev/null @@ -1,6 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -scoreboard players set @s b7s:biome 163 -advancement revoke @s only b7s:_biome_mutated_savanna diff --git a/data/b7s/functions/advancement/_biome_mutated_savanna_rock.mcfunction b/data/b7s/functions/advancement/_biome_mutated_savanna_rock.mcfunction deleted file mode 100644 index 536cadc..0000000 --- a/data/b7s/functions/advancement/_biome_mutated_savanna_rock.mcfunction +++ /dev/null @@ -1,6 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -scoreboard players set @s b7s:biome 164 -advancement revoke @s only b7s:_biome_mutated_savanna_rock diff --git a/data/b7s/functions/advancement/_biome_mutated_swampland.mcfunction b/data/b7s/functions/advancement/_biome_mutated_swampland.mcfunction deleted file mode 100644 index 7a4445f..0000000 --- a/data/b7s/functions/advancement/_biome_mutated_swampland.mcfunction +++ /dev/null @@ -1,6 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -scoreboard players set @s b7s:biome 134 -advancement revoke @s only b7s:_biome_mutated_swampland diff --git a/data/b7s/functions/advancement/_biome_mutated_taiga.mcfunction b/data/b7s/functions/advancement/_biome_mutated_taiga.mcfunction deleted file mode 100644 index 5678f79..0000000 --- a/data/b7s/functions/advancement/_biome_mutated_taiga.mcfunction +++ /dev/null @@ -1,6 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -scoreboard players set @s b7s:biome 133 -advancement revoke @s only b7s:_biome_mutated_taiga diff --git a/data/b7s/functions/advancement/_biome_mutated_taiga_cold.mcfunction b/data/b7s/functions/advancement/_biome_mutated_taiga_cold.mcfunction deleted file mode 100644 index 7c07a0f..0000000 --- a/data/b7s/functions/advancement/_biome_mutated_taiga_cold.mcfunction +++ /dev/null @@ -1,6 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -scoreboard players set @s b7s:biome 158 -advancement revoke @s only b7s:_biome_mutated_taiga_cold diff --git a/data/b7s/functions/advancement/_biome_ocean.mcfunction b/data/b7s/functions/advancement/_biome_ocean.mcfunction deleted file mode 100644 index 582737b..0000000 --- a/data/b7s/functions/advancement/_biome_ocean.mcfunction +++ /dev/null @@ -1,6 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -scoreboard players set @s b7s:biome 0 -advancement revoke @s only b7s:_biome_ocean diff --git a/data/b7s/functions/advancement/_biome_plains.mcfunction b/data/b7s/functions/advancement/_biome_plains.mcfunction deleted file mode 100644 index bd7332c..0000000 --- a/data/b7s/functions/advancement/_biome_plains.mcfunction +++ /dev/null @@ -1,6 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -scoreboard players set @s b7s:biome 1 -advancement revoke @s only b7s:_biome_plains diff --git a/data/b7s/functions/advancement/_biome_redwood_taiga.mcfunction b/data/b7s/functions/advancement/_biome_redwood_taiga.mcfunction deleted file mode 100644 index 4904d89..0000000 --- a/data/b7s/functions/advancement/_biome_redwood_taiga.mcfunction +++ /dev/null @@ -1,6 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -scoreboard players set @s b7s:biome 32 -advancement revoke @s only b7s:_biome_redwood_taiga diff --git a/data/b7s/functions/advancement/_biome_redwood_taiga_hills.mcfunction b/data/b7s/functions/advancement/_biome_redwood_taiga_hills.mcfunction deleted file mode 100644 index b936e48..0000000 --- a/data/b7s/functions/advancement/_biome_redwood_taiga_hills.mcfunction +++ /dev/null @@ -1,6 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -scoreboard players set @s b7s:biome 33 -advancement revoke @s only b7s:_biome_redwood_taiga_hills diff --git a/data/b7s/functions/advancement/_biome_river.mcfunction b/data/b7s/functions/advancement/_biome_river.mcfunction deleted file mode 100644 index 1d3c0a9..0000000 --- a/data/b7s/functions/advancement/_biome_river.mcfunction +++ /dev/null @@ -1,6 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -scoreboard players set @s b7s:biome 7 -advancement revoke @s only b7s:_biome_river diff --git a/data/b7s/functions/advancement/_biome_roofed_forest.mcfunction b/data/b7s/functions/advancement/_biome_roofed_forest.mcfunction deleted file mode 100644 index bbb2a29..0000000 --- a/data/b7s/functions/advancement/_biome_roofed_forest.mcfunction +++ /dev/null @@ -1,6 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -scoreboard players set @s b7s:biome 29 -advancement revoke @s only b7s:_biome_roofed_forest diff --git a/data/b7s/functions/advancement/_biome_savanna.mcfunction b/data/b7s/functions/advancement/_biome_savanna.mcfunction deleted file mode 100644 index e6c99f1..0000000 --- a/data/b7s/functions/advancement/_biome_savanna.mcfunction +++ /dev/null @@ -1,6 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -scoreboard players set @s b7s:biome 35 -advancement revoke @s only b7s:_biome_savanna diff --git a/data/b7s/functions/advancement/_biome_savanna_rock.mcfunction b/data/b7s/functions/advancement/_biome_savanna_rock.mcfunction deleted file mode 100644 index 6ef384a..0000000 --- a/data/b7s/functions/advancement/_biome_savanna_rock.mcfunction +++ /dev/null @@ -1,6 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -scoreboard players set @s b7s:biome 36 -advancement revoke @s only b7s:_biome_savanna_rock diff --git a/data/b7s/functions/advancement/_biome_sky.mcfunction b/data/b7s/functions/advancement/_biome_sky.mcfunction deleted file mode 100644 index ffc4e4a..0000000 --- a/data/b7s/functions/advancement/_biome_sky.mcfunction +++ /dev/null @@ -1,6 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -scoreboard players set @s b7s:biome 9 -advancement revoke @s only b7s:_biome_sky diff --git a/data/b7s/functions/advancement/_biome_smaller_extreme_hills.mcfunction b/data/b7s/functions/advancement/_biome_smaller_extreme_hills.mcfunction deleted file mode 100644 index 7d9f32f..0000000 --- a/data/b7s/functions/advancement/_biome_smaller_extreme_hills.mcfunction +++ /dev/null @@ -1,6 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -scoreboard players set @s b7s:biome 20 -advancement revoke @s only b7s:_biome_smaller_extreme_hills diff --git a/data/b7s/functions/advancement/_biome_stone_beach.mcfunction b/data/b7s/functions/advancement/_biome_stone_beach.mcfunction deleted file mode 100644 index 12b8c55..0000000 --- a/data/b7s/functions/advancement/_biome_stone_beach.mcfunction +++ /dev/null @@ -1,6 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -scoreboard players set @s b7s:biome 25 -advancement revoke @s only b7s:_biome_stone_beach diff --git a/data/b7s/functions/advancement/_biome_swampland.mcfunction b/data/b7s/functions/advancement/_biome_swampland.mcfunction deleted file mode 100644 index c9c3127..0000000 --- a/data/b7s/functions/advancement/_biome_swampland.mcfunction +++ /dev/null @@ -1,6 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -scoreboard players set @s b7s:biome 6 -advancement revoke @s only b7s:_biome_swampland diff --git a/data/b7s/functions/advancement/_biome_taiga.mcfunction b/data/b7s/functions/advancement/_biome_taiga.mcfunction deleted file mode 100644 index 9572eb5..0000000 --- a/data/b7s/functions/advancement/_biome_taiga.mcfunction +++ /dev/null @@ -1,6 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -scoreboard players set @s b7s:biome 5 -advancement revoke @s only b7s:_biome_taiga diff --git a/data/b7s/functions/advancement/_biome_taiga_cold.mcfunction b/data/b7s/functions/advancement/_biome_taiga_cold.mcfunction deleted file mode 100644 index 3d442a3..0000000 --- a/data/b7s/functions/advancement/_biome_taiga_cold.mcfunction +++ /dev/null @@ -1,6 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -scoreboard players set @s b7s:biome 30 -advancement revoke @s only b7s:_biome_taiga_cold diff --git a/data/b7s/functions/advancement/_biome_taiga_cold_hills.mcfunction b/data/b7s/functions/advancement/_biome_taiga_cold_hills.mcfunction deleted file mode 100644 index b4e88e5..0000000 --- a/data/b7s/functions/advancement/_biome_taiga_cold_hills.mcfunction +++ /dev/null @@ -1,6 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -scoreboard players set @s b7s:biome 31 -advancement revoke @s only b7s:taiga_cold_hills diff --git a/data/b7s/functions/advancement/_biome_taiga_hills.mcfunction b/data/b7s/functions/advancement/_biome_taiga_hills.mcfunction deleted file mode 100644 index b4234cf..0000000 --- a/data/b7s/functions/advancement/_biome_taiga_hills.mcfunction +++ /dev/null @@ -1,6 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -scoreboard players set @s b7s:biome 19 -advancement revoke @s only b7s:_biome_taiga_hills diff --git a/data/b7s/functions/advancement/_biome_the_void.mcfunction b/data/b7s/functions/advancement/_biome_the_void.mcfunction deleted file mode 100644 index 5d68155..0000000 --- a/data/b7s/functions/advancement/_biome_the_void.mcfunction +++ /dev/null @@ -1,6 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -scoreboard players set @s b7s:biome 137 -advancement revoke @s only b7s:_biome_the_void diff --git a/data/b7s/functions/command/getinfo.mcfunction b/data/b7s/functions/command/getinfo.mcfunction new file mode 100644 index 0000000..0d2a4b5 --- /dev/null +++ b/data/b7s/functions/command/getinfo.mcfunction @@ -0,0 +1,5 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. + +tellraw @s ["[Barebones] ",{"color":"yellow","text":"Barebones is an open source data pack that provides essential functionality for vanilla Minecraft servers. For more information, you can visit Barebones' website at "},{"color":"blue","underlined":true,"text":"https://github.com/xMamo/minecraft-barebones","clickEvent":{"action":"open_url","value":"https://github.com/xMamo/minecraft-barebones"},"hoverEvent":{"action":"show_text","value":"Click here to visit Barebones' website"}}] diff --git a/data/b7s/functions/command/info.mcfunction b/data/b7s/functions/command/info.mcfunction deleted file mode 100644 index e9e522c..0000000 --- a/data/b7s/functions/command/info.mcfunction +++ /dev/null @@ -1,5 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -tellraw @s ["[BareBones] ",{"color":"yellow","text":"BareBones is an open source data pack that provides essential functionality for vanilla Minecraft servers. For more information, you can visit BareBones' website at "},{"color":"blue","underlined":true,"text":"bit.ly/mcbarebones","clickEvent":{"action":"open_url","value":"http://bit.ly/mcbarebones"},"hoverEvent":{"action":"show_text","value":"Click here to visit BareBones' website"}}] diff --git a/data/b7s/functions/command/sethome.mcfunction b/data/b7s/functions/command/sethome.mcfunction index 8af35b9..d3c8a25 100644 --- a/data/b7s/functions/command/sethome.mcfunction +++ b/data/b7s/functions/command/sethome.mcfunction @@ -4,5 +4,4 @@ function b7s:entity/get_loc function b7s:entity/home/set_loc - -tellraw @s ["[BareBones] ",{"color":"green","text":"Home set"}] +tellraw @s ["[Barebones] ",{"color":"green","text":"Home set"}] diff --git a/data/b7s/functions/command/tpaccept.mcfunction b/data/b7s/functions/command/tpaccept.mcfunction index 73d6a56..fa8080c 100644 --- a/data/b7s/functions/command/tpaccept.mcfunction +++ b/data/b7s/functions/command/tpaccept.mcfunction @@ -2,5 +2,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. -function b7s:command/tpaccept/_unless_req unless @s[score_b7s:req_from_min=1] -function b7s:command/tpaccept/_if_req if @s[score_b7s:req_from_min=1] +execute if score @s b7s.tp_req_from matches -2147483648.. run function b7s:command/tpaccept/_if_req +execute unless score @s b7s.tp_req_from matches -2147483648.. run tellraw @s ["[Barebones] ",{"color":"red","text":"There are no pending teleportation requests"}] + +scoreboard players reset @s b7s.tp_req_from diff --git a/data/b7s/functions/command/tpaccept/_if_req.mcfunction b/data/b7s/functions/command/tpaccept/_if_req.mcfunction index fa3fe18..b657e68 100644 --- a/data/b7s/functions/command/tpaccept/_if_req.mcfunction +++ b/data/b7s/functions/command/tpaccept/_if_req.mcfunction @@ -2,14 +2,11 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. -scoreboard players tag @s add b7s:_self +tag @s add b7s._self +execute as @e[type=minecraft:player] if score @s b7s.id = @p[tag=b7s._self] b7s.tp_req_from run tag @s add b7s._other -execute @e[type=minecraft:player] ~ ~ ~ scoreboard players operation @s b7s:_tmp = @s b7s:id -scoreboard players operation @e[type=minecraft:player] b7s:_tmp -= @s b7s:req_from -scoreboard players tag @p[score_b7s:_tmp_min=0,score_b7s:_tmp=0] add b7s:_other +execute if entity @p[tag=b7s._other] run function b7s:command/tpaccept/_if_req_if_other +execute unless entity @p[tag=b7s._other] run tellraw @s ["[Barebones] ",{"color":"red","text":"Teleportation request expired"}] -function b7s:command/tpaccept/_if_req_if_other if @e[tag=b7s:_other] - -scoreboard players reset @s b7s:req_from -scoreboard players tag @s remove b7s:_self -scoreboard players tag @p[tag=b7s:_other] remove b7s:_other +tag @s remove b7s._self +tag @p[tag=b7s._other] remove b7s._other diff --git a/data/b7s/functions/command/tpaccept/_if_req_if_other.mcfunction b/data/b7s/functions/command/tpaccept/_if_req_if_other.mcfunction index 0a382df..2636d58 100644 --- a/data/b7s/functions/command/tpaccept/_if_req_if_other.mcfunction +++ b/data/b7s/functions/command/tpaccept/_if_req_if_other.mcfunction @@ -2,9 +2,10 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. -execute @p[tag=b7s:_other] ~ ~ ~ function b7s:entity/get_dim -scoreboard players operation @s b7s:dim = @p[tag=b7s:_other] b7s:dim -function b7s:entity/check_same_dim +execute as @p[tag=b7s._other] run function b7s:entity/get_loc +execute as @p[tag=b7s._other] run function b7s:entity/back/set_loc -tellraw @s[tag=!b7s:same_dim] ["[BareBones] ",{"color":"red","text":"Can't accept teleportation requests from players in other dimensions"}] -function b7s:command/tpaccept/_if_req_if_other_if_same_dim if @s[tag=b7s:same_dim] +teleport @p[tag=b7s._other] @s + +tellraw @s ["[Barebones] ",{"color":"green","text":"","extra":[{"selector":"@p[tag=b7s._other]"}," teleported to you"]}] +tellraw @p[tag=b7s._other] ["[Barebones] ",{"color":"green","text":"Teleported to ","extra":[{"selector":"@s"}]}] diff --git a/data/b7s/functions/command/tpaccept/_if_req_if_other_if_same_dim.mcfunction b/data/b7s/functions/command/tpaccept/_if_req_if_other_if_same_dim.mcfunction deleted file mode 100644 index ef865e9..0000000 --- a/data/b7s/functions/command/tpaccept/_if_req_if_other_if_same_dim.mcfunction +++ /dev/null @@ -1,11 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -execute @p[tag=b7s:_other] ~ ~ ~ function b7s:entity/get_loc -execute @p[tag=b7s:_other] ~ ~ ~ function b7s:entity/back/set_loc - -tp @p[tag=b7s:_other] @s - -tellraw @s ["[BareBones] ",{"color":"green","text":"","extra":[{"selector":"@p[tag=b7s:_other]"}," teleported to you"]}] -tellraw @p[tag=b7s:_other] ["[BareBones] ",{"color":"green","text":"Teleported to ","extra":[{"selector":"@s"}]}] diff --git a/data/b7s/functions/command/tpaccept/_unless_req.mcfunction b/data/b7s/functions/command/tpaccept/_unless_req.mcfunction deleted file mode 100644 index 8e760ed..0000000 --- a/data/b7s/functions/command/tpaccept/_unless_req.mcfunction +++ /dev/null @@ -1,5 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -tellraw @s ["[BareBones] ",{"color":"red","text":"There are no pending teleportation requests"}] diff --git a/data/b7s/functions/command/tpback.mcfunction b/data/b7s/functions/command/tpback.mcfunction index 84c6880..ab0a5d7 100644 --- a/data/b7s/functions/command/tpback.mcfunction +++ b/data/b7s/functions/command/tpback.mcfunction @@ -2,6 +2,10 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +scoreboard players operation @s b7s._val = @s b7s.val + function b7s:entity/back/check_loc_set -tellraw @s[tag=!b7s:back_loc_set] ["[BareBones] ",{"color":"red","text":"You have nowhere to teleport back"}] -function b7s:command/tpback/_if_back_set if @s[tag=b7s:back_loc_set] +execute unless score @s b7s.val matches 0 run function b7s:command/tpback/_if_set +tellraw @s[scores={b7s.val=0}] ["[Barebones] ",{"color":"red","text":"You have nowhere to teleport back"}] + +scoreboard players operation @s b7s.val = @s b7s._val diff --git a/data/b7s/functions/command/tpback/_if_back_set.mcfunction b/data/b7s/functions/command/tpback/_if_back_set.mcfunction deleted file mode 100644 index 188a9b7..0000000 --- a/data/b7s/functions/command/tpback/_if_back_set.mcfunction +++ /dev/null @@ -1,9 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -function b7s:entity/back/get_dim -function b7s:entity/check_same_dim - -tellraw @s[tag=!b7s:same_dim] ["[BareBones] ",{"color":"red","text":"Can't teleport between dimensions"}] -function b7s:command/tpback/_if_back_set_if_same_dim if @s[tag=b7s:same_dim] diff --git a/data/b7s/functions/command/tpback/_if_back_set_if_same_dim.mcfunction b/data/b7s/functions/command/tpback/_if_set.mcfunction similarity index 56% rename from data/b7s/functions/command/tpback/_if_back_set_if_same_dim.mcfunction rename to data/b7s/functions/command/tpback/_if_set.mcfunction index ef1961d..f7ac0cc 100644 --- a/data/b7s/functions/command/tpback/_if_back_set_if_same_dim.mcfunction +++ b/data/b7s/functions/command/tpback/_if_set.mcfunction @@ -2,12 +2,9 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. -function b7s:entity/back/get_pos -function b7s:entity/tp_pos - -function b7s:entity/back/get_rot -function b7s:entity/tp_rot +function b7s:entity/back/get_loc +function b7s:entity/tp_loc function b7s:entity/back/unset_loc -tellraw @s ["[BareBones] ",{"color":"green","text":"Teleported back"}] +tellraw @s ["[Barebones] ",{"color":"green","text":"Teleported back"}] diff --git a/data/b7s/functions/command/tphome.mcfunction b/data/b7s/functions/command/tphome.mcfunction index 7514e31..183cd16 100644 --- a/data/b7s/functions/command/tphome.mcfunction +++ b/data/b7s/functions/command/tphome.mcfunction @@ -2,6 +2,10 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +scoreboard players operation @s b7s._val = @s b7s.val + function b7s:entity/home/check_loc_set -tellraw @s[tag=!b7s:home_loc_set] ["[BareBones] ",{"color":"red","text":"Home not set"}] -function b7s:command/tphome/_if_home_set if @s[tag=b7s:home_loc_set] +execute unless score @s b7s.val matches 0 run function b7s:command/tphome/_if_set +tellraw @s[scores={b7s.val=0}] ["[Barebones] ",{"color":"red","text":"Home not set"}] + +scoreboard players operation @s b7s.val = @s b7s._val diff --git a/data/b7s/functions/command/tphome/_if_home_set.mcfunction b/data/b7s/functions/command/tphome/_if_home_set.mcfunction deleted file mode 100644 index 05150e9..0000000 --- a/data/b7s/functions/command/tphome/_if_home_set.mcfunction +++ /dev/null @@ -1,9 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -function b7s:entity/home/get_dim -function b7s:entity/check_same_dim - -tellraw @s[tag=!b7s:same_dim] ["[BareBones] ",{"color":"red","text":"Can't teleport between dimensions"}] -function b7s:command/tphome/_if_home_set_if_same_dim if @s[tag=b7s:same_dim] diff --git a/data/b7s/functions/command/tphome/_if_home_set_if_same_dim.mcfunction b/data/b7s/functions/command/tphome/_if_set.mcfunction similarity index 59% rename from data/b7s/functions/command/tphome/_if_home_set_if_same_dim.mcfunction rename to data/b7s/functions/command/tphome/_if_set.mcfunction index 160b148..ea9756d 100644 --- a/data/b7s/functions/command/tphome/_if_home_set_if_same_dim.mcfunction +++ b/data/b7s/functions/command/tphome/_if_set.mcfunction @@ -5,10 +5,7 @@ function b7s:entity/get_loc function b7s:entity/back/set_loc -function b7s:entity/home/get_pos -function b7s:entity/tp_pos +function b7s:entity/home/get_loc +function b7s:entity/tp_loc -function b7s:entity/home/get_rot -function b7s:entity/tp_rot - -tellraw @s ["[BareBones] ",{"color":"green","text":"Teleported home"}] +tellraw @s ["[Barebones] ",{"color":"green","text":"Teleported home"}] diff --git a/data/b7s/functions/command/tpreq.mcfunction b/data/b7s/functions/command/tpreq.mcfunction index 96be777..c1fad27 100644 --- a/data/b7s/functions/command/tpreq.mcfunction +++ b/data/b7s/functions/command/tpreq.mcfunction @@ -2,14 +2,11 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. -scoreboard players tag @s add b7s:_self +tag @s add b7s._self +execute as @e[type=minecraft:player] if score @s b7s.id = @p[tag=b7s._self] b7s.tpreq run tag @s add b7s._other -execute @e[type=minecraft:player] ~ ~ ~ scoreboard players operation @s b7s:_tmp = @s b7s:id -scoreboard players operation @e[type=minecraft:player] b7s:_tmp -= @s b7s:tpreq -scoreboard players tag @p[score_b7s:_tmp_min=0,score_b7s:_tmp=0] add b7s:_other +execute if entity @p[tag=b7s._other] run function b7s:command/tpreq/_if_other +execute unless entity @p[tag=b7s._other] run tellraw @s ["[Barebones] ",{"color":"red","text":"There is no such player"}] -function b7s:command/tpreq/_unless_other unless @p[tag=b7s:_other] -function b7s:command/tpreq/_if_other if @p[tag=b7s:_other] - -scoreboard players tag @s remove b7s:_self -scoreboard players tag @p[tag=b7s:_other] remove b7s:_other +tag @s remove b7s._self +tag @p[tag=b7s._other] remove b7s._other diff --git a/data/b7s/functions/command/tpreq/_if_other.mcfunction b/data/b7s/functions/command/tpreq/_if_other.mcfunction index 9ead568..6f8fc8b 100644 --- a/data/b7s/functions/command/tpreq/_if_other.mcfunction +++ b/data/b7s/functions/command/tpreq/_if_other.mcfunction @@ -2,5 +2,5 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. -tellraw @s[tag=b7s:_other] ["[BareBones] ",{"color":"red","text":"You can't send teleportation requests to yourself"}] -function b7s:command/tpreq/_if_other_if_different_players if @s[tag=!b7s:_other] +execute unless entity @s[tag=b7s._other] run function b7s:command/tpreq/_if_other_unless_coincides +tellraw @s[tag=b7s._other] ["[Barebones] ",{"color":"red","text":"You can't send teleportation requests to yourself"}] diff --git a/data/b7s/functions/command/tpreq/_if_other_if_different_players.mcfunction b/data/b7s/functions/command/tpreq/_if_other_if_different_players.mcfunction deleted file mode 100644 index 4b00968..0000000 --- a/data/b7s/functions/command/tpreq/_if_other_if_different_players.mcfunction +++ /dev/null @@ -1,10 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -execute @p[tag=b7s:_other] ~ ~ ~ function b7s:entity/get_dim -scoreboard players operation @s b7s:dim = @p[tag=b7s:_other] b7s:dim -function b7s:entity/check_same_dim - -tellraw @s[tag=!b7s:same_dim] ["[BareBones] ",{"color":"red","text":"You can't send teleportation requests to players in other dimensions"}] -function b7s:command/tpreq/_if_other_if_different_players_if_same_dim if @s[tag=b7s:same_dim] diff --git a/data/b7s/functions/command/tpreq/_if_other_if_different_players_if_same_dim.mcfunction b/data/b7s/functions/command/tpreq/_if_other_if_different_players_if_same_dim.mcfunction deleted file mode 100644 index 118abe6..0000000 --- a/data/b7s/functions/command/tpreq/_if_other_if_different_players_if_same_dim.mcfunction +++ /dev/null @@ -1,7 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -scoreboard players operation @p[tag=b7s:_other] b7s:req_from = @s b7s:id -tellraw @s ["[BareBones] ",{"color":"green","text":"Teleportation request sent to ","extra":[{"selector":"@p[tag=b7s:_other]"}]}] -tellraw @p[tag=b7s:_other] ["[BareBones] ",{"color":"yellow","text":"","extra":[{"selector":"@s"}," requested to teleport to you. Click ",{"color":"blue","underlined":true,"text":"here","clickEvent":{"action":"run_command","value":"/trigger b7s:tpaccept set 1"},"hoverEvent":{"action":"show_text","value":"Click here to accept the teleportation request"}}," to accept his teleportation request"]}] diff --git a/data/b7s/functions/command/tpreq/_if_other_unless_coincides.mcfunction b/data/b7s/functions/command/tpreq/_if_other_unless_coincides.mcfunction new file mode 100644 index 0000000..d31e55a --- /dev/null +++ b/data/b7s/functions/command/tpreq/_if_other_unless_coincides.mcfunction @@ -0,0 +1,8 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. + +scoreboard players operation @p[tag=b7s._other] b7s.tp_req_from = @s b7s.id + +tellraw @s ["[Barebones] ",{"color":"green","text":"Teleportation request sent to ","extra":[{"selector":"@p[tag=b7s._other]"}]}] +tellraw @p[tag=b7s._other] ["[Barebones] ",{"color":"yellow","text":"","extra":[{"selector":"@s"}," requested to be teleported to you. Use ",{"color":"blue","underlined":true,"text":"/trigger b7s.tpaccept","hoverEvent":{"action":"show_text","value":"Click here to run the command"},"clickEvent":{"action":"run_command","value":"/trigger b7s.tpaccept"}}," to accept his teleportation request"]}] diff --git a/data/b7s/functions/command/tpreq/_unless_other.mcfunction b/data/b7s/functions/command/tpreq/_unless_other.mcfunction deleted file mode 100644 index 52a84d1..0000000 --- a/data/b7s/functions/command/tpreq/_unless_other.mcfunction +++ /dev/null @@ -1,5 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -tellraw @s ["[BareBones] ",{"color":"red","text":"There is no such player"}] diff --git a/data/b7s/functions/command/tpspawn.mcfunction b/data/b7s/functions/command/tpspawn.mcfunction index d4e4a86..d39b1cf 100644 --- a/data/b7s/functions/command/tpspawn.mcfunction +++ b/data/b7s/functions/command/tpspawn.mcfunction @@ -2,8 +2,10 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. -function b7s:entity/get_dim +scoreboard players operation @s b7s._val = @s b7s.val + function b7s:config/spawn/check_loc_set +execute unless score @s b7s.val matches 0 run function b7s:command/tpspawn/_if_spawn_loc_set +tellraw @s[scores={b7s.val=0}] ["[Barebones] ",{"color":"red","text":"No spawn location has been set"}] -tellraw @s[tag=!b7s:spawn_pos_set] ["[BareBones] ",{"color":"red","text":"No spawn location has been set"}] -function b7s:command/tpspawn/_if_spawn_set if @s[tag=b7s:spawn_pos_set] +scoreboard players operation @s b7s.val = @s b7s._val diff --git a/data/b7s/functions/command/tpspawn/_if_spawn_set.mcfunction b/data/b7s/functions/command/tpspawn/_if_spawn_loc_set.mcfunction similarity index 50% rename from data/b7s/functions/command/tpspawn/_if_spawn_set.mcfunction rename to data/b7s/functions/command/tpspawn/_if_spawn_loc_set.mcfunction index f2383ec..cec82e1 100644 --- a/data/b7s/functions/command/tpspawn/_if_spawn_set.mcfunction +++ b/data/b7s/functions/command/tpspawn/_if_spawn_loc_set.mcfunction @@ -2,13 +2,10 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. -function b7s:entity/get_pos -function b7s:entity/get_rot +function b7s:entity/get_loc function b7s:entity/back/set_loc -function b7s:config/spawn/get_pos -function b7s:config/spawn/get_rot -function b7s:entity/tp_pos -function b7s:entity/tp_rot +function b7s:config/spawn/get_loc +function b7s:entity/tp_loc -tellraw @s ["[BareBones] ",{"color":"green","text":"Teleported to spawn"}] +tellraw @s ["[Barebones] ",{"color":"green","text":"Teleported to spawn"}] diff --git a/data/b7s/functions/config/back/get_persist.mcfunction b/data/b7s/functions/config/back/get_persist.mcfunction index be38c3c..4d78f53 100644 --- a/data/b7s/functions/config/back/get_persist.mcfunction +++ b/data/b7s/functions/config/back/get_persist.mcfunction @@ -5,12 +5,11 @@ # Checks whether the player's back location should be kept saved even after # logout. # -# Tags set: -# b7s:persist_back — if the player's back location should be kept saved +# Scores set: +# b7s.val - to 1 if the back location should be kept saved, 0 otherwise # # Usage: # /function b7s:config/back/get_persist -scoreboard players tag @s remove b7s:persist_back -scoreboard players operation @s b7s:persist_back = #b7s:config b7s:persist_back -scoreboard players tag @s[score_b7s:persist_back_min=1] add b7s:persist_back +scoreboard players set @s b7s.val 0 +execute unless score #b7s.persist_back b7s.val matches 0 run scoreboard players set @s b7s.val 1 diff --git a/data/b7s/functions/config/back/get_save_as_tags.mcfunction b/data/b7s/functions/config/back/get_save_as_tags.mcfunction index f243ae9..871ba2d 100644 --- a/data/b7s/functions/config/back/get_save_as_tags.mcfunction +++ b/data/b7s/functions/config/back/get_save_as_tags.mcfunction @@ -4,12 +4,11 @@ # Checks whether the player's back location should saved using scores or tags. # -# Tags set: -# b7s:back_as_tags — if the player's back location should saved using tags +# Scores set: +# b7s.val - to 1 if the back location should be saved using tags, 0 otherwise # # Usage: -# /function b7s:config/home/get_back_as_tags +# /function b7s:config/back/get_save_as_tags -scoreboard players tag @s remove b7s:back_as_tags -scoreboard players operation @s b7s:back_as_tags = #b7s:config b7s:back_as_tags -scoreboard players tag @s[score_b7s:back_as_tags_min=1] add b7s:back_as_tags +scoreboard players set @s b7s.val 0 +execute unless score #b7s.save_back_as_tags b7s.val matches 0 run scoreboard players set @s b7s.val 1 diff --git a/data/b7s/functions/config/back/set_persist.mcfunction b/data/b7s/functions/config/back/set_persist.mcfunction index 64c22c2..46796ae 100644 --- a/data/b7s/functions/config/back/set_persist.mcfunction +++ b/data/b7s/functions/config/back/set_persist.mcfunction @@ -5,12 +5,12 @@ # Configures whether the player's back location should be kept saved even # after logout. By default, this is not true. # -# Tags required: -# b7s:persist_back — if the player's back location should be kept saved +# Scores required: +# b7s.val - to 1 if the back location should be kept saved, 0 otherwise # # Usage: -# /scoreboard players tag @s b7s:persist_back +# /scoreboard players set @s b7s.val (0|1) # /function b7s:config/back/set_persist -scoreboard players set b7s:config b7s:persist_back 0 -execute @s[tag=b7s:persist_back] ~ ~ ~ scoreboard players set #b7s:config b7s:persist_back 1 +scoreboard players set #b7s.persist_back b7s.val 0 +execute unless score @s b7s.val matches 0 run scoreboard players set #b7s.persist_back b7s.val 1 diff --git a/data/b7s/functions/config/back/set_save_as_tags.mcfunction b/data/b7s/functions/config/back/set_save_as_tags.mcfunction index 2bae572..d7fb905 100644 --- a/data/b7s/functions/config/back/set_save_as_tags.mcfunction +++ b/data/b7s/functions/config/back/set_save_as_tags.mcfunction @@ -3,14 +3,14 @@ # file, You can obtain one at http://mozilla.org/MPL/2.0/. # Configures whether the player's back location should be saved using scores -# or tags. Scores are used by default. +# or tags. By default, scores are used. # -# Tags required: -# b7s:back_as_tags — if the player's back location should be saved as tags +# Scores required: +# b7s.val - to 1 if the back location should be saved as tags, 0 otherwise # # Usage: -# /scoreboard players tag @s b7s:back_as_tags +# /scoreboard players set @s b7s.val (0|1) # /function b7s:config/back/set_save_as_tags -scoreboard players set b7s:config b7s:back_as_tags 0 -execute @s[tag=b7s:back_as_tags] ~ ~ ~ scoreboard players set #b7s:config b7s:back_as_tags 1 +scoreboard players set #b7s.save_back_as_tags b7s.val 0 +execute unless score @s b7s.val matches 0 run scoreboard players set #b7s.save_back_as_tags b7s.val 1 diff --git a/data/b7s/functions/config/home/get_save_as_tags.mcfunction b/data/b7s/functions/config/home/get_save_as_tags.mcfunction index b9f6fd8..0d7f28f 100644 --- a/data/b7s/functions/config/home/get_save_as_tags.mcfunction +++ b/data/b7s/functions/config/home/get_save_as_tags.mcfunction @@ -4,12 +4,11 @@ # Checks whether the player's home location should saved using scores or tags. # -# Tags set: -# b7s:home_as_tags — if the player's home location should be saved as tags +# Scores set: +# b7s.val - to 1 if the home location should be saved using tags, 0 otherwise # # Usage: # /function b7s:config/home/get_save_as_tags -scoreboard players tag @s remove b7s:home_as_tags -scoreboard players operation @s b7s:home_as_tags = #b7s:config b7s:home_as_tags -scoreboard players tag @s[score_b7s:home_as_tags_min=1] add b7s:home_as_tags +scoreboard players set @s b7s.val 0 +execute unless score #b7s.save_home_as_tags b7s.val matches 0 run scoreboard players set @s b7s.val 1 diff --git a/data/b7s/functions/config/home/set_save_as_tags.mcfunction b/data/b7s/functions/config/home/set_save_as_tags.mcfunction index ae6acf6..3ffcf03 100644 --- a/data/b7s/functions/config/home/set_save_as_tags.mcfunction +++ b/data/b7s/functions/config/home/set_save_as_tags.mcfunction @@ -6,12 +6,12 @@ # or tags. While tags persist after players change their IGN, scores don't. # For this reason, tags are used by default. # -# Tags required: -# b7s:home_as_tags — if the player's home location should be saved as tags +# Scores required: +# b7s.val - to 1 if the home location should be saved using tags, 0 otherwise # # Usage: -# /scoreboard players tag @s b7s:home_as_tags +# /scoreboard players set @s b7s.val (0|1) # /function b7s:config/home/set_save_as_tags -scoreboard players set b7s:config b7s:home_as_tags 0 -execute @s[tag=b7s:home_as_tags] ~ ~ ~ scoreboard players set #b7s:config b7s:home_as_tags 1 +scoreboard players set #b7s.save_home_as_tags b7s.val 0 +execute unless score @s b7s.val matches 0 run scoreboard players set #b7s.save_home_as_tags b7s.val 1 diff --git a/data/b7s/functions/config/spawn/check_loc_set.mcfunction b/data/b7s/functions/config/spawn/check_loc_set.mcfunction index c3d4a1b..da0b16b 100644 --- a/data/b7s/functions/config/spawn/check_loc_set.mcfunction +++ b/data/b7s/functions/config/spawn/check_loc_set.mcfunction @@ -2,22 +2,13 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. -# Checks whether the server's spawn location has been set in a specific -# dimension. +# Checks whether the server's spawn location has been set. # -# Scores required: -# b7s:dim — the dimension in which to perform the check -# -# Tags set: -# b7s:spawn_loc_set — if the spawn location was set in the selected dimension +# Scores set: +# b7s.val - to 1 if the spawn location was set, 0 otherwise # # Usage: -# /scoreboard players set @s b7s:dim # /function b7s:config/spawn/check_loc_set -scoreboard players tag @s remove b7s:spawn_loc_set - -function b7s:config/spawn/check_pos_set -function b7s:config/spawn/check_rot_set - -execute @s[tag=b7s:spawn_pos_set] ~ ~ ~ scoreboard players tag @s[tag=b7s:spawn_rot_set] add b7s:spawn_loc_set +scoreboard players set @s b7s.val 0 +execute if score #b7s.spawn b7s.dim matches -2147483648.. if score #b7s.spawn b7s.x matches -2147483648.. if score #b7s.spawn b7s.y matches -2147483648.. if score #b7s.spawn b7s.z matches -2147483648.. run scoreboard players set @s b7s.val 1 diff --git a/data/b7s/functions/config/spawn/check_pos_set.mcfunction b/data/b7s/functions/config/spawn/check_pos_set.mcfunction deleted file mode 100644 index 64f9faf..0000000 --- a/data/b7s/functions/config/spawn/check_pos_set.mcfunction +++ /dev/null @@ -1,28 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -# Checks whether the server's spawn position has been set in a specific -# dimension. -# -# Scores required: -# b7s:dim — the dimension in which to perform the check -# -# Tags set: -# b7s:spawn_pos_set — if the spawn position was set in the selected dimension -# -# Usage: -# /scoreboard players set @s b7s:dim -# /function b7s:config/spawn/check_pos_set - -scoreboard players tag @s remove b7s:spawn_pos_set - -scoreboard players reset @s b7s:spawn_x -scoreboard players reset @s b7s:spawn_y -scoreboard players reset @s b7s:spawn_z - -function b7s:config/spawn/check_pos_set/_if_nether if @s[score_b7s:dim_min=-1,score_b7s:dim=-1] -function b7s:config/spawn/check_pos_set/_if_overworld if @s[score_b7s:dim_min=0,score_b7s:dim=0] -function b7s:config/spawn/check_pos_set/_if_end if @s[score_b7s:dim_min=1,score_b7s:dim=1] - -scoreboard players tag @s[score_b7s:spawn_x_min=-2147483648,score_b7s:spawn_y_min=-2147483648,score_b7s:spawn_z_min=-2147483648] add b7s:spawn_pos_set diff --git a/data/b7s/functions/config/spawn/check_pos_set/_if_end.mcfunction b/data/b7s/functions/config/spawn/check_pos_set/_if_end.mcfunction deleted file mode 100644 index 1f47fe2..0000000 --- a/data/b7s/functions/config/spawn/check_pos_set/_if_end.mcfunction +++ /dev/null @@ -1,7 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -scoreboard players operation @s b7s:spawn_x = #b7s:config_end b7s:spawn_x -scoreboard players operation @s b7s:spawn_y = #b7s:config_end b7s:spawn_y -scoreboard players operation @s b7s:spawn_z = #b7s:config_end b7s:spawn_z diff --git a/data/b7s/functions/config/spawn/check_pos_set/_if_nether.mcfunction b/data/b7s/functions/config/spawn/check_pos_set/_if_nether.mcfunction deleted file mode 100644 index ad3c56e..0000000 --- a/data/b7s/functions/config/spawn/check_pos_set/_if_nether.mcfunction +++ /dev/null @@ -1,7 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -scoreboard players operation @s b7s:spawn_x = #b7s:config_nether b7s:spawn_x -scoreboard players operation @s b7s:spawn_y = #b7s:config_nether b7s:spawn_y -scoreboard players operation @s b7s:spawn_z = #b7s:config_nether b7s:spawn_z diff --git a/data/b7s/functions/config/spawn/check_pos_set/_if_overworld.mcfunction b/data/b7s/functions/config/spawn/check_pos_set/_if_overworld.mcfunction deleted file mode 100644 index 13ad2d0..0000000 --- a/data/b7s/functions/config/spawn/check_pos_set/_if_overworld.mcfunction +++ /dev/null @@ -1,7 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -scoreboard players operation @s b7s:spawn_x = #b7s:config_overworld b7s:spawn_x -scoreboard players operation @s b7s:spawn_y = #b7s:config_overworld b7s:spawn_y -scoreboard players operation @s b7s:spawn_z = #b7s:config_overworld b7s:spawn_z diff --git a/data/b7s/functions/config/spawn/check_rot_set.mcfunction b/data/b7s/functions/config/spawn/check_rot_set.mcfunction deleted file mode 100644 index 5d104b7..0000000 --- a/data/b7s/functions/config/spawn/check_rot_set.mcfunction +++ /dev/null @@ -1,27 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -# Checks whether the server's spawn rotation has been set in a specific -# dimension. -# -# Scores required: -# b7s:dim — the dimension in which to perform the check -# -# Tags set: -# b7s:spawn_rot_set — if the spawn rotation was set in the selected dimension -# -# Usage: -# /scoreboard players set @s b7s:dim -# /function b7s:config/spawn/check_rot_set - -scoreboard players tag @s remove b7s:spawn_rot_set - -scoreboard players reset @s b7s:spawn_rot_x -scoreboard players reset @s b7s:spawn_rot_y - -function b7s:config/spawn/check_loc_set/_if_nether if @s[score_b7s:dim_min=-1,score_b7s:dim=-1] -function b7s:config/spawn/check_loc_set/_if_overworld if @s[score_b7s:dim_min=0,score_b7s:dim=0] -function b7s:config/spawn/check_loc_set/_if_end if @s[score_b7s:dim_min=1,score_b7s:dim=1] - -scoreboard players tag @s[score_b7s:spawn_rot_x_min=-2147483648,score_b7s:spawn_rot_y_min=-2147483648] add b7s:spawn_rot_set diff --git a/data/b7s/functions/config/spawn/check_rot_set/_if_end.mcfunction b/data/b7s/functions/config/spawn/check_rot_set/_if_end.mcfunction deleted file mode 100644 index 7669ab2..0000000 --- a/data/b7s/functions/config/spawn/check_rot_set/_if_end.mcfunction +++ /dev/null @@ -1,6 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -scoreboard players operation @s b7s:spawn_rot_x = #b7s:config_end b7s:spawn_rot_x -scoreboard players operation @s b7s:spawn_rot_y = #b7s:config_end b7s:spawn_rot_y diff --git a/data/b7s/functions/config/spawn/check_rot_set/_if_nether.mcfunction b/data/b7s/functions/config/spawn/check_rot_set/_if_nether.mcfunction deleted file mode 100644 index a98d868..0000000 --- a/data/b7s/functions/config/spawn/check_rot_set/_if_nether.mcfunction +++ /dev/null @@ -1,6 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -scoreboard players operation @s b7s:spawn_rot_x = #b7s:config_nether b7s:spawn_rot_x -scoreboard players operation @s b7s:spawn_rot_y = #b7s:config_nether b7s:spawn_rot_y diff --git a/data/b7s/functions/config/spawn/check_rot_set/_if_overworld.mcfunction b/data/b7s/functions/config/spawn/check_rot_set/_if_overworld.mcfunction deleted file mode 100644 index e76efad..0000000 --- a/data/b7s/functions/config/spawn/check_rot_set/_if_overworld.mcfunction +++ /dev/null @@ -1,6 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -scoreboard players operation @s b7s:spawn_rot_x = #b7s:config_overworld b7s:spawn_rot_x -scoreboard players operation @s b7s:spawn_rot_y = #b7s:config_overworld b7s:spawn_rot_y diff --git a/data/b7s/functions/config/spawn/get_loc.mcfunction b/data/b7s/functions/config/spawn/get_loc.mcfunction index b44cca4..4d66a3a 100644 --- a/data/b7s/functions/config/spawn/get_loc.mcfunction +++ b/data/b7s/functions/config/spawn/get_loc.mcfunction @@ -2,21 +2,31 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. -# Gets the server's spawn location for a specific dimension. +# Gets the server's spawn location. # # Scores required: -# b7s:dim — the dimension for which to get the spawn location # # Scores set: -# b7s:x — to the spawn's x coordinate -# b7s:y — to the spawn's y coordinate -# b7s:z — to the spawn's z coordinate -# b7s:rot_x — to the spawn's x rotation -# b7s:rot_y — to the spawn's y rotation +# b7s.dim - to the spawn's dimension +# b7s.x - to the spawn's x coordinate +# b7s.y - to the spawn's y coordinate +# b7s.z - to the spawn's z coordinate +# b7s.rot_x - to the spawn's x rotation +# b7s.rot_y - to the spawn's y rotation # # Usage: -# /scoreboard players set @s b7s:dim # /function b7s:config/spawn/get_loc -function b7s:config/spawn/get_pos -function b7s:config/spawn/get_rot +scoreboard players reset @s b7s.dim +scoreboard players reset @s b7s.x +scoreboard players reset @s b7s.y +scoreboard players reset @s b7s.z +scoreboard players reset @s b7s.rot_x +scoreboard players reset @s b7s.rot_y + +execute if score #b7s.spawn b7s.dim matches -2147483648.. run scoreboard players operation @s b7s.dim = #b7s.spawn b7s.dim +execute if score #b7s.spawn b7s.x matches -2147483648.. run scoreboard players operation @s b7s.x = #b7s.spawn b7s.x +execute if score #b7s.spawn b7s.y matches -2147483648.. run scoreboard players operation @s b7s.y = #b7s.spawn b7s.y +execute if score #b7s.spawn b7s.z matches -2147483648.. run scoreboard players operation @s b7s.z = #b7s.spawn b7s.z +execute if score #b7s.spawn b7s.rot_x matches -2147483648.. run scoreboard players operation @s b7s.rot_x = #b7s.spawn b7s.rot_x +execute if score #b7s.spawn b7s.rot_y matches -2147483648.. run scoreboard players operation @s b7s.rot_y = #b7s.spawn b7s.rot_y diff --git a/data/b7s/functions/config/spawn/get_pos.mcfunction b/data/b7s/functions/config/spawn/get_pos.mcfunction deleted file mode 100644 index a7c4979..0000000 --- a/data/b7s/functions/config/spawn/get_pos.mcfunction +++ /dev/null @@ -1,21 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -# Gets the server's spawn position for a specific dimension. -# -# Scores required: -# b7s:dim — the dimension for which to get the spawn position -# -# Scores set: -# b7s:x — to the spawn's x coordinate -# b7s:y — to the spawn's y coordinate -# b7s:z — to the spawn's z coordinate -# -# Usage: -# /scoreboard players set @s b7s:dim -# /function b7s:config/spawn/get_pos - -function b7s:config/spawn/get_pos/_if_nether if @s[score_b7s:dim=-1,score_b7s:dim=-1] -function b7s:config/spawn/get_pos/_if_overworld if @s[score_b7s:dim=0,score_b7s:dim=0] -function b7s:config/spawn/get_pos/_if_end if @s[score_b7s:dim=1,score_b7s:dim=1] diff --git a/data/b7s/functions/config/spawn/get_pos/_if_end.mcfunction b/data/b7s/functions/config/spawn/get_pos/_if_end.mcfunction deleted file mode 100644 index 7b1e92c..0000000 --- a/data/b7s/functions/config/spawn/get_pos/_if_end.mcfunction +++ /dev/null @@ -1,7 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -scoreboard players operation @s b7s:x = #b7s:config_end b7s:spawn_x -scoreboard players operation @s b7s:y = #b7s:config_end b7s:spawn_y -scoreboard players operation @s b7s:z = #b7s:config_end b7s:spawn_z diff --git a/data/b7s/functions/config/spawn/get_pos/_if_nether.mcfunction b/data/b7s/functions/config/spawn/get_pos/_if_nether.mcfunction deleted file mode 100644 index 02f3b5c..0000000 --- a/data/b7s/functions/config/spawn/get_pos/_if_nether.mcfunction +++ /dev/null @@ -1,7 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -scoreboard players operation @s b7s:x = #b7s:config_nether b7s:spawn_x -scoreboard players operation @s b7s:y = #b7s:config_nether b7s:spawn_y -scoreboard players operation @s b7s:z = #b7s:config_nether b7s:spawn_z diff --git a/data/b7s/functions/config/spawn/get_pos/_if_overworld.mcfunction b/data/b7s/functions/config/spawn/get_pos/_if_overworld.mcfunction deleted file mode 100644 index 6d925e8..0000000 --- a/data/b7s/functions/config/spawn/get_pos/_if_overworld.mcfunction +++ /dev/null @@ -1,7 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -scoreboard players operation @s b7s:x = #b7s:config_overworld b7s:spawn_x -scoreboard players operation @s b7s:y = #b7s:config_overworld b7s:spawn_y -scoreboard players operation @s b7s:z = #b7s:config_overworld b7s:spawn_z diff --git a/data/b7s/functions/config/spawn/get_rot.mcfunction b/data/b7s/functions/config/spawn/get_rot.mcfunction deleted file mode 100644 index da2b3fd..0000000 --- a/data/b7s/functions/config/spawn/get_rot.mcfunction +++ /dev/null @@ -1,20 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -# Gets the server's spawn rotation for a specific dimension. -# -# Scores required: -# b7s:dim — the dimension for which to get the spawn rotation -# -# Scores set: -# b7s:rot_x — to the spawn's x rotation -# b7s:rot_y — to the spawn's y rotation -# -# Usage: -# /scoreboard players set @s b7s:dim -# /function b7s:config/spawn/get_rot - -function b7s:config/spawn/get_rot/_if_nether if @s[score_b7s:dim=-1,score_b7s:dim=-1] -function b7s:config/spawn/get_rot/_if_overworld if @s[score_b7s:dim=0,score_b7s:dim=0] -function b7s:config/spawn/get_rot/_if_end if @s[score_b7s:dim=1,score_b7s:dim=1] diff --git a/data/b7s/functions/config/spawn/get_rot/_if_end.mcfunction b/data/b7s/functions/config/spawn/get_rot/_if_end.mcfunction deleted file mode 100644 index 5afec16..0000000 --- a/data/b7s/functions/config/spawn/get_rot/_if_end.mcfunction +++ /dev/null @@ -1,6 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -scoreboard players operation @s b7s:rot_x = #b7s:config_end b7s:spawn_rot_x -scoreboard players operation @s b7s:rot_y = #b7s:config_end b7s:spawn_rot_y diff --git a/data/b7s/functions/config/spawn/get_rot/_if_nether.mcfunction b/data/b7s/functions/config/spawn/get_rot/_if_nether.mcfunction deleted file mode 100644 index 6725192..0000000 --- a/data/b7s/functions/config/spawn/get_rot/_if_nether.mcfunction +++ /dev/null @@ -1,6 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -scoreboard players operation @s b7s:rot_x = #b7s:config_nether b7s:spawn_rot_x -scoreboard players operation @s b7s:rot_y = #b7s:config_nether b7s:spawn_rot_y diff --git a/data/b7s/functions/config/spawn/get_rot/_if_overworld.mcfunction b/data/b7s/functions/config/spawn/get_rot/_if_overworld.mcfunction deleted file mode 100644 index e7f3ecb..0000000 --- a/data/b7s/functions/config/spawn/get_rot/_if_overworld.mcfunction +++ /dev/null @@ -1,6 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -scoreboard players operation @s b7s:rot_x = #b7s:config_overworld b7s:spawn_rot_x -scoreboard players operation @s b7s:rot_y = #b7s:config_overworld b7s:spawn_rot_y diff --git a/data/b7s/functions/config/spawn/set_loc.mcfunction b/data/b7s/functions/config/spawn/set_loc.mcfunction index de9c92e..3896543 100644 --- a/data/b7s/functions/config/spawn/set_loc.mcfunction +++ b/data/b7s/functions/config/spawn/set_loc.mcfunction @@ -2,24 +2,28 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. -# Sets the server's spawn location for a specific dimension. +# Sets the server's spawn location. # # Scores required: -# b7s:dim — the dimension for which to set the spawn location -# b7s:x — the spawn's x coordinate -# b7s:y — the spawn's y coordinate -# b7s:z — the spawn's z coordinate -# b7s:rot_x — the spawn's x rotation -# b7s:rot_y — the spawn's y rotation +# b7s.dim - the spawn's dimension +# b7s.x - the spawn's x coordinate +# b7s.y - the spawn's y coordinate +# b7s.z - the spawn's z coordinate +# b7s.rot_x - the spawn's x rotation +# b7s.rot_y - the spawn's y rotation # # Usage: -# /scoreboard players set @s b7s:dim -# /scoreboard players set @s b7s:x -# /scoreboard players set @s b7s:y -# /scoreboard players set @s b7s:z -# /scoreboard players set @s b7s:rot_x -# /scoreboard players set @s b7s:rot_y +# /scoreboard players set @s b7s.dim +# /scoreboard players set @s b7s.x +# /scoreboard players set @s b7s.y +# /scoreboard players set @s b7s.z +# /scoreboard players set @s b7s.rot_x +# /scoreboard players set @s b7s.rot_y # /function b7s:config/spawn/set_loc -function b7s:config/spawn/set_pos -function b7s:config/spawn/set_rot +scoreboard players operation #b7s.spawn b7s.dim = @s[scores={b7s.dim=-2147483648..}] b7s.dim +scoreboard players operation #b7s.spawn b7s.x = @s[scores={b7s.x=-2147483648..}] b7s.x +scoreboard players operation #b7s.spawn b7s.y = @s[scores={b7s.y=-2147483648..}] b7s.y +scoreboard players operation #b7s.spawn b7s.z = @s[scores={b7s.z=-2147483648..}] b7s.z +scoreboard players operation #b7s.spawn b7s.rot_x = @s[scores={b7s.rot_x=-2147483648..}] b7s.rot_x +scoreboard players operation #b7s.spawn b7s.rot_y = @s[scores={b7s.rot_y=-2147483648..}] b7s.rot_y diff --git a/data/b7s/functions/config/spawn/set_pos.mcfunction b/data/b7s/functions/config/spawn/set_pos.mcfunction deleted file mode 100644 index a99f5b6..0000000 --- a/data/b7s/functions/config/spawn/set_pos.mcfunction +++ /dev/null @@ -1,22 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -# Sets the server's spawn position for a specific dimension. -# -# Scores required: -# b7s:dim — the dimension for which to set the spawn position -# b7s:x — the spawn's x coordinate -# b7s:y — the spawn's y coordinate -# b7s:z — the spawn's z coordinate -# -# Usage: -# /scoreboard players set @s b7s:dim -# /scoreboard players set @s b7s:x -# /scoreboard players set @s b7s:y -# /scoreboard players set @s b7s:z -# /function b7s:config/spawn/set_pos - -function b7s:config/spawn/set_pos/_if_nether if @s[score_b7s:dim_min=-1,score_b7s:dim=-1] -function b7s:config/spawn/set_pos/_if_overworld if @s[score_b7s:dim_min=0,score_b7s:dim=0] -function b7s:config/spawn/set_pos/_if_end if @s[score_b7s:dim_min=1,score_b7s:dim=1] diff --git a/data/b7s/functions/config/spawn/set_pos/_if_end.mcfunction b/data/b7s/functions/config/spawn/set_pos/_if_end.mcfunction deleted file mode 100644 index aa53f92..0000000 --- a/data/b7s/functions/config/spawn/set_pos/_if_end.mcfunction +++ /dev/null @@ -1,7 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -scoreboard players operation #b7s:config_end b7s:spawn_x = @s b7s:x -scoreboard players operation #b7s:config_end b7s:spawn_y = @s b7s:y -scoreboard players operation #b7s:config_end b7s:spawn_z = @s b7s:z diff --git a/data/b7s/functions/config/spawn/set_pos/_if_nether.mcfunction b/data/b7s/functions/config/spawn/set_pos/_if_nether.mcfunction deleted file mode 100644 index 1ee1795..0000000 --- a/data/b7s/functions/config/spawn/set_pos/_if_nether.mcfunction +++ /dev/null @@ -1,7 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -scoreboard players operation #b7s:config_nether b7s:spawn_x = @s b7s:x -scoreboard players operation #b7s:config_nether b7s:spawn_y = @s b7s:y -scoreboard players operation #b7s:config_nether b7s:spawn_z = @s b7s:z diff --git a/data/b7s/functions/config/spawn/set_pos/_if_overworld.mcfunction b/data/b7s/functions/config/spawn/set_pos/_if_overworld.mcfunction deleted file mode 100644 index bfdbfd3..0000000 --- a/data/b7s/functions/config/spawn/set_pos/_if_overworld.mcfunction +++ /dev/null @@ -1,7 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -scoreboard players operation #b7s:config_overworld b7s:spawn_x = @s b7s:x -scoreboard players operation #b7s:config_overworld b7s:spawn_y = @s b7s:y -scoreboard players operation #b7s:config_overworld b7s:spawn_z = @s b7s:z diff --git a/data/b7s/functions/config/spawn/set_rot.mcfunction b/data/b7s/functions/config/spawn/set_rot.mcfunction deleted file mode 100644 index 80472f5..0000000 --- a/data/b7s/functions/config/spawn/set_rot.mcfunction +++ /dev/null @@ -1,20 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -# Sets the server's spawn rotation for a specific dimension. -# -# Scores required: -# b7s:dim — the dimension for which to set the spawn rotation -# b7s:rot_x — the spawn's x rotation -# b7s:rot_y — the spawn's y rotation -# -# Usage: -# /scoreboard players set @s b7s:dim -# /scoreboard players set @s b7s:rot_x -# /scoreboard players set @s b7s:rot_y -# /function b7s:config/spawn/set_rot - -function b7s:config/spawn/set_rot/_if_nether if @s[score_b7s:dim_min=-1,score_b7s:dim=-1] -function b7s:config/spawn/set_rot/_if_overworld if @s[score_b7s:dim_min=0,score_b7s:dim=0] -function b7s:config/spawn/set_rot/_if_end if @s[score_b7s:dim_min=1,score_b7s:dim=1] diff --git a/data/b7s/functions/config/spawn/set_rot/_if_end.mcfunction b/data/b7s/functions/config/spawn/set_rot/_if_end.mcfunction deleted file mode 100644 index e961e0b..0000000 --- a/data/b7s/functions/config/spawn/set_rot/_if_end.mcfunction +++ /dev/null @@ -1,6 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -scoreboard players operation #b7s:config_end b7s:spawn_rot_x = @s b7s:rot_x -scoreboard players operation #b7s:config_end b7s:spawn_rot_y = @s b7s:rot_y diff --git a/data/b7s/functions/config/spawn/set_rot/_if_nether.mcfunction b/data/b7s/functions/config/spawn/set_rot/_if_nether.mcfunction deleted file mode 100644 index 667bb6f..0000000 --- a/data/b7s/functions/config/spawn/set_rot/_if_nether.mcfunction +++ /dev/null @@ -1,6 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -scoreboard players operation #b7s:config_nether b7s:spawn_rot_rot_x = @s b7s:rot_x -scoreboard players operation #b7s:config_nether b7s:spawn_rot_y = @s b7s:rot_y diff --git a/data/b7s/functions/config/spawn/set_rot/_if_overworld.mcfunction b/data/b7s/functions/config/spawn/set_rot/_if_overworld.mcfunction deleted file mode 100644 index ca75ee0..0000000 --- a/data/b7s/functions/config/spawn/set_rot/_if_overworld.mcfunction +++ /dev/null @@ -1,6 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -scoreboard players operation #b7s:config_overworld b7s:spawn_rot_x = @s b7s:rot_x -scoreboard players operation #b7s:config_overworld b7s:spawn_rot_y = @s b7s:rot_y diff --git a/data/b7s/functions/config/spawn/unset_loc.mcfunction b/data/b7s/functions/config/spawn/unset_loc.mcfunction index d9022e1..c7bae9a 100644 --- a/data/b7s/functions/config/spawn/unset_loc.mcfunction +++ b/data/b7s/functions/config/spawn/unset_loc.mcfunction @@ -2,14 +2,14 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. -# Unsets the server's spawn location for a specific dimension. -# -# Scores required: -# b7s:dim — the dimension for which to unset the spawn location +# Unsets the server's spawn location. # # Usage: -# /scoreboard players set @s b7s:dim # /function b7s:config/spawn/unset_loc -function b7s:config/spawn/unset_pos -function b7s:config/spawn/unset_rot +scoreboard players reset #b7s.spawn b7s.dim +scoreboard players reset #b7s.spawn b7s.x +scoreboard players reset #b7s.spawn b7s.y +scoreboard players reset #b7s.spawn b7s.z +scoreboard players reset #b7s.spawn b7s.rot_x +scoreboard players reset #b7s.spawn b7s.rot_y diff --git a/data/b7s/functions/config/spawn/unset_pos.mcfunction b/data/b7s/functions/config/spawn/unset_pos.mcfunction deleted file mode 100644 index f3a7d79..0000000 --- a/data/b7s/functions/config/spawn/unset_pos.mcfunction +++ /dev/null @@ -1,16 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -# Unsets the server's spawn position for a specific dimension. -# -# Scores required: -# b7s:dim — the dimension for which to unset the spawn position -# -# Usage: -# /scoreboard players set @s b7s:dim -# /function b7s:config/spawn/unset_pos - -function b7s:config/spawn/unset_pos/_if_nether if @s[score_b7s:dim_min=-1,score_b7s:dim=-1] -function b7s:config/spawn/unset_pos/_if_overworld if @s[score_b7s:dim_min=0,score_b7s:dim=0] -function b7s:config/spawn/unset_pos/_if_end if @s[score_b7s:dim_min=1,score_b7s:dim=1] diff --git a/data/b7s/functions/config/spawn/unset_pos/_if_end.mcfunction b/data/b7s/functions/config/spawn/unset_pos/_if_end.mcfunction deleted file mode 100644 index 9f0bc25..0000000 --- a/data/b7s/functions/config/spawn/unset_pos/_if_end.mcfunction +++ /dev/null @@ -1,7 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -scoreboard players reset #b7s:config_end b7s:spawn_x -scoreboard players reset #b7s:config_end b7s:spawn_y -scoreboard players reset #b7s:config_end b7s:spawn_z diff --git a/data/b7s/functions/config/spawn/unset_pos/_if_nether.mcfunction b/data/b7s/functions/config/spawn/unset_pos/_if_nether.mcfunction deleted file mode 100644 index ac2fe52..0000000 --- a/data/b7s/functions/config/spawn/unset_pos/_if_nether.mcfunction +++ /dev/null @@ -1,7 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -scoreboard players reset #b7s:config_nether b7s:spawn_x -scoreboard players reset #b7s:config_nether b7s:spawn_y -scoreboard players reset #b7s:config_nether b7s:spawn_z diff --git a/data/b7s/functions/config/spawn/unset_pos/_if_overworld.mcfunction b/data/b7s/functions/config/spawn/unset_pos/_if_overworld.mcfunction deleted file mode 100644 index c44019a..0000000 --- a/data/b7s/functions/config/spawn/unset_pos/_if_overworld.mcfunction +++ /dev/null @@ -1,7 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -scoreboard players reset #b7s:config_overworld b7s:spawn_x -scoreboard players reset #b7s:config_overworld b7s:spawn_y -scoreboard players reset #b7s:config_overworld b7s:spawn_z diff --git a/data/b7s/functions/config/spawn/unset_rot.mcfunction b/data/b7s/functions/config/spawn/unset_rot.mcfunction deleted file mode 100644 index 200d91c..0000000 --- a/data/b7s/functions/config/spawn/unset_rot.mcfunction +++ /dev/null @@ -1,16 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -# Unsets the server's spawn rotation for a specific dimension. -# -# Scores required: -# b7s:dim — the dimension for which to unset the spawn rotation -# -# Usage: -# /scoreboard players set @s b7s:dim -# /function b7s:config/spawn/unset_rot - -function b7s:config/spawn/unset_rot/_if_nether if @s[score_b7s:dim_min=-1,score_b7s:dim=-1] -function b7s:config/spawn/unset_rot/_if_overworld if @s[score_b7s:dim_min=0,score_b7s:dim=0] -function b7s:config/spawn/unset_rot/_if_end if @s[score_b7s:dim_min=1,score_b7s:dim=1] diff --git a/data/b7s/functions/config/spawn/unset_rot/_if_end.mcfunction b/data/b7s/functions/config/spawn/unset_rot/_if_end.mcfunction deleted file mode 100644 index e24a695..0000000 --- a/data/b7s/functions/config/spawn/unset_rot/_if_end.mcfunction +++ /dev/null @@ -1,6 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -scoreboard players reset #b7s:config_end b7s:spawn_rot_x -scoreboard players reset #b7s:config_end b7s:spawn_rot_y diff --git a/data/b7s/functions/config/spawn/unset_rot/_if_nether.mcfunction b/data/b7s/functions/config/spawn/unset_rot/_if_nether.mcfunction deleted file mode 100644 index 40485c7..0000000 --- a/data/b7s/functions/config/spawn/unset_rot/_if_nether.mcfunction +++ /dev/null @@ -1,6 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -scoreboard players reset #b7s:config_nether b7s:spawn_rot_x -scoreboard players reset #b7s:config_nether b7s:spawn_rot_y diff --git a/data/b7s/functions/config/spawn/unset_rot/_if_overworld.mcfunction b/data/b7s/functions/config/spawn/unset_rot/_if_overworld.mcfunction deleted file mode 100644 index 15465f7..0000000 --- a/data/b7s/functions/config/spawn/unset_rot/_if_overworld.mcfunction +++ /dev/null @@ -1,6 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -scoreboard players reset #b7s:config_overworld b7s:spawn_rot_x -scoreboard players reset #b7s:config_overworld b7s:spawn_rot_y diff --git a/data/b7s/functions/config/tp_req/get_persist.mcfunction b/data/b7s/functions/config/tp_req/get_persist.mcfunction new file mode 100644 index 0000000..508b5ce --- /dev/null +++ b/data/b7s/functions/config/tp_req/get_persist.mcfunction @@ -0,0 +1,15 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. + +# Checks whether the player's teleportation request should be kept saved even +# after logout. +# +# Scores set: +# b7s.val - to 1 if the tp request should be kept saved, 0 otherwise +# +# Usage: +# /function b7s:config/tp_req/get_persist + +scoreboard players set @s b7s.val 0 +execute unless score #b7s.persist_tpreq b7s.val matches 0 run scoreboard players set @s b7s.val 1 diff --git a/data/b7s/functions/config/tp_req/set_persist.mcfunction b/data/b7s/functions/config/tp_req/set_persist.mcfunction new file mode 100644 index 0000000..e558461 --- /dev/null +++ b/data/b7s/functions/config/tp_req/set_persist.mcfunction @@ -0,0 +1,16 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. + +# Configures whether the player's teleportation request should be kept saved +# even after logout. By default, this is not true. +# +# Scores required: +# b7s.val - to 1 if the tp request should be kept saved, 0 otherwise +# +# Usage: +# /scoreboard players set @s b7s.val (0|1) +# /function b7s:config/tp_req/set_persist + +scoreboard players set #b7s.persist_tpreq b7s.val 0 +execute unless score @s b7s.val matches 0 run scoreboard players set #b7s.persist_tpreq b7s.val 1 diff --git a/data/b7s/functions/entity/back/check_dim_set.mcfunction b/data/b7s/functions/entity/back/check_dim_set.mcfunction deleted file mode 100644 index 786b28c..0000000 --- a/data/b7s/functions/entity/back/check_dim_set.mcfunction +++ /dev/null @@ -1,15 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -# Checks whether a player or entity has its back dimension set. -# -# Tags set: -# b7s:back_dim_set — if the back dimension was set -# -# Usage: -# /execute ~ ~ ~ function b7s:entity/back/check_dim_set - -scoreboard players tag @s remove b7s:back_dim_set -scoreboard players tag @s[tag=!b7s:back_dim_tags_set,score_b7s:back_dim_min=-2147483648] add b7s:back_dim_set -scoreboard players tag @s[tag=b7s:back_dim_tags_set] add b7s:back_dim_set diff --git a/data/b7s/functions/entity/back/check_loc_set.mcfunction b/data/b7s/functions/entity/back/check_loc_set.mcfunction index 2829ce7..c80c3ff 100644 --- a/data/b7s/functions/entity/back/check_loc_set.mcfunction +++ b/data/b7s/functions/entity/back/check_loc_set.mcfunction @@ -4,14 +4,12 @@ # Checks whether a player or entity has its back location set. # -# Tags set: -# b7s:back_loc_set — if the back location was set +# Scores set: +# b7s.val - to 1 if the back location was set, 0 otherwise # # Usage: -# /execute ~ ~ ~ function b7s:entity/back/check_loc_set +# /execute as run function b7s:entity/back/check_loc_set -scoreboard players tag @s remove b7s:back_loc_set -function b7s:entity/back/check_dim_set -function b7s:entity/back/check_pos_set -function b7s:entity/back/check_rot_set -execute @s[tag=b7s:back_dim_set] ~ ~ ~ execute @s[tag=b7s:back_pos_set] ~ ~ ~ scoreboard players tag @s[tag=b7s:back_rot_set] add b7s:back_loc_set +scoreboard players set @s b7s.val 0 +scoreboard players set @s[tag=b7s.back_loc_set,tag=b7s.back_dim_set,tag=b7s.back_x_set,tag=b7s.back_y_set,tag=b7s.back_z_set] b7s.val 1 +scoreboard players set @s[tag=!b7s.back_loc_set,scores={b7s.back_dim=-2147483648..,b7s.back_x=-2147483648..b7s.back_y=-2147483648..b7s.back_z=-2147483648..}] b7s.val 1 diff --git a/data/b7s/functions/entity/back/check_pos_set.mcfunction b/data/b7s/functions/entity/back/check_pos_set.mcfunction deleted file mode 100644 index 29443a8..0000000 --- a/data/b7s/functions/entity/back/check_pos_set.mcfunction +++ /dev/null @@ -1,15 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -# Checks whether a player or entity has its back position set. -# -# Tags set: -# b7s:back_pos_set — if the back position was set -# -# Usage: -# /execute ~ ~ ~ function b7s:entity/back/check_pos_set - -scoreboard players tag @s remove b7s:back_pos_set -scoreboard players tag @s[tag=!b7s:back_pos_tags_set,score_b7s:back_x_min=-2147483648,score_b7s:back_y_min=-2147483648,score_b7s:back_z_min=-2147483648] add b7s:back_pos_set -scoreboard players tag @s[tag=b7s:back_pos_tags_set] add b7s:back_pos_set diff --git a/data/b7s/functions/entity/back/check_rot_set.mcfunction b/data/b7s/functions/entity/back/check_rot_set.mcfunction deleted file mode 100644 index cf5dafa..0000000 --- a/data/b7s/functions/entity/back/check_rot_set.mcfunction +++ /dev/null @@ -1,15 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -# Checks whether a player or entity has its back rotation set. -# -# Tags set: -# b7s:back_rot_set — if the back rotation was set -# -# Usage: -# /execute ~ ~ ~ function b7s:entity/back/check_rot_set - -scoreboard players tag @s remove b7s:back_rot_set -scoreboard players tag @s[tag=!b7s:back_rot_tags_set,score_b7s:back_rot_x_min=-2147483648,score_b7s:back_rot_y_min=-2147483648] add b7s:back_rot_set -scoreboard players tag @s[tag=b7s:back_rot_tags_set] add b7s:back_rot_set diff --git a/data/b7s/functions/entity/back/get_dim.mcfunction b/data/b7s/functions/entity/back/get_dim.mcfunction deleted file mode 100644 index 7c36f34..0000000 --- a/data/b7s/functions/entity/back/get_dim.mcfunction +++ /dev/null @@ -1,14 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -# Gets the back dimension of a player or entity. -# -# Scores set: -# b7s:dim — to the back's dimension -# -# Usage: -# /execute ~ ~ ~ function b7s:entity/back/get_dim - -function b7s:entity/back/get_dim/_unless_set_as_tags unless @s[tag=b7s:back_dim_tags_set] -function b7s:entity/back/get_dim/_if_set_as_tags if @s[tag=b7s:back_dim_tags_set] diff --git a/data/b7s/functions/entity/back/get_dim/_if_set_as_tags.mcfunction b/data/b7s/functions/entity/back/get_dim/_if_set_as_tags.mcfunction deleted file mode 100644 index 6c6553b..0000000 --- a/data/b7s/functions/entity/back/get_dim/_if_set_as_tags.mcfunction +++ /dev/null @@ -1,7 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -scoreboard players set @s[tag=b7s:back_dim_nether] b7s:dim -1 -scoreboard players set @s[tag=b7s:back_dim_overworld] b7s:dim 0 -scoreboard players set @s[tag=b7s:back_dim_end] b7s:dim 1 diff --git a/data/b7s/functions/entity/back/get_dim/_unless_set_as_tags.mcfunction b/data/b7s/functions/entity/back/get_dim/_unless_set_as_tags.mcfunction deleted file mode 100644 index 072c2c7..0000000 --- a/data/b7s/functions/entity/back/get_dim/_unless_set_as_tags.mcfunction +++ /dev/null @@ -1,5 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -scoreboard players operation @s b7s:dim = @s b7s:back_dim diff --git a/data/b7s/functions/entity/back/get_loc.mcfunction b/data/b7s/functions/entity/back/get_loc.mcfunction index c95058b..568a559 100644 --- a/data/b7s/functions/entity/back/get_loc.mcfunction +++ b/data/b7s/functions/entity/back/get_loc.mcfunction @@ -5,16 +5,22 @@ # Gets the back location of a player or entity. # # Scores set: -# b7s:dim — to the back's dimension -# b7s:x — to the back's x coordinate -# b7s:y — to the back's y coordinate -# b7s:z — to the back's z coordinate -# b7s:rot_x — to the back's x rotation -# b7s:rot_y — to the back's y rotation +# b7s.dim - to the dimension of the back location +# b7s.x - to the x coordinate of the back location +# b7s.y - to the y coordinate of the back location +# b7s.z - to the z coordinate of the back location +# b7s.rot_x - to the x rotation of the back location +# b7s.rot_y - to the y rotation of the back location # # Usage: -# /execute ~ ~ ~ function b7s:entity/back/get_loc +# /execute as run function b7s:entity/back/get_loc -function b7s:entity/back/get_dim -function b7s:entity/back/get_pos -function b7s:entity/back/get_rot +scoreboard players reset @s b7s.dim +scoreboard players reset @s b7s.x +scoreboard players reset @s b7s.y +scoreboard players reset @s b7s.z +scoreboard players reset @s b7s.rot_x +scoreboard players reset @s b7s.rot_y + +execute if entity @s[tag=b7s.back_loc_set] run function b7s:entity/back/get_loc/_if_saved_as_tags +execute unless entity @s[tag=b7s.back_loc_set] run function b7s:entity/back/get_loc/_unless_saved_as_tags diff --git a/data/b7s/functions/entity/back/get_loc/_if_saved_as_tags.mcfunction b/data/b7s/functions/entity/back/get_loc/_if_saved_as_tags.mcfunction new file mode 100644 index 0000000..9b90bc9 --- /dev/null +++ b/data/b7s/functions/entity/back/get_loc/_if_saved_as_tags.mcfunction @@ -0,0 +1,10 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. + +execute if entity @s[tag=b7s.back_dim_set] run function b7s:entity/back/get_loc/_if_saved_as_tags_if_dim_set +execute if entity @s[tag=b7s.back_x_set] run function b7s:entity/back/get_loc/_if_saved_as_tags_if_x_set +execute if entity @s[tag=b7s.back_y_set] run function b7s:entity/back/get_loc/_if_saved_as_tags_if_y_set +execute if entity @s[tag=b7s.back_z_set] run function b7s:entity/back/get_loc/_if_saved_as_tags_if_z_set +execute if entity @s[tag=b7s.back_rot_x_set] run function b7s:entity/back/get_loc/_if_saved_as_tags_if_rot_x_set +execute if entity @s[tag=b7s.back_rot_y_set] run function b7s:entity/back/get_loc/_if_saved_as_tags_if_rot_y_set diff --git a/data/b7s/functions/entity/back/get_loc/_if_saved_as_tags_if_dim_set.mcfunction b/data/b7s/functions/entity/back/get_loc/_if_saved_as_tags_if_dim_set.mcfunction new file mode 100644 index 0000000..b3fd695 --- /dev/null +++ b/data/b7s/functions/entity/back/get_loc/_if_saved_as_tags_if_dim_set.mcfunction @@ -0,0 +1,38 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. + +scoreboard players set @s b7s.dim -2147483648 +scoreboard players add @s[tag=b7s.back_dim_31] b7s.dim 1073741824 +scoreboard players add @s[tag=b7s.back_dim_31] b7s.dim 1073741824 +scoreboard players add @s[tag=b7s.back_dim_30] b7s.dim 1073741824 +scoreboard players add @s[tag=b7s.back_dim_29] b7s.dim 536870912 +scoreboard players add @s[tag=b7s.back_dim_28] b7s.dim 268435456 +scoreboard players add @s[tag=b7s.back_dim_27] b7s.dim 134217728 +scoreboard players add @s[tag=b7s.back_dim_26] b7s.dim 67108864 +scoreboard players add @s[tag=b7s.back_dim_25] b7s.dim 33554432 +scoreboard players add @s[tag=b7s.back_dim_24] b7s.dim 16777216 +scoreboard players add @s[tag=b7s.back_dim_23] b7s.dim 8388608 +scoreboard players add @s[tag=b7s.back_dim_22] b7s.dim 4194304 +scoreboard players add @s[tag=b7s.back_dim_21] b7s.dim 2097152 +scoreboard players add @s[tag=b7s.back_dim_20] b7s.dim 1048576 +scoreboard players add @s[tag=b7s.back_dim_19] b7s.dim 524288 +scoreboard players add @s[tag=b7s.back_dim_18] b7s.dim 262144 +scoreboard players add @s[tag=b7s.back_dim_17] b7s.dim 131072 +scoreboard players add @s[tag=b7s.back_dim_16] b7s.dim 65536 +scoreboard players add @s[tag=b7s.back_dim_15] b7s.dim 32768 +scoreboard players add @s[tag=b7s.back_dim_14] b7s.dim 16384 +scoreboard players add @s[tag=b7s.back_dim_13] b7s.dim 8192 +scoreboard players add @s[tag=b7s.back_dim_12] b7s.dim 4096 +scoreboard players add @s[tag=b7s.back_dim_11] b7s.dim 2048 +scoreboard players add @s[tag=b7s.back_dim_10] b7s.dim 1024 +scoreboard players add @s[tag=b7s.back_dim_9] b7s.dim 512 +scoreboard players add @s[tag=b7s.back_dim_8] b7s.dim 256 +scoreboard players add @s[tag=b7s.back_dim_7] b7s.dim 128 +scoreboard players add @s[tag=b7s.back_dim_6] b7s.dim 64 +scoreboard players add @s[tag=b7s.back_dim_5] b7s.dim 32 +scoreboard players add @s[tag=b7s.back_dim_4] b7s.dim 16 +scoreboard players add @s[tag=b7s.back_dim_3] b7s.dim 8 +scoreboard players add @s[tag=b7s.back_dim_2] b7s.dim 4 +scoreboard players add @s[tag=b7s.back_dim_1] b7s.dim 2 +scoreboard players add @s[tag=b7s.back_dim_0] b7s.dim 1 diff --git a/data/b7s/functions/entity/home/get_rot/_if_set_as_tags.mcfunction.py b/data/b7s/functions/entity/back/get_loc/_if_saved_as_tags_if_dim_set.mcfunction.py similarity index 52% rename from data/b7s/functions/entity/home/get_rot/_if_set_as_tags.mcfunction.py rename to data/b7s/functions/entity/back/get_loc/_if_saved_as_tags_if_dim_set.mcfunction.py index 72087dc..cb68675 100644 --- a/data/b7s/functions/entity/home/get_rot/_if_set_as_tags.mcfunction.py +++ b/data/b7s/functions/entity/back/get_loc/_if_saved_as_tags_if_dim_set.mcfunction.py @@ -6,13 +6,9 @@ print('# License, v. 2.0. If a copy of the MPL was not distributed with this') print('# file, You can obtain one at http://mozilla.org/MPL/2.0/.') print() -print('scoreboard players set @s b7s:rot_x -90') -print('scoreboard players set @s b7s:rot_y -180') -print() -for exponent in range(7, -1, -1): - print('scoreboard players add @s[tag=b7s:home_rot_x_{}] b7s:rot_x {}'.format(exponent, 2 ** exponent)) - -print() -for exponent in range(8, -1, -1): - print('scoreboard players add @s[tag=b7s:home_rot_y_{}] b7s:rot_y {}'.format(exponent, 2 ** exponent)) +print('scoreboard players set @s b7s.dim -2147483648') +print('scoreboard players add @s[tag=b7s.back_dim_31] b7s.dim 1073741824') +print('scoreboard players add @s[tag=b7s.back_dim_31] b7s.dim 1073741824') +for i in range(30, -1, -1): + print('scoreboard players add @s[tag=b7s.back_dim_{}] b7s.dim {}'.format(i, 2 ** i)) diff --git a/data/b7s/functions/entity/back/get_loc/_if_saved_as_tags_if_rot_x_set.mcfunction b/data/b7s/functions/entity/back/get_loc/_if_saved_as_tags_if_rot_x_set.mcfunction new file mode 100644 index 0000000..c670e29 --- /dev/null +++ b/data/b7s/functions/entity/back/get_loc/_if_saved_as_tags_if_rot_x_set.mcfunction @@ -0,0 +1,38 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. + +scoreboard players set @s b7s.rot_x -2147483648 +scoreboard players add @s[tag=b7s.back_rot_x_31] b7s.rot_x 1073741824 +scoreboard players add @s[tag=b7s.back_rot_x_31] b7s.rot_x 1073741824 +scoreboard players add @s[tag=b7s.back_rot_x_30] b7s.rot_x 1073741824 +scoreboard players add @s[tag=b7s.back_rot_x_29] b7s.rot_x 536870912 +scoreboard players add @s[tag=b7s.back_rot_x_28] b7s.rot_x 268435456 +scoreboard players add @s[tag=b7s.back_rot_x_27] b7s.rot_x 134217728 +scoreboard players add @s[tag=b7s.back_rot_x_26] b7s.rot_x 67108864 +scoreboard players add @s[tag=b7s.back_rot_x_25] b7s.rot_x 33554432 +scoreboard players add @s[tag=b7s.back_rot_x_24] b7s.rot_x 16777216 +scoreboard players add @s[tag=b7s.back_rot_x_23] b7s.rot_x 8388608 +scoreboard players add @s[tag=b7s.back_rot_x_22] b7s.rot_x 4194304 +scoreboard players add @s[tag=b7s.back_rot_x_21] b7s.rot_x 2097152 +scoreboard players add @s[tag=b7s.back_rot_x_20] b7s.rot_x 1048576 +scoreboard players add @s[tag=b7s.back_rot_x_19] b7s.rot_x 524288 +scoreboard players add @s[tag=b7s.back_rot_x_18] b7s.rot_x 262144 +scoreboard players add @s[tag=b7s.back_rot_x_17] b7s.rot_x 131072 +scoreboard players add @s[tag=b7s.back_rot_x_16] b7s.rot_x 65536 +scoreboard players add @s[tag=b7s.back_rot_x_15] b7s.rot_x 32768 +scoreboard players add @s[tag=b7s.back_rot_x_14] b7s.rot_x 16384 +scoreboard players add @s[tag=b7s.back_rot_x_13] b7s.rot_x 8192 +scoreboard players add @s[tag=b7s.back_rot_x_12] b7s.rot_x 4096 +scoreboard players add @s[tag=b7s.back_rot_x_11] b7s.rot_x 2048 +scoreboard players add @s[tag=b7s.back_rot_x_10] b7s.rot_x 1024 +scoreboard players add @s[tag=b7s.back_rot_x_9] b7s.rot_x 512 +scoreboard players add @s[tag=b7s.back_rot_x_8] b7s.rot_x 256 +scoreboard players add @s[tag=b7s.back_rot_x_7] b7s.rot_x 128 +scoreboard players add @s[tag=b7s.back_rot_x_6] b7s.rot_x 64 +scoreboard players add @s[tag=b7s.back_rot_x_5] b7s.rot_x 32 +scoreboard players add @s[tag=b7s.back_rot_x_4] b7s.rot_x 16 +scoreboard players add @s[tag=b7s.back_rot_x_3] b7s.rot_x 8 +scoreboard players add @s[tag=b7s.back_rot_x_2] b7s.rot_x 4 +scoreboard players add @s[tag=b7s.back_rot_x_1] b7s.rot_x 2 +scoreboard players add @s[tag=b7s.back_rot_x_0] b7s.rot_x 1 diff --git a/data/b7s/functions/entity/back/get_rot/_if_set_as_tags.mcfunction.py b/data/b7s/functions/entity/back/get_loc/_if_saved_as_tags_if_rot_x_set.mcfunction.py similarity index 52% rename from data/b7s/functions/entity/back/get_rot/_if_set_as_tags.mcfunction.py rename to data/b7s/functions/entity/back/get_loc/_if_saved_as_tags_if_rot_x_set.mcfunction.py index 102f698..90e8e89 100644 --- a/data/b7s/functions/entity/back/get_rot/_if_set_as_tags.mcfunction.py +++ b/data/b7s/functions/entity/back/get_loc/_if_saved_as_tags_if_rot_x_set.mcfunction.py @@ -6,13 +6,9 @@ print('# License, v. 2.0. If a copy of the MPL was not distributed with this') print('# file, You can obtain one at http://mozilla.org/MPL/2.0/.') print() -print('scoreboard players set @s b7s:rot_x -90') -print('scoreboard players set @s b7s:rot_y -180') -print() -for exponent in range(7, -1, -1): - print('scoreboard players add @s[tag=b7s:back_rot_x_{}] b7s:rot_x {}'.format(exponent, 2 ** exponent)) - -print() -for exponent in range(8, -1, -1): - print('scoreboard players add @s[tag=b7s:back_rot_y_{}] b7s:rot_y {}'.format(exponent, 2 ** exponent)) +print('scoreboard players set @s b7s.rot_x -2147483648') +print('scoreboard players add @s[tag=b7s.back_rot_x_31] b7s.rot_x 1073741824') +print('scoreboard players add @s[tag=b7s.back_rot_x_31] b7s.rot_x 1073741824') +for i in range(30, -1, -1): + print('scoreboard players add @s[tag=b7s.back_rot_x_{}] b7s.rot_x {}'.format(i, 2 ** i)) diff --git a/data/b7s/functions/entity/back/get_loc/_if_saved_as_tags_if_rot_y_set.mcfunction b/data/b7s/functions/entity/back/get_loc/_if_saved_as_tags_if_rot_y_set.mcfunction new file mode 100644 index 0000000..c225c87 --- /dev/null +++ b/data/b7s/functions/entity/back/get_loc/_if_saved_as_tags_if_rot_y_set.mcfunction @@ -0,0 +1,38 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. + +scoreboard players set @s b7s.rot_y -2147483648 +scoreboard players add @s[tag=b7s.back_rot_y_31] b7s.rot_y 1073741824 +scoreboard players add @s[tag=b7s.back_rot_y_31] b7s.rot_y 1073741824 +scoreboard players add @s[tag=b7s.back_rot_y_30] b7s.rot_y 1073741824 +scoreboard players add @s[tag=b7s.back_rot_y_29] b7s.rot_y 536870912 +scoreboard players add @s[tag=b7s.back_rot_y_28] b7s.rot_y 268435456 +scoreboard players add @s[tag=b7s.back_rot_y_27] b7s.rot_y 134217728 +scoreboard players add @s[tag=b7s.back_rot_y_26] b7s.rot_y 67108864 +scoreboard players add @s[tag=b7s.back_rot_y_25] b7s.rot_y 33554432 +scoreboard players add @s[tag=b7s.back_rot_y_24] b7s.rot_y 16777216 +scoreboard players add @s[tag=b7s.back_rot_y_23] b7s.rot_y 8388608 +scoreboard players add @s[tag=b7s.back_rot_y_22] b7s.rot_y 4194304 +scoreboard players add @s[tag=b7s.back_rot_y_21] b7s.rot_y 2097152 +scoreboard players add @s[tag=b7s.back_rot_y_20] b7s.rot_y 1048576 +scoreboard players add @s[tag=b7s.back_rot_y_19] b7s.rot_y 524288 +scoreboard players add @s[tag=b7s.back_rot_y_18] b7s.rot_y 262144 +scoreboard players add @s[tag=b7s.back_rot_y_17] b7s.rot_y 131072 +scoreboard players add @s[tag=b7s.back_rot_y_16] b7s.rot_y 65536 +scoreboard players add @s[tag=b7s.back_rot_y_15] b7s.rot_y 32768 +scoreboard players add @s[tag=b7s.back_rot_y_14] b7s.rot_y 16384 +scoreboard players add @s[tag=b7s.back_rot_y_13] b7s.rot_y 8192 +scoreboard players add @s[tag=b7s.back_rot_y_12] b7s.rot_y 4096 +scoreboard players add @s[tag=b7s.back_rot_y_11] b7s.rot_y 2048 +scoreboard players add @s[tag=b7s.back_rot_y_10] b7s.rot_y 1024 +scoreboard players add @s[tag=b7s.back_rot_y_9] b7s.rot_y 512 +scoreboard players add @s[tag=b7s.back_rot_y_8] b7s.rot_y 256 +scoreboard players add @s[tag=b7s.back_rot_y_7] b7s.rot_y 128 +scoreboard players add @s[tag=b7s.back_rot_y_6] b7s.rot_y 64 +scoreboard players add @s[tag=b7s.back_rot_y_5] b7s.rot_y 32 +scoreboard players add @s[tag=b7s.back_rot_y_4] b7s.rot_y 16 +scoreboard players add @s[tag=b7s.back_rot_y_3] b7s.rot_y 8 +scoreboard players add @s[tag=b7s.back_rot_y_2] b7s.rot_y 4 +scoreboard players add @s[tag=b7s.back_rot_y_1] b7s.rot_y 2 +scoreboard players add @s[tag=b7s.back_rot_y_0] b7s.rot_y 1 diff --git a/data/b7s/functions/entity/back/get_loc/_if_saved_as_tags_if_rot_y_set.mcfunction.py b/data/b7s/functions/entity/back/get_loc/_if_saved_as_tags_if_rot_y_set.mcfunction.py new file mode 100644 index 0000000..e8867f5 --- /dev/null +++ b/data/b7s/functions/entity/back/get_loc/_if_saved_as_tags_if_rot_y_set.mcfunction.py @@ -0,0 +1,14 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. + +print('# This Source Code Form is subject to the terms of the Mozilla Public') +print('# License, v. 2.0. If a copy of the MPL was not distributed with this') +print('# file, You can obtain one at http://mozilla.org/MPL/2.0/.') +print() + +print('scoreboard players set @s b7s.rot_y -2147483648') +print('scoreboard players add @s[tag=b7s.back_rot_y_31] b7s.rot_y 1073741824') +print('scoreboard players add @s[tag=b7s.back_rot_y_31] b7s.rot_y 1073741824') +for i in range(30, -1, -1): + print('scoreboard players add @s[tag=b7s.back_rot_y_{}] b7s.rot_y {}'.format(i, 2 ** i)) diff --git a/data/b7s/functions/entity/back/get_loc/_if_saved_as_tags_if_x_set.mcfunction b/data/b7s/functions/entity/back/get_loc/_if_saved_as_tags_if_x_set.mcfunction new file mode 100644 index 0000000..15256f3 --- /dev/null +++ b/data/b7s/functions/entity/back/get_loc/_if_saved_as_tags_if_x_set.mcfunction @@ -0,0 +1,38 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. + +scoreboard players set @s b7s.x -2147483648 +scoreboard players add @s[tag=b7s.back_x_31] b7s.x 1073741824 +scoreboard players add @s[tag=b7s.back_x_31] b7s.x 1073741824 +scoreboard players add @s[tag=b7s.back_x_30] b7s.x 1073741824 +scoreboard players add @s[tag=b7s.back_x_29] b7s.x 536870912 +scoreboard players add @s[tag=b7s.back_x_28] b7s.x 268435456 +scoreboard players add @s[tag=b7s.back_x_27] b7s.x 134217728 +scoreboard players add @s[tag=b7s.back_x_26] b7s.x 67108864 +scoreboard players add @s[tag=b7s.back_x_25] b7s.x 33554432 +scoreboard players add @s[tag=b7s.back_x_24] b7s.x 16777216 +scoreboard players add @s[tag=b7s.back_x_23] b7s.x 8388608 +scoreboard players add @s[tag=b7s.back_x_22] b7s.x 4194304 +scoreboard players add @s[tag=b7s.back_x_21] b7s.x 2097152 +scoreboard players add @s[tag=b7s.back_x_20] b7s.x 1048576 +scoreboard players add @s[tag=b7s.back_x_19] b7s.x 524288 +scoreboard players add @s[tag=b7s.back_x_18] b7s.x 262144 +scoreboard players add @s[tag=b7s.back_x_17] b7s.x 131072 +scoreboard players add @s[tag=b7s.back_x_16] b7s.x 65536 +scoreboard players add @s[tag=b7s.back_x_15] b7s.x 32768 +scoreboard players add @s[tag=b7s.back_x_14] b7s.x 16384 +scoreboard players add @s[tag=b7s.back_x_13] b7s.x 8192 +scoreboard players add @s[tag=b7s.back_x_12] b7s.x 4096 +scoreboard players add @s[tag=b7s.back_x_11] b7s.x 2048 +scoreboard players add @s[tag=b7s.back_x_10] b7s.x 1024 +scoreboard players add @s[tag=b7s.back_x_9] b7s.x 512 +scoreboard players add @s[tag=b7s.back_x_8] b7s.x 256 +scoreboard players add @s[tag=b7s.back_x_7] b7s.x 128 +scoreboard players add @s[tag=b7s.back_x_6] b7s.x 64 +scoreboard players add @s[tag=b7s.back_x_5] b7s.x 32 +scoreboard players add @s[tag=b7s.back_x_4] b7s.x 16 +scoreboard players add @s[tag=b7s.back_x_3] b7s.x 8 +scoreboard players add @s[tag=b7s.back_x_2] b7s.x 4 +scoreboard players add @s[tag=b7s.back_x_1] b7s.x 2 +scoreboard players add @s[tag=b7s.back_x_0] b7s.x 1 diff --git a/data/b7s/functions/entity/back/get_loc/_if_saved_as_tags_if_x_set.mcfunction.py b/data/b7s/functions/entity/back/get_loc/_if_saved_as_tags_if_x_set.mcfunction.py new file mode 100644 index 0000000..6e383a8 --- /dev/null +++ b/data/b7s/functions/entity/back/get_loc/_if_saved_as_tags_if_x_set.mcfunction.py @@ -0,0 +1,14 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. + +print('# This Source Code Form is subject to the terms of the Mozilla Public') +print('# License, v. 2.0. If a copy of the MPL was not distributed with this') +print('# file, You can obtain one at http://mozilla.org/MPL/2.0/.') +print() + +print('scoreboard players set @s b7s.x -2147483648') +print('scoreboard players add @s[tag=b7s.back_x_31] b7s.x 1073741824') +print('scoreboard players add @s[tag=b7s.back_x_31] b7s.x 1073741824') +for i in range(30, -1, -1): + print('scoreboard players add @s[tag=b7s.back_x_{}] b7s.x {}'.format(i, 2 ** i)) diff --git a/data/b7s/functions/entity/back/get_loc/_if_saved_as_tags_if_y_set.mcfunction b/data/b7s/functions/entity/back/get_loc/_if_saved_as_tags_if_y_set.mcfunction new file mode 100644 index 0000000..3631bda --- /dev/null +++ b/data/b7s/functions/entity/back/get_loc/_if_saved_as_tags_if_y_set.mcfunction @@ -0,0 +1,38 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. + +scoreboard players set @s b7s.y -2147483648 +scoreboard players add @s[tag=b7s.back_y_31] b7s.y 1073741824 +scoreboard players add @s[tag=b7s.back_y_31] b7s.y 1073741824 +scoreboard players add @s[tag=b7s.back_y_30] b7s.y 1073741824 +scoreboard players add @s[tag=b7s.back_y_29] b7s.y 536870912 +scoreboard players add @s[tag=b7s.back_y_28] b7s.y 268435456 +scoreboard players add @s[tag=b7s.back_y_27] b7s.y 134217728 +scoreboard players add @s[tag=b7s.back_y_26] b7s.y 67108864 +scoreboard players add @s[tag=b7s.back_y_25] b7s.y 33554432 +scoreboard players add @s[tag=b7s.back_y_24] b7s.y 16777216 +scoreboard players add @s[tag=b7s.back_y_23] b7s.y 8388608 +scoreboard players add @s[tag=b7s.back_y_22] b7s.y 4194304 +scoreboard players add @s[tag=b7s.back_y_21] b7s.y 2097152 +scoreboard players add @s[tag=b7s.back_y_20] b7s.y 1048576 +scoreboard players add @s[tag=b7s.back_y_19] b7s.y 524288 +scoreboard players add @s[tag=b7s.back_y_18] b7s.y 262144 +scoreboard players add @s[tag=b7s.back_y_17] b7s.y 131072 +scoreboard players add @s[tag=b7s.back_y_16] b7s.y 65536 +scoreboard players add @s[tag=b7s.back_y_15] b7s.y 32768 +scoreboard players add @s[tag=b7s.back_y_14] b7s.y 16384 +scoreboard players add @s[tag=b7s.back_y_13] b7s.y 8192 +scoreboard players add @s[tag=b7s.back_y_12] b7s.y 4096 +scoreboard players add @s[tag=b7s.back_y_11] b7s.y 2048 +scoreboard players add @s[tag=b7s.back_y_10] b7s.y 1024 +scoreboard players add @s[tag=b7s.back_y_9] b7s.y 512 +scoreboard players add @s[tag=b7s.back_y_8] b7s.y 256 +scoreboard players add @s[tag=b7s.back_y_7] b7s.y 128 +scoreboard players add @s[tag=b7s.back_y_6] b7s.y 64 +scoreboard players add @s[tag=b7s.back_y_5] b7s.y 32 +scoreboard players add @s[tag=b7s.back_y_4] b7s.y 16 +scoreboard players add @s[tag=b7s.back_y_3] b7s.y 8 +scoreboard players add @s[tag=b7s.back_y_2] b7s.y 4 +scoreboard players add @s[tag=b7s.back_y_1] b7s.y 2 +scoreboard players add @s[tag=b7s.back_y_0] b7s.y 1 diff --git a/data/b7s/functions/entity/back/get_loc/_if_saved_as_tags_if_y_set.mcfunction.py b/data/b7s/functions/entity/back/get_loc/_if_saved_as_tags_if_y_set.mcfunction.py new file mode 100644 index 0000000..d17bbd3 --- /dev/null +++ b/data/b7s/functions/entity/back/get_loc/_if_saved_as_tags_if_y_set.mcfunction.py @@ -0,0 +1,14 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. + +print('# This Source Code Form is subject to the terms of the Mozilla Public') +print('# License, v. 2.0. If a copy of the MPL was not distributed with this') +print('# file, You can obtain one at http://mozilla.org/MPL/2.0/.') +print() + +print('scoreboard players set @s b7s.y -2147483648') +print('scoreboard players add @s[tag=b7s.back_y_31] b7s.y 1073741824') +print('scoreboard players add @s[tag=b7s.back_y_31] b7s.y 1073741824') +for i in range(30, -1, -1): + print('scoreboard players add @s[tag=b7s.back_y_{}] b7s.y {}'.format(i, 2 ** i)) diff --git a/data/b7s/functions/entity/back/get_loc/_if_saved_as_tags_if_z_set.mcfunction b/data/b7s/functions/entity/back/get_loc/_if_saved_as_tags_if_z_set.mcfunction new file mode 100644 index 0000000..651bd14 --- /dev/null +++ b/data/b7s/functions/entity/back/get_loc/_if_saved_as_tags_if_z_set.mcfunction @@ -0,0 +1,38 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. + +scoreboard players set @s b7s.z -2147483648 +scoreboard players add @s[tag=b7s.back_z_31] b7s.z 1073741824 +scoreboard players add @s[tag=b7s.back_z_31] b7s.z 1073741824 +scoreboard players add @s[tag=b7s.back_z_30] b7s.z 1073741824 +scoreboard players add @s[tag=b7s.back_z_29] b7s.z 536870912 +scoreboard players add @s[tag=b7s.back_z_28] b7s.z 268435456 +scoreboard players add @s[tag=b7s.back_z_27] b7s.z 134217728 +scoreboard players add @s[tag=b7s.back_z_26] b7s.z 67108864 +scoreboard players add @s[tag=b7s.back_z_25] b7s.z 33554432 +scoreboard players add @s[tag=b7s.back_z_24] b7s.z 16777216 +scoreboard players add @s[tag=b7s.back_z_23] b7s.z 8388608 +scoreboard players add @s[tag=b7s.back_z_22] b7s.z 4194304 +scoreboard players add @s[tag=b7s.back_z_21] b7s.z 2097152 +scoreboard players add @s[tag=b7s.back_z_20] b7s.z 1048576 +scoreboard players add @s[tag=b7s.back_z_19] b7s.z 524288 +scoreboard players add @s[tag=b7s.back_z_18] b7s.z 262144 +scoreboard players add @s[tag=b7s.back_z_17] b7s.z 131072 +scoreboard players add @s[tag=b7s.back_z_16] b7s.z 65536 +scoreboard players add @s[tag=b7s.back_z_15] b7s.z 32768 +scoreboard players add @s[tag=b7s.back_z_14] b7s.z 16384 +scoreboard players add @s[tag=b7s.back_z_13] b7s.z 8192 +scoreboard players add @s[tag=b7s.back_z_12] b7s.z 4096 +scoreboard players add @s[tag=b7s.back_z_11] b7s.z 2048 +scoreboard players add @s[tag=b7s.back_z_10] b7s.z 1024 +scoreboard players add @s[tag=b7s.back_z_9] b7s.z 512 +scoreboard players add @s[tag=b7s.back_z_8] b7s.z 256 +scoreboard players add @s[tag=b7s.back_z_7] b7s.z 128 +scoreboard players add @s[tag=b7s.back_z_6] b7s.z 64 +scoreboard players add @s[tag=b7s.back_z_5] b7s.z 32 +scoreboard players add @s[tag=b7s.back_z_4] b7s.z 16 +scoreboard players add @s[tag=b7s.back_z_3] b7s.z 8 +scoreboard players add @s[tag=b7s.back_z_2] b7s.z 4 +scoreboard players add @s[tag=b7s.back_z_1] b7s.z 2 +scoreboard players add @s[tag=b7s.back_z_0] b7s.z 1 diff --git a/data/b7s/functions/entity/back/get_loc/_if_saved_as_tags_if_z_set.mcfunction.py b/data/b7s/functions/entity/back/get_loc/_if_saved_as_tags_if_z_set.mcfunction.py new file mode 100644 index 0000000..3519e62 --- /dev/null +++ b/data/b7s/functions/entity/back/get_loc/_if_saved_as_tags_if_z_set.mcfunction.py @@ -0,0 +1,14 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. + +print('# This Source Code Form is subject to the terms of the Mozilla Public') +print('# License, v. 2.0. If a copy of the MPL was not distributed with this') +print('# file, You can obtain one at http://mozilla.org/MPL/2.0/.') +print() + +print('scoreboard players set @s b7s.z -2147483648') +print('scoreboard players add @s[tag=b7s.back_z_31] b7s.z 1073741824') +print('scoreboard players add @s[tag=b7s.back_z_31] b7s.z 1073741824') +for i in range(30, -1, -1): + print('scoreboard players add @s[tag=b7s.back_z_{}] b7s.z {}'.format(i, 2 ** i)) diff --git a/data/b7s/functions/entity/back/get_loc/_unless_saved_as_tags.mcfunction b/data/b7s/functions/entity/back/get_loc/_unless_saved_as_tags.mcfunction new file mode 100644 index 0000000..c5fa280 --- /dev/null +++ b/data/b7s/functions/entity/back/get_loc/_unless_saved_as_tags.mcfunction @@ -0,0 +1,10 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. + +scoreboard players operation @s b7s.dim = @s[scores={b7s.back_dim=-2147483648..}] b7s.back_dim +scoreboard players operation @s b7s.x = @s[scores={b7s.back_x=-2147483648..}] b7s.back_x +scoreboard players operation @s b7s.y = @s[scores={b7s.back_y=-2147483648..}] b7s.back_y +scoreboard players operation @s b7s.z = @s[scores={b7s.back_z=-2147483648..}] b7s.back_z +scoreboard players operation @s b7s.rot_x = @s[scores={b7s.back_rot_x=-2147483648..}] b7s.back_rot_x +scoreboard players operation @s b7s.rot_y = @s[scores={b7s.back_rot_y=-2147483648..}] b7s.back_rot_y diff --git a/data/b7s/functions/entity/back/get_pos.mcfunction b/data/b7s/functions/entity/back/get_pos.mcfunction deleted file mode 100644 index 8bb5d19..0000000 --- a/data/b7s/functions/entity/back/get_pos.mcfunction +++ /dev/null @@ -1,16 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -# Gets the back position of a player or entity. -# -# Scores set: -# b7s:x — to the back's x coordinate -# b7s:y — to the back's y coordinate -# b7s:z — to the back's z coordinate -# -# Usage: -# /execute ~ ~ ~ function b7s:entity/back/get_pos - -function b7s:entity/back/get_pos/_unless_set_as_tags unless @s[tag=b7s:back_pos_tags_set] -function b7s:entity/back/get_pos/_if_set_as_tags if @s[tag=b7s:back_pos_tags_set] diff --git a/data/b7s/functions/entity/back/get_pos/_if_set_as_tags.mcfunction b/data/b7s/functions/entity/back/get_pos/_if_set_as_tags.mcfunction deleted file mode 100644 index a2b7636..0000000 --- a/data/b7s/functions/entity/back/get_pos/_if_set_as_tags.mcfunction +++ /dev/null @@ -1,75 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -scoreboard players set @s b7s:x -30000000 -scoreboard players set @s b7s:y -4096 -scoreboard players set @s b7s:z -30000000 - -scoreboard players add @s[tag=b7s:back_x_25] b7s:x 33554432 -scoreboard players add @s[tag=b7s:back_x_24] b7s:x 16777216 -scoreboard players add @s[tag=b7s:back_x_23] b7s:x 8388608 -scoreboard players add @s[tag=b7s:back_x_22] b7s:x 4194304 -scoreboard players add @s[tag=b7s:back_x_21] b7s:x 2097152 -scoreboard players add @s[tag=b7s:back_x_20] b7s:x 1048576 -scoreboard players add @s[tag=b7s:back_x_19] b7s:x 524288 -scoreboard players add @s[tag=b7s:back_x_18] b7s:x 262144 -scoreboard players add @s[tag=b7s:back_x_17] b7s:x 131072 -scoreboard players add @s[tag=b7s:back_x_16] b7s:x 65536 -scoreboard players add @s[tag=b7s:back_x_15] b7s:x 32768 -scoreboard players add @s[tag=b7s:back_x_14] b7s:x 16384 -scoreboard players add @s[tag=b7s:back_x_13] b7s:x 8192 -scoreboard players add @s[tag=b7s:back_x_12] b7s:x 4096 -scoreboard players add @s[tag=b7s:back_x_11] b7s:x 2048 -scoreboard players add @s[tag=b7s:back_x_10] b7s:x 1024 -scoreboard players add @s[tag=b7s:back_x_9] b7s:x 512 -scoreboard players add @s[tag=b7s:back_x_8] b7s:x 256 -scoreboard players add @s[tag=b7s:back_x_7] b7s:x 128 -scoreboard players add @s[tag=b7s:back_x_6] b7s:x 64 -scoreboard players add @s[tag=b7s:back_x_5] b7s:x 32 -scoreboard players add @s[tag=b7s:back_x_4] b7s:x 16 -scoreboard players add @s[tag=b7s:back_x_3] b7s:x 8 -scoreboard players add @s[tag=b7s:back_x_2] b7s:x 4 -scoreboard players add @s[tag=b7s:back_x_1] b7s:x 2 -scoreboard players add @s[tag=b7s:back_x_0] b7s:x 1 - -scoreboard players add @s[tag=b7s:back_y_12] b7s:y 4096 -scoreboard players add @s[tag=b7s:back_y_11] b7s:y 2048 -scoreboard players add @s[tag=b7s:back_y_10] b7s:y 1024 -scoreboard players add @s[tag=b7s:back_y_9] b7s:y 512 -scoreboard players add @s[tag=b7s:back_y_8] b7s:y 256 -scoreboard players add @s[tag=b7s:back_y_7] b7s:y 128 -scoreboard players add @s[tag=b7s:back_y_6] b7s:y 64 -scoreboard players add @s[tag=b7s:back_y_5] b7s:y 32 -scoreboard players add @s[tag=b7s:back_y_4] b7s:y 16 -scoreboard players add @s[tag=b7s:back_y_3] b7s:y 8 -scoreboard players add @s[tag=b7s:back_y_2] b7s:y 4 -scoreboard players add @s[tag=b7s:back_y_1] b7s:y 2 -scoreboard players add @s[tag=b7s:back_y_0] b7s:y 1 - -scoreboard players add @s[tag=b7s:back_z_25] b7s:z 33554432 -scoreboard players add @s[tag=b7s:back_z_24] b7s:z 16777216 -scoreboard players add @s[tag=b7s:back_z_23] b7s:z 8388608 -scoreboard players add @s[tag=b7s:back_z_22] b7s:z 4194304 -scoreboard players add @s[tag=b7s:back_z_21] b7s:z 2097152 -scoreboard players add @s[tag=b7s:back_z_20] b7s:z 1048576 -scoreboard players add @s[tag=b7s:back_z_19] b7s:z 524288 -scoreboard players add @s[tag=b7s:back_z_18] b7s:z 262144 -scoreboard players add @s[tag=b7s:back_z_17] b7s:z 131072 -scoreboard players add @s[tag=b7s:back_z_16] b7s:z 65536 -scoreboard players add @s[tag=b7s:back_z_15] b7s:z 32768 -scoreboard players add @s[tag=b7s:back_z_14] b7s:z 16384 -scoreboard players add @s[tag=b7s:back_z_13] b7s:z 8192 -scoreboard players add @s[tag=b7s:back_z_12] b7s:z 4096 -scoreboard players add @s[tag=b7s:back_z_11] b7s:z 2048 -scoreboard players add @s[tag=b7s:back_z_10] b7s:z 1024 -scoreboard players add @s[tag=b7s:back_z_9] b7s:z 512 -scoreboard players add @s[tag=b7s:back_z_8] b7s:z 256 -scoreboard players add @s[tag=b7s:back_z_7] b7s:z 128 -scoreboard players add @s[tag=b7s:back_z_6] b7s:z 64 -scoreboard players add @s[tag=b7s:back_z_5] b7s:z 32 -scoreboard players add @s[tag=b7s:back_z_4] b7s:z 16 -scoreboard players add @s[tag=b7s:back_z_3] b7s:z 8 -scoreboard players add @s[tag=b7s:back_z_2] b7s:z 4 -scoreboard players add @s[tag=b7s:back_z_1] b7s:z 2 -scoreboard players add @s[tag=b7s:back_z_0] b7s:z 1 diff --git a/data/b7s/functions/entity/back/get_pos/_if_set_as_tags.mcfunction.py b/data/b7s/functions/entity/back/get_pos/_if_set_as_tags.mcfunction.py deleted file mode 100644 index e67903e..0000000 --- a/data/b7s/functions/entity/back/get_pos/_if_set_as_tags.mcfunction.py +++ /dev/null @@ -1,23 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -print('# This Source Code Form is subject to the terms of the Mozilla Public') -print('# License, v. 2.0. If a copy of the MPL was not distributed with this') -print('# file, You can obtain one at http://mozilla.org/MPL/2.0/.') -print() -print('scoreboard players set @s b7s:x -30000000') -print('scoreboard players set @s b7s:y -4096') -print('scoreboard players set @s b7s:z -30000000') - -print() -for exponent in range(25, -1, -1): - print('scoreboard players add @s[tag=b7s:back_x_{}] b7s:x {}'.format(exponent, 2 ** exponent)) - -print() -for exponent in range(12, -1, -1): - print('scoreboard players add @s[tag=b7s:back_y_{}] b7s:y {}'.format(exponent, 2 ** exponent)) - -print() -for exponent in range(25, -1, -1): - print('scoreboard players add @s[tag=b7s:back_z_{}] b7s:z {}'.format(exponent, 2 ** exponent)) diff --git a/data/b7s/functions/entity/back/get_pos/_unless_set_as_tags.mcfunction b/data/b7s/functions/entity/back/get_pos/_unless_set_as_tags.mcfunction deleted file mode 100644 index 6db4f3a..0000000 --- a/data/b7s/functions/entity/back/get_pos/_unless_set_as_tags.mcfunction +++ /dev/null @@ -1,7 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -scoreboard players operation @s b7s:x = @s b7s:back_x -scoreboard players operation @s b7s:y = @s b7s:back_y -scoreboard players operation @s b7s:z = @s b7s:back_z diff --git a/data/b7s/functions/entity/back/get_rot.mcfunction b/data/b7s/functions/entity/back/get_rot.mcfunction deleted file mode 100644 index af5fbe0..0000000 --- a/data/b7s/functions/entity/back/get_rot.mcfunction +++ /dev/null @@ -1,15 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -# Gets the back rotation of a player or entity. -# -# Scores set: -# b7s:rot_x — to the back's x rotation -# b7s:rot_y — to the back's y rotation -# -# Usage: -# /execute ~ ~ ~ function b7s:entity/back/get_rot - -function b7s:entity/back/get_rot/_unless_set_as_tags unless @s[tag=b7s:back_rot_tags_set] -function b7s:entity/back/get_rot/_if_set_as_tags if @s[tag=b7s:back_rot_tags_set] diff --git a/data/b7s/functions/entity/back/get_rot/_if_set_as_tags.mcfunction b/data/b7s/functions/entity/back/get_rot/_if_set_as_tags.mcfunction deleted file mode 100644 index 7c32f1a..0000000 --- a/data/b7s/functions/entity/back/get_rot/_if_set_as_tags.mcfunction +++ /dev/null @@ -1,25 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -scoreboard players set @s b7s:rot_x -90 -scoreboard players set @s b7s:rot_y -180 - -scoreboard players add @s[tag=b7s:back_rot_x_7] b7s:rot_x 128 -scoreboard players add @s[tag=b7s:back_rot_x_6] b7s:rot_x 64 -scoreboard players add @s[tag=b7s:back_rot_x_5] b7s:rot_x 32 -scoreboard players add @s[tag=b7s:back_rot_x_4] b7s:rot_x 16 -scoreboard players add @s[tag=b7s:back_rot_x_3] b7s:rot_x 8 -scoreboard players add @s[tag=b7s:back_rot_x_2] b7s:rot_x 4 -scoreboard players add @s[tag=b7s:back_rot_x_1] b7s:rot_x 2 -scoreboard players add @s[tag=b7s:back_rot_x_0] b7s:rot_x 1 - -scoreboard players add @s[tag=b7s:back_rot_y_8] b7s:rot_y 256 -scoreboard players add @s[tag=b7s:back_rot_y_7] b7s:rot_y 128 -scoreboard players add @s[tag=b7s:back_rot_y_6] b7s:rot_y 64 -scoreboard players add @s[tag=b7s:back_rot_y_5] b7s:rot_y 32 -scoreboard players add @s[tag=b7s:back_rot_y_4] b7s:rot_y 16 -scoreboard players add @s[tag=b7s:back_rot_y_3] b7s:rot_y 8 -scoreboard players add @s[tag=b7s:back_rot_y_2] b7s:rot_y 4 -scoreboard players add @s[tag=b7s:back_rot_y_1] b7s:rot_y 2 -scoreboard players add @s[tag=b7s:back_rot_y_0] b7s:rot_y 1 diff --git a/data/b7s/functions/entity/back/get_rot/_unless_set_as_tags.mcfunction b/data/b7s/functions/entity/back/get_rot/_unless_set_as_tags.mcfunction deleted file mode 100644 index a2f0728..0000000 --- a/data/b7s/functions/entity/back/get_rot/_unless_set_as_tags.mcfunction +++ /dev/null @@ -1,7 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -scoreboard players operation @s b7s:rot_x = @s b7s:back_rot_x -scoreboard players operation @s b7s:rot_y = @s b7s:back_rot_y -scoreboard players operation @s b7s:rot_z = @s b7s:back_rot_z diff --git a/data/b7s/functions/entity/back/set_dim.mcfunction b/data/b7s/functions/entity/back/set_dim.mcfunction deleted file mode 100644 index dd9c876..0000000 --- a/data/b7s/functions/entity/back/set_dim.mcfunction +++ /dev/null @@ -1,15 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -# Sets the back dimension of a player or entity. -# -# Scores required: -# b7s:dim — the back's dimension -# -# Usage: -# /scoreboard players set b7s:dim -# /execute ~ ~ ~ function b7s:entity/back/set_dim - -function b7s:config/back/get_save_as_tags -function b7s:entity/back/set_dim/_perform diff --git a/data/b7s/functions/entity/back/set_dim/_if_save_as_tags.mcfunction b/data/b7s/functions/entity/back/set_dim/_if_save_as_tags.mcfunction deleted file mode 100644 index 66a871a..0000000 --- a/data/b7s/functions/entity/back/set_dim/_if_save_as_tags.mcfunction +++ /dev/null @@ -1,13 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -scoreboard players tag @s remove b7s:back_dim_nether -scoreboard players tag @s remove b7s:back_dim_overworld -scoreboard players tag @s remove b7s:back_dim_end - -scoreboard players tag @s[score_b7s:dim_min=-1,score_b7s:dim=-1] add b7s:back_dim_nether -scoreboard players tag @s[score_b7s:dim_min=0,score_b7s:dim=0] add b7s:back_dim_overworld -scoreboard players tag @s[score_b7s:dim_min=1,score_b7s:dim=1] add b7s:back_dim_end - -scoreboard players tag @s add b7s:back_dim_tags_set diff --git a/data/b7s/functions/entity/back/set_dim/_perform.mcfunction b/data/b7s/functions/entity/back/set_dim/_perform.mcfunction deleted file mode 100644 index ba310f0..0000000 --- a/data/b7s/functions/entity/back/set_dim/_perform.mcfunction +++ /dev/null @@ -1,6 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -function b7s:entity/back/set_dim/_unless_save_as_tags unless @s[tag=b7s:back_as_tags] -function b7s:entity/back/set_dim/_if_save_as_tags if @s[tag=b7s:back_as_tags] diff --git a/data/b7s/functions/entity/back/set_dim/_unless_save_as_tags.mcfunction b/data/b7s/functions/entity/back/set_dim/_unless_save_as_tags.mcfunction deleted file mode 100644 index 0c5ee27..0000000 --- a/data/b7s/functions/entity/back/set_dim/_unless_save_as_tags.mcfunction +++ /dev/null @@ -1,7 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -scoreboard players operation @s b7s:back_dim = @s b7s:dim - -scoreboard players tag @s remove b7s:back_dim_tags_set diff --git a/data/b7s/functions/entity/back/set_loc.mcfunction b/data/b7s/functions/entity/back/set_loc.mcfunction index d1d7f1e..0e734ff 100644 --- a/data/b7s/functions/entity/back/set_loc.mcfunction +++ b/data/b7s/functions/entity/back/set_loc.mcfunction @@ -5,23 +5,26 @@ # Sets the back location of a player or entity. # # Scores required: -# b7s:dim — the back's dimension -# b7s:x — the back's x coordinate -# b7s:y — the back's y coordinate -# b7s:z — the back's z coordinate -# b7s:rot_x — the back's x rotation -# b7s:rot_y — the back's y rotation +# b7s.dim - the dimension of the back location +# b7s.x - the x coordinate of the back location +# b7s.y - the y coordinate of the back location +# b7s.z - the z coordinate of the back location +# b7s.rot_x - the x rotation of the back location +# b7s.rot_y - the y rotation of the back location # # Usage: -# /scoreboard players set b7s:dim -# /scoreboard players set b7s:x -# /scoreboard players set b7s:y -# /scoreboard players set b7s:z -# /scoreboard players set b7s:rot_x -# /scoreboard players set b7s:rot_y -# /execute ~ ~ ~ function b7s:entity/back/set_loc +# /scoreboard players set b7s.dim +# /scoreboard players set b7s.x +# /scoreboard players set b7s.y +# /scoreboard players set b7s.z +# /scoreboard players set b7s.rot_x +# /scoreboard players set b7s.rot_y +# /execute as run function b7s:entity/back/set_loc + +scoreboard players operation @s b7s._val = @s b7s.val function b7s:config/back/get_save_as_tags -function b7s:entity/back/set_dim/_perform -function b7s:entity/back/set_pos/_perform -function b7s:entity/back/set_rot/_perform +execute if score @s b7s.val matches 1 run function b7s:entity/back/set_loc/_if_save_as_tags +execute unless score @s b7s.val matches 1 run function b7s:entity/back/set_loc/_unless_save_as_tags + +scoreboard players operation @s b7s.val = @s b7s._val diff --git a/data/b7s/functions/entity/back/set_loc/_if_save_as_tags.mcfunction b/data/b7s/functions/entity/back/set_loc/_if_save_as_tags.mcfunction new file mode 100644 index 0000000..5997ce0 --- /dev/null +++ b/data/b7s/functions/entity/back/set_loc/_if_save_as_tags.mcfunction @@ -0,0 +1,11 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. + +execute if score @s b7s.dim matches -2147483648.. run function b7s:entity/back/set_loc/_if_save_as_tags_if_dim_set +execute if score @s b7s.x matches -2147483648.. run function b7s:entity/back/set_loc/_if_save_as_tags_if_x_set +execute if score @s b7s.y matches -2147483648.. run function b7s:entity/back/set_loc/_if_save_as_tags_if_y_set +execute if score @s b7s.z matches -2147483648.. run function b7s:entity/back/set_loc/_if_save_as_tags_if_z_set +execute if score @s b7s.rot_x matches -2147483648.. run function b7s:entity/back/set_loc/_if_save_as_tags_if_rot_x_set +execute if score @s b7s.rot_y matches -2147483648.. run function b7s:entity/back/set_loc/_if_save_as_tags_if_rot_y_set +tag @s add b7s.back_loc_set diff --git a/data/b7s/functions/entity/back/set_loc/_if_save_as_tags_if_dim_set.mcfunction b/data/b7s/functions/entity/back/set_loc/_if_save_as_tags_if_dim_set.mcfunction new file mode 100644 index 0000000..2ea2582 --- /dev/null +++ b/data/b7s/functions/entity/back/set_loc/_if_save_as_tags_if_dim_set.mcfunction @@ -0,0 +1,168 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. + +tag @s add b7s.back_dim_0 +tag @s add b7s.back_dim_1 +tag @s add b7s.back_dim_2 +tag @s add b7s.back_dim_3 +tag @s add b7s.back_dim_4 +tag @s add b7s.back_dim_5 +tag @s add b7s.back_dim_6 +tag @s add b7s.back_dim_7 +tag @s add b7s.back_dim_8 +tag @s add b7s.back_dim_9 +tag @s add b7s.back_dim_10 +tag @s add b7s.back_dim_11 +tag @s add b7s.back_dim_12 +tag @s add b7s.back_dim_13 +tag @s add b7s.back_dim_14 +tag @s add b7s.back_dim_15 +tag @s add b7s.back_dim_16 +tag @s add b7s.back_dim_17 +tag @s add b7s.back_dim_18 +tag @s add b7s.back_dim_19 +tag @s add b7s.back_dim_20 +tag @s add b7s.back_dim_21 +tag @s add b7s.back_dim_22 +tag @s add b7s.back_dim_23 +tag @s add b7s.back_dim_24 +tag @s add b7s.back_dim_25 +tag @s add b7s.back_dim_26 +tag @s add b7s.back_dim_27 +tag @s add b7s.back_dim_28 +tag @s add b7s.back_dim_29 +tag @s add b7s.back_dim_30 +tag @s add b7s.back_dim_31 + +scoreboard players operation @s b7s._tmp_1 = @s b7s.dim +tag @s[scores={b7s._tmp_1=..-1}] remove b7s.back_dim_31 +scoreboard players add @s[tag=!b7s.back_dim_31] b7s._tmp_1 1073741824 +scoreboard players add @s[tag=!b7s.back_dim_31] b7s._tmp_1 1073741824 +scoreboard players set @s b7s._tmp_2 2 + +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_dim_0 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_dim_1 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_dim_2 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_dim_3 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_dim_4 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_dim_5 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_dim_6 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_dim_7 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_dim_8 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_dim_9 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_dim_10 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_dim_11 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_dim_12 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_dim_13 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_dim_14 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_dim_15 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_dim_16 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_dim_17 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_dim_18 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_dim_19 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_dim_20 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_dim_21 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_dim_22 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_dim_23 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_dim_24 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_dim_25 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_dim_26 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_dim_27 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_dim_28 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_dim_29 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_dim_30 + +tag @s add b7s.back_dim_set diff --git a/data/b7s/functions/entity/back/set_loc/_if_save_as_tags_if_dim_set.mcfunction.py b/data/b7s/functions/entity/back/set_loc/_if_save_as_tags_if_dim_set.mcfunction.py new file mode 100644 index 0000000..e1c8b51 --- /dev/null +++ b/data/b7s/functions/entity/back/set_loc/_if_save_as_tags_if_dim_set.mcfunction.py @@ -0,0 +1,29 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. + +print('# This Source Code Form is subject to the terms of the Mozilla Public') +print('# License, v. 2.0. If a copy of the MPL was not distributed with this') +print('# file, You can obtain one at http://mozilla.org/MPL/2.0/.') +print() + +for i in range(32): + print('tag @s add b7s.back_dim_{}'.format(i)) +print() + +print('scoreboard players operation @s b7s._tmp_1 = @s b7s.dim') +print('tag @s[scores={b7s._tmp_1=..-1}] remove b7s.back_dim_31') +print('scoreboard players add @s[tag=!b7s.back_dim_31] b7s._tmp_1 1073741824') +print('scoreboard players add @s[tag=!b7s.back_dim_31] b7s._tmp_1 1073741824') +print('scoreboard players set @s b7s._tmp_2 2') +print() + +for i in range(31): + print('scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1') + print('scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2') + print('tag @s[scores={{b7s._tmp_3=0}}] remove b7s.back_dim_{}'.format(i)) + if i != 30: + print('scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2') +print() + +print('tag @s add b7s.back_dim_set') diff --git a/data/b7s/functions/entity/back/set_loc/_if_save_as_tags_if_rot_x_set.mcfunction b/data/b7s/functions/entity/back/set_loc/_if_save_as_tags_if_rot_x_set.mcfunction new file mode 100644 index 0000000..2d5b285 --- /dev/null +++ b/data/b7s/functions/entity/back/set_loc/_if_save_as_tags_if_rot_x_set.mcfunction @@ -0,0 +1,168 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. + +tag @s add b7s.back_rot_x_0 +tag @s add b7s.back_rot_x_1 +tag @s add b7s.back_rot_x_2 +tag @s add b7s.back_rot_x_3 +tag @s add b7s.back_rot_x_4 +tag @s add b7s.back_rot_x_5 +tag @s add b7s.back_rot_x_6 +tag @s add b7s.back_rot_x_7 +tag @s add b7s.back_rot_x_8 +tag @s add b7s.back_rot_x_9 +tag @s add b7s.back_rot_x_10 +tag @s add b7s.back_rot_x_11 +tag @s add b7s.back_rot_x_12 +tag @s add b7s.back_rot_x_13 +tag @s add b7s.back_rot_x_14 +tag @s add b7s.back_rot_x_15 +tag @s add b7s.back_rot_x_16 +tag @s add b7s.back_rot_x_17 +tag @s add b7s.back_rot_x_18 +tag @s add b7s.back_rot_x_19 +tag @s add b7s.back_rot_x_20 +tag @s add b7s.back_rot_x_21 +tag @s add b7s.back_rot_x_22 +tag @s add b7s.back_rot_x_23 +tag @s add b7s.back_rot_x_24 +tag @s add b7s.back_rot_x_25 +tag @s add b7s.back_rot_x_26 +tag @s add b7s.back_rot_x_27 +tag @s add b7s.back_rot_x_28 +tag @s add b7s.back_rot_x_29 +tag @s add b7s.back_rot_x_30 +tag @s add b7s.back_rot_x_31 + +scoreboard players operation @s b7s._tmp_1 = @s b7s.rot_x +tag @s[scores={b7s._tmp_1=..-1}] remove b7s.back_rot_x_31 +scoreboard players add @s[tag=!b7s.back_rot_x_31] b7s._tmp_1 1073741824 +scoreboard players add @s[tag=!b7s.back_rot_x_31] b7s._tmp_1 1073741824 +scoreboard players set @s b7s._tmp_2 2 + +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_rot_x_0 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_rot_x_1 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_rot_x_2 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_rot_x_3 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_rot_x_4 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_rot_x_5 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_rot_x_6 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_rot_x_7 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_rot_x_8 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_rot_x_9 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_rot_x_10 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_rot_x_11 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_rot_x_12 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_rot_x_13 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_rot_x_14 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_rot_x_15 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_rot_x_16 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_rot_x_17 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_rot_x_18 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_rot_x_19 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_rot_x_20 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_rot_x_21 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_rot_x_22 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_rot_x_23 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_rot_x_24 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_rot_x_25 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_rot_x_26 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_rot_x_27 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_rot_x_28 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_rot_x_29 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_rot_x_30 + +tag @s add b7s.back_rot_x_set diff --git a/data/b7s/functions/entity/back/set_loc/_if_save_as_tags_if_rot_x_set.mcfunction.py b/data/b7s/functions/entity/back/set_loc/_if_save_as_tags_if_rot_x_set.mcfunction.py new file mode 100644 index 0000000..d85e229 --- /dev/null +++ b/data/b7s/functions/entity/back/set_loc/_if_save_as_tags_if_rot_x_set.mcfunction.py @@ -0,0 +1,29 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. + +print('# This Source Code Form is subject to the terms of the Mozilla Public') +print('# License, v. 2.0. If a copy of the MPL was not distributed with this') +print('# file, You can obtain one at http://mozilla.org/MPL/2.0/.') +print() + +for i in range(32): + print('tag @s add b7s.back_rot_x_{}'.format(i)) +print() + +print('scoreboard players operation @s b7s._tmp_1 = @s b7s.rot_x') +print('tag @s[scores={b7s._tmp_1=..-1}] remove b7s.back_rot_x_31') +print('scoreboard players add @s[tag=!b7s.back_rot_x_31] b7s._tmp_1 1073741824') +print('scoreboard players add @s[tag=!b7s.back_rot_x_31] b7s._tmp_1 1073741824') +print('scoreboard players set @s b7s._tmp_2 2') +print() + +for i in range(31): + print('scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1') + print('scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2') + print('tag @s[scores={{b7s._tmp_3=0}}] remove b7s.back_rot_x_{}'.format(i)) + if i != 30: + print('scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2') +print() + +print('tag @s add b7s.back_rot_x_set') diff --git a/data/b7s/functions/entity/back/set_loc/_if_save_as_tags_if_rot_y_set.mcfunction b/data/b7s/functions/entity/back/set_loc/_if_save_as_tags_if_rot_y_set.mcfunction new file mode 100644 index 0000000..95dd99e --- /dev/null +++ b/data/b7s/functions/entity/back/set_loc/_if_save_as_tags_if_rot_y_set.mcfunction @@ -0,0 +1,168 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. + +tag @s add b7s.back_rot_y_0 +tag @s add b7s.back_rot_y_1 +tag @s add b7s.back_rot_y_2 +tag @s add b7s.back_rot_y_3 +tag @s add b7s.back_rot_y_4 +tag @s add b7s.back_rot_y_5 +tag @s add b7s.back_rot_y_6 +tag @s add b7s.back_rot_y_7 +tag @s add b7s.back_rot_y_8 +tag @s add b7s.back_rot_y_9 +tag @s add b7s.back_rot_y_10 +tag @s add b7s.back_rot_y_11 +tag @s add b7s.back_rot_y_12 +tag @s add b7s.back_rot_y_13 +tag @s add b7s.back_rot_y_14 +tag @s add b7s.back_rot_y_15 +tag @s add b7s.back_rot_y_16 +tag @s add b7s.back_rot_y_17 +tag @s add b7s.back_rot_y_18 +tag @s add b7s.back_rot_y_19 +tag @s add b7s.back_rot_y_20 +tag @s add b7s.back_rot_y_21 +tag @s add b7s.back_rot_y_22 +tag @s add b7s.back_rot_y_23 +tag @s add b7s.back_rot_y_24 +tag @s add b7s.back_rot_y_25 +tag @s add b7s.back_rot_y_26 +tag @s add b7s.back_rot_y_27 +tag @s add b7s.back_rot_y_28 +tag @s add b7s.back_rot_y_29 +tag @s add b7s.back_rot_y_30 +tag @s add b7s.back_rot_y_31 + +scoreboard players operation @s b7s._tmp_1 = @s b7s.rot_y +tag @s[scores={b7s._tmp_1=..-1}] remove b7s.back_rot_y_31 +scoreboard players add @s[tag=!b7s.back_rot_y_31] b7s._tmp_1 1073741824 +scoreboard players add @s[tag=!b7s.back_rot_y_31] b7s._tmp_1 1073741824 +scoreboard players set @s b7s._tmp_2 2 + +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_rot_y_0 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_rot_y_1 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_rot_y_2 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_rot_y_3 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_rot_y_4 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_rot_y_5 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_rot_y_6 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_rot_y_7 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_rot_y_8 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_rot_y_9 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_rot_y_10 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_rot_y_11 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_rot_y_12 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_rot_y_13 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_rot_y_14 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_rot_y_15 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_rot_y_16 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_rot_y_17 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_rot_y_18 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_rot_y_19 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_rot_y_20 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_rot_y_21 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_rot_y_22 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_rot_y_23 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_rot_y_24 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_rot_y_25 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_rot_y_26 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_rot_y_27 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_rot_y_28 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_rot_y_29 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_rot_y_30 + +tag @s add b7s.back_rot_y_set diff --git a/data/b7s/functions/entity/back/set_loc/_if_save_as_tags_if_rot_y_set.mcfunction.py b/data/b7s/functions/entity/back/set_loc/_if_save_as_tags_if_rot_y_set.mcfunction.py new file mode 100644 index 0000000..aa71840 --- /dev/null +++ b/data/b7s/functions/entity/back/set_loc/_if_save_as_tags_if_rot_y_set.mcfunction.py @@ -0,0 +1,29 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. + +print('# This Source Code Form is subject to the terms of the Mozilla Public') +print('# License, v. 2.0. If a copy of the MPL was not distributed with this') +print('# file, You can obtain one at http://mozilla.org/MPL/2.0/.') +print() + +for i in range(32): + print('tag @s add b7s.back_rot_y_{}'.format(i)) +print() + +print('scoreboard players operation @s b7s._tmp_1 = @s b7s.rot_y') +print('tag @s[scores={b7s._tmp_1=..-1}] remove b7s.back_rot_y_31') +print('scoreboard players add @s[tag=!b7s.back_rot_y_31] b7s._tmp_1 1073741824') +print('scoreboard players add @s[tag=!b7s.back_rot_y_31] b7s._tmp_1 1073741824') +print('scoreboard players set @s b7s._tmp_2 2') +print() + +for i in range(31): + print('scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1') + print('scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2') + print('tag @s[scores={{b7s._tmp_3=0}}] remove b7s.back_rot_y_{}'.format(i)) + if i != 30: + print('scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2') +print() + +print('tag @s add b7s.back_rot_y_set') diff --git a/data/b7s/functions/entity/back/set_loc/_if_save_as_tags_if_x_set.mcfunction b/data/b7s/functions/entity/back/set_loc/_if_save_as_tags_if_x_set.mcfunction new file mode 100644 index 0000000..3cbafd8 --- /dev/null +++ b/data/b7s/functions/entity/back/set_loc/_if_save_as_tags_if_x_set.mcfunction @@ -0,0 +1,168 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. + +tag @s add b7s.back_x_0 +tag @s add b7s.back_x_1 +tag @s add b7s.back_x_2 +tag @s add b7s.back_x_3 +tag @s add b7s.back_x_4 +tag @s add b7s.back_x_5 +tag @s add b7s.back_x_6 +tag @s add b7s.back_x_7 +tag @s add b7s.back_x_8 +tag @s add b7s.back_x_9 +tag @s add b7s.back_x_10 +tag @s add b7s.back_x_11 +tag @s add b7s.back_x_12 +tag @s add b7s.back_x_13 +tag @s add b7s.back_x_14 +tag @s add b7s.back_x_15 +tag @s add b7s.back_x_16 +tag @s add b7s.back_x_17 +tag @s add b7s.back_x_18 +tag @s add b7s.back_x_19 +tag @s add b7s.back_x_20 +tag @s add b7s.back_x_21 +tag @s add b7s.back_x_22 +tag @s add b7s.back_x_23 +tag @s add b7s.back_x_24 +tag @s add b7s.back_x_25 +tag @s add b7s.back_x_26 +tag @s add b7s.back_x_27 +tag @s add b7s.back_x_28 +tag @s add b7s.back_x_29 +tag @s add b7s.back_x_30 +tag @s add b7s.back_x_31 + +scoreboard players operation @s b7s._tmp_1 = @s b7s.x +tag @s[scores={b7s._tmp_1=..-1}] remove b7s.back_x_31 +scoreboard players add @s[tag=!b7s.back_x_31] b7s._tmp_1 1073741824 +scoreboard players add @s[tag=!b7s.back_x_31] b7s._tmp_1 1073741824 +scoreboard players set @s b7s._tmp_2 2 + +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_x_0 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_x_1 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_x_2 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_x_3 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_x_4 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_x_5 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_x_6 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_x_7 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_x_8 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_x_9 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_x_10 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_x_11 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_x_12 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_x_13 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_x_14 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_x_15 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_x_16 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_x_17 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_x_18 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_x_19 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_x_20 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_x_21 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_x_22 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_x_23 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_x_24 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_x_25 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_x_26 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_x_27 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_x_28 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_x_29 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_x_30 + +tag @s add b7s.back_x_set diff --git a/data/b7s/functions/entity/back/set_loc/_if_save_as_tags_if_x_set.mcfunction.py b/data/b7s/functions/entity/back/set_loc/_if_save_as_tags_if_x_set.mcfunction.py new file mode 100644 index 0000000..630fcdf --- /dev/null +++ b/data/b7s/functions/entity/back/set_loc/_if_save_as_tags_if_x_set.mcfunction.py @@ -0,0 +1,29 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. + +print('# This Source Code Form is subject to the terms of the Mozilla Public') +print('# License, v. 2.0. If a copy of the MPL was not distributed with this') +print('# file, You can obtain one at http://mozilla.org/MPL/2.0/.') +print() + +for i in range(32): + print('tag @s add b7s.back_x_{}'.format(i)) +print() + +print('scoreboard players operation @s b7s._tmp_1 = @s b7s.x') +print('tag @s[scores={b7s._tmp_1=..-1}] remove b7s.back_x_31') +print('scoreboard players add @s[tag=!b7s.back_x_31] b7s._tmp_1 1073741824') +print('scoreboard players add @s[tag=!b7s.back_x_31] b7s._tmp_1 1073741824') +print('scoreboard players set @s b7s._tmp_2 2') +print() + +for i in range(31): + print('scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1') + print('scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2') + print('tag @s[scores={{b7s._tmp_3=0}}] remove b7s.back_x_{}'.format(i)) + if i != 30: + print('scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2') +print() + +print('tag @s add b7s.back_x_set') diff --git a/data/b7s/functions/entity/back/set_loc/_if_save_as_tags_if_y_set.mcfunction b/data/b7s/functions/entity/back/set_loc/_if_save_as_tags_if_y_set.mcfunction new file mode 100644 index 0000000..a246e4b --- /dev/null +++ b/data/b7s/functions/entity/back/set_loc/_if_save_as_tags_if_y_set.mcfunction @@ -0,0 +1,168 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. + +tag @s add b7s.back_y_0 +tag @s add b7s.back_y_1 +tag @s add b7s.back_y_2 +tag @s add b7s.back_y_3 +tag @s add b7s.back_y_4 +tag @s add b7s.back_y_5 +tag @s add b7s.back_y_6 +tag @s add b7s.back_y_7 +tag @s add b7s.back_y_8 +tag @s add b7s.back_y_9 +tag @s add b7s.back_y_10 +tag @s add b7s.back_y_11 +tag @s add b7s.back_y_12 +tag @s add b7s.back_y_13 +tag @s add b7s.back_y_14 +tag @s add b7s.back_y_15 +tag @s add b7s.back_y_16 +tag @s add b7s.back_y_17 +tag @s add b7s.back_y_18 +tag @s add b7s.back_y_19 +tag @s add b7s.back_y_20 +tag @s add b7s.back_y_21 +tag @s add b7s.back_y_22 +tag @s add b7s.back_y_23 +tag @s add b7s.back_y_24 +tag @s add b7s.back_y_25 +tag @s add b7s.back_y_26 +tag @s add b7s.back_y_27 +tag @s add b7s.back_y_28 +tag @s add b7s.back_y_29 +tag @s add b7s.back_y_30 +tag @s add b7s.back_y_31 + +scoreboard players operation @s b7s._tmp_1 = @s b7s.y +tag @s[scores={b7s._tmp_1=..-1}] remove b7s.back_y_31 +scoreboard players add @s[tag=!b7s.back_y_31] b7s._tmp_1 1073741824 +scoreboard players add @s[tag=!b7s.back_y_31] b7s._tmp_1 1073741824 +scoreboard players set @s b7s._tmp_2 2 + +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_y_0 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_y_1 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_y_2 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_y_3 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_y_4 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_y_5 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_y_6 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_y_7 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_y_8 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_y_9 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_y_10 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_y_11 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_y_12 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_y_13 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_y_14 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_y_15 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_y_16 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_y_17 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_y_18 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_y_19 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_y_20 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_y_21 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_y_22 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_y_23 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_y_24 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_y_25 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_y_26 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_y_27 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_y_28 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_y_29 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_y_30 + +tag @s add b7s.back_y_set diff --git a/data/b7s/functions/entity/back/set_loc/_if_save_as_tags_if_y_set.mcfunction.py b/data/b7s/functions/entity/back/set_loc/_if_save_as_tags_if_y_set.mcfunction.py new file mode 100644 index 0000000..dbc6a83 --- /dev/null +++ b/data/b7s/functions/entity/back/set_loc/_if_save_as_tags_if_y_set.mcfunction.py @@ -0,0 +1,29 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. + +print('# This Source Code Form is subject to the terms of the Mozilla Public') +print('# License, v. 2.0. If a copy of the MPL was not distributed with this') +print('# file, You can obtain one at http://mozilla.org/MPL/2.0/.') +print() + +for i in range(32): + print('tag @s add b7s.back_y_{}'.format(i)) +print() + +print('scoreboard players operation @s b7s._tmp_1 = @s b7s.y') +print('tag @s[scores={b7s._tmp_1=..-1}] remove b7s.back_y_31') +print('scoreboard players add @s[tag=!b7s.back_y_31] b7s._tmp_1 1073741824') +print('scoreboard players add @s[tag=!b7s.back_y_31] b7s._tmp_1 1073741824') +print('scoreboard players set @s b7s._tmp_2 2') +print() + +for i in range(31): + print('scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1') + print('scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2') + print('tag @s[scores={{b7s._tmp_3=0}}] remove b7s.back_y_{}'.format(i)) + if i != 30: + print('scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2') +print() + +print('tag @s add b7s.back_y_set') diff --git a/data/b7s/functions/entity/back/set_loc/_if_save_as_tags_if_z_set.mcfunction b/data/b7s/functions/entity/back/set_loc/_if_save_as_tags_if_z_set.mcfunction new file mode 100644 index 0000000..6516b8d --- /dev/null +++ b/data/b7s/functions/entity/back/set_loc/_if_save_as_tags_if_z_set.mcfunction @@ -0,0 +1,168 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. + +tag @s add b7s.back_z_0 +tag @s add b7s.back_z_1 +tag @s add b7s.back_z_2 +tag @s add b7s.back_z_3 +tag @s add b7s.back_z_4 +tag @s add b7s.back_z_5 +tag @s add b7s.back_z_6 +tag @s add b7s.back_z_7 +tag @s add b7s.back_z_8 +tag @s add b7s.back_z_9 +tag @s add b7s.back_z_10 +tag @s add b7s.back_z_11 +tag @s add b7s.back_z_12 +tag @s add b7s.back_z_13 +tag @s add b7s.back_z_14 +tag @s add b7s.back_z_15 +tag @s add b7s.back_z_16 +tag @s add b7s.back_z_17 +tag @s add b7s.back_z_18 +tag @s add b7s.back_z_19 +tag @s add b7s.back_z_20 +tag @s add b7s.back_z_21 +tag @s add b7s.back_z_22 +tag @s add b7s.back_z_23 +tag @s add b7s.back_z_24 +tag @s add b7s.back_z_25 +tag @s add b7s.back_z_26 +tag @s add b7s.back_z_27 +tag @s add b7s.back_z_28 +tag @s add b7s.back_z_29 +tag @s add b7s.back_z_30 +tag @s add b7s.back_z_31 + +scoreboard players operation @s b7s._tmp_1 = @s b7s.z +tag @s[scores={b7s._tmp_1=..-1}] remove b7s.back_z_31 +scoreboard players add @s[tag=!b7s.back_z_31] b7s._tmp_1 1073741824 +scoreboard players add @s[tag=!b7s.back_z_31] b7s._tmp_1 1073741824 +scoreboard players set @s b7s._tmp_2 2 + +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_z_0 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_z_1 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_z_2 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_z_3 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_z_4 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_z_5 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_z_6 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_z_7 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_z_8 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_z_9 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_z_10 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_z_11 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_z_12 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_z_13 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_z_14 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_z_15 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_z_16 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_z_17 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_z_18 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_z_19 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_z_20 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_z_21 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_z_22 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_z_23 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_z_24 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_z_25 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_z_26 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_z_27 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_z_28 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_z_29 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.back_z_30 + +tag @s add b7s.back_z_set diff --git a/data/b7s/functions/entity/back/set_loc/_if_save_as_tags_if_z_set.mcfunction.py b/data/b7s/functions/entity/back/set_loc/_if_save_as_tags_if_z_set.mcfunction.py new file mode 100644 index 0000000..a5c39f7 --- /dev/null +++ b/data/b7s/functions/entity/back/set_loc/_if_save_as_tags_if_z_set.mcfunction.py @@ -0,0 +1,29 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. + +print('# This Source Code Form is subject to the terms of the Mozilla Public') +print('# License, v. 2.0. If a copy of the MPL was not distributed with this') +print('# file, You can obtain one at http://mozilla.org/MPL/2.0/.') +print() + +for i in range(32): + print('tag @s add b7s.back_z_{}'.format(i)) +print() + +print('scoreboard players operation @s b7s._tmp_1 = @s b7s.z') +print('tag @s[scores={b7s._tmp_1=..-1}] remove b7s.back_z_31') +print('scoreboard players add @s[tag=!b7s.back_z_31] b7s._tmp_1 1073741824') +print('scoreboard players add @s[tag=!b7s.back_z_31] b7s._tmp_1 1073741824') +print('scoreboard players set @s b7s._tmp_2 2') +print() + +for i in range(31): + print('scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1') + print('scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2') + print('tag @s[scores={{b7s._tmp_3=0}}] remove b7s.back_z_{}'.format(i)) + if i != 30: + print('scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2') +print() + +print('tag @s add b7s.back_z_set') diff --git a/data/b7s/functions/entity/back/set_loc/_unless_save_as_tags.mcfunction b/data/b7s/functions/entity/back/set_loc/_unless_save_as_tags.mcfunction new file mode 100644 index 0000000..120b054 --- /dev/null +++ b/data/b7s/functions/entity/back/set_loc/_unless_save_as_tags.mcfunction @@ -0,0 +1,11 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. + +scoreboard players operation @s b7s.back_dim = @s[scores={b7s.dim=-2147483648..}] b7s.dim +scoreboard players operation @s b7s.back_x = @s[scores={b7s.x=-2147483648..}] b7s.x +scoreboard players operation @s b7s.back_y = @s[scores={b7s.y=-2147483648..}] b7s.y +scoreboard players operation @s b7s.back_z = @s[scores={b7s.z=-2147483648..}] b7s.z +scoreboard players operation @s b7s.back_rot_x = @s[scores={b7s.rot_x=-2147483648..}] b7s.rot_x +scoreboard players operation @s b7s.back_rot_y = @s[scores={b7s.rot_y=-2147483648..}] b7s.rot_y +tag @s remove b7s.back_loc_set diff --git a/data/b7s/functions/entity/back/set_pos.mcfunction b/data/b7s/functions/entity/back/set_pos.mcfunction deleted file mode 100644 index ec56303..0000000 --- a/data/b7s/functions/entity/back/set_pos.mcfunction +++ /dev/null @@ -1,19 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -# Sets the back position of a player or entity. -# -# Scores required: -# b7s:x — the back's x coordinate -# b7s:y — the back's y coordinate -# b7s:z — the back's z coordinate -# -# Usage: -# /scoreboard players set b7s:x -# /scoreboard players set b7s:y -# /scoreboard players set b7s:z -# /execute ~ ~ ~ function b7s:entity/back/set_pos - -function b7s:config/back/get_save_as_tags -function b7s:entity/back/set_pos/_perform diff --git a/data/b7s/functions/entity/back/set_pos/_if_save_as_tags.mcfunction b/data/b7s/functions/entity/back/set_pos/_if_save_as_tags.mcfunction deleted file mode 100644 index 16ca3c0..0000000 --- a/data/b7s/functions/entity/back/set_pos/_if_save_as_tags.mcfunction +++ /dev/null @@ -1,209 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -scoreboard players tag @s remove b7s:back_x_25 -scoreboard players tag @s remove b7s:back_x_24 -scoreboard players tag @s remove b7s:back_x_23 -scoreboard players tag @s remove b7s:back_x_22 -scoreboard players tag @s remove b7s:back_x_21 -scoreboard players tag @s remove b7s:back_x_20 -scoreboard players tag @s remove b7s:back_x_19 -scoreboard players tag @s remove b7s:back_x_18 -scoreboard players tag @s remove b7s:back_x_17 -scoreboard players tag @s remove b7s:back_x_16 -scoreboard players tag @s remove b7s:back_x_15 -scoreboard players tag @s remove b7s:back_x_14 -scoreboard players tag @s remove b7s:back_x_13 -scoreboard players tag @s remove b7s:back_x_12 -scoreboard players tag @s remove b7s:back_x_11 -scoreboard players tag @s remove b7s:back_x_10 -scoreboard players tag @s remove b7s:back_x_9 -scoreboard players tag @s remove b7s:back_x_8 -scoreboard players tag @s remove b7s:back_x_7 -scoreboard players tag @s remove b7s:back_x_6 -scoreboard players tag @s remove b7s:back_x_5 -scoreboard players tag @s remove b7s:back_x_4 -scoreboard players tag @s remove b7s:back_x_3 -scoreboard players tag @s remove b7s:back_x_2 -scoreboard players tag @s remove b7s:back_x_1 -scoreboard players tag @s remove b7s:back_x_0 - -scoreboard players tag @s remove b7s:back_y_12 -scoreboard players tag @s remove b7s:back_y_11 -scoreboard players tag @s remove b7s:back_y_10 -scoreboard players tag @s remove b7s:back_y_9 -scoreboard players tag @s remove b7s:back_y_8 -scoreboard players tag @s remove b7s:back_y_7 -scoreboard players tag @s remove b7s:back_y_6 -scoreboard players tag @s remove b7s:back_y_5 -scoreboard players tag @s remove b7s:back_y_4 -scoreboard players tag @s remove b7s:back_y_3 -scoreboard players tag @s remove b7s:back_y_2 -scoreboard players tag @s remove b7s:back_y_1 -scoreboard players tag @s remove b7s:back_y_0 - -scoreboard players tag @s remove b7s:back_z_25 -scoreboard players tag @s remove b7s:back_z_24 -scoreboard players tag @s remove b7s:back_z_23 -scoreboard players tag @s remove b7s:back_z_22 -scoreboard players tag @s remove b7s:back_z_21 -scoreboard players tag @s remove b7s:back_z_20 -scoreboard players tag @s remove b7s:back_z_19 -scoreboard players tag @s remove b7s:back_z_18 -scoreboard players tag @s remove b7s:back_z_17 -scoreboard players tag @s remove b7s:back_z_16 -scoreboard players tag @s remove b7s:back_z_15 -scoreboard players tag @s remove b7s:back_z_14 -scoreboard players tag @s remove b7s:back_z_13 -scoreboard players tag @s remove b7s:back_z_12 -scoreboard players tag @s remove b7s:back_z_11 -scoreboard players tag @s remove b7s:back_z_10 -scoreboard players tag @s remove b7s:back_z_9 -scoreboard players tag @s remove b7s:back_z_8 -scoreboard players tag @s remove b7s:back_z_7 -scoreboard players tag @s remove b7s:back_z_6 -scoreboard players tag @s remove b7s:back_z_5 -scoreboard players tag @s remove b7s:back_z_4 -scoreboard players tag @s remove b7s:back_z_3 -scoreboard players tag @s remove b7s:back_z_2 -scoreboard players tag @s remove b7s:back_z_1 -scoreboard players tag @s remove b7s:back_z_0 - -scoreboard players operation @s b7s:_tmp = @s b7s:x -scoreboard players add @s b7s:_tmp 30000000 -scoreboard players tag @s[score_b7s:_tmp_min=33554432] add b7s:back_x_25 -scoreboard players remove @s[score_b7s:_tmp_min=33554432] b7s:_tmp 33554432 -scoreboard players tag @s[score_b7s:_tmp_min=16777216] add b7s:back_x_24 -scoreboard players remove @s[score_b7s:_tmp_min=16777216] b7s:_tmp 16777216 -scoreboard players tag @s[score_b7s:_tmp_min=8388608] add b7s:back_x_23 -scoreboard players remove @s[score_b7s:_tmp_min=8388608] b7s:_tmp 8388608 -scoreboard players tag @s[score_b7s:_tmp_min=4194304] add b7s:back_x_22 -scoreboard players remove @s[score_b7s:_tmp_min=4194304] b7s:_tmp 4194304 -scoreboard players tag @s[score_b7s:_tmp_min=2097152] add b7s:back_x_21 -scoreboard players remove @s[score_b7s:_tmp_min=2097152] b7s:_tmp 2097152 -scoreboard players tag @s[score_b7s:_tmp_min=1048576] add b7s:back_x_20 -scoreboard players remove @s[score_b7s:_tmp_min=1048576] b7s:_tmp 1048576 -scoreboard players tag @s[score_b7s:_tmp_min=524288] add b7s:back_x_19 -scoreboard players remove @s[score_b7s:_tmp_min=524288] b7s:_tmp 524288 -scoreboard players tag @s[score_b7s:_tmp_min=262144] add b7s:back_x_18 -scoreboard players remove @s[score_b7s:_tmp_min=262144] b7s:_tmp 262144 -scoreboard players tag @s[score_b7s:_tmp_min=131072] add b7s:back_x_17 -scoreboard players remove @s[score_b7s:_tmp_min=131072] b7s:_tmp 131072 -scoreboard players tag @s[score_b7s:_tmp_min=65536] add b7s:back_x_16 -scoreboard players remove @s[score_b7s:_tmp_min=65536] b7s:_tmp 65536 -scoreboard players tag @s[score_b7s:_tmp_min=32768] add b7s:back_x_15 -scoreboard players remove @s[score_b7s:_tmp_min=32768] b7s:_tmp 32768 -scoreboard players tag @s[score_b7s:_tmp_min=16384] add b7s:back_x_14 -scoreboard players remove @s[score_b7s:_tmp_min=16384] b7s:_tmp 16384 -scoreboard players tag @s[score_b7s:_tmp_min=8192] add b7s:back_x_13 -scoreboard players remove @s[score_b7s:_tmp_min=8192] b7s:_tmp 8192 -scoreboard players tag @s[score_b7s:_tmp_min=4096] add b7s:back_x_12 -scoreboard players remove @s[score_b7s:_tmp_min=4096] b7s:_tmp 4096 -scoreboard players tag @s[score_b7s:_tmp_min=2048] add b7s:back_x_11 -scoreboard players remove @s[score_b7s:_tmp_min=2048] b7s:_tmp 2048 -scoreboard players tag @s[score_b7s:_tmp_min=1024] add b7s:back_x_10 -scoreboard players remove @s[score_b7s:_tmp_min=1024] b7s:_tmp 1024 -scoreboard players tag @s[score_b7s:_tmp_min=512] add b7s:back_x_9 -scoreboard players remove @s[score_b7s:_tmp_min=512] b7s:_tmp 512 -scoreboard players tag @s[score_b7s:_tmp_min=256] add b7s:back_x_8 -scoreboard players remove @s[score_b7s:_tmp_min=256] b7s:_tmp 256 -scoreboard players tag @s[score_b7s:_tmp_min=128] add b7s:back_x_7 -scoreboard players remove @s[score_b7s:_tmp_min=128] b7s:_tmp 128 -scoreboard players tag @s[score_b7s:_tmp_min=64] add b7s:back_x_6 -scoreboard players remove @s[score_b7s:_tmp_min=64] b7s:_tmp 64 -scoreboard players tag @s[score_b7s:_tmp_min=32] add b7s:back_x_5 -scoreboard players remove @s[score_b7s:_tmp_min=32] b7s:_tmp 32 -scoreboard players tag @s[score_b7s:_tmp_min=16] add b7s:back_x_4 -scoreboard players remove @s[score_b7s:_tmp_min=16] b7s:_tmp 16 -scoreboard players tag @s[score_b7s:_tmp_min=8] add b7s:back_x_3 -scoreboard players remove @s[score_b7s:_tmp_min=8] b7s:_tmp 8 -scoreboard players tag @s[score_b7s:_tmp_min=4] add b7s:back_x_2 -scoreboard players remove @s[score_b7s:_tmp_min=4] b7s:_tmp 4 -scoreboard players tag @s[score_b7s:_tmp_min=2] add b7s:back_x_1 -scoreboard players remove @s[score_b7s:_tmp_min=2] b7s:_tmp 2 -scoreboard players tag @s[score_b7s:_tmp_min=1] add b7s:back_x_0 - -scoreboard players operation @s b7s:_tmp = @s b7s:y -scoreboard players add @s b7s:_tmp 4096 -scoreboard players tag @s[score_b7s:_tmp_min=4096] add b7s:back_y_12 -scoreboard players remove @s[score_b7s:_tmp_min=4096] b7s:_tmp 4096 -scoreboard players tag @s[score_b7s:_tmp_min=2048] add b7s:back_y_11 -scoreboard players remove @s[score_b7s:_tmp_min=2048] b7s:_tmp 2048 -scoreboard players tag @s[score_b7s:_tmp_min=1024] add b7s:back_y_10 -scoreboard players remove @s[score_b7s:_tmp_min=1024] b7s:_tmp 1024 -scoreboard players tag @s[score_b7s:_tmp_min=512] add b7s:back_y_9 -scoreboard players remove @s[score_b7s:_tmp_min=512] b7s:_tmp 512 -scoreboard players tag @s[score_b7s:_tmp_min=256] add b7s:back_y_8 -scoreboard players remove @s[score_b7s:_tmp_min=256] b7s:_tmp 256 -scoreboard players tag @s[score_b7s:_tmp_min=128] add b7s:back_y_7 -scoreboard players remove @s[score_b7s:_tmp_min=128] b7s:_tmp 128 -scoreboard players tag @s[score_b7s:_tmp_min=64] add b7s:back_y_6 -scoreboard players remove @s[score_b7s:_tmp_min=64] b7s:_tmp 64 -scoreboard players tag @s[score_b7s:_tmp_min=32] add b7s:back_y_5 -scoreboard players remove @s[score_b7s:_tmp_min=32] b7s:_tmp 32 -scoreboard players tag @s[score_b7s:_tmp_min=16] add b7s:back_y_4 -scoreboard players remove @s[score_b7s:_tmp_min=16] b7s:_tmp 16 -scoreboard players tag @s[score_b7s:_tmp_min=8] add b7s:back_y_3 -scoreboard players remove @s[score_b7s:_tmp_min=8] b7s:_tmp 8 -scoreboard players tag @s[score_b7s:_tmp_min=4] add b7s:back_y_2 -scoreboard players remove @s[score_b7s:_tmp_min=4] b7s:_tmp 4 -scoreboard players tag @s[score_b7s:_tmp_min=2] add b7s:back_y_1 -scoreboard players remove @s[score_b7s:_tmp_min=2] b7s:_tmp 2 -scoreboard players tag @s[score_b7s:_tmp_min=1] add b7s:back_y_0 - -scoreboard players operation @s b7s:_tmp = @s b7s:z -scoreboard players add @s b7s:_tmp 30000000 -scoreboard players tag @s[score_b7s:_tmp_min=33554432] add b7s:back_z_25 -scoreboard players remove @s[score_b7s:_tmp_min=33554432] b7s:_tmp 33554432 -scoreboard players tag @s[score_b7s:_tmp_min=16777216] add b7s:back_z_24 -scoreboard players remove @s[score_b7s:_tmp_min=16777216] b7s:_tmp 16777216 -scoreboard players tag @s[score_b7s:_tmp_min=8388608] add b7s:back_z_23 -scoreboard players remove @s[score_b7s:_tmp_min=8388608] b7s:_tmp 8388608 -scoreboard players tag @s[score_b7s:_tmp_min=4194304] add b7s:back_z_22 -scoreboard players remove @s[score_b7s:_tmp_min=4194304] b7s:_tmp 4194304 -scoreboard players tag @s[score_b7s:_tmp_min=2097152] add b7s:back_z_21 -scoreboard players remove @s[score_b7s:_tmp_min=2097152] b7s:_tmp 2097152 -scoreboard players tag @s[score_b7s:_tmp_min=1048576] add b7s:back_z_20 -scoreboard players remove @s[score_b7s:_tmp_min=1048576] b7s:_tmp 1048576 -scoreboard players tag @s[score_b7s:_tmp_min=524288] add b7s:back_z_19 -scoreboard players remove @s[score_b7s:_tmp_min=524288] b7s:_tmp 524288 -scoreboard players tag @s[score_b7s:_tmp_min=262144] add b7s:back_z_18 -scoreboard players remove @s[score_b7s:_tmp_min=262144] b7s:_tmp 262144 -scoreboard players tag @s[score_b7s:_tmp_min=131072] add b7s:back_z_17 -scoreboard players remove @s[score_b7s:_tmp_min=131072] b7s:_tmp 131072 -scoreboard players tag @s[score_b7s:_tmp_min=65536] add b7s:back_z_16 -scoreboard players remove @s[score_b7s:_tmp_min=65536] b7s:_tmp 65536 -scoreboard players tag @s[score_b7s:_tmp_min=32768] add b7s:back_z_15 -scoreboard players remove @s[score_b7s:_tmp_min=32768] b7s:_tmp 32768 -scoreboard players tag @s[score_b7s:_tmp_min=16384] add b7s:back_z_14 -scoreboard players remove @s[score_b7s:_tmp_min=16384] b7s:_tmp 16384 -scoreboard players tag @s[score_b7s:_tmp_min=8192] add b7s:back_z_13 -scoreboard players remove @s[score_b7s:_tmp_min=8192] b7s:_tmp 8192 -scoreboard players tag @s[score_b7s:_tmp_min=4096] add b7s:back_z_12 -scoreboard players remove @s[score_b7s:_tmp_min=4096] b7s:_tmp 4096 -scoreboard players tag @s[score_b7s:_tmp_min=2048] add b7s:back_z_11 -scoreboard players remove @s[score_b7s:_tmp_min=2048] b7s:_tmp 2048 -scoreboard players tag @s[score_b7s:_tmp_min=1024] add b7s:back_z_10 -scoreboard players remove @s[score_b7s:_tmp_min=1024] b7s:_tmp 1024 -scoreboard players tag @s[score_b7s:_tmp_min=512] add b7s:back_z_9 -scoreboard players remove @s[score_b7s:_tmp_min=512] b7s:_tmp 512 -scoreboard players tag @s[score_b7s:_tmp_min=256] add b7s:back_z_8 -scoreboard players remove @s[score_b7s:_tmp_min=256] b7s:_tmp 256 -scoreboard players tag @s[score_b7s:_tmp_min=128] add b7s:back_z_7 -scoreboard players remove @s[score_b7s:_tmp_min=128] b7s:_tmp 128 -scoreboard players tag @s[score_b7s:_tmp_min=64] add b7s:back_z_6 -scoreboard players remove @s[score_b7s:_tmp_min=64] b7s:_tmp 64 -scoreboard players tag @s[score_b7s:_tmp_min=32] add b7s:back_z_5 -scoreboard players remove @s[score_b7s:_tmp_min=32] b7s:_tmp 32 -scoreboard players tag @s[score_b7s:_tmp_min=16] add b7s:back_z_4 -scoreboard players remove @s[score_b7s:_tmp_min=16] b7s:_tmp 16 -scoreboard players tag @s[score_b7s:_tmp_min=8] add b7s:back_z_3 -scoreboard players remove @s[score_b7s:_tmp_min=8] b7s:_tmp 8 -scoreboard players tag @s[score_b7s:_tmp_min=4] add b7s:back_z_2 -scoreboard players remove @s[score_b7s:_tmp_min=4] b7s:_tmp 4 -scoreboard players tag @s[score_b7s:_tmp_min=2] add b7s:back_z_1 -scoreboard players remove @s[score_b7s:_tmp_min=2] b7s:_tmp 2 -scoreboard players tag @s[score_b7s:_tmp_min=1] add b7s:back_z_0 - -scoreboard players tag @s add b7s:back_pos_tags_set diff --git a/data/b7s/functions/entity/back/set_pos/_if_save_as_tags.mcfunction.py b/data/b7s/functions/entity/back/set_pos/_if_save_as_tags.mcfunction.py deleted file mode 100644 index 64016f8..0000000 --- a/data/b7s/functions/entity/back/set_pos/_if_save_as_tags.mcfunction.py +++ /dev/null @@ -1,46 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -print('# This Source Code Form is subject to the terms of the Mozilla Public') -print('# License, v. 2.0. If a copy of the MPL was not distributed with this') -print('# file, You can obtain one at http://mozilla.org/MPL/2.0/.') - -print() -for exponent in range(25, -1, -1): - print('scoreboard players tag @s remove b7s:back_x_{}'.format(exponent)) - -print() -for exponent in range(12, -1, -1): - print('scoreboard players tag @s remove b7s:back_y_{}'.format(exponent)) - -print() -for exponent in range(25, -1, -1): - print('scoreboard players tag @s remove b7s:back_z_{}'.format(exponent)) - -print() -print('scoreboard players operation @s b7s:_tmp = @s b7s:x') -print('scoreboard players add @s b7s:_tmp 30000000') -for exponent in range(25, -1, -1): - print('scoreboard players tag @s[score_b7s:_tmp_min={}] add b7s:back_x_{}'.format(2 ** exponent, exponent)) - if exponent != 0: - print('scoreboard players remove @s[score_b7s:_tmp_min={0}] b7s:_tmp {0}'.format(2 ** exponent)) - -print() -print('scoreboard players operation @s b7s:_tmp = @s b7s:y') -print('scoreboard players add @s b7s:_tmp 4096') -for exponent in range(12, -1, -1): - print('scoreboard players tag @s[score_b7s:_tmp_min={}] add b7s:back_y_{}'.format(2 ** exponent, exponent)) - if exponent != 0: - print('scoreboard players remove @s[score_b7s:_tmp_min={0}] b7s:_tmp {0}'.format(2 ** exponent)) - -print() -print('scoreboard players operation @s b7s:_tmp = @s b7s:z') -print('scoreboard players add @s b7s:_tmp 30000000') -for exponent in range(25, -1, -1): - print('scoreboard players tag @s[score_b7s:_tmp_min={}] add b7s:back_z_{}'.format(2 ** exponent, exponent)) - if exponent != 0: - print('scoreboard players remove @s[score_b7s:_tmp_min={0}] b7s:_tmp {0}'.format(2 ** exponent)) - -print() -print('scoreboard players tag @s add b7s:back_pos_tags_set') diff --git a/data/b7s/functions/entity/back/set_pos/_perform.mcfunction b/data/b7s/functions/entity/back/set_pos/_perform.mcfunction deleted file mode 100644 index d97c5ad..0000000 --- a/data/b7s/functions/entity/back/set_pos/_perform.mcfunction +++ /dev/null @@ -1,6 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -function b7s:entity/back/set_pos/_unless_save_as_tags unless @s[tag=b7s:back_as_tags] -function b7s:entity/back/set_pos/_if_save_as_tags if @s[tag=b7s:back_as_tags] diff --git a/data/b7s/functions/entity/back/set_pos/_unless_save_as_tags.mcfunction b/data/b7s/functions/entity/back/set_pos/_unless_save_as_tags.mcfunction deleted file mode 100644 index 22a0f90..0000000 --- a/data/b7s/functions/entity/back/set_pos/_unless_save_as_tags.mcfunction +++ /dev/null @@ -1,9 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -scoreboard players operation @s b7s:back_x = @s b7s:x -scoreboard players operation @s b7s:back_y = @s b7s:y -scoreboard players operation @s b7s:back_z = @s b7s:z - -scoreboard players tag @s remove b7s:back_pos_tags_set diff --git a/data/b7s/functions/entity/back/set_rot.mcfunction b/data/b7s/functions/entity/back/set_rot.mcfunction deleted file mode 100644 index 95520f1..0000000 --- a/data/b7s/functions/entity/back/set_rot.mcfunction +++ /dev/null @@ -1,17 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -# Sets the back rotation of a player or entity. -# -# Scores required: -# b7s:rot_x — the back's x rotation -# b7s:rot_y — the back's y rotation -# -# Usage: -# /scoreboard players set b7s:rot_x -# /scoreboard players set b7s:rot_y -# /execute ~ ~ ~ function b7s:entity/back/set_rot - -function b7s:config/back/get_save_as_tags -function b7s:entity/back/set_dim/_perform diff --git a/data/b7s/functions/entity/back/set_rot/_if_save_as_tags.mcfunction b/data/b7s/functions/entity/back/set_rot/_if_save_as_tags.mcfunction deleted file mode 100644 index 6e0a973..0000000 --- a/data/b7s/functions/entity/back/set_rot/_if_save_as_tags.mcfunction +++ /dev/null @@ -1,62 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -scoreboard players tag @s remove b7s:back_rot_x_7 -scoreboard players tag @s remove b7s:back_rot_x_6 -scoreboard players tag @s remove b7s:back_rot_x_5 -scoreboard players tag @s remove b7s:back_rot_x_4 -scoreboard players tag @s remove b7s:back_rot_x_3 -scoreboard players tag @s remove b7s:back_rot_x_2 -scoreboard players tag @s remove b7s:back_rot_x_1 -scoreboard players tag @s remove b7s:back_rot_x_0 - -scoreboard players tag @s remove b7s:back_rot_y_8 -scoreboard players tag @s remove b7s:back_rot_y_7 -scoreboard players tag @s remove b7s:back_rot_y_6 -scoreboard players tag @s remove b7s:back_rot_y_5 -scoreboard players tag @s remove b7s:back_rot_y_4 -scoreboard players tag @s remove b7s:back_rot_y_3 -scoreboard players tag @s remove b7s:back_rot_y_2 -scoreboard players tag @s remove b7s:back_rot_y_1 -scoreboard players tag @s remove b7s:back_rot_y_0 - -scoreboard players operation @s b7s:_tmp = @s b7s:rot_x -scoreboard players add @s b7s:_tmp 90 -scoreboard players tag @s[score_b7s:_tmp_min=128] add b7s:back_rot_x_7 -scoreboard players remove @s[score_b7s:_tmp_min=128] b7s:_tmp 128 -scoreboard players tag @s[score_b7s:_tmp_min=64] add b7s:back_rot_x_6 -scoreboard players remove @s[score_b7s:_tmp_min=64] b7s:_tmp 64 -scoreboard players tag @s[score_b7s:_tmp_min=32] add b7s:back_rot_x_5 -scoreboard players remove @s[score_b7s:_tmp_min=32] b7s:_tmp 32 -scoreboard players tag @s[score_b7s:_tmp_min=16] add b7s:back_rot_x_4 -scoreboard players remove @s[score_b7s:_tmp_min=16] b7s:_tmp 16 -scoreboard players tag @s[score_b7s:_tmp_min=8] add b7s:back_rot_x_3 -scoreboard players remove @s[score_b7s:_tmp_min=8] b7s:_tmp 8 -scoreboard players tag @s[score_b7s:_tmp_min=4] add b7s:back_rot_x_2 -scoreboard players remove @s[score_b7s:_tmp_min=4] b7s:_tmp 4 -scoreboard players tag @s[score_b7s:_tmp_min=2] add b7s:back_rot_x_1 -scoreboard players remove @s[score_b7s:_tmp_min=2] b7s:_tmp 2 -scoreboard players tag @s[score_b7s:_tmp_min=1] add b7s:back_rot_x_0 - -scoreboard players operation @s b7s:_tmp = @s b7s:rot_y -scoreboard players add @s b7s:_tmp 180 -scoreboard players tag @s[score_b7s:_tmp_min=256] add b7s:back_rot_y_8 -scoreboard players remove @s[score_b7s:_tmp_min=256] b7s:_tmp 256 -scoreboard players tag @s[score_b7s:_tmp_min=128] add b7s:back_rot_y_7 -scoreboard players remove @s[score_b7s:_tmp_min=128] b7s:_tmp 128 -scoreboard players tag @s[score_b7s:_tmp_min=64] add b7s:back_rot_y_6 -scoreboard players remove @s[score_b7s:_tmp_min=64] b7s:_tmp 64 -scoreboard players tag @s[score_b7s:_tmp_min=32] add b7s:back_rot_y_5 -scoreboard players remove @s[score_b7s:_tmp_min=32] b7s:_tmp 32 -scoreboard players tag @s[score_b7s:_tmp_min=16] add b7s:back_rot_y_4 -scoreboard players remove @s[score_b7s:_tmp_min=16] b7s:_tmp 16 -scoreboard players tag @s[score_b7s:_tmp_min=8] add b7s:back_rot_y_3 -scoreboard players remove @s[score_b7s:_tmp_min=8] b7s:_tmp 8 -scoreboard players tag @s[score_b7s:_tmp_min=4] add b7s:back_rot_y_2 -scoreboard players remove @s[score_b7s:_tmp_min=4] b7s:_tmp 4 -scoreboard players tag @s[score_b7s:_tmp_min=2] add b7s:back_rot_y_1 -scoreboard players remove @s[score_b7s:_tmp_min=2] b7s:_tmp 2 -scoreboard players tag @s[score_b7s:_tmp_min=1] add b7s:back_rot_y_0 - -scoreboard players tag @s add b7s:back_rot_tags_set diff --git a/data/b7s/functions/entity/back/set_rot/_if_save_as_tags.mcfunction.py b/data/b7s/functions/entity/back/set_rot/_if_save_as_tags.mcfunction.py deleted file mode 100644 index 81dd9cf..0000000 --- a/data/b7s/functions/entity/back/set_rot/_if_save_as_tags.mcfunction.py +++ /dev/null @@ -1,34 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -print('# This Source Code Form is subject to the terms of the Mozilla Public') -print('# License, v. 2.0. If a copy of the MPL was not distributed with this') -print('# file, You can obtain one at http://mozilla.org/MPL/2.0/.') - -print() -for exponent in range(7, -1, -1): - print('scoreboard players tag @s remove b7s:back_rot_x_{}'.format(exponent)) - -print() -for exponent in range(8, -1, -1): - print('scoreboard players tag @s remove b7s:back_rot_y_{}'.format(exponent)) - -print() -print('scoreboard players operation @s b7s:_tmp = @s b7s:rot_x') -print('scoreboard players add @s b7s:_tmp 90') -for exponent in range(7, -1, -1): - print('scoreboard players tag @s[score_b7s:_tmp_min={}] add b7s:back_rot_x_{}'.format(2 ** exponent, exponent)) - if exponent != 0: - print('scoreboard players remove @s[score_b7s:_tmp_min={0}] b7s:_tmp {0}'.format(2 ** exponent)) - -print() -print('scoreboard players operation @s b7s:_tmp = @s b7s:rot_y') -print('scoreboard players add @s b7s:_tmp 180') -for exponent in range(8, -1, -1): - print('scoreboard players tag @s[score_b7s:_tmp_min={}] add b7s:back_rot_y_{}'.format(2 ** exponent, exponent)) - if exponent != 0: - print('scoreboard players remove @s[score_b7s:_tmp_min={0}] b7s:_tmp {0}'.format(2 ** exponent)) - -print() -print('scoreboard players tag @s add b7s:back_rot_tags_set') diff --git a/data/b7s/functions/entity/back/set_rot/_perform.mcfunction b/data/b7s/functions/entity/back/set_rot/_perform.mcfunction deleted file mode 100644 index 767b687..0000000 --- a/data/b7s/functions/entity/back/set_rot/_perform.mcfunction +++ /dev/null @@ -1,6 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -function b7s:entity/back/set_rot/_unless_save_as_tags unless @s[tag=b7s:back_as_tags] -function b7s:entity/back/set_rot/_if_save_as_tags if @s[tag=b7s:back_as_tags] diff --git a/data/b7s/functions/entity/back/set_rot/_unless_save_as_tags.mcfunction b/data/b7s/functions/entity/back/set_rot/_unless_save_as_tags.mcfunction deleted file mode 100644 index 7db14b7..0000000 --- a/data/b7s/functions/entity/back/set_rot/_unless_save_as_tags.mcfunction +++ /dev/null @@ -1,8 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -scoreboard players operation @s b7s:back_rot_x = @s b7s:rot_x -scoreboard players operation @s b7s:back_rot_y = @s b7s:rot_y - -scoreboard players tag @s remove b7s:back_rot_tags_set diff --git a/data/b7s/functions/entity/back/unset_dim.mcfunction b/data/b7s/functions/entity/back/unset_dim.mcfunction deleted file mode 100644 index 04b8a29..0000000 --- a/data/b7s/functions/entity/back/unset_dim.mcfunction +++ /dev/null @@ -1,12 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -# Unsets the back dimension of a player or entity. -# -# Usage: -# /execute ~ ~ ~ function b7s:entity/back/unset_dim - -scoreboard players tag @s remove b7s:back_dim_tags_set - -scoreboard players reset @s b7s:back_dim diff --git a/data/b7s/functions/entity/back/unset_loc.mcfunction b/data/b7s/functions/entity/back/unset_loc.mcfunction index f5063f4..e75735a 100644 --- a/data/b7s/functions/entity/back/unset_loc.mcfunction +++ b/data/b7s/functions/entity/back/unset_loc.mcfunction @@ -5,8 +5,217 @@ # Unsets the back location of a player or entity. # # Usage: -# /execute ~ ~ ~ function b7s:entity/back/unset_loc +# /execute as run function b7s:entity/back/unset_loc -function b7s:entity/back/unset_dim -function b7s:entity/back/unset_pos -function b7s:entity/back/unset_rot +scoreboard players reset @s b7s.back_dim +scoreboard players reset @s b7s.back_x +scoreboard players reset @s b7s.back_y +scoreboard players reset @s b7s.back_z +scoreboard players reset @s b7s.back_rot_x +scoreboard players reset @s b7s.back_rot_y + +tag @s remove b7s.back_dim_0 +tag @s remove b7s.back_dim_1 +tag @s remove b7s.back_dim_2 +tag @s remove b7s.back_dim_3 +tag @s remove b7s.back_dim_4 +tag @s remove b7s.back_dim_5 +tag @s remove b7s.back_dim_6 +tag @s remove b7s.back_dim_7 +tag @s remove b7s.back_dim_8 +tag @s remove b7s.back_dim_9 +tag @s remove b7s.back_dim_10 +tag @s remove b7s.back_dim_11 +tag @s remove b7s.back_dim_12 +tag @s remove b7s.back_dim_13 +tag @s remove b7s.back_dim_14 +tag @s remove b7s.back_dim_15 +tag @s remove b7s.back_dim_16 +tag @s remove b7s.back_dim_17 +tag @s remove b7s.back_dim_18 +tag @s remove b7s.back_dim_19 +tag @s remove b7s.back_dim_20 +tag @s remove b7s.back_dim_21 +tag @s remove b7s.back_dim_22 +tag @s remove b7s.back_dim_23 +tag @s remove b7s.back_dim_24 +tag @s remove b7s.back_dim_25 +tag @s remove b7s.back_dim_26 +tag @s remove b7s.back_dim_27 +tag @s remove b7s.back_dim_28 +tag @s remove b7s.back_dim_29 +tag @s remove b7s.back_dim_30 +tag @s remove b7s.back_dim_31 +tag @s remove b7s.back_dim_set + +tag @s remove b7s.back_x_0 +tag @s remove b7s.back_x_1 +tag @s remove b7s.back_x_2 +tag @s remove b7s.back_x_3 +tag @s remove b7s.back_x_4 +tag @s remove b7s.back_x_5 +tag @s remove b7s.back_x_6 +tag @s remove b7s.back_x_7 +tag @s remove b7s.back_x_8 +tag @s remove b7s.back_x_9 +tag @s remove b7s.back_x_10 +tag @s remove b7s.back_x_11 +tag @s remove b7s.back_x_12 +tag @s remove b7s.back_x_13 +tag @s remove b7s.back_x_14 +tag @s remove b7s.back_x_15 +tag @s remove b7s.back_x_16 +tag @s remove b7s.back_x_17 +tag @s remove b7s.back_x_18 +tag @s remove b7s.back_x_19 +tag @s remove b7s.back_x_20 +tag @s remove b7s.back_x_21 +tag @s remove b7s.back_x_22 +tag @s remove b7s.back_x_23 +tag @s remove b7s.back_x_24 +tag @s remove b7s.back_x_25 +tag @s remove b7s.back_x_26 +tag @s remove b7s.back_x_27 +tag @s remove b7s.back_x_28 +tag @s remove b7s.back_x_29 +tag @s remove b7s.back_x_30 +tag @s remove b7s.back_x_31 +tag @s remove b7s.back_x_set + +tag @s remove b7s.back_y_0 +tag @s remove b7s.back_y_1 +tag @s remove b7s.back_y_2 +tag @s remove b7s.back_y_3 +tag @s remove b7s.back_y_4 +tag @s remove b7s.back_y_5 +tag @s remove b7s.back_y_6 +tag @s remove b7s.back_y_7 +tag @s remove b7s.back_y_8 +tag @s remove b7s.back_y_9 +tag @s remove b7s.back_y_10 +tag @s remove b7s.back_y_11 +tag @s remove b7s.back_y_12 +tag @s remove b7s.back_y_13 +tag @s remove b7s.back_y_14 +tag @s remove b7s.back_y_15 +tag @s remove b7s.back_y_16 +tag @s remove b7s.back_y_17 +tag @s remove b7s.back_y_18 +tag @s remove b7s.back_y_19 +tag @s remove b7s.back_y_20 +tag @s remove b7s.back_y_21 +tag @s remove b7s.back_y_22 +tag @s remove b7s.back_y_23 +tag @s remove b7s.back_y_24 +tag @s remove b7s.back_y_25 +tag @s remove b7s.back_y_26 +tag @s remove b7s.back_y_27 +tag @s remove b7s.back_y_28 +tag @s remove b7s.back_y_29 +tag @s remove b7s.back_y_30 +tag @s remove b7s.back_y_31 +tag @s remove b7s.back_y_set + +tag @s remove b7s.back_z_0 +tag @s remove b7s.back_z_1 +tag @s remove b7s.back_z_2 +tag @s remove b7s.back_z_3 +tag @s remove b7s.back_z_4 +tag @s remove b7s.back_z_5 +tag @s remove b7s.back_z_6 +tag @s remove b7s.back_z_7 +tag @s remove b7s.back_z_8 +tag @s remove b7s.back_z_9 +tag @s remove b7s.back_z_10 +tag @s remove b7s.back_z_11 +tag @s remove b7s.back_z_12 +tag @s remove b7s.back_z_13 +tag @s remove b7s.back_z_14 +tag @s remove b7s.back_z_15 +tag @s remove b7s.back_z_16 +tag @s remove b7s.back_z_17 +tag @s remove b7s.back_z_18 +tag @s remove b7s.back_z_19 +tag @s remove b7s.back_z_20 +tag @s remove b7s.back_z_21 +tag @s remove b7s.back_z_22 +tag @s remove b7s.back_z_23 +tag @s remove b7s.back_z_24 +tag @s remove b7s.back_z_25 +tag @s remove b7s.back_z_26 +tag @s remove b7s.back_z_27 +tag @s remove b7s.back_z_28 +tag @s remove b7s.back_z_29 +tag @s remove b7s.back_z_30 +tag @s remove b7s.back_z_31 +tag @s remove b7s.back_z_set + +tag @s remove b7s.back_rot_x_0 +tag @s remove b7s.back_rot_x_1 +tag @s remove b7s.back_rot_x_2 +tag @s remove b7s.back_rot_x_3 +tag @s remove b7s.back_rot_x_4 +tag @s remove b7s.back_rot_x_5 +tag @s remove b7s.back_rot_x_6 +tag @s remove b7s.back_rot_x_7 +tag @s remove b7s.back_rot_x_8 +tag @s remove b7s.back_rot_x_9 +tag @s remove b7s.back_rot_x_10 +tag @s remove b7s.back_rot_x_11 +tag @s remove b7s.back_rot_x_12 +tag @s remove b7s.back_rot_x_13 +tag @s remove b7s.back_rot_x_14 +tag @s remove b7s.back_rot_x_15 +tag @s remove b7s.back_rot_x_16 +tag @s remove b7s.back_rot_x_17 +tag @s remove b7s.back_rot_x_18 +tag @s remove b7s.back_rot_x_19 +tag @s remove b7s.back_rot_x_20 +tag @s remove b7s.back_rot_x_21 +tag @s remove b7s.back_rot_x_22 +tag @s remove b7s.back_rot_x_23 +tag @s remove b7s.back_rot_x_24 +tag @s remove b7s.back_rot_x_25 +tag @s remove b7s.back_rot_x_26 +tag @s remove b7s.back_rot_x_27 +tag @s remove b7s.back_rot_x_28 +tag @s remove b7s.back_rot_x_29 +tag @s remove b7s.back_rot_x_30 +tag @s remove b7s.back_rot_x_31 +tag @s remove b7s.back_rot_x_set + +tag @s remove b7s.back_rot_y_0 +tag @s remove b7s.back_rot_y_1 +tag @s remove b7s.back_rot_y_2 +tag @s remove b7s.back_rot_y_3 +tag @s remove b7s.back_rot_y_4 +tag @s remove b7s.back_rot_y_5 +tag @s remove b7s.back_rot_y_6 +tag @s remove b7s.back_rot_y_7 +tag @s remove b7s.back_rot_y_8 +tag @s remove b7s.back_rot_y_9 +tag @s remove b7s.back_rot_y_10 +tag @s remove b7s.back_rot_y_11 +tag @s remove b7s.back_rot_y_12 +tag @s remove b7s.back_rot_y_13 +tag @s remove b7s.back_rot_y_14 +tag @s remove b7s.back_rot_y_15 +tag @s remove b7s.back_rot_y_16 +tag @s remove b7s.back_rot_y_17 +tag @s remove b7s.back_rot_y_18 +tag @s remove b7s.back_rot_y_19 +tag @s remove b7s.back_rot_y_20 +tag @s remove b7s.back_rot_y_21 +tag @s remove b7s.back_rot_y_22 +tag @s remove b7s.back_rot_y_23 +tag @s remove b7s.back_rot_y_24 +tag @s remove b7s.back_rot_y_25 +tag @s remove b7s.back_rot_y_26 +tag @s remove b7s.back_rot_y_27 +tag @s remove b7s.back_rot_y_28 +tag @s remove b7s.back_rot_y_29 +tag @s remove b7s.back_rot_y_30 +tag @s remove b7s.back_rot_y_31 +tag @s remove b7s.back_rot_y_set + +tag @s remove b7s.back_loc_set diff --git a/data/b7s/functions/entity/back/unset_loc.mcfunction.py b/data/b7s/functions/entity/back/unset_loc.mcfunction.py new file mode 100644 index 0000000..9840fb1 --- /dev/null +++ b/data/b7s/functions/entity/back/unset_loc.mcfunction.py @@ -0,0 +1,53 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. + +print('# This Source Code Form is subject to the terms of the Mozilla Public') +print('# License, v. 2.0. If a copy of the MPL was not distributed with this') +print('# file, You can obtain one at http://mozilla.org/MPL/2.0/.') +print() +print('# Unsets the back location of a player or entity.') +print('#') +print('# Usage:') +print('# /execute as run function b7s:entity/back/unset_loc') +print() + +print('scoreboard players reset @s b7s.back_dim') +print('scoreboard players reset @s b7s.back_x') +print('scoreboard players reset @s b7s.back_y') +print('scoreboard players reset @s b7s.back_z') +print('scoreboard players reset @s b7s.back_rot_x') +print('scoreboard players reset @s b7s.back_rot_y') +print() + +for i in range(32): + print('tag @s remove b7s.back_dim_{}'.format(i)) +print('tag @s remove b7s.back_dim_set') +print() + +for i in range(32): + print('tag @s remove b7s.back_x_{}'.format(i)) +print('tag @s remove b7s.back_x_set') +print() + +for i in range(32): + print('tag @s remove b7s.back_y_{}'.format(i)) +print('tag @s remove b7s.back_y_set') +print() + +for i in range(32): + print('tag @s remove b7s.back_z_{}'.format(i)) +print('tag @s remove b7s.back_z_set') +print() + +for i in range(32): + print('tag @s remove b7s.back_rot_x_{}'.format(i)) +print('tag @s remove b7s.back_rot_x_set') +print() + +for i in range(32): + print('tag @s remove b7s.back_rot_y_{}'.format(i)) +print('tag @s remove b7s.back_rot_y_set') +print() + +print('tag @s remove b7s.back_loc_set') diff --git a/data/b7s/functions/entity/back/unset_pos.mcfunction b/data/b7s/functions/entity/back/unset_pos.mcfunction deleted file mode 100644 index 771abc2..0000000 --- a/data/b7s/functions/entity/back/unset_pos.mcfunction +++ /dev/null @@ -1,15 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -# Unsets the back position of a player or entity. -# -# Usage: -# /execute ~ ~ ~ function b7s:entity/back/unset_pos - -scoreboard players tag @s remove b7s:back_pos_tags_set -scoreboard players tag @s remove b7s:back_rot_tags_set - -scoreboard players reset @s b7s:back_x -scoreboard players reset @s b7s:back_y -scoreboard players reset @s b7s:back_z diff --git a/data/b7s/functions/entity/back/unset_rot.mcfunction b/data/b7s/functions/entity/back/unset_rot.mcfunction deleted file mode 100644 index 73366b3..0000000 --- a/data/b7s/functions/entity/back/unset_rot.mcfunction +++ /dev/null @@ -1,13 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -# Unsets the back rotation of a player or entity. -# -# Usage: -# /execute ~ ~ ~ function b7s:entity/back/unset_rot - -scoreboard players tag @s remove b7s:back_rot_tags_set - -scoreboard players reset @s b7s:back_rot_x -scoreboard players reset @s b7s:back_rot_y diff --git a/data/b7s/functions/entity/check_same_dim.mcfunction b/data/b7s/functions/entity/check_same_dim.mcfunction deleted file mode 100644 index c1b1c4f..0000000 --- a/data/b7s/functions/entity/check_same_dim.mcfunction +++ /dev/null @@ -1,24 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -# Checks whether a player or entity is in the same dimension as its dimension -# score. -# -# Scores required: -# b7s:dim — the dimension to check the entity against -# -# Tags set: -# b7s:same_dim — if the entity is in the same dimension as its dimension score -# -# Usage: -# /scoreboard players set b7s:dim -# /execute ~ ~ ~ function b7s:/entity/check_same_dim - -scoreboard players tag @s remove b7s:same_dim -scoreboard players operation @s b7s:_tmp = @s b7s:dim -function b7s:entity/get_dim -scoreboard players operation @s b7s:_tmp -= @s b7s:dim -scoreboard players tag @s[score_b7s:_tmp_min=0,score_b7s:_tmp=0] add b7s:same_dim -scoreboard players operation @s b7s:_tmp += @s b7s:dim -scoreboard players operation @s b7s:dim = @s b7s:_tmp diff --git a/data/b7s/functions/entity/get_block_dv.mcfunction b/data/b7s/functions/entity/get_block_dv.mcfunction deleted file mode 100644 index bdcdba8..0000000 --- a/data/b7s/functions/entity/get_block_dv.mcfunction +++ /dev/null @@ -1,1663 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -# Gets the numeric data value of the block with coordinates given by the -# position of a player or entity. -# -# Scores set: -# b7s:block_dv — the data value of the block -# -# Usage: -# /execute ~ ~ ~ function b7s:entity/get_block_dv - -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:air 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:stone 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:stone 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:stone 2 scoreboard players set @s b7s:block_dv 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:stone 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:stone 4 scoreboard players set @s b7s:block_dv 4 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:stone 5 scoreboard players set @s b7s:block_dv 5 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:stone 6 scoreboard players set @s b7s:block_dv 6 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:grass 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:dirt 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:dirt 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:dirt 2 scoreboard players set @s b7s:block_dv 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:cobblestone 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:planks 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:planks 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:planks 2 scoreboard players set @s b7s:block_dv 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:planks 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:planks 4 scoreboard players set @s b7s:block_dv 4 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:planks 5 scoreboard players set @s b7s:block_dv 5 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:sapling 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:sapling 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:sapling 2 scoreboard players set @s b7s:block_dv 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:sapling 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:sapling 4 scoreboard players set @s b7s:block_dv 4 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:sapling 5 scoreboard players set @s b7s:block_dv 5 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:sapling 8 scoreboard players set @s b7s:block_dv 8 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:sapling 9 scoreboard players set @s b7s:block_dv 9 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:sapling 10 scoreboard players set @s b7s:block_dv 10 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:sapling 11 scoreboard players set @s b7s:block_dv 11 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:sapling 12 scoreboard players set @s b7s:block_dv 12 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:sapling 13 scoreboard players set @s b7s:block_dv 13 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:bedrock 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:flowing_water 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:flowing_water 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:flowing_water 2 scoreboard players set @s b7s:block_dv 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:flowing_water 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:flowing_water 4 scoreboard players set @s b7s:block_dv 4 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:flowing_water 5 scoreboard players set @s b7s:block_dv 5 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:flowing_water 6 scoreboard players set @s b7s:block_dv 6 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:flowing_water 7 scoreboard players set @s b7s:block_dv 7 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:flowing_water 8 scoreboard players set @s b7s:block_dv 8 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:flowing_water 9 scoreboard players set @s b7s:block_dv 9 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:flowing_water 10 scoreboard players set @s b7s:block_dv 10 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:flowing_water 11 scoreboard players set @s b7s:block_dv 11 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:flowing_water 12 scoreboard players set @s b7s:block_dv 12 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:flowing_water 13 scoreboard players set @s b7s:block_dv 13 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:flowing_water 14 scoreboard players set @s b7s:block_dv 14 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:flowing_water 15 scoreboard players set @s b7s:block_dv 15 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:water 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:water 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:water 2 scoreboard players set @s b7s:block_dv 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:water 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:water 4 scoreboard players set @s b7s:block_dv 4 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:water 5 scoreboard players set @s b7s:block_dv 5 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:water 6 scoreboard players set @s b7s:block_dv 6 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:water 7 scoreboard players set @s b7s:block_dv 7 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:water 8 scoreboard players set @s b7s:block_dv 8 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:water 9 scoreboard players set @s b7s:block_dv 9 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:water 10 scoreboard players set @s b7s:block_dv 10 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:water 11 scoreboard players set @s b7s:block_dv 11 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:water 12 scoreboard players set @s b7s:block_dv 12 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:water 13 scoreboard players set @s b7s:block_dv 13 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:water 14 scoreboard players set @s b7s:block_dv 14 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:water 15 scoreboard players set @s b7s:block_dv 15 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:flowing_lava 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:flowing_lava 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:flowing_lava 2 scoreboard players set @s b7s:block_dv 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:flowing_lava 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:flowing_lava 4 scoreboard players set @s b7s:block_dv 4 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:flowing_lava 5 scoreboard players set @s b7s:block_dv 5 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:flowing_lava 6 scoreboard players set @s b7s:block_dv 6 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:flowing_lava 7 scoreboard players set @s b7s:block_dv 7 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:flowing_lava 8 scoreboard players set @s b7s:block_dv 8 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:flowing_lava 9 scoreboard players set @s b7s:block_dv 9 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:flowing_lava 10 scoreboard players set @s b7s:block_dv 10 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:flowing_lava 11 scoreboard players set @s b7s:block_dv 11 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:flowing_lava 12 scoreboard players set @s b7s:block_dv 12 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:flowing_lava 13 scoreboard players set @s b7s:block_dv 13 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:flowing_lava 14 scoreboard players set @s b7s:block_dv 14 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:flowing_lava 15 scoreboard players set @s b7s:block_dv 15 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:lava 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:lava 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:lava 2 scoreboard players set @s b7s:block_dv 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:lava 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:lava 4 scoreboard players set @s b7s:block_dv 4 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:lava 5 scoreboard players set @s b7s:block_dv 5 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:lava 6 scoreboard players set @s b7s:block_dv 6 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:lava 7 scoreboard players set @s b7s:block_dv 7 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:lava 8 scoreboard players set @s b7s:block_dv 8 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:lava 9 scoreboard players set @s b7s:block_dv 9 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:lava 10 scoreboard players set @s b7s:block_dv 10 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:lava 11 scoreboard players set @s b7s:block_dv 11 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:lava 12 scoreboard players set @s b7s:block_dv 12 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:lava 13 scoreboard players set @s b7s:block_dv 13 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:lava 14 scoreboard players set @s b7s:block_dv 14 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:lava 15 scoreboard players set @s b7s:block_dv 15 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:sand 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:sand 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:gravel 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:gold_ore 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:iron_ore 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:coal_ore 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:log 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:log 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:log 2 scoreboard players set @s b7s:block_dv 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:log 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:log 4 scoreboard players set @s b7s:block_dv 4 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:log 5 scoreboard players set @s b7s:block_dv 5 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:log 6 scoreboard players set @s b7s:block_dv 6 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:log 7 scoreboard players set @s b7s:block_dv 7 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:log 8 scoreboard players set @s b7s:block_dv 8 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:log 9 scoreboard players set @s b7s:block_dv 9 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:log 10 scoreboard players set @s b7s:block_dv 10 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:log 11 scoreboard players set @s b7s:block_dv 11 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:log 12 scoreboard players set @s b7s:block_dv 12 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:log 13 scoreboard players set @s b7s:block_dv 13 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:log 14 scoreboard players set @s b7s:block_dv 14 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:log 15 scoreboard players set @s b7s:block_dv 15 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:leaves 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:leaves 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:leaves 2 scoreboard players set @s b7s:block_dv 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:leaves 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:leaves 4 scoreboard players set @s b7s:block_dv 4 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:leaves 5 scoreboard players set @s b7s:block_dv 5 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:leaves 6 scoreboard players set @s b7s:block_dv 6 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:leaves 7 scoreboard players set @s b7s:block_dv 7 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:leaves 8 scoreboard players set @s b7s:block_dv 8 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:leaves 9 scoreboard players set @s b7s:block_dv 9 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:leaves 10 scoreboard players set @s b7s:block_dv 10 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:leaves 11 scoreboard players set @s b7s:block_dv 11 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:leaves 12 scoreboard players set @s b7s:block_dv 12 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:leaves 13 scoreboard players set @s b7s:block_dv 13 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:leaves 14 scoreboard players set @s b7s:block_dv 14 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:leaves 15 scoreboard players set @s b7s:block_dv 15 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:sponge 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:sponge 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:glass 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:lapis_ore 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:lapis_block 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:dispenser 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:dispenser 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:dispenser 2 scoreboard players set @s b7s:block_dv 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:dispenser 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:dispenser 4 scoreboard players set @s b7s:block_dv 4 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:dispenser 5 scoreboard players set @s b7s:block_dv 5 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:dispenser 8 scoreboard players set @s b7s:block_dv 8 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:dispenser 9 scoreboard players set @s b7s:block_dv 9 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:dispenser 10 scoreboard players set @s b7s:block_dv 10 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:dispenser 11 scoreboard players set @s b7s:block_dv 11 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:dispenser 12 scoreboard players set @s b7s:block_dv 12 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:dispenser 13 scoreboard players set @s b7s:block_dv 13 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:sandstone 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:sandstone 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:sandstone 2 scoreboard players set @s b7s:block_dv 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:noteblock 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:bed 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:bed 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:bed 2 scoreboard players set @s b7s:block_dv 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:bed 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:bed 8 scoreboard players set @s b7s:block_dv 8 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:bed 9 scoreboard players set @s b7s:block_dv 9 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:bed 10 scoreboard players set @s b7s:block_dv 10 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:bed 11 scoreboard players set @s b7s:block_dv 11 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:bed 12 scoreboard players set @s b7s:block_dv 12 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:bed 13 scoreboard players set @s b7s:block_dv 13 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:bed 14 scoreboard players set @s b7s:block_dv 14 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:bed 15 scoreboard players set @s b7s:block_dv 15 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:golden_rail 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:golden_rail 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:golden_rail 2 scoreboard players set @s b7s:block_dv 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:golden_rail 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:golden_rail 4 scoreboard players set @s b7s:block_dv 4 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:golden_rail 5 scoreboard players set @s b7s:block_dv 5 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:golden_rail 8 scoreboard players set @s b7s:block_dv 8 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:golden_rail 9 scoreboard players set @s b7s:block_dv 9 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:golden_rail 10 scoreboard players set @s b7s:block_dv 10 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:golden_rail 11 scoreboard players set @s b7s:block_dv 11 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:golden_rail 12 scoreboard players set @s b7s:block_dv 12 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:golden_rail 13 scoreboard players set @s b7s:block_dv 13 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:detector_rail 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:detector_rail 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:detector_rail 2 scoreboard players set @s b7s:block_dv 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:detector_rail 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:detector_rail 4 scoreboard players set @s b7s:block_dv 4 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:detector_rail 5 scoreboard players set @s b7s:block_dv 5 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:detector_rail 8 scoreboard players set @s b7s:block_dv 8 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:detector_rail 9 scoreboard players set @s b7s:block_dv 9 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:detector_rail 10 scoreboard players set @s b7s:block_dv 10 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:detector_rail 11 scoreboard players set @s b7s:block_dv 11 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:detector_rail 12 scoreboard players set @s b7s:block_dv 12 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:detector_rail 13 scoreboard players set @s b7s:block_dv 13 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:sticky_piston 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:sticky_piston 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:sticky_piston 2 scoreboard players set @s b7s:block_dv 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:sticky_piston 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:sticky_piston 4 scoreboard players set @s b7s:block_dv 4 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:sticky_piston 5 scoreboard players set @s b7s:block_dv 5 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:sticky_piston 8 scoreboard players set @s b7s:block_dv 8 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:sticky_piston 9 scoreboard players set @s b7s:block_dv 9 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:sticky_piston 10 scoreboard players set @s b7s:block_dv 10 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:sticky_piston 11 scoreboard players set @s b7s:block_dv 11 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:sticky_piston 12 scoreboard players set @s b7s:block_dv 12 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:sticky_piston 13 scoreboard players set @s b7s:block_dv 13 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:web 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:tallgrass 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:tallgrass 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:tallgrass 2 scoreboard players set @s b7s:block_dv 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:deadbush 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:piston 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:piston 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:piston 2 scoreboard players set @s b7s:block_dv 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:piston 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:piston 4 scoreboard players set @s b7s:block_dv 4 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:piston 5 scoreboard players set @s b7s:block_dv 5 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:piston 8 scoreboard players set @s b7s:block_dv 8 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:piston 9 scoreboard players set @s b7s:block_dv 9 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:piston 10 scoreboard players set @s b7s:block_dv 10 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:piston 11 scoreboard players set @s b7s:block_dv 11 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:piston 12 scoreboard players set @s b7s:block_dv 12 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:piston 13 scoreboard players set @s b7s:block_dv 13 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:piston_head 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:piston_head 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:piston_head 2 scoreboard players set @s b7s:block_dv 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:piston_head 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:piston_head 4 scoreboard players set @s b7s:block_dv 4 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:piston_head 5 scoreboard players set @s b7s:block_dv 5 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:piston_head 8 scoreboard players set @s b7s:block_dv 8 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:piston_head 9 scoreboard players set @s b7s:block_dv 9 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:piston_head 10 scoreboard players set @s b7s:block_dv 10 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:piston_head 11 scoreboard players set @s b7s:block_dv 11 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:piston_head 12 scoreboard players set @s b7s:block_dv 12 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:piston_head 13 scoreboard players set @s b7s:block_dv 13 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:wool 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:wool 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:wool 2 scoreboard players set @s b7s:block_dv 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:wool 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:wool 4 scoreboard players set @s b7s:block_dv 4 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:wool 5 scoreboard players set @s b7s:block_dv 5 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:wool 6 scoreboard players set @s b7s:block_dv 6 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:wool 7 scoreboard players set @s b7s:block_dv 7 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:wool 8 scoreboard players set @s b7s:block_dv 8 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:wool 9 scoreboard players set @s b7s:block_dv 9 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:wool 10 scoreboard players set @s b7s:block_dv 10 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:wool 11 scoreboard players set @s b7s:block_dv 11 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:wool 12 scoreboard players set @s b7s:block_dv 12 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:wool 13 scoreboard players set @s b7s:block_dv 13 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:wool 14 scoreboard players set @s b7s:block_dv 14 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:wool 15 scoreboard players set @s b7s:block_dv 15 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:piston_extension 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:piston_extension 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:piston_extension 2 scoreboard players set @s b7s:block_dv 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:piston_extension 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:piston_extension 4 scoreboard players set @s b7s:block_dv 4 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:piston_extension 5 scoreboard players set @s b7s:block_dv 5 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:piston_extension 8 scoreboard players set @s b7s:block_dv 8 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:piston_extension 9 scoreboard players set @s b7s:block_dv 9 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:piston_extension 10 scoreboard players set @s b7s:block_dv 10 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:piston_extension 11 scoreboard players set @s b7s:block_dv 11 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:piston_extension 12 scoreboard players set @s b7s:block_dv 12 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:piston_extension 13 scoreboard players set @s b7s:block_dv 13 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:yellow_flower 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:red_flower 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:red_flower 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:red_flower 2 scoreboard players set @s b7s:block_dv 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:red_flower 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:red_flower 4 scoreboard players set @s b7s:block_dv 4 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:red_flower 5 scoreboard players set @s b7s:block_dv 5 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:red_flower 6 scoreboard players set @s b7s:block_dv 6 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:red_flower 7 scoreboard players set @s b7s:block_dv 7 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:red_flower 8 scoreboard players set @s b7s:block_dv 8 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:brown_mushroom 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:red_mushroom 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:gold_block 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:iron_block 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:double_stone_slab 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:double_stone_slab 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:double_stone_slab 2 scoreboard players set @s b7s:block_dv 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:double_stone_slab 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:double_stone_slab 4 scoreboard players set @s b7s:block_dv 4 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:double_stone_slab 5 scoreboard players set @s b7s:block_dv 5 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:double_stone_slab 6 scoreboard players set @s b7s:block_dv 6 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:double_stone_slab 7 scoreboard players set @s b7s:block_dv 7 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:double_stone_slab 8 scoreboard players set @s b7s:block_dv 8 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:double_stone_slab 9 scoreboard players set @s b7s:block_dv 9 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:double_stone_slab 10 scoreboard players set @s b7s:block_dv 10 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:double_stone_slab 11 scoreboard players set @s b7s:block_dv 11 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:double_stone_slab 12 scoreboard players set @s b7s:block_dv 12 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:double_stone_slab 13 scoreboard players set @s b7s:block_dv 13 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:double_stone_slab 14 scoreboard players set @s b7s:block_dv 14 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:double_stone_slab 15 scoreboard players set @s b7s:block_dv 15 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:stone_slab 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:stone_slab 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:stone_slab 2 scoreboard players set @s b7s:block_dv 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:stone_slab 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:stone_slab 4 scoreboard players set @s b7s:block_dv 4 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:stone_slab 5 scoreboard players set @s b7s:block_dv 5 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:stone_slab 6 scoreboard players set @s b7s:block_dv 6 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:stone_slab 7 scoreboard players set @s b7s:block_dv 7 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:stone_slab 8 scoreboard players set @s b7s:block_dv 8 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:stone_slab 9 scoreboard players set @s b7s:block_dv 9 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:stone_slab 10 scoreboard players set @s b7s:block_dv 10 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:stone_slab 11 scoreboard players set @s b7s:block_dv 11 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:stone_slab 12 scoreboard players set @s b7s:block_dv 12 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:stone_slab 13 scoreboard players set @s b7s:block_dv 13 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:stone_slab 14 scoreboard players set @s b7s:block_dv 14 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:stone_slab 15 scoreboard players set @s b7s:block_dv 15 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:brick_block 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:tnt 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:tnt 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:bookshelf 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:mossy_cobblestone 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:obsidian 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:torch 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:torch 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:torch 2 scoreboard players set @s b7s:block_dv 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:torch 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:torch 4 scoreboard players set @s b7s:block_dv 4 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:fire 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:fire 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:fire 2 scoreboard players set @s b7s:block_dv 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:fire 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:fire 4 scoreboard players set @s b7s:block_dv 4 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:fire 5 scoreboard players set @s b7s:block_dv 5 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:fire 6 scoreboard players set @s b7s:block_dv 6 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:fire 7 scoreboard players set @s b7s:block_dv 7 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:fire 8 scoreboard players set @s b7s:block_dv 8 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:fire 9 scoreboard players set @s b7s:block_dv 9 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:fire 10 scoreboard players set @s b7s:block_dv 10 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:fire 11 scoreboard players set @s b7s:block_dv 11 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:fire 12 scoreboard players set @s b7s:block_dv 12 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:fire 13 scoreboard players set @s b7s:block_dv 13 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:fire 14 scoreboard players set @s b7s:block_dv 14 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:fire 15 scoreboard players set @s b7s:block_dv 15 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:mob_spawner 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:oak_stairs 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:oak_stairs 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:oak_stairs 2 scoreboard players set @s b7s:block_dv 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:oak_stairs 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:oak_stairs 4 scoreboard players set @s b7s:block_dv 4 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:oak_stairs 5 scoreboard players set @s b7s:block_dv 5 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:oak_stairs 6 scoreboard players set @s b7s:block_dv 6 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:oak_stairs 7 scoreboard players set @s b7s:block_dv 7 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:chest 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:chest 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:chest 4 scoreboard players set @s b7s:block_dv 4 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:chest 5 scoreboard players set @s b7s:block_dv 5 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:redstone_wire 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:redstone_wire 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:redstone_wire 2 scoreboard players set @s b7s:block_dv 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:redstone_wire 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:redstone_wire 4 scoreboard players set @s b7s:block_dv 4 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:redstone_wire 5 scoreboard players set @s b7s:block_dv 5 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:redstone_wire 6 scoreboard players set @s b7s:block_dv 6 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:redstone_wire 7 scoreboard players set @s b7s:block_dv 7 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:redstone_wire 8 scoreboard players set @s b7s:block_dv 8 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:redstone_wire 9 scoreboard players set @s b7s:block_dv 9 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:redstone_wire 10 scoreboard players set @s b7s:block_dv 10 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:redstone_wire 11 scoreboard players set @s b7s:block_dv 11 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:redstone_wire 12 scoreboard players set @s b7s:block_dv 12 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:redstone_wire 13 scoreboard players set @s b7s:block_dv 13 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:redstone_wire 14 scoreboard players set @s b7s:block_dv 14 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:redstone_wire 15 scoreboard players set @s b7s:block_dv 15 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:diamond_ore 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:diamond_block 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:crafting_table 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:wheat 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:wheat 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:wheat 2 scoreboard players set @s b7s:block_dv 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:wheat 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:wheat 4 scoreboard players set @s b7s:block_dv 4 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:wheat 5 scoreboard players set @s b7s:block_dv 5 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:wheat 6 scoreboard players set @s b7s:block_dv 6 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:wheat 7 scoreboard players set @s b7s:block_dv 7 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:farmland 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:farmland 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:farmland 2 scoreboard players set @s b7s:block_dv 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:farmland 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:farmland 4 scoreboard players set @s b7s:block_dv 4 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:farmland 5 scoreboard players set @s b7s:block_dv 5 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:farmland 6 scoreboard players set @s b7s:block_dv 6 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:farmland 7 scoreboard players set @s b7s:block_dv 7 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:furnace 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:furnace 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:furnace 4 scoreboard players set @s b7s:block_dv 4 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:furnace 5 scoreboard players set @s b7s:block_dv 5 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:lit_furnace 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:lit_furnace 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:lit_furnace 4 scoreboard players set @s b7s:block_dv 4 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:lit_furnace 5 scoreboard players set @s b7s:block_dv 5 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:standing_sign 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:standing_sign 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:standing_sign 2 scoreboard players set @s b7s:block_dv 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:standing_sign 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:standing_sign 4 scoreboard players set @s b7s:block_dv 4 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:standing_sign 5 scoreboard players set @s b7s:block_dv 5 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:standing_sign 6 scoreboard players set @s b7s:block_dv 6 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:standing_sign 7 scoreboard players set @s b7s:block_dv 7 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:standing_sign 8 scoreboard players set @s b7s:block_dv 8 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:standing_sign 9 scoreboard players set @s b7s:block_dv 9 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:standing_sign 10 scoreboard players set @s b7s:block_dv 10 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:standing_sign 11 scoreboard players set @s b7s:block_dv 11 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:standing_sign 12 scoreboard players set @s b7s:block_dv 12 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:standing_sign 13 scoreboard players set @s b7s:block_dv 13 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:standing_sign 14 scoreboard players set @s b7s:block_dv 14 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:standing_sign 15 scoreboard players set @s b7s:block_dv 15 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:wooden_door 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:wooden_door 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:wooden_door 2 scoreboard players set @s b7s:block_dv 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:wooden_door 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:wooden_door 4 scoreboard players set @s b7s:block_dv 4 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:wooden_door 5 scoreboard players set @s b7s:block_dv 5 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:wooden_door 6 scoreboard players set @s b7s:block_dv 6 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:wooden_door 7 scoreboard players set @s b7s:block_dv 7 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:wooden_door 8 scoreboard players set @s b7s:block_dv 8 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:wooden_door 9 scoreboard players set @s b7s:block_dv 9 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:wooden_door 10 scoreboard players set @s b7s:block_dv 10 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:wooden_door 11 scoreboard players set @s b7s:block_dv 11 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:ladder 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:ladder 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:ladder 4 scoreboard players set @s b7s:block_dv 4 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:ladder 5 scoreboard players set @s b7s:block_dv 5 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:rail 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:rail 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:rail 2 scoreboard players set @s b7s:block_dv 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:rail 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:rail 4 scoreboard players set @s b7s:block_dv 4 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:rail 5 scoreboard players set @s b7s:block_dv 5 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:rail 6 scoreboard players set @s b7s:block_dv 6 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:rail 7 scoreboard players set @s b7s:block_dv 7 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:rail 8 scoreboard players set @s b7s:block_dv 8 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:rail 9 scoreboard players set @s b7s:block_dv 9 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:stone_stairs 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:stone_stairs 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:stone_stairs 2 scoreboard players set @s b7s:block_dv 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:stone_stairs 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:stone_stairs 4 scoreboard players set @s b7s:block_dv 4 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:stone_stairs 5 scoreboard players set @s b7s:block_dv 5 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:stone_stairs 6 scoreboard players set @s b7s:block_dv 6 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:stone_stairs 7 scoreboard players set @s b7s:block_dv 7 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:wall_sign 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:wall_sign 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:wall_sign 4 scoreboard players set @s b7s:block_dv 4 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:wall_sign 5 scoreboard players set @s b7s:block_dv 5 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:lever 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:lever 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:lever 2 scoreboard players set @s b7s:block_dv 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:lever 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:lever 4 scoreboard players set @s b7s:block_dv 4 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:lever 5 scoreboard players set @s b7s:block_dv 5 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:lever 6 scoreboard players set @s b7s:block_dv 6 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:lever 7 scoreboard players set @s b7s:block_dv 7 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:lever 8 scoreboard players set @s b7s:block_dv 8 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:lever 9 scoreboard players set @s b7s:block_dv 9 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:lever 10 scoreboard players set @s b7s:block_dv 10 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:lever 11 scoreboard players set @s b7s:block_dv 11 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:lever 12 scoreboard players set @s b7s:block_dv 12 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:lever 13 scoreboard players set @s b7s:block_dv 13 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:lever 14 scoreboard players set @s b7s:block_dv 14 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:lever 15 scoreboard players set @s b7s:block_dv 15 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:stone_pressure_plate 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:stone_pressure_plate 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:iron_door 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:iron_door 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:iron_door 2 scoreboard players set @s b7s:block_dv 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:iron_door 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:iron_door 4 scoreboard players set @s b7s:block_dv 4 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:iron_door 5 scoreboard players set @s b7s:block_dv 5 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:iron_door 6 scoreboard players set @s b7s:block_dv 6 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:iron_door 7 scoreboard players set @s b7s:block_dv 7 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:iron_door 8 scoreboard players set @s b7s:block_dv 8 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:iron_door 9 scoreboard players set @s b7s:block_dv 9 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:iron_door 10 scoreboard players set @s b7s:block_dv 10 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:iron_door 11 scoreboard players set @s b7s:block_dv 11 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:wooden_pressure_plate 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:wooden_pressure_plate 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:redstone_ore 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:lit_redstone_ore 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:unlit_redstone_torch 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:unlit_redstone_torch 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:unlit_redstone_torch 2 scoreboard players set @s b7s:block_dv 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:unlit_redstone_torch 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:unlit_redstone_torch 4 scoreboard players set @s b7s:block_dv 4 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:redstone_torch 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:redstone_torch 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:redstone_torch 2 scoreboard players set @s b7s:block_dv 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:redstone_torch 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:redstone_torch 4 scoreboard players set @s b7s:block_dv 4 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:stone_button 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:stone_button 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:stone_button 2 scoreboard players set @s b7s:block_dv 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:stone_button 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:stone_button 4 scoreboard players set @s b7s:block_dv 4 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:stone_button 5 scoreboard players set @s b7s:block_dv 5 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:stone_button 8 scoreboard players set @s b7s:block_dv 8 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:stone_button 9 scoreboard players set @s b7s:block_dv 9 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:stone_button 10 scoreboard players set @s b7s:block_dv 10 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:stone_button 11 scoreboard players set @s b7s:block_dv 11 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:stone_button 12 scoreboard players set @s b7s:block_dv 12 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:stone_button 13 scoreboard players set @s b7s:block_dv 13 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:snow_layer 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:snow_layer 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:snow_layer 2 scoreboard players set @s b7s:block_dv 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:snow_layer 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:snow_layer 4 scoreboard players set @s b7s:block_dv 4 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:snow_layer 5 scoreboard players set @s b7s:block_dv 5 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:snow_layer 6 scoreboard players set @s b7s:block_dv 6 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:snow_layer 7 scoreboard players set @s b7s:block_dv 7 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:ice 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:snow 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:cactus 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:cactus 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:cactus 2 scoreboard players set @s b7s:block_dv 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:cactus 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:cactus 4 scoreboard players set @s b7s:block_dv 4 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:cactus 5 scoreboard players set @s b7s:block_dv 5 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:cactus 6 scoreboard players set @s b7s:block_dv 6 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:cactus 7 scoreboard players set @s b7s:block_dv 7 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:cactus 8 scoreboard players set @s b7s:block_dv 8 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:cactus 9 scoreboard players set @s b7s:block_dv 9 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:cactus 10 scoreboard players set @s b7s:block_dv 10 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:cactus 11 scoreboard players set @s b7s:block_dv 11 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:cactus 12 scoreboard players set @s b7s:block_dv 12 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:cactus 13 scoreboard players set @s b7s:block_dv 13 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:cactus 14 scoreboard players set @s b7s:block_dv 14 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:cactus 15 scoreboard players set @s b7s:block_dv 15 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:clay 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:reeds 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:reeds 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:reeds 2 scoreboard players set @s b7s:block_dv 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:reeds 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:reeds 4 scoreboard players set @s b7s:block_dv 4 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:reeds 5 scoreboard players set @s b7s:block_dv 5 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:reeds 6 scoreboard players set @s b7s:block_dv 6 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:reeds 7 scoreboard players set @s b7s:block_dv 7 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:reeds 8 scoreboard players set @s b7s:block_dv 8 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:reeds 9 scoreboard players set @s b7s:block_dv 9 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:reeds 10 scoreboard players set @s b7s:block_dv 10 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:reeds 11 scoreboard players set @s b7s:block_dv 11 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:reeds 12 scoreboard players set @s b7s:block_dv 12 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:reeds 13 scoreboard players set @s b7s:block_dv 13 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:reeds 14 scoreboard players set @s b7s:block_dv 14 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:reeds 15 scoreboard players set @s b7s:block_dv 15 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:jukebox 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:jukebox 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:fence 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:pumpkin 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:pumpkin 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:pumpkin 2 scoreboard players set @s b7s:block_dv 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:pumpkin 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:netherrack 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:soul_sand 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:glowstone 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:portal 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:portal 2 scoreboard players set @s b7s:block_dv 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:lit_pumpkin 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:lit_pumpkin 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:lit_pumpkin 2 scoreboard players set @s b7s:block_dv 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:lit_pumpkin 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:cake 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:cake 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:cake 2 scoreboard players set @s b7s:block_dv 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:cake 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:cake 4 scoreboard players set @s b7s:block_dv 4 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:cake 5 scoreboard players set @s b7s:block_dv 5 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:cake 6 scoreboard players set @s b7s:block_dv 6 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:unpowered_repeater 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:unpowered_repeater 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:unpowered_repeater 2 scoreboard players set @s b7s:block_dv 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:unpowered_repeater 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:unpowered_repeater 4 scoreboard players set @s b7s:block_dv 4 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:unpowered_repeater 5 scoreboard players set @s b7s:block_dv 5 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:unpowered_repeater 6 scoreboard players set @s b7s:block_dv 6 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:unpowered_repeater 7 scoreboard players set @s b7s:block_dv 7 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:unpowered_repeater 8 scoreboard players set @s b7s:block_dv 8 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:unpowered_repeater 9 scoreboard players set @s b7s:block_dv 9 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:unpowered_repeater 10 scoreboard players set @s b7s:block_dv 10 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:unpowered_repeater 11 scoreboard players set @s b7s:block_dv 11 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:unpowered_repeater 12 scoreboard players set @s b7s:block_dv 12 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:unpowered_repeater 13 scoreboard players set @s b7s:block_dv 13 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:unpowered_repeater 14 scoreboard players set @s b7s:block_dv 14 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:unpowered_repeater 15 scoreboard players set @s b7s:block_dv 15 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:powered_repeater 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:powered_repeater 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:powered_repeater 2 scoreboard players set @s b7s:block_dv 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:powered_repeater 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:powered_repeater 4 scoreboard players set @s b7s:block_dv 4 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:powered_repeater 5 scoreboard players set @s b7s:block_dv 5 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:powered_repeater 6 scoreboard players set @s b7s:block_dv 6 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:powered_repeater 7 scoreboard players set @s b7s:block_dv 7 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:powered_repeater 8 scoreboard players set @s b7s:block_dv 8 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:powered_repeater 9 scoreboard players set @s b7s:block_dv 9 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:powered_repeater 10 scoreboard players set @s b7s:block_dv 10 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:powered_repeater 11 scoreboard players set @s b7s:block_dv 11 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:powered_repeater 12 scoreboard players set @s b7s:block_dv 12 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:powered_repeater 13 scoreboard players set @s b7s:block_dv 13 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:powered_repeater 14 scoreboard players set @s b7s:block_dv 14 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:powered_repeater 15 scoreboard players set @s b7s:block_dv 15 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:stained_glass 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:stained_glass 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:stained_glass 2 scoreboard players set @s b7s:block_dv 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:stained_glass 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:stained_glass 4 scoreboard players set @s b7s:block_dv 4 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:stained_glass 5 scoreboard players set @s b7s:block_dv 5 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:stained_glass 6 scoreboard players set @s b7s:block_dv 6 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:stained_glass 7 scoreboard players set @s b7s:block_dv 7 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:stained_glass 8 scoreboard players set @s b7s:block_dv 8 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:stained_glass 9 scoreboard players set @s b7s:block_dv 9 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:stained_glass 10 scoreboard players set @s b7s:block_dv 10 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:stained_glass 11 scoreboard players set @s b7s:block_dv 11 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:stained_glass 12 scoreboard players set @s b7s:block_dv 12 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:stained_glass 13 scoreboard players set @s b7s:block_dv 13 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:stained_glass 14 scoreboard players set @s b7s:block_dv 14 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:stained_glass 15 scoreboard players set @s b7s:block_dv 15 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:trapdoor 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:trapdoor 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:trapdoor 2 scoreboard players set @s b7s:block_dv 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:trapdoor 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:trapdoor 4 scoreboard players set @s b7s:block_dv 4 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:trapdoor 5 scoreboard players set @s b7s:block_dv 5 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:trapdoor 6 scoreboard players set @s b7s:block_dv 6 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:trapdoor 7 scoreboard players set @s b7s:block_dv 7 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:trapdoor 8 scoreboard players set @s b7s:block_dv 8 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:trapdoor 9 scoreboard players set @s b7s:block_dv 9 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:trapdoor 10 scoreboard players set @s b7s:block_dv 10 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:trapdoor 11 scoreboard players set @s b7s:block_dv 11 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:trapdoor 12 scoreboard players set @s b7s:block_dv 12 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:trapdoor 13 scoreboard players set @s b7s:block_dv 13 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:trapdoor 14 scoreboard players set @s b7s:block_dv 14 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:trapdoor 15 scoreboard players set @s b7s:block_dv 15 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:monster_egg 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:monster_egg 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:monster_egg 2 scoreboard players set @s b7s:block_dv 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:monster_egg 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:monster_egg 4 scoreboard players set @s b7s:block_dv 4 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:monster_egg 5 scoreboard players set @s b7s:block_dv 5 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:stonebrick 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:stonebrick 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:stonebrick 2 scoreboard players set @s b7s:block_dv 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:stonebrick 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:brown_mushroom_block 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:brown_mushroom_block 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:brown_mushroom_block 2 scoreboard players set @s b7s:block_dv 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:brown_mushroom_block 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:brown_mushroom_block 4 scoreboard players set @s b7s:block_dv 4 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:brown_mushroom_block 5 scoreboard players set @s b7s:block_dv 5 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:brown_mushroom_block 6 scoreboard players set @s b7s:block_dv 6 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:brown_mushroom_block 7 scoreboard players set @s b7s:block_dv 7 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:brown_mushroom_block 8 scoreboard players set @s b7s:block_dv 8 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:brown_mushroom_block 9 scoreboard players set @s b7s:block_dv 9 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:brown_mushroom_block 10 scoreboard players set @s b7s:block_dv 10 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:brown_mushroom_block 14 scoreboard players set @s b7s:block_dv 14 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:brown_mushroom_block 15 scoreboard players set @s b7s:block_dv 15 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:red_mushroom_block 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:red_mushroom_block 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:red_mushroom_block 2 scoreboard players set @s b7s:block_dv 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:red_mushroom_block 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:red_mushroom_block 4 scoreboard players set @s b7s:block_dv 4 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:red_mushroom_block 5 scoreboard players set @s b7s:block_dv 5 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:red_mushroom_block 6 scoreboard players set @s b7s:block_dv 6 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:red_mushroom_block 7 scoreboard players set @s b7s:block_dv 7 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:red_mushroom_block 8 scoreboard players set @s b7s:block_dv 8 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:red_mushroom_block 9 scoreboard players set @s b7s:block_dv 9 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:red_mushroom_block 10 scoreboard players set @s b7s:block_dv 10 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:red_mushroom_block 14 scoreboard players set @s b7s:block_dv 14 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:red_mushroom_block 15 scoreboard players set @s b7s:block_dv 15 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:iron_bars 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:glass_pane 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:melon_block 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:pumpkin_stem 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:pumpkin_stem 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:pumpkin_stem 2 scoreboard players set @s b7s:block_dv 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:pumpkin_stem 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:pumpkin_stem 4 scoreboard players set @s b7s:block_dv 4 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:pumpkin_stem 5 scoreboard players set @s b7s:block_dv 5 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:pumpkin_stem 6 scoreboard players set @s b7s:block_dv 6 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:pumpkin_stem 7 scoreboard players set @s b7s:block_dv 7 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:melon_stem 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:melon_stem 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:melon_stem 2 scoreboard players set @s b7s:block_dv 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:melon_stem 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:melon_stem 4 scoreboard players set @s b7s:block_dv 4 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:melon_stem 5 scoreboard players set @s b7s:block_dv 5 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:melon_stem 6 scoreboard players set @s b7s:block_dv 6 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:melon_stem 7 scoreboard players set @s b7s:block_dv 7 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:vine 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:vine 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:vine 2 scoreboard players set @s b7s:block_dv 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:vine 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:vine 4 scoreboard players set @s b7s:block_dv 4 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:vine 5 scoreboard players set @s b7s:block_dv 5 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:vine 6 scoreboard players set @s b7s:block_dv 6 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:vine 7 scoreboard players set @s b7s:block_dv 7 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:vine 8 scoreboard players set @s b7s:block_dv 8 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:vine 9 scoreboard players set @s b7s:block_dv 9 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:vine 10 scoreboard players set @s b7s:block_dv 10 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:vine 11 scoreboard players set @s b7s:block_dv 11 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:vine 12 scoreboard players set @s b7s:block_dv 12 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:vine 13 scoreboard players set @s b7s:block_dv 13 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:vine 14 scoreboard players set @s b7s:block_dv 14 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:vine 15 scoreboard players set @s b7s:block_dv 15 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:fence_gate 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:fence_gate 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:fence_gate 2 scoreboard players set @s b7s:block_dv 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:fence_gate 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:fence_gate 4 scoreboard players set @s b7s:block_dv 4 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:fence_gate 5 scoreboard players set @s b7s:block_dv 5 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:fence_gate 6 scoreboard players set @s b7s:block_dv 6 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:fence_gate 7 scoreboard players set @s b7s:block_dv 7 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:fence_gate 8 scoreboard players set @s b7s:block_dv 8 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:fence_gate 9 scoreboard players set @s b7s:block_dv 9 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:fence_gate 10 scoreboard players set @s b7s:block_dv 10 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:fence_gate 11 scoreboard players set @s b7s:block_dv 11 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:fence_gate 12 scoreboard players set @s b7s:block_dv 12 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:fence_gate 13 scoreboard players set @s b7s:block_dv 13 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:fence_gate 14 scoreboard players set @s b7s:block_dv 14 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:fence_gate 15 scoreboard players set @s b7s:block_dv 15 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:brick_stairs 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:brick_stairs 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:brick_stairs 2 scoreboard players set @s b7s:block_dv 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:brick_stairs 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:brick_stairs 4 scoreboard players set @s b7s:block_dv 4 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:brick_stairs 5 scoreboard players set @s b7s:block_dv 5 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:brick_stairs 6 scoreboard players set @s b7s:block_dv 6 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:brick_stairs 7 scoreboard players set @s b7s:block_dv 7 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:stone_brick_stairs 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:stone_brick_stairs 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:stone_brick_stairs 2 scoreboard players set @s b7s:block_dv 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:stone_brick_stairs 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:stone_brick_stairs 4 scoreboard players set @s b7s:block_dv 4 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:stone_brick_stairs 5 scoreboard players set @s b7s:block_dv 5 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:stone_brick_stairs 6 scoreboard players set @s b7s:block_dv 6 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:stone_brick_stairs 7 scoreboard players set @s b7s:block_dv 7 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:mycelium 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:waterlily 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:nether_brick 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:nether_brick_fence 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:nether_brick_stairs 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:nether_brick_stairs 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:nether_brick_stairs 2 scoreboard players set @s b7s:block_dv 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:nether_brick_stairs 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:nether_brick_stairs 4 scoreboard players set @s b7s:block_dv 4 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:nether_brick_stairs 5 scoreboard players set @s b7s:block_dv 5 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:nether_brick_stairs 6 scoreboard players set @s b7s:block_dv 6 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:nether_brick_stairs 7 scoreboard players set @s b7s:block_dv 7 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:nether_wart 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:nether_wart 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:nether_wart 2 scoreboard players set @s b7s:block_dv 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:nether_wart 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:enchanting_table 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:brewing_stand 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:brewing_stand 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:brewing_stand 2 scoreboard players set @s b7s:block_dv 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:brewing_stand 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:brewing_stand 4 scoreboard players set @s b7s:block_dv 4 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:brewing_stand 5 scoreboard players set @s b7s:block_dv 5 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:brewing_stand 6 scoreboard players set @s b7s:block_dv 6 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:brewing_stand 7 scoreboard players set @s b7s:block_dv 7 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:cauldron 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:cauldron 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:cauldron 2 scoreboard players set @s b7s:block_dv 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:cauldron 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:end_portal 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:end_portal_frame 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:end_portal_frame 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:end_portal_frame 2 scoreboard players set @s b7s:block_dv 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:end_portal_frame 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:end_portal_frame 4 scoreboard players set @s b7s:block_dv 4 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:end_portal_frame 5 scoreboard players set @s b7s:block_dv 5 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:end_portal_frame 6 scoreboard players set @s b7s:block_dv 6 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:end_portal_frame 7 scoreboard players set @s b7s:block_dv 7 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:end_stone 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:dragon_egg 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:redstone_lamp 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:lit_redstone_lamp 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:double_wooden_slab 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:double_wooden_slab 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:double_wooden_slab 2 scoreboard players set @s b7s:block_dv 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:double_wooden_slab 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:double_wooden_slab 4 scoreboard players set @s b7s:block_dv 4 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:double_wooden_slab 5 scoreboard players set @s b7s:block_dv 5 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:wooden_slab 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:wooden_slab 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:wooden_slab 2 scoreboard players set @s b7s:block_dv 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:wooden_slab 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:wooden_slab 4 scoreboard players set @s b7s:block_dv 4 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:wooden_slab 5 scoreboard players set @s b7s:block_dv 5 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:wooden_slab 8 scoreboard players set @s b7s:block_dv 8 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:wooden_slab 9 scoreboard players set @s b7s:block_dv 9 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:wooden_slab 10 scoreboard players set @s b7s:block_dv 10 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:wooden_slab 11 scoreboard players set @s b7s:block_dv 11 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:wooden_slab 12 scoreboard players set @s b7s:block_dv 12 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:wooden_slab 13 scoreboard players set @s b7s:block_dv 13 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:cocoa 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:cocoa 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:cocoa 2 scoreboard players set @s b7s:block_dv 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:cocoa 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:cocoa 4 scoreboard players set @s b7s:block_dv 4 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:cocoa 5 scoreboard players set @s b7s:block_dv 5 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:cocoa 6 scoreboard players set @s b7s:block_dv 6 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:cocoa 7 scoreboard players set @s b7s:block_dv 7 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:cocoa 8 scoreboard players set @s b7s:block_dv 8 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:cocoa 9 scoreboard players set @s b7s:block_dv 9 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:cocoa 10 scoreboard players set @s b7s:block_dv 10 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:cocoa 11 scoreboard players set @s b7s:block_dv 11 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:sandstone_stairs 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:sandstone_stairs 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:sandstone_stairs 2 scoreboard players set @s b7s:block_dv 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:sandstone_stairs 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:sandstone_stairs 4 scoreboard players set @s b7s:block_dv 4 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:sandstone_stairs 5 scoreboard players set @s b7s:block_dv 5 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:sandstone_stairs 6 scoreboard players set @s b7s:block_dv 6 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:sandstone_stairs 7 scoreboard players set @s b7s:block_dv 7 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:emerald_ore 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:ender_chest 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:ender_chest 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:ender_chest 4 scoreboard players set @s b7s:block_dv 4 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:ender_chest 5 scoreboard players set @s b7s:block_dv 5 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:tripwire_hook 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:tripwire_hook 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:tripwire_hook 2 scoreboard players set @s b7s:block_dv 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:tripwire_hook 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:tripwire_hook 4 scoreboard players set @s b7s:block_dv 4 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:tripwire_hook 5 scoreboard players set @s b7s:block_dv 5 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:tripwire_hook 6 scoreboard players set @s b7s:block_dv 6 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:tripwire_hook 7 scoreboard players set @s b7s:block_dv 7 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:tripwire_hook 8 scoreboard players set @s b7s:block_dv 8 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:tripwire_hook 9 scoreboard players set @s b7s:block_dv 9 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:tripwire_hook 10 scoreboard players set @s b7s:block_dv 10 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:tripwire_hook 11 scoreboard players set @s b7s:block_dv 11 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:tripwire_hook 12 scoreboard players set @s b7s:block_dv 12 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:tripwire_hook 13 scoreboard players set @s b7s:block_dv 13 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:tripwire_hook 14 scoreboard players set @s b7s:block_dv 14 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:tripwire_hook 15 scoreboard players set @s b7s:block_dv 15 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:tripwire 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:tripwire 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:tripwire 4 scoreboard players set @s b7s:block_dv 4 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:tripwire 5 scoreboard players set @s b7s:block_dv 5 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:tripwire 8 scoreboard players set @s b7s:block_dv 8 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:tripwire 9 scoreboard players set @s b7s:block_dv 9 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:tripwire 12 scoreboard players set @s b7s:block_dv 12 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:tripwire 13 scoreboard players set @s b7s:block_dv 13 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:emerald_block 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:spruce_stairs 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:spruce_stairs 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:spruce_stairs 2 scoreboard players set @s b7s:block_dv 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:spruce_stairs 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:spruce_stairs 4 scoreboard players set @s b7s:block_dv 4 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:spruce_stairs 5 scoreboard players set @s b7s:block_dv 5 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:spruce_stairs 6 scoreboard players set @s b7s:block_dv 6 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:spruce_stairs 7 scoreboard players set @s b7s:block_dv 7 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:birch_stairs 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:birch_stairs 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:birch_stairs 2 scoreboard players set @s b7s:block_dv 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:birch_stairs 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:birch_stairs 4 scoreboard players set @s b7s:block_dv 4 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:birch_stairs 5 scoreboard players set @s b7s:block_dv 5 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:birch_stairs 6 scoreboard players set @s b7s:block_dv 6 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:birch_stairs 7 scoreboard players set @s b7s:block_dv 7 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:jungle_stairs 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:jungle_stairs 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:jungle_stairs 2 scoreboard players set @s b7s:block_dv 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:jungle_stairs 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:jungle_stairs 4 scoreboard players set @s b7s:block_dv 4 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:jungle_stairs 5 scoreboard players set @s b7s:block_dv 5 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:jungle_stairs 6 scoreboard players set @s b7s:block_dv 6 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:jungle_stairs 7 scoreboard players set @s b7s:block_dv 7 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:command_block 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:command_block 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:command_block 2 scoreboard players set @s b7s:block_dv 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:command_block 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:command_block 4 scoreboard players set @s b7s:block_dv 4 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:command_block 5 scoreboard players set @s b7s:block_dv 5 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:command_block 8 scoreboard players set @s b7s:block_dv 8 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:command_block 9 scoreboard players set @s b7s:block_dv 9 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:command_block 10 scoreboard players set @s b7s:block_dv 10 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:command_block 11 scoreboard players set @s b7s:block_dv 11 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:command_block 12 scoreboard players set @s b7s:block_dv 12 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:command_block 13 scoreboard players set @s b7s:block_dv 13 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:beacon 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:cobblestone_wall 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:cobblestone_wall 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:flower_pot 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:carrots 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:carrots 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:carrots 2 scoreboard players set @s b7s:block_dv 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:carrots 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:carrots 4 scoreboard players set @s b7s:block_dv 4 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:carrots 5 scoreboard players set @s b7s:block_dv 5 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:carrots 6 scoreboard players set @s b7s:block_dv 6 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:carrots 7 scoreboard players set @s b7s:block_dv 7 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:potatoes 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:potatoes 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:potatoes 2 scoreboard players set @s b7s:block_dv 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:potatoes 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:potatoes 4 scoreboard players set @s b7s:block_dv 4 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:potatoes 5 scoreboard players set @s b7s:block_dv 5 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:potatoes 6 scoreboard players set @s b7s:block_dv 6 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:potatoes 7 scoreboard players set @s b7s:block_dv 7 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:wooden_button 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:wooden_button 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:wooden_button 2 scoreboard players set @s b7s:block_dv 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:wooden_button 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:wooden_button 4 scoreboard players set @s b7s:block_dv 4 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:wooden_button 5 scoreboard players set @s b7s:block_dv 5 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:wooden_button 8 scoreboard players set @s b7s:block_dv 8 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:wooden_button 9 scoreboard players set @s b7s:block_dv 9 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:wooden_button 10 scoreboard players set @s b7s:block_dv 10 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:wooden_button 11 scoreboard players set @s b7s:block_dv 11 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:wooden_button 12 scoreboard players set @s b7s:block_dv 12 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:wooden_button 13 scoreboard players set @s b7s:block_dv 13 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:skull 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:skull 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:skull 2 scoreboard players set @s b7s:block_dv 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:skull 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:skull 4 scoreboard players set @s b7s:block_dv 4 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:skull 5 scoreboard players set @s b7s:block_dv 5 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:skull 8 scoreboard players set @s b7s:block_dv 8 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:skull 9 scoreboard players set @s b7s:block_dv 9 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:skull 10 scoreboard players set @s b7s:block_dv 10 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:skull 11 scoreboard players set @s b7s:block_dv 11 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:skull 12 scoreboard players set @s b7s:block_dv 12 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:skull 13 scoreboard players set @s b7s:block_dv 13 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:anvil 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:anvil 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:anvil 2 scoreboard players set @s b7s:block_dv 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:anvil 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:anvil 4 scoreboard players set @s b7s:block_dv 4 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:anvil 5 scoreboard players set @s b7s:block_dv 5 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:anvil 6 scoreboard players set @s b7s:block_dv 6 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:anvil 7 scoreboard players set @s b7s:block_dv 7 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:anvil 8 scoreboard players set @s b7s:block_dv 8 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:anvil 9 scoreboard players set @s b7s:block_dv 9 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:anvil 10 scoreboard players set @s b7s:block_dv 10 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:anvil 11 scoreboard players set @s b7s:block_dv 11 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:trapped_chest 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:trapped_chest 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:trapped_chest 4 scoreboard players set @s b7s:block_dv 4 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:trapped_chest 5 scoreboard players set @s b7s:block_dv 5 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:light_weighted_pressure_plate 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:light_weighted_pressure_plate 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:light_weighted_pressure_plate 2 scoreboard players set @s b7s:block_dv 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:light_weighted_pressure_plate 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:light_weighted_pressure_plate 4 scoreboard players set @s b7s:block_dv 4 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:light_weighted_pressure_plate 5 scoreboard players set @s b7s:block_dv 5 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:light_weighted_pressure_plate 6 scoreboard players set @s b7s:block_dv 6 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:light_weighted_pressure_plate 7 scoreboard players set @s b7s:block_dv 7 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:light_weighted_pressure_plate 8 scoreboard players set @s b7s:block_dv 8 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:light_weighted_pressure_plate 9 scoreboard players set @s b7s:block_dv 9 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:light_weighted_pressure_plate 10 scoreboard players set @s b7s:block_dv 10 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:light_weighted_pressure_plate 11 scoreboard players set @s b7s:block_dv 11 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:light_weighted_pressure_plate 12 scoreboard players set @s b7s:block_dv 12 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:light_weighted_pressure_plate 13 scoreboard players set @s b7s:block_dv 13 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:light_weighted_pressure_plate 14 scoreboard players set @s b7s:block_dv 14 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:light_weighted_pressure_plate 15 scoreboard players set @s b7s:block_dv 15 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:heavy_weighted_pressure_plate 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:heavy_weighted_pressure_plate 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:heavy_weighted_pressure_plate 2 scoreboard players set @s b7s:block_dv 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:heavy_weighted_pressure_plate 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:heavy_weighted_pressure_plate 4 scoreboard players set @s b7s:block_dv 4 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:heavy_weighted_pressure_plate 5 scoreboard players set @s b7s:block_dv 5 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:heavy_weighted_pressure_plate 6 scoreboard players set @s b7s:block_dv 6 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:heavy_weighted_pressure_plate 7 scoreboard players set @s b7s:block_dv 7 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:heavy_weighted_pressure_plate 8 scoreboard players set @s b7s:block_dv 8 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:heavy_weighted_pressure_plate 9 scoreboard players set @s b7s:block_dv 9 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:heavy_weighted_pressure_plate 10 scoreboard players set @s b7s:block_dv 10 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:heavy_weighted_pressure_plate 11 scoreboard players set @s b7s:block_dv 11 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:heavy_weighted_pressure_plate 12 scoreboard players set @s b7s:block_dv 12 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:heavy_weighted_pressure_plate 13 scoreboard players set @s b7s:block_dv 13 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:heavy_weighted_pressure_plate 14 scoreboard players set @s b7s:block_dv 14 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:heavy_weighted_pressure_plate 15 scoreboard players set @s b7s:block_dv 15 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:unpowered_comparator 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:unpowered_comparator 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:unpowered_comparator 2 scoreboard players set @s b7s:block_dv 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:unpowered_comparator 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:unpowered_comparator 4 scoreboard players set @s b7s:block_dv 4 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:unpowered_comparator 5 scoreboard players set @s b7s:block_dv 5 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:unpowered_comparator 6 scoreboard players set @s b7s:block_dv 6 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:unpowered_comparator 7 scoreboard players set @s b7s:block_dv 7 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:unpowered_comparator 8 scoreboard players set @s b7s:block_dv 8 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:unpowered_comparator 9 scoreboard players set @s b7s:block_dv 9 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:unpowered_comparator 10 scoreboard players set @s b7s:block_dv 10 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:unpowered_comparator 11 scoreboard players set @s b7s:block_dv 11 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:unpowered_comparator 12 scoreboard players set @s b7s:block_dv 12 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:unpowered_comparator 13 scoreboard players set @s b7s:block_dv 13 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:unpowered_comparator 14 scoreboard players set @s b7s:block_dv 14 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:unpowered_comparator 15 scoreboard players set @s b7s:block_dv 15 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:powered_comparator 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:powered_comparator 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:powered_comparator 2 scoreboard players set @s b7s:block_dv 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:powered_comparator 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:powered_comparator 4 scoreboard players set @s b7s:block_dv 4 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:powered_comparator 5 scoreboard players set @s b7s:block_dv 5 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:powered_comparator 6 scoreboard players set @s b7s:block_dv 6 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:powered_comparator 7 scoreboard players set @s b7s:block_dv 7 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:powered_comparator 8 scoreboard players set @s b7s:block_dv 8 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:powered_comparator 9 scoreboard players set @s b7s:block_dv 9 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:powered_comparator 10 scoreboard players set @s b7s:block_dv 10 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:powered_comparator 11 scoreboard players set @s b7s:block_dv 11 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:powered_comparator 12 scoreboard players set @s b7s:block_dv 12 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:powered_comparator 13 scoreboard players set @s b7s:block_dv 13 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:powered_comparator 14 scoreboard players set @s b7s:block_dv 14 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:powered_comparator 15 scoreboard players set @s b7s:block_dv 15 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:daylight_detector 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:daylight_detector 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:daylight_detector 2 scoreboard players set @s b7s:block_dv 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:daylight_detector 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:daylight_detector 4 scoreboard players set @s b7s:block_dv 4 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:daylight_detector 5 scoreboard players set @s b7s:block_dv 5 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:daylight_detector 6 scoreboard players set @s b7s:block_dv 6 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:daylight_detector 7 scoreboard players set @s b7s:block_dv 7 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:daylight_detector 8 scoreboard players set @s b7s:block_dv 8 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:daylight_detector 9 scoreboard players set @s b7s:block_dv 9 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:daylight_detector 10 scoreboard players set @s b7s:block_dv 10 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:daylight_detector 11 scoreboard players set @s b7s:block_dv 11 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:daylight_detector 12 scoreboard players set @s b7s:block_dv 12 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:daylight_detector 13 scoreboard players set @s b7s:block_dv 13 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:daylight_detector 14 scoreboard players set @s b7s:block_dv 14 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:daylight_detector 15 scoreboard players set @s b7s:block_dv 15 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:redstone_block 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:quartz_ore 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:hopper 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:hopper 2 scoreboard players set @s b7s:block_dv 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:hopper 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:hopper 4 scoreboard players set @s b7s:block_dv 4 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:hopper 5 scoreboard players set @s b7s:block_dv 5 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:hopper 8 scoreboard players set @s b7s:block_dv 8 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:hopper 10 scoreboard players set @s b7s:block_dv 10 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:hopper 11 scoreboard players set @s b7s:block_dv 11 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:hopper 12 scoreboard players set @s b7s:block_dv 12 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:hopper 13 scoreboard players set @s b7s:block_dv 13 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:quartz_block 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:quartz_block 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:quartz_block 2 scoreboard players set @s b7s:block_dv 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:quartz_block 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:quartz_block 4 scoreboard players set @s b7s:block_dv 4 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:quartz_stairs 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:quartz_stairs 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:quartz_stairs 2 scoreboard players set @s b7s:block_dv 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:quartz_stairs 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:quartz_stairs 4 scoreboard players set @s b7s:block_dv 4 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:quartz_stairs 5 scoreboard players set @s b7s:block_dv 5 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:quartz_stairs 6 scoreboard players set @s b7s:block_dv 6 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:quartz_stairs 7 scoreboard players set @s b7s:block_dv 7 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:activator_rail 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:activator_rail 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:activator_rail 2 scoreboard players set @s b7s:block_dv 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:activator_rail 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:activator_rail 4 scoreboard players set @s b7s:block_dv 4 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:activator_rail 5 scoreboard players set @s b7s:block_dv 5 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:activator_rail 8 scoreboard players set @s b7s:block_dv 8 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:activator_rail 9 scoreboard players set @s b7s:block_dv 9 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:activator_rail 10 scoreboard players set @s b7s:block_dv 10 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:activator_rail 11 scoreboard players set @s b7s:block_dv 11 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:activator_rail 12 scoreboard players set @s b7s:block_dv 12 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:activator_rail 13 scoreboard players set @s b7s:block_dv 13 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:dropper 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:dropper 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:dropper 2 scoreboard players set @s b7s:block_dv 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:dropper 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:dropper 4 scoreboard players set @s b7s:block_dv 4 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:dropper 5 scoreboard players set @s b7s:block_dv 5 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:dropper 8 scoreboard players set @s b7s:block_dv 8 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:dropper 9 scoreboard players set @s b7s:block_dv 9 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:dropper 10 scoreboard players set @s b7s:block_dv 10 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:dropper 11 scoreboard players set @s b7s:block_dv 11 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:dropper 12 scoreboard players set @s b7s:block_dv 12 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:dropper 13 scoreboard players set @s b7s:block_dv 13 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:stained_hardened_clay 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:stained_hardened_clay 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:stained_hardened_clay 2 scoreboard players set @s b7s:block_dv 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:stained_hardened_clay 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:stained_hardened_clay 4 scoreboard players set @s b7s:block_dv 4 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:stained_hardened_clay 5 scoreboard players set @s b7s:block_dv 5 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:stained_hardened_clay 6 scoreboard players set @s b7s:block_dv 6 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:stained_hardened_clay 7 scoreboard players set @s b7s:block_dv 7 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:stained_hardened_clay 8 scoreboard players set @s b7s:block_dv 8 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:stained_hardened_clay 9 scoreboard players set @s b7s:block_dv 9 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:stained_hardened_clay 10 scoreboard players set @s b7s:block_dv 10 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:stained_hardened_clay 11 scoreboard players set @s b7s:block_dv 11 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:stained_hardened_clay 12 scoreboard players set @s b7s:block_dv 12 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:stained_hardened_clay 13 scoreboard players set @s b7s:block_dv 13 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:stained_hardened_clay 14 scoreboard players set @s b7s:block_dv 14 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:stained_hardened_clay 15 scoreboard players set @s b7s:block_dv 15 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:stained_glass_pane 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:stained_glass_pane 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:stained_glass_pane 2 scoreboard players set @s b7s:block_dv 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:stained_glass_pane 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:stained_glass_pane 4 scoreboard players set @s b7s:block_dv 4 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:stained_glass_pane 5 scoreboard players set @s b7s:block_dv 5 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:stained_glass_pane 6 scoreboard players set @s b7s:block_dv 6 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:stained_glass_pane 7 scoreboard players set @s b7s:block_dv 7 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:stained_glass_pane 8 scoreboard players set @s b7s:block_dv 8 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:stained_glass_pane 9 scoreboard players set @s b7s:block_dv 9 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:stained_glass_pane 10 scoreboard players set @s b7s:block_dv 10 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:stained_glass_pane 11 scoreboard players set @s b7s:block_dv 11 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:stained_glass_pane 12 scoreboard players set @s b7s:block_dv 12 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:stained_glass_pane 13 scoreboard players set @s b7s:block_dv 13 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:stained_glass_pane 14 scoreboard players set @s b7s:block_dv 14 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:stained_glass_pane 15 scoreboard players set @s b7s:block_dv 15 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:leaves2 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:leaves2 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:leaves2 4 scoreboard players set @s b7s:block_dv 4 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:leaves2 5 scoreboard players set @s b7s:block_dv 5 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:leaves2 8 scoreboard players set @s b7s:block_dv 8 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:leaves2 9 scoreboard players set @s b7s:block_dv 9 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:leaves2 12 scoreboard players set @s b7s:block_dv 12 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:leaves2 13 scoreboard players set @s b7s:block_dv 13 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:log2 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:log2 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:log2 4 scoreboard players set @s b7s:block_dv 4 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:log2 5 scoreboard players set @s b7s:block_dv 5 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:log2 8 scoreboard players set @s b7s:block_dv 8 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:log2 9 scoreboard players set @s b7s:block_dv 9 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:log2 12 scoreboard players set @s b7s:block_dv 12 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:log2 13 scoreboard players set @s b7s:block_dv 13 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:acacia_stairs 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:acacia_stairs 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:acacia_stairs 2 scoreboard players set @s b7s:block_dv 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:acacia_stairs 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:acacia_stairs 4 scoreboard players set @s b7s:block_dv 4 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:acacia_stairs 5 scoreboard players set @s b7s:block_dv 5 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:acacia_stairs 6 scoreboard players set @s b7s:block_dv 6 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:acacia_stairs 7 scoreboard players set @s b7s:block_dv 7 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:dark_oak_stairs 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:dark_oak_stairs 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:dark_oak_stairs 2 scoreboard players set @s b7s:block_dv 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:dark_oak_stairs 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:dark_oak_stairs 4 scoreboard players set @s b7s:block_dv 4 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:dark_oak_stairs 5 scoreboard players set @s b7s:block_dv 5 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:dark_oak_stairs 6 scoreboard players set @s b7s:block_dv 6 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:dark_oak_stairs 7 scoreboard players set @s b7s:block_dv 7 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:slime 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:barrier 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:iron_trapdoor 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:iron_trapdoor 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:iron_trapdoor 2 scoreboard players set @s b7s:block_dv 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:iron_trapdoor 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:iron_trapdoor 4 scoreboard players set @s b7s:block_dv 4 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:iron_trapdoor 5 scoreboard players set @s b7s:block_dv 5 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:iron_trapdoor 6 scoreboard players set @s b7s:block_dv 6 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:iron_trapdoor 7 scoreboard players set @s b7s:block_dv 7 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:iron_trapdoor 8 scoreboard players set @s b7s:block_dv 8 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:iron_trapdoor 9 scoreboard players set @s b7s:block_dv 9 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:iron_trapdoor 10 scoreboard players set @s b7s:block_dv 10 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:iron_trapdoor 11 scoreboard players set @s b7s:block_dv 11 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:iron_trapdoor 12 scoreboard players set @s b7s:block_dv 12 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:iron_trapdoor 13 scoreboard players set @s b7s:block_dv 13 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:iron_trapdoor 14 scoreboard players set @s b7s:block_dv 14 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:iron_trapdoor 15 scoreboard players set @s b7s:block_dv 15 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:prismarine 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:prismarine 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:prismarine 2 scoreboard players set @s b7s:block_dv 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:sea_lantern 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:hay_block 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:hay_block 4 scoreboard players set @s b7s:block_dv 4 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:hay_block 8 scoreboard players set @s b7s:block_dv 8 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:carpet 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:carpet 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:carpet 2 scoreboard players set @s b7s:block_dv 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:carpet 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:carpet 4 scoreboard players set @s b7s:block_dv 4 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:carpet 5 scoreboard players set @s b7s:block_dv 5 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:carpet 6 scoreboard players set @s b7s:block_dv 6 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:carpet 7 scoreboard players set @s b7s:block_dv 7 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:carpet 8 scoreboard players set @s b7s:block_dv 8 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:carpet 9 scoreboard players set @s b7s:block_dv 9 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:carpet 10 scoreboard players set @s b7s:block_dv 10 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:carpet 11 scoreboard players set @s b7s:block_dv 11 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:carpet 12 scoreboard players set @s b7s:block_dv 12 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:carpet 13 scoreboard players set @s b7s:block_dv 13 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:carpet 14 scoreboard players set @s b7s:block_dv 14 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:carpet 15 scoreboard players set @s b7s:block_dv 15 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:hardened_clay 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:coal_block 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:packed_ice 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:double_plant 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:double_plant 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:double_plant 2 scoreboard players set @s b7s:block_dv 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:double_plant 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:double_plant 4 scoreboard players set @s b7s:block_dv 4 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:double_plant 5 scoreboard players set @s b7s:block_dv 5 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:double_plant 8 scoreboard players set @s b7s:block_dv 8 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:standing_banner 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:standing_banner 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:standing_banner 2 scoreboard players set @s b7s:block_dv 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:standing_banner 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:standing_banner 4 scoreboard players set @s b7s:block_dv 4 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:standing_banner 5 scoreboard players set @s b7s:block_dv 5 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:standing_banner 6 scoreboard players set @s b7s:block_dv 6 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:standing_banner 7 scoreboard players set @s b7s:block_dv 7 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:standing_banner 8 scoreboard players set @s b7s:block_dv 8 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:standing_banner 9 scoreboard players set @s b7s:block_dv 9 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:standing_banner 10 scoreboard players set @s b7s:block_dv 10 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:standing_banner 11 scoreboard players set @s b7s:block_dv 11 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:standing_banner 12 scoreboard players set @s b7s:block_dv 12 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:standing_banner 13 scoreboard players set @s b7s:block_dv 13 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:standing_banner 14 scoreboard players set @s b7s:block_dv 14 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:standing_banner 15 scoreboard players set @s b7s:block_dv 15 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:wall_banner 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:wall_banner 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:wall_banner 4 scoreboard players set @s b7s:block_dv 4 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:wall_banner 5 scoreboard players set @s b7s:block_dv 5 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:daylight_detector_inverted 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:daylight_detector_inverted 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:daylight_detector_inverted 2 scoreboard players set @s b7s:block_dv 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:daylight_detector_inverted 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:daylight_detector_inverted 4 scoreboard players set @s b7s:block_dv 4 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:daylight_detector_inverted 5 scoreboard players set @s b7s:block_dv 5 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:daylight_detector_inverted 6 scoreboard players set @s b7s:block_dv 6 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:daylight_detector_inverted 7 scoreboard players set @s b7s:block_dv 7 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:daylight_detector_inverted 8 scoreboard players set @s b7s:block_dv 8 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:daylight_detector_inverted 9 scoreboard players set @s b7s:block_dv 9 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:daylight_detector_inverted 10 scoreboard players set @s b7s:block_dv 10 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:daylight_detector_inverted 11 scoreboard players set @s b7s:block_dv 11 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:daylight_detector_inverted 12 scoreboard players set @s b7s:block_dv 12 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:daylight_detector_inverted 13 scoreboard players set @s b7s:block_dv 13 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:daylight_detector_inverted 14 scoreboard players set @s b7s:block_dv 14 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:daylight_detector_inverted 15 scoreboard players set @s b7s:block_dv 15 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:red_sandstone 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:red_sandstone 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:red_sandstone 2 scoreboard players set @s b7s:block_dv 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:red_sandstone_stairs 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:red_sandstone_stairs 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:red_sandstone_stairs 2 scoreboard players set @s b7s:block_dv 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:red_sandstone_stairs 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:red_sandstone_stairs 4 scoreboard players set @s b7s:block_dv 4 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:red_sandstone_stairs 5 scoreboard players set @s b7s:block_dv 5 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:red_sandstone_stairs 6 scoreboard players set @s b7s:block_dv 6 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:red_sandstone_stairs 7 scoreboard players set @s b7s:block_dv 7 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:double_stone_slab2 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:double_stone_slab2 8 scoreboard players set @s b7s:block_dv 8 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:stone_slab2 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:stone_slab2 8 scoreboard players set @s b7s:block_dv 8 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:spruce_fence_gate 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:spruce_fence_gate 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:spruce_fence_gate 2 scoreboard players set @s b7s:block_dv 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:spruce_fence_gate 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:spruce_fence_gate 4 scoreboard players set @s b7s:block_dv 4 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:spruce_fence_gate 5 scoreboard players set @s b7s:block_dv 5 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:spruce_fence_gate 6 scoreboard players set @s b7s:block_dv 6 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:spruce_fence_gate 7 scoreboard players set @s b7s:block_dv 7 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:spruce_fence_gate 8 scoreboard players set @s b7s:block_dv 8 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:spruce_fence_gate 9 scoreboard players set @s b7s:block_dv 9 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:spruce_fence_gate 10 scoreboard players set @s b7s:block_dv 10 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:spruce_fence_gate 11 scoreboard players set @s b7s:block_dv 11 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:spruce_fence_gate 12 scoreboard players set @s b7s:block_dv 12 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:spruce_fence_gate 13 scoreboard players set @s b7s:block_dv 13 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:spruce_fence_gate 14 scoreboard players set @s b7s:block_dv 14 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:spruce_fence_gate 15 scoreboard players set @s b7s:block_dv 15 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:birch_fence_gate 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:birch_fence_gate 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:birch_fence_gate 2 scoreboard players set @s b7s:block_dv 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:birch_fence_gate 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:birch_fence_gate 4 scoreboard players set @s b7s:block_dv 4 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:birch_fence_gate 5 scoreboard players set @s b7s:block_dv 5 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:birch_fence_gate 6 scoreboard players set @s b7s:block_dv 6 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:birch_fence_gate 7 scoreboard players set @s b7s:block_dv 7 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:birch_fence_gate 8 scoreboard players set @s b7s:block_dv 8 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:birch_fence_gate 9 scoreboard players set @s b7s:block_dv 9 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:birch_fence_gate 10 scoreboard players set @s b7s:block_dv 10 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:birch_fence_gate 11 scoreboard players set @s b7s:block_dv 11 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:birch_fence_gate 12 scoreboard players set @s b7s:block_dv 12 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:birch_fence_gate 13 scoreboard players set @s b7s:block_dv 13 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:birch_fence_gate 14 scoreboard players set @s b7s:block_dv 14 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:birch_fence_gate 15 scoreboard players set @s b7s:block_dv 15 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:jungle_fence_gate 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:jungle_fence_gate 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:jungle_fence_gate 2 scoreboard players set @s b7s:block_dv 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:jungle_fence_gate 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:jungle_fence_gate 4 scoreboard players set @s b7s:block_dv 4 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:jungle_fence_gate 5 scoreboard players set @s b7s:block_dv 5 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:jungle_fence_gate 6 scoreboard players set @s b7s:block_dv 6 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:jungle_fence_gate 7 scoreboard players set @s b7s:block_dv 7 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:jungle_fence_gate 8 scoreboard players set @s b7s:block_dv 8 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:jungle_fence_gate 9 scoreboard players set @s b7s:block_dv 9 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:jungle_fence_gate 10 scoreboard players set @s b7s:block_dv 10 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:jungle_fence_gate 11 scoreboard players set @s b7s:block_dv 11 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:jungle_fence_gate 12 scoreboard players set @s b7s:block_dv 12 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:jungle_fence_gate 13 scoreboard players set @s b7s:block_dv 13 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:jungle_fence_gate 14 scoreboard players set @s b7s:block_dv 14 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:jungle_fence_gate 15 scoreboard players set @s b7s:block_dv 15 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:dark_oak_fence_gate 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:dark_oak_fence_gate 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:dark_oak_fence_gate 2 scoreboard players set @s b7s:block_dv 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:dark_oak_fence_gate 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:dark_oak_fence_gate 4 scoreboard players set @s b7s:block_dv 4 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:dark_oak_fence_gate 5 scoreboard players set @s b7s:block_dv 5 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:dark_oak_fence_gate 6 scoreboard players set @s b7s:block_dv 6 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:dark_oak_fence_gate 7 scoreboard players set @s b7s:block_dv 7 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:dark_oak_fence_gate 8 scoreboard players set @s b7s:block_dv 8 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:dark_oak_fence_gate 9 scoreboard players set @s b7s:block_dv 9 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:dark_oak_fence_gate 10 scoreboard players set @s b7s:block_dv 10 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:dark_oak_fence_gate 11 scoreboard players set @s b7s:block_dv 11 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:dark_oak_fence_gate 12 scoreboard players set @s b7s:block_dv 12 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:dark_oak_fence_gate 13 scoreboard players set @s b7s:block_dv 13 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:dark_oak_fence_gate 14 scoreboard players set @s b7s:block_dv 14 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:dark_oak_fence_gate 15 scoreboard players set @s b7s:block_dv 15 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:acacia_fence_gate 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:acacia_fence_gate 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:acacia_fence_gate 2 scoreboard players set @s b7s:block_dv 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:acacia_fence_gate 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:acacia_fence_gate 4 scoreboard players set @s b7s:block_dv 4 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:acacia_fence_gate 5 scoreboard players set @s b7s:block_dv 5 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:acacia_fence_gate 6 scoreboard players set @s b7s:block_dv 6 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:acacia_fence_gate 7 scoreboard players set @s b7s:block_dv 7 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:acacia_fence_gate 8 scoreboard players set @s b7s:block_dv 8 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:acacia_fence_gate 9 scoreboard players set @s b7s:block_dv 9 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:acacia_fence_gate 10 scoreboard players set @s b7s:block_dv 10 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:acacia_fence_gate 11 scoreboard players set @s b7s:block_dv 11 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:acacia_fence_gate 12 scoreboard players set @s b7s:block_dv 12 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:acacia_fence_gate 13 scoreboard players set @s b7s:block_dv 13 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:acacia_fence_gate 14 scoreboard players set @s b7s:block_dv 14 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:acacia_fence_gate 15 scoreboard players set @s b7s:block_dv 15 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:spruce_fence 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:birch_fence 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:jungle_fence 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:dark_oak_fence 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:acacia_fence 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:spruce_door 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:spruce_door 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:spruce_door 2 scoreboard players set @s b7s:block_dv 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:spruce_door 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:spruce_door 4 scoreboard players set @s b7s:block_dv 4 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:spruce_door 5 scoreboard players set @s b7s:block_dv 5 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:spruce_door 6 scoreboard players set @s b7s:block_dv 6 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:spruce_door 7 scoreboard players set @s b7s:block_dv 7 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:spruce_door 8 scoreboard players set @s b7s:block_dv 8 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:spruce_door 9 scoreboard players set @s b7s:block_dv 9 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:spruce_door 10 scoreboard players set @s b7s:block_dv 10 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:spruce_door 11 scoreboard players set @s b7s:block_dv 11 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:birch_door 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:birch_door 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:birch_door 2 scoreboard players set @s b7s:block_dv 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:birch_door 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:birch_door 4 scoreboard players set @s b7s:block_dv 4 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:birch_door 5 scoreboard players set @s b7s:block_dv 5 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:birch_door 6 scoreboard players set @s b7s:block_dv 6 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:birch_door 7 scoreboard players set @s b7s:block_dv 7 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:birch_door 8 scoreboard players set @s b7s:block_dv 8 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:birch_door 9 scoreboard players set @s b7s:block_dv 9 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:birch_door 10 scoreboard players set @s b7s:block_dv 10 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:birch_door 11 scoreboard players set @s b7s:block_dv 11 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:jungle_door 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:jungle_door 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:jungle_door 2 scoreboard players set @s b7s:block_dv 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:jungle_door 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:jungle_door 4 scoreboard players set @s b7s:block_dv 4 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:jungle_door 5 scoreboard players set @s b7s:block_dv 5 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:jungle_door 6 scoreboard players set @s b7s:block_dv 6 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:jungle_door 7 scoreboard players set @s b7s:block_dv 7 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:jungle_door 8 scoreboard players set @s b7s:block_dv 8 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:jungle_door 9 scoreboard players set @s b7s:block_dv 9 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:jungle_door 10 scoreboard players set @s b7s:block_dv 10 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:jungle_door 11 scoreboard players set @s b7s:block_dv 11 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:acacia_door 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:acacia_door 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:acacia_door 2 scoreboard players set @s b7s:block_dv 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:acacia_door 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:acacia_door 4 scoreboard players set @s b7s:block_dv 4 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:acacia_door 5 scoreboard players set @s b7s:block_dv 5 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:acacia_door 6 scoreboard players set @s b7s:block_dv 6 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:acacia_door 7 scoreboard players set @s b7s:block_dv 7 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:acacia_door 8 scoreboard players set @s b7s:block_dv 8 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:acacia_door 9 scoreboard players set @s b7s:block_dv 9 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:acacia_door 10 scoreboard players set @s b7s:block_dv 10 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:acacia_door 11 scoreboard players set @s b7s:block_dv 11 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:dark_oak_door 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:dark_oak_door 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:dark_oak_door 2 scoreboard players set @s b7s:block_dv 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:dark_oak_door 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:dark_oak_door 4 scoreboard players set @s b7s:block_dv 4 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:dark_oak_door 5 scoreboard players set @s b7s:block_dv 5 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:dark_oak_door 6 scoreboard players set @s b7s:block_dv 6 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:dark_oak_door 7 scoreboard players set @s b7s:block_dv 7 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:dark_oak_door 8 scoreboard players set @s b7s:block_dv 8 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:dark_oak_door 9 scoreboard players set @s b7s:block_dv 9 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:dark_oak_door 10 scoreboard players set @s b7s:block_dv 10 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:dark_oak_door 11 scoreboard players set @s b7s:block_dv 11 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:end_rod 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:end_rod 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:end_rod 2 scoreboard players set @s b7s:block_dv 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:end_rod 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:end_rod 4 scoreboard players set @s b7s:block_dv 4 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:end_rod 5 scoreboard players set @s b7s:block_dv 5 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:chorus_plant 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:chorus_flower 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:chorus_flower 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:chorus_flower 2 scoreboard players set @s b7s:block_dv 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:chorus_flower 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:chorus_flower 4 scoreboard players set @s b7s:block_dv 4 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:chorus_flower 5 scoreboard players set @s b7s:block_dv 5 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:purpur_block 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:purpur_pillar 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:purpur_pillar 4 scoreboard players set @s b7s:block_dv 4 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:purpur_pillar 8 scoreboard players set @s b7s:block_dv 8 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:purpur_stairs 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:purpur_stairs 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:purpur_stairs 2 scoreboard players set @s b7s:block_dv 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:purpur_stairs 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:purpur_stairs 4 scoreboard players set @s b7s:block_dv 4 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:purpur_stairs 5 scoreboard players set @s b7s:block_dv 5 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:purpur_stairs 6 scoreboard players set @s b7s:block_dv 6 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:purpur_stairs 7 scoreboard players set @s b7s:block_dv 7 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:purpur_double_slab 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:purpur_slab 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:purpur_slab 8 scoreboard players set @s b7s:block_dv 8 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:end_bricks 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:beetroots 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:beetroots 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:beetroots 2 scoreboard players set @s b7s:block_dv 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:beetroots 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:grass_path 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:end_gateway 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:repeating_command_block 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:repeating_command_block 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:repeating_command_block 2 scoreboard players set @s b7s:block_dv 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:repeating_command_block 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:repeating_command_block 4 scoreboard players set @s b7s:block_dv 4 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:repeating_command_block 5 scoreboard players set @s b7s:block_dv 5 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:repeating_command_block 8 scoreboard players set @s b7s:block_dv 8 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:repeating_command_block 9 scoreboard players set @s b7s:block_dv 9 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:repeating_command_block 10 scoreboard players set @s b7s:block_dv 10 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:repeating_command_block 11 scoreboard players set @s b7s:block_dv 11 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:repeating_command_block 12 scoreboard players set @s b7s:block_dv 12 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:repeating_command_block 13 scoreboard players set @s b7s:block_dv 13 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:chain_command_block 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:chain_command_block 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:chain_command_block 2 scoreboard players set @s b7s:block_dv 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:chain_command_block 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:chain_command_block 4 scoreboard players set @s b7s:block_dv 4 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:chain_command_block 5 scoreboard players set @s b7s:block_dv 5 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:chain_command_block 8 scoreboard players set @s b7s:block_dv 8 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:chain_command_block 9 scoreboard players set @s b7s:block_dv 9 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:chain_command_block 10 scoreboard players set @s b7s:block_dv 10 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:chain_command_block 11 scoreboard players set @s b7s:block_dv 11 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:chain_command_block 12 scoreboard players set @s b7s:block_dv 12 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:chain_command_block 13 scoreboard players set @s b7s:block_dv 13 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:frosted_ice 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:frosted_ice 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:frosted_ice 2 scoreboard players set @s b7s:block_dv 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:frosted_ice 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:magma 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:nether_wart_block 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:red_nether_brick 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:bone_block 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:bone_block 4 scoreboard players set @s b7s:block_dv 4 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:bone_block 8 scoreboard players set @s b7s:block_dv 8 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:structure_void 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:observer 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:observer 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:observer 2 scoreboard players set @s b7s:block_dv 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:observer 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:observer 4 scoreboard players set @s b7s:block_dv 4 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:observer 5 scoreboard players set @s b7s:block_dv 5 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:white_shulker_box 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:white_shulker_box 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:white_shulker_box 2 scoreboard players set @s b7s:block_dv 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:white_shulker_box 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:white_shulker_box 4 scoreboard players set @s b7s:block_dv 4 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:white_shulker_box 5 scoreboard players set @s b7s:block_dv 5 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:orange_shulker_box 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:orange_shulker_box 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:orange_shulker_box 2 scoreboard players set @s b7s:block_dv 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:orange_shulker_box 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:orange_shulker_box 4 scoreboard players set @s b7s:block_dv 4 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:orange_shulker_box 5 scoreboard players set @s b7s:block_dv 5 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:magenta_shulker_box 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:magenta_shulker_box 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:magenta_shulker_box 2 scoreboard players set @s b7s:block_dv 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:magenta_shulker_box 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:magenta_shulker_box 4 scoreboard players set @s b7s:block_dv 4 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:magenta_shulker_box 5 scoreboard players set @s b7s:block_dv 5 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:light_blue_shulker_box 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:light_blue_shulker_box 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:light_blue_shulker_box 2 scoreboard players set @s b7s:block_dv 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:light_blue_shulker_box 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:light_blue_shulker_box 4 scoreboard players set @s b7s:block_dv 4 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:light_blue_shulker_box 5 scoreboard players set @s b7s:block_dv 5 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:yellow_shulker_box 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:yellow_shulker_box 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:yellow_shulker_box 2 scoreboard players set @s b7s:block_dv 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:yellow_shulker_box 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:yellow_shulker_box 4 scoreboard players set @s b7s:block_dv 4 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:yellow_shulker_box 5 scoreboard players set @s b7s:block_dv 5 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:lime_shulker_box 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:lime_shulker_box 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:lime_shulker_box 2 scoreboard players set @s b7s:block_dv 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:lime_shulker_box 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:lime_shulker_box 4 scoreboard players set @s b7s:block_dv 4 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:lime_shulker_box 5 scoreboard players set @s b7s:block_dv 5 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:pink_shulker_box 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:pink_shulker_box 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:pink_shulker_box 2 scoreboard players set @s b7s:block_dv 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:pink_shulker_box 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:pink_shulker_box 4 scoreboard players set @s b7s:block_dv 4 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:pink_shulker_box 5 scoreboard players set @s b7s:block_dv 5 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:gray_shulker_box 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:gray_shulker_box 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:gray_shulker_box 2 scoreboard players set @s b7s:block_dv 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:gray_shulker_box 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:gray_shulker_box 4 scoreboard players set @s b7s:block_dv 4 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:gray_shulker_box 5 scoreboard players set @s b7s:block_dv 5 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:silver_shulker_box 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:silver_shulker_box 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:silver_shulker_box 2 scoreboard players set @s b7s:block_dv 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:silver_shulker_box 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:silver_shulker_box 4 scoreboard players set @s b7s:block_dv 4 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:silver_shulker_box 5 scoreboard players set @s b7s:block_dv 5 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:cyan_shulker_box 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:cyan_shulker_box 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:cyan_shulker_box 2 scoreboard players set @s b7s:block_dv 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:cyan_shulker_box 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:cyan_shulker_box 4 scoreboard players set @s b7s:block_dv 4 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:cyan_shulker_box 5 scoreboard players set @s b7s:block_dv 5 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:purple_shulker_box 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:purple_shulker_box 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:purple_shulker_box 2 scoreboard players set @s b7s:block_dv 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:purple_shulker_box 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:purple_shulker_box 4 scoreboard players set @s b7s:block_dv 4 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:purple_shulker_box 5 scoreboard players set @s b7s:block_dv 5 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:blue_shulker_box 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:blue_shulker_box 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:blue_shulker_box 2 scoreboard players set @s b7s:block_dv 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:blue_shulker_box 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:blue_shulker_box 4 scoreboard players set @s b7s:block_dv 4 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:blue_shulker_box 5 scoreboard players set @s b7s:block_dv 5 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:brown_shulker_box 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:brown_shulker_box 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:brown_shulker_box 2 scoreboard players set @s b7s:block_dv 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:brown_shulker_box 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:brown_shulker_box 4 scoreboard players set @s b7s:block_dv 4 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:brown_shulker_box 5 scoreboard players set @s b7s:block_dv 5 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:green_shulker_box 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:green_shulker_box 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:green_shulker_box 2 scoreboard players set @s b7s:block_dv 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:green_shulker_box 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:green_shulker_box 4 scoreboard players set @s b7s:block_dv 4 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:green_shulker_box 5 scoreboard players set @s b7s:block_dv 5 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:red_shulker_box 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:red_shulker_box 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:red_shulker_box 2 scoreboard players set @s b7s:block_dv 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:red_shulker_box 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:red_shulker_box 4 scoreboard players set @s b7s:block_dv 4 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:red_shulker_box 5 scoreboard players set @s b7s:block_dv 5 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:black_shulker_box 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:black_shulker_box 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:black_shulker_box 2 scoreboard players set @s b7s:block_dv 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:black_shulker_box 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:black_shulker_box 4 scoreboard players set @s b7s:block_dv 4 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:black_shulker_box 5 scoreboard players set @s b7s:block_dv 5 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:white_glazed_terracotta 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:white_glazed_terracotta 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:white_glazed_terracotta 2 scoreboard players set @s b7s:block_dv 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:white_glazed_terracotta 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:orange_glazed_terracotta 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:orange_glazed_terracotta 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:orange_glazed_terracotta 2 scoreboard players set @s b7s:block_dv 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:orange_glazed_terracotta 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:magenta_glazed_terracotta 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:magenta_glazed_terracotta 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:magenta_glazed_terracotta 2 scoreboard players set @s b7s:block_dv 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:magenta_glazed_terracotta 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:light_blue_glazed_terracotta 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:light_blue_glazed_terracotta 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:light_blue_glazed_terracotta 2 scoreboard players set @s b7s:block_dv 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:light_blue_glazed_terracotta 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:yellow_glazed_terracotta 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:yellow_glazed_terracotta 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:yellow_glazed_terracotta 2 scoreboard players set @s b7s:block_dv 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:yellow_glazed_terracotta 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:lime_glazed_terracotta 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:lime_glazed_terracotta 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:lime_glazed_terracotta 2 scoreboard players set @s b7s:block_dv 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:lime_glazed_terracotta 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:pink_glazed_terracotta 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:pink_glazed_terracotta 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:pink_glazed_terracotta 2 scoreboard players set @s b7s:block_dv 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:pink_glazed_terracotta 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:gray_glazed_terracotta 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:gray_glazed_terracotta 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:gray_glazed_terracotta 2 scoreboard players set @s b7s:block_dv 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:gray_glazed_terracotta 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:silver_glazed_terracotta 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:silver_glazed_terracotta 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:silver_glazed_terracotta 2 scoreboard players set @s b7s:block_dv 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:silver_glazed_terracotta 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:cyan_glazed_terracotta 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:cyan_glazed_terracotta 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:cyan_glazed_terracotta 2 scoreboard players set @s b7s:block_dv 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:cyan_glazed_terracotta 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:purple_glazed_terracotta 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:purple_glazed_terracotta 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:purple_glazed_terracotta 2 scoreboard players set @s b7s:block_dv 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:purple_glazed_terracotta 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:blue_glazed_terracotta 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:blue_glazed_terracotta 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:blue_glazed_terracotta 2 scoreboard players set @s b7s:block_dv 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:blue_glazed_terracotta 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:brown_glazed_terracotta 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:brown_glazed_terracotta 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:brown_glazed_terracotta 2 scoreboard players set @s b7s:block_dv 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:brown_glazed_terracotta 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:green_glazed_terracotta 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:green_glazed_terracotta 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:green_glazed_terracotta 2 scoreboard players set @s b7s:block_dv 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:green_glazed_terracotta 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:red_glazed_terracotta 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:red_glazed_terracotta 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:red_glazed_terracotta 2 scoreboard players set @s b7s:block_dv 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:red_glazed_terracotta 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:black_glazed_terracotta 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:black_glazed_terracotta 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:black_glazed_terracotta 2 scoreboard players set @s b7s:block_dv 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:black_glazed_terracotta 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:concrete 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:concrete 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:concrete 2 scoreboard players set @s b7s:block_dv 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:concrete 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:concrete 4 scoreboard players set @s b7s:block_dv 4 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:concrete 5 scoreboard players set @s b7s:block_dv 5 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:concrete 6 scoreboard players set @s b7s:block_dv 6 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:concrete 7 scoreboard players set @s b7s:block_dv 7 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:concrete 8 scoreboard players set @s b7s:block_dv 8 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:concrete 9 scoreboard players set @s b7s:block_dv 9 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:concrete 10 scoreboard players set @s b7s:block_dv 10 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:concrete 11 scoreboard players set @s b7s:block_dv 11 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:concrete 12 scoreboard players set @s b7s:block_dv 12 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:concrete 13 scoreboard players set @s b7s:block_dv 13 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:concrete 14 scoreboard players set @s b7s:block_dv 14 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:concrete 15 scoreboard players set @s b7s:block_dv 15 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:concrete_powder 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:concrete_powder 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:concrete_powder 2 scoreboard players set @s b7s:block_dv 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:concrete_powder 3 scoreboard players set @s b7s:block_dv 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:concrete_powder 4 scoreboard players set @s b7s:block_dv 4 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:concrete_powder 5 scoreboard players set @s b7s:block_dv 5 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:concrete_powder 6 scoreboard players set @s b7s:block_dv 6 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:concrete_powder 7 scoreboard players set @s b7s:block_dv 7 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:concrete_powder 8 scoreboard players set @s b7s:block_dv 8 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:concrete_powder 9 scoreboard players set @s b7s:block_dv 9 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:concrete_powder 10 scoreboard players set @s b7s:block_dv 10 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:concrete_powder 11 scoreboard players set @s b7s:block_dv 11 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:concrete_powder 12 scoreboard players set @s b7s:block_dv 12 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:concrete_powder 13 scoreboard players set @s b7s:block_dv 13 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:concrete_powder 14 scoreboard players set @s b7s:block_dv 14 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:concrete_powder 15 scoreboard players set @s b7s:block_dv 15 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:structure_block 0 scoreboard players set @s b7s:block_dv 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:structure_block 1 scoreboard players set @s b7s:block_dv 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:structure_block 2 scoreboard players set @s b7s:block_dv 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:structure_block 3 scoreboard players set @s b7s:block_dv 3 diff --git a/data/b7s/functions/entity/get_block_dv.mcfunction.py b/data/b7s/functions/entity/get_block_dv.mcfunction.py deleted file mode 100644 index ca35e0b..0000000 --- a/data/b7s/functions/entity/get_block_dv.mcfunction.py +++ /dev/null @@ -1,29 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -import json -import re -from urllib.request import urlopen - -print('# This Source Code Form is subject to the terms of the Mozilla Public') -print('# License, v. 2.0. If a copy of the MPL was not distributed with this') -print('# file, You can obtain one at http://mozilla.org/MPL/2.0/.') -print() -print('# Gets the numeric data value of the block with coordinates given by the') -print('# position of a player or entity.') -print('#') -print('# Scores set:') -print('# b7s:block_dv — the data value of the block') -print('#') -print('# Usage:') -print('# /execute ~ ~ ~ function b7s:entity/get_block_dv') -print() - -with urlopen('https://raw.githubusercontent.com/mcedit/mcedit2/2.0.0-beta11/src/mceditlib/blocktypes/idmapping_raw_1_12.json') as url: - json = json.loads(url.read()) - -for item in json: - block_name = re.sub(r'\[[^\]]*\]', '', item[2]) - block_meta = item[1] - print('execute @s ~ ~ ~ detect ~ ~ ~ ' + block_name + ' ' + str(block_meta) + ' scoreboard players set @s b7s:block_dv ' + str(block_meta)) diff --git a/data/b7s/functions/entity/get_block_dv_under.mcfunction b/data/b7s/functions/entity/get_block_dv_under.mcfunction deleted file mode 100644 index 5dc0210..0000000 --- a/data/b7s/functions/entity/get_block_dv_under.mcfunction +++ /dev/null @@ -1,16 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -# Gets the numeric data value of the block underneath a player or entity. -# -# Scores set: -# b7s:block_dv — the data value of the block -# -# Usage: -# /execute ~ ~ ~ function b7s:entity/get_block_dv_under - -summon minecraft:area_effect_cloud ~ ~-1 ~ {Tags:["b7s:_marker"]} -execute @e[tag=b7s:_marker] ~ ~ ~ function b7s:entity/get_block_dv -scoreboard players operation @s b7s:block_dv = @e[tag=b7s:_marker] b7s:block_dv -kill @e[tag=b7s:_marker] diff --git a/data/b7s/functions/entity/get_block_id.mcfunction b/data/b7s/functions/entity/get_block_id.mcfunction deleted file mode 100644 index 79ed30c..0000000 --- a/data/b7s/functions/entity/get_block_id.mcfunction +++ /dev/null @@ -1,267 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -# Gets the numeric ID of the block with coordinates given by the position of a -# player or entity. -# -# Scores set: -# b7s:block_id — the ID of the block -# -# Usage: -# /execute ~ ~ ~ function b7s:entity/get_block_id - -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:air -1 scoreboard players set @s b7s:block_id 0 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:stone -1 scoreboard players set @s b7s:block_id 1 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:grass -1 scoreboard players set @s b7s:block_id 2 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:dirt -1 scoreboard players set @s b7s:block_id 3 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:cobblestone -1 scoreboard players set @s b7s:block_id 4 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:planks -1 scoreboard players set @s b7s:block_id 5 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:sapling -1 scoreboard players set @s b7s:block_id 6 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:bedrock -1 scoreboard players set @s b7s:block_id 7 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:flowing_water -1 scoreboard players set @s b7s:block_id 8 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:water -1 scoreboard players set @s b7s:block_id 9 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:flowing_lava -1 scoreboard players set @s b7s:block_id 10 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:lava -1 scoreboard players set @s b7s:block_id 11 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:sand -1 scoreboard players set @s b7s:block_id 12 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:gravel -1 scoreboard players set @s b7s:block_id 13 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:gold_ore -1 scoreboard players set @s b7s:block_id 14 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:iron_ore -1 scoreboard players set @s b7s:block_id 15 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:coal_ore -1 scoreboard players set @s b7s:block_id 16 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:log -1 scoreboard players set @s b7s:block_id 17 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:leaves -1 scoreboard players set @s b7s:block_id 18 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:sponge -1 scoreboard players set @s b7s:block_id 19 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:glass -1 scoreboard players set @s b7s:block_id 20 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:lapis_ore -1 scoreboard players set @s b7s:block_id 21 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:lapis_block -1 scoreboard players set @s b7s:block_id 22 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:dispenser -1 scoreboard players set @s b7s:block_id 23 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:sandstone -1 scoreboard players set @s b7s:block_id 24 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:noteblock -1 scoreboard players set @s b7s:block_id 25 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:bed -1 scoreboard players set @s b7s:block_id 26 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:golden_rail -1 scoreboard players set @s b7s:block_id 27 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:detector_rail -1 scoreboard players set @s b7s:block_id 28 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:sticky_piston -1 scoreboard players set @s b7s:block_id 29 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:web -1 scoreboard players set @s b7s:block_id 30 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:tallgrass -1 scoreboard players set @s b7s:block_id 31 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:deadbush -1 scoreboard players set @s b7s:block_id 32 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:piston -1 scoreboard players set @s b7s:block_id 33 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:piston_head -1 scoreboard players set @s b7s:block_id 34 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:wool -1 scoreboard players set @s b7s:block_id 35 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:piston_extension -1 scoreboard players set @s b7s:block_id 36 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:yellow_flower -1 scoreboard players set @s b7s:block_id 37 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:red_flower -1 scoreboard players set @s b7s:block_id 38 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:brown_mushroom -1 scoreboard players set @s b7s:block_id 39 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:red_mushroom -1 scoreboard players set @s b7s:block_id 40 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:gold_block -1 scoreboard players set @s b7s:block_id 41 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:iron_block -1 scoreboard players set @s b7s:block_id 42 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:double_stone_slab -1 scoreboard players set @s b7s:block_id 43 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:stone_slab -1 scoreboard players set @s b7s:block_id 44 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:brick_block -1 scoreboard players set @s b7s:block_id 45 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:tnt -1 scoreboard players set @s b7s:block_id 46 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:bookshelf -1 scoreboard players set @s b7s:block_id 47 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:mossy_cobblestone -1 scoreboard players set @s b7s:block_id 48 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:obsidian -1 scoreboard players set @s b7s:block_id 49 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:torch -1 scoreboard players set @s b7s:block_id 50 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:fire -1 scoreboard players set @s b7s:block_id 51 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:mob_spawner -1 scoreboard players set @s b7s:block_id 52 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:oak_stairs -1 scoreboard players set @s b7s:block_id 53 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:chest -1 scoreboard players set @s b7s:block_id 54 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:redstone_wire -1 scoreboard players set @s b7s:block_id 55 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:diamond_ore -1 scoreboard players set @s b7s:block_id 56 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:diamond_block -1 scoreboard players set @s b7s:block_id 57 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:crafting_table -1 scoreboard players set @s b7s:block_id 58 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:wheat -1 scoreboard players set @s b7s:block_id 59 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:farmland -1 scoreboard players set @s b7s:block_id 60 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:furnace -1 scoreboard players set @s b7s:block_id 61 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:lit_furnace -1 scoreboard players set @s b7s:block_id 62 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:standing_sign -1 scoreboard players set @s b7s:block_id 63 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:wooden_door -1 scoreboard players set @s b7s:block_id 64 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:ladder -1 scoreboard players set @s b7s:block_id 65 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:rail -1 scoreboard players set @s b7s:block_id 66 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:stone_stairs -1 scoreboard players set @s b7s:block_id 67 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:wall_sign -1 scoreboard players set @s b7s:block_id 68 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:lever -1 scoreboard players set @s b7s:block_id 69 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:stone_pressure_plate -1 scoreboard players set @s b7s:block_id 70 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:iron_door -1 scoreboard players set @s b7s:block_id 71 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:wooden_pressure_plate -1 scoreboard players set @s b7s:block_id 72 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:redstone_ore -1 scoreboard players set @s b7s:block_id 73 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:lit_redstone_ore -1 scoreboard players set @s b7s:block_id 74 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:unlit_redstone_torch -1 scoreboard players set @s b7s:block_id 75 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:redstone_torch -1 scoreboard players set @s b7s:block_id 76 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:stone_button -1 scoreboard players set @s b7s:block_id 77 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:snow_layer -1 scoreboard players set @s b7s:block_id 78 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:ice -1 scoreboard players set @s b7s:block_id 79 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:snow -1 scoreboard players set @s b7s:block_id 80 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:cactus -1 scoreboard players set @s b7s:block_id 81 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:clay -1 scoreboard players set @s b7s:block_id 82 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:reeds -1 scoreboard players set @s b7s:block_id 83 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:jukebox -1 scoreboard players set @s b7s:block_id 84 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:fence -1 scoreboard players set @s b7s:block_id 85 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:pumpkin -1 scoreboard players set @s b7s:block_id 86 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:netherrack -1 scoreboard players set @s b7s:block_id 87 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:soul_sand -1 scoreboard players set @s b7s:block_id 88 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:glowstone -1 scoreboard players set @s b7s:block_id 89 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:portal -1 scoreboard players set @s b7s:block_id 90 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:lit_pumpkin -1 scoreboard players set @s b7s:block_id 91 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:cake -1 scoreboard players set @s b7s:block_id 92 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:unpowered_repeater -1 scoreboard players set @s b7s:block_id 93 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:powered_repeater -1 scoreboard players set @s b7s:block_id 94 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:stained_glass -1 scoreboard players set @s b7s:block_id 95 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:trapdoor -1 scoreboard players set @s b7s:block_id 96 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:monster_egg -1 scoreboard players set @s b7s:block_id 97 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:stonebrick -1 scoreboard players set @s b7s:block_id 98 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:brown_mushroom_block -1 scoreboard players set @s b7s:block_id 99 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:red_mushroom_block -1 scoreboard players set @s b7s:block_id 100 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:iron_bars -1 scoreboard players set @s b7s:block_id 101 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:glass_pane -1 scoreboard players set @s b7s:block_id 102 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:melon_block -1 scoreboard players set @s b7s:block_id 103 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:pumpkin_stem -1 scoreboard players set @s b7s:block_id 104 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:melon_stem -1 scoreboard players set @s b7s:block_id 105 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:vine -1 scoreboard players set @s b7s:block_id 106 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:fence_gate -1 scoreboard players set @s b7s:block_id 107 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:brick_stairs -1 scoreboard players set @s b7s:block_id 108 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:stone_brick_stairs -1 scoreboard players set @s b7s:block_id 109 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:mycelium -1 scoreboard players set @s b7s:block_id 110 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:waterlily -1 scoreboard players set @s b7s:block_id 111 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:nether_brick -1 scoreboard players set @s b7s:block_id 112 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:nether_brick_fence -1 scoreboard players set @s b7s:block_id 113 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:nether_brick_stairs -1 scoreboard players set @s b7s:block_id 114 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:nether_wart -1 scoreboard players set @s b7s:block_id 115 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:enchanting_table -1 scoreboard players set @s b7s:block_id 116 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:brewing_stand -1 scoreboard players set @s b7s:block_id 117 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:cauldron -1 scoreboard players set @s b7s:block_id 118 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:end_portal -1 scoreboard players set @s b7s:block_id 119 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:end_portal_frame -1 scoreboard players set @s b7s:block_id 120 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:end_stone -1 scoreboard players set @s b7s:block_id 121 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:dragon_egg -1 scoreboard players set @s b7s:block_id 122 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:redstone_lamp -1 scoreboard players set @s b7s:block_id 123 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:lit_redstone_lamp -1 scoreboard players set @s b7s:block_id 124 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:double_wooden_slab -1 scoreboard players set @s b7s:block_id 125 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:wooden_slab -1 scoreboard players set @s b7s:block_id 126 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:cocoa -1 scoreboard players set @s b7s:block_id 127 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:sandstone_stairs -1 scoreboard players set @s b7s:block_id 128 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:emerald_ore -1 scoreboard players set @s b7s:block_id 129 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:ender_chest -1 scoreboard players set @s b7s:block_id 130 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:tripwire_hook -1 scoreboard players set @s b7s:block_id 131 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:tripwire -1 scoreboard players set @s b7s:block_id 132 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:emerald_block -1 scoreboard players set @s b7s:block_id 133 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:spruce_stairs -1 scoreboard players set @s b7s:block_id 134 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:birch_stairs -1 scoreboard players set @s b7s:block_id 135 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:jungle_stairs -1 scoreboard players set @s b7s:block_id 136 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:command_block -1 scoreboard players set @s b7s:block_id 137 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:beacon -1 scoreboard players set @s b7s:block_id 138 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:cobblestone_wall -1 scoreboard players set @s b7s:block_id 139 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:flower_pot -1 scoreboard players set @s b7s:block_id 140 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:carrots -1 scoreboard players set @s b7s:block_id 141 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:potatoes -1 scoreboard players set @s b7s:block_id 142 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:wooden_button -1 scoreboard players set @s b7s:block_id 143 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:skull -1 scoreboard players set @s b7s:block_id 144 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:anvil -1 scoreboard players set @s b7s:block_id 145 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:trapped_chest -1 scoreboard players set @s b7s:block_id 146 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:light_weighted_pressure_plate -1 scoreboard players set @s b7s:block_id 147 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:heavy_weighted_pressure_plate -1 scoreboard players set @s b7s:block_id 148 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:unpowered_comparator -1 scoreboard players set @s b7s:block_id 149 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:powered_comparator -1 scoreboard players set @s b7s:block_id 150 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:daylight_detector -1 scoreboard players set @s b7s:block_id 151 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:redstone_block -1 scoreboard players set @s b7s:block_id 152 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:quartz_ore -1 scoreboard players set @s b7s:block_id 153 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:hopper -1 scoreboard players set @s b7s:block_id 154 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:quartz_block -1 scoreboard players set @s b7s:block_id 155 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:quartz_stairs -1 scoreboard players set @s b7s:block_id 156 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:activator_rail -1 scoreboard players set @s b7s:block_id 157 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:dropper -1 scoreboard players set @s b7s:block_id 158 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:stained_hardened_clay -1 scoreboard players set @s b7s:block_id 159 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:stained_glass_pane -1 scoreboard players set @s b7s:block_id 160 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:leaves2 -1 scoreboard players set @s b7s:block_id 161 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:log2 -1 scoreboard players set @s b7s:block_id 162 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:acacia_stairs -1 scoreboard players set @s b7s:block_id 163 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:dark_oak_stairs -1 scoreboard players set @s b7s:block_id 164 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:slime -1 scoreboard players set @s b7s:block_id 165 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:barrier -1 scoreboard players set @s b7s:block_id 166 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:iron_trapdoor -1 scoreboard players set @s b7s:block_id 167 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:prismarine -1 scoreboard players set @s b7s:block_id 168 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:sea_lantern -1 scoreboard players set @s b7s:block_id 169 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:hay_block -1 scoreboard players set @s b7s:block_id 170 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:carpet -1 scoreboard players set @s b7s:block_id 171 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:hardened_clay -1 scoreboard players set @s b7s:block_id 172 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:coal_block -1 scoreboard players set @s b7s:block_id 173 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:packed_ice -1 scoreboard players set @s b7s:block_id 174 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:double_plant -1 scoreboard players set @s b7s:block_id 175 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:standing_banner -1 scoreboard players set @s b7s:block_id 176 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:wall_banner -1 scoreboard players set @s b7s:block_id 177 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:daylight_detector_inverted -1 scoreboard players set @s b7s:block_id 178 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:red_sandstone -1 scoreboard players set @s b7s:block_id 179 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:red_sandstone_stairs -1 scoreboard players set @s b7s:block_id 180 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:double_stone_slab2 -1 scoreboard players set @s b7s:block_id 181 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:stone_slab2 -1 scoreboard players set @s b7s:block_id 182 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:spruce_fence_gate -1 scoreboard players set @s b7s:block_id 183 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:birch_fence_gate -1 scoreboard players set @s b7s:block_id 184 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:jungle_fence_gate -1 scoreboard players set @s b7s:block_id 185 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:dark_oak_fence_gate -1 scoreboard players set @s b7s:block_id 186 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:acacia_fence_gate -1 scoreboard players set @s b7s:block_id 187 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:spruce_fence -1 scoreboard players set @s b7s:block_id 188 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:birch_fence -1 scoreboard players set @s b7s:block_id 189 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:jungle_fence -1 scoreboard players set @s b7s:block_id 190 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:dark_oak_fence -1 scoreboard players set @s b7s:block_id 191 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:acacia_fence -1 scoreboard players set @s b7s:block_id 192 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:spruce_door -1 scoreboard players set @s b7s:block_id 193 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:birch_door -1 scoreboard players set @s b7s:block_id 194 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:jungle_door -1 scoreboard players set @s b7s:block_id 195 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:acacia_door -1 scoreboard players set @s b7s:block_id 196 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:dark_oak_door -1 scoreboard players set @s b7s:block_id 197 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:end_rod -1 scoreboard players set @s b7s:block_id 198 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:chorus_plant -1 scoreboard players set @s b7s:block_id 199 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:chorus_flower -1 scoreboard players set @s b7s:block_id 200 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:purpur_block -1 scoreboard players set @s b7s:block_id 201 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:purpur_pillar -1 scoreboard players set @s b7s:block_id 202 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:purpur_stairs -1 scoreboard players set @s b7s:block_id 203 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:purpur_double_slab -1 scoreboard players set @s b7s:block_id 204 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:purpur_slab -1 scoreboard players set @s b7s:block_id 205 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:end_bricks -1 scoreboard players set @s b7s:block_id 206 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:beetroots -1 scoreboard players set @s b7s:block_id 207 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:grass_path -1 scoreboard players set @s b7s:block_id 208 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:end_gateway -1 scoreboard players set @s b7s:block_id 209 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:repeating_command_block -1 scoreboard players set @s b7s:block_id 210 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:chain_command_block -1 scoreboard players set @s b7s:block_id 211 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:frosted_ice -1 scoreboard players set @s b7s:block_id 212 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:magma -1 scoreboard players set @s b7s:block_id 213 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:nether_wart_block -1 scoreboard players set @s b7s:block_id 214 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:red_nether_brick -1 scoreboard players set @s b7s:block_id 215 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:bone_block -1 scoreboard players set @s b7s:block_id 216 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:structure_void -1 scoreboard players set @s b7s:block_id 217 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:observer -1 scoreboard players set @s b7s:block_id 218 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:white_shulker_box -1 scoreboard players set @s b7s:block_id 219 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:orange_shulker_box -1 scoreboard players set @s b7s:block_id 220 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:magenta_shulker_box -1 scoreboard players set @s b7s:block_id 221 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:light_blue_shulker_box -1 scoreboard players set @s b7s:block_id 222 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:yellow_shulker_box -1 scoreboard players set @s b7s:block_id 223 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:lime_shulker_box -1 scoreboard players set @s b7s:block_id 224 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:pink_shulker_box -1 scoreboard players set @s b7s:block_id 225 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:gray_shulker_box -1 scoreboard players set @s b7s:block_id 226 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:silver_shulker_box -1 scoreboard players set @s b7s:block_id 227 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:cyan_shulker_box -1 scoreboard players set @s b7s:block_id 228 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:purple_shulker_box -1 scoreboard players set @s b7s:block_id 229 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:blue_shulker_box -1 scoreboard players set @s b7s:block_id 230 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:brown_shulker_box -1 scoreboard players set @s b7s:block_id 231 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:green_shulker_box -1 scoreboard players set @s b7s:block_id 232 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:red_shulker_box -1 scoreboard players set @s b7s:block_id 233 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:black_shulker_box -1 scoreboard players set @s b7s:block_id 234 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:white_glazed_terracotta -1 scoreboard players set @s b7s:block_id 235 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:orange_glazed_terracotta -1 scoreboard players set @s b7s:block_id 236 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:magenta_glazed_terracotta -1 scoreboard players set @s b7s:block_id 237 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:light_blue_glazed_terracotta -1 scoreboard players set @s b7s:block_id 238 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:yellow_glazed_terracotta -1 scoreboard players set @s b7s:block_id 239 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:lime_glazed_terracotta -1 scoreboard players set @s b7s:block_id 240 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:pink_glazed_terracotta -1 scoreboard players set @s b7s:block_id 241 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:gray_glazed_terracotta -1 scoreboard players set @s b7s:block_id 242 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:silver_glazed_terracotta -1 scoreboard players set @s b7s:block_id 243 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:cyan_glazed_terracotta -1 scoreboard players set @s b7s:block_id 244 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:purple_glazed_terracotta -1 scoreboard players set @s b7s:block_id 245 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:blue_glazed_terracotta -1 scoreboard players set @s b7s:block_id 246 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:brown_glazed_terracotta -1 scoreboard players set @s b7s:block_id 247 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:green_glazed_terracotta -1 scoreboard players set @s b7s:block_id 248 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:red_glazed_terracotta -1 scoreboard players set @s b7s:block_id 249 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:black_glazed_terracotta -1 scoreboard players set @s b7s:block_id 250 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:concrete -1 scoreboard players set @s b7s:block_id 251 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:concrete_powder -1 scoreboard players set @s b7s:block_id 252 -execute @s ~ ~ ~ detect ~ ~ ~ minecraft:structure_block -1 scoreboard players set @s b7s:block_id 255 diff --git a/data/b7s/functions/entity/get_block_id.mcfunction.py b/data/b7s/functions/entity/get_block_id.mcfunction.py deleted file mode 100644 index 1230245..0000000 --- a/data/b7s/functions/entity/get_block_id.mcfunction.py +++ /dev/null @@ -1,33 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -import json -import re -from collections import OrderedDict -from urllib.request import urlopen - -print('# This Source Code Form is subject to the terms of the Mozilla Public') -print('# License, v. 2.0. If a copy of the MPL was not distributed with this') -print('# file, You can obtain one at http://mozilla.org/MPL/2.0/.') -print() -print('# Gets the numeric ID of the block with coordinates given by the position of a') -print('# player or entity.') -print('#') -print('# Scores set:') -print('# b7s:block_id — the ID of the block') -print('#') -print('# Usage:') -print('# /execute ~ ~ ~ function b7s:entity/get_block_id') -print() - -with urlopen('https://raw.githubusercontent.com/mcedit/mcedit2/2.0.0-beta11/src/mceditlib/blocktypes/idmapping_raw_1_12.json') as url: - json = json.loads(url.read()) - -id_mapping = OrderedDict() - -for item in json: - id_mapping[re.sub(r'\[[^\]]*\]', '', item[2])] = item[0] - -for block_name, block_id in id_mapping.items(): - print('execute @s ~ ~ ~ detect ~ ~ ~ ' + block_name + ' -1 scoreboard players set @s b7s:block_id ' + str(block_id)) diff --git a/data/b7s/functions/entity/get_block_id_under.mcfunction b/data/b7s/functions/entity/get_block_id_under.mcfunction deleted file mode 100644 index d53acbd..0000000 --- a/data/b7s/functions/entity/get_block_id_under.mcfunction +++ /dev/null @@ -1,16 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -# Gets the numeric ID of the block underneath player or entity. -# -# Scores set: -# b7s:block_id — the ID of the block -# -# Usage: -# /execute ~ ~ ~ function b7s:entity/get_block_id_under - -summon minecraft:area_effect_cloud ~ ~-1 ~ {Tags:["b7s:_marker"]} -execute @e[tag=b7s:_marker] ~ ~ ~ function b7s:entity/get_block_id -scoreboard players operation @s b7s:block_id = @e[tag=b7s:_marker] b7s:block_id -kill @e[tag=b7s:_marker] diff --git a/data/b7s/functions/entity/get_dim.mcfunction b/data/b7s/functions/entity/get_dim.mcfunction deleted file mode 100644 index 47ece68..0000000 --- a/data/b7s/functions/entity/get_dim.mcfunction +++ /dev/null @@ -1,15 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -# Gets the dimension of a player or entity. -# -# Scores set: -# b7s:dim — the entity's dimension. Nether = -1, Overworld = 0, End = 1 -# -# Usage: -# /execute ~ ~ ~ function b7s:entity/get_dim - -scoreboard players set @s b7s:dim -1 {Dimension:-1} -scoreboard players set @s b7s:dim 0 {Dimension:0} -scoreboard players set @s b7s:dim 1 {Dimension:1} diff --git a/data/b7s/functions/entity/get_loc.mcfunction b/data/b7s/functions/entity/get_loc.mcfunction index 41043aa..4d3352b 100644 --- a/data/b7s/functions/entity/get_loc.mcfunction +++ b/data/b7s/functions/entity/get_loc.mcfunction @@ -5,16 +5,19 @@ # Gets the dimension, position and rotation of a player or entity. # # Scores set: -# b7s:dim — the entity's dimension. Nether = -1, Overworld = 0, End = 1 -# b7s:x — the entity's x coordinate -# b7s:y — the entity's y coordinate -# b7s:z — the entity's z coordinate -# b7s:rot_x — the entity's x rotation -# b7s:rot_y — the entity's y rotation +# b7s.dim - the entity's dimension. Nether = -1, Overworld = 0, End = 1 +# b7s.x - the entity's x coordinate +# b7s.y - the entity's y coordinate +# b7s.z - the entity's z coordinate +# b7s.rot_x - the entity's x rotation +# b7s.rot_y - the entity's y rotation # # Usage: -# /execute ~ ~ ~ function b7s:entity/get_loc +# /execute as run function b7s:entity/get_loc -function b7s:entity/get_dim -function b7s:entity/get_pos -function b7s:entity/get_rot +execute store result score @s b7s.dim run data get entity @s Dimension +execute store result score @s b7s.x run data get entity @s Pos[0] +execute store result score @s b7s.y run data get entity @s Pos[1] +execute store result score @s b7s.z run data get entity @s Pos[2] +execute store result score @s b7s.rot_x run data get entity @s Rotation[0] +execute store result score @s b7s.rot_y run data get entity @s Rotation[1] diff --git a/data/b7s/functions/entity/get_pos.mcfunction b/data/b7s/functions/entity/get_pos.mcfunction deleted file mode 100644 index bdbb60f..0000000 --- a/data/b7s/functions/entity/get_pos.mcfunction +++ /dev/null @@ -1,24 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -# Gets the position of a player or entity. -# -# Scores set: -# b7s:x — the entity's x coordinate -# b7s:y — the entity's y coordinate -# b7s:z — the entity's z coordinate -# -# Usage: -# /execute ~ ~ ~ function b7s:entity/get_pos - -scoreboard players tag @s add b7s:_self - -scoreboard players set @s b7s:x -30000000 -scoreboard players set @s b7s:y -4096 -scoreboard players set @s b7s:z -30000000 - -summon minecraft:area_effect_cloud ~ ~ ~ {Tags:["b7s:_marker"]} -execute @e[tag=b7s:_marker] ~ ~ ~ function b7s:entity/get_pos/_as_marker -kill @e[tag=b7s:_marker] -scoreboard players tag @s remove b7s:_self diff --git a/data/b7s/functions/entity/get_pos/_as_marker.mcfunction b/data/b7s/functions/entity/get_pos/_as_marker.mcfunction deleted file mode 100644 index d550c2a..0000000 --- a/data/b7s/functions/entity/get_pos/_as_marker.mcfunction +++ /dev/null @@ -1,138 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -function b7s:entity/track_success_cnt - -tp @s ~-33554432 ~ ~ -execute @s[score_b7s:success_cnt_min=1] ~ ~ ~ scoreboard players add @e[tag=b7s:_self] b7s:x 33554432 -tp @s ~-16777216 ~ ~ -execute @s[score_b7s:success_cnt_min=1] ~ ~ ~ scoreboard players add @e[tag=b7s:_self] b7s:x 16777216 -tp @s ~-8388608 ~ ~ -execute @s[score_b7s:success_cnt_min=1] ~ ~ ~ scoreboard players add @e[tag=b7s:_self] b7s:x 8388608 -tp @s ~-4194304 ~ ~ -execute @s[score_b7s:success_cnt_min=1] ~ ~ ~ scoreboard players add @e[tag=b7s:_self] b7s:x 4194304 -tp @s ~-2097152 ~ ~ -execute @s[score_b7s:success_cnt_min=1] ~ ~ ~ scoreboard players add @e[tag=b7s:_self] b7s:x 2097152 -tp @s ~-1048576 ~ ~ -execute @s[score_b7s:success_cnt_min=1] ~ ~ ~ scoreboard players add @e[tag=b7s:_self] b7s:x 1048576 -tp @s ~-524288 ~ ~ -execute @s[score_b7s:success_cnt_min=1] ~ ~ ~ scoreboard players add @e[tag=b7s:_self] b7s:x 524288 -tp @s ~-262144 ~ ~ -execute @s[score_b7s:success_cnt_min=1] ~ ~ ~ scoreboard players add @e[tag=b7s:_self] b7s:x 262144 -tp @s ~-131072 ~ ~ -execute @s[score_b7s:success_cnt_min=1] ~ ~ ~ scoreboard players add @e[tag=b7s:_self] b7s:x 131072 -tp @s ~-65536 ~ ~ -execute @s[score_b7s:success_cnt_min=1] ~ ~ ~ scoreboard players add @e[tag=b7s:_self] b7s:x 65536 -tp @s ~-32768 ~ ~ -execute @s[score_b7s:success_cnt_min=1] ~ ~ ~ scoreboard players add @e[tag=b7s:_self] b7s:x 32768 -tp @s ~-16384 ~ ~ -execute @s[score_b7s:success_cnt_min=1] ~ ~ ~ scoreboard players add @e[tag=b7s:_self] b7s:x 16384 -tp @s ~-8192 ~ ~ -execute @s[score_b7s:success_cnt_min=1] ~ ~ ~ scoreboard players add @e[tag=b7s:_self] b7s:x 8192 -tp @s ~-4096 ~ ~ -execute @s[score_b7s:success_cnt_min=1] ~ ~ ~ scoreboard players add @e[tag=b7s:_self] b7s:x 4096 -tp @s ~-2048 ~ ~ -execute @s[score_b7s:success_cnt_min=1] ~ ~ ~ scoreboard players add @e[tag=b7s:_self] b7s:x 2048 -tp @s ~-1024 ~ ~ -execute @s[score_b7s:success_cnt_min=1] ~ ~ ~ scoreboard players add @e[tag=b7s:_self] b7s:x 1024 -tp @s ~-512 ~ ~ -execute @s[score_b7s:success_cnt_min=1] ~ ~ ~ scoreboard players add @e[tag=b7s:_self] b7s:x 512 -tp @s ~-256 ~ ~ -execute @s[score_b7s:success_cnt_min=1] ~ ~ ~ scoreboard players add @e[tag=b7s:_self] b7s:x 256 -tp @s ~-128 ~ ~ -execute @s[score_b7s:success_cnt_min=1] ~ ~ ~ scoreboard players add @e[tag=b7s:_self] b7s:x 128 -tp @s ~-64 ~ ~ -execute @s[score_b7s:success_cnt_min=1] ~ ~ ~ scoreboard players add @e[tag=b7s:_self] b7s:x 64 -tp @s ~-32 ~ ~ -execute @s[score_b7s:success_cnt_min=1] ~ ~ ~ scoreboard players add @e[tag=b7s:_self] b7s:x 32 -tp @s ~-16 ~ ~ -execute @s[score_b7s:success_cnt_min=1] ~ ~ ~ scoreboard players add @e[tag=b7s:_self] b7s:x 16 -tp @s ~-8 ~ ~ -execute @s[score_b7s:success_cnt_min=1] ~ ~ ~ scoreboard players add @e[tag=b7s:_self] b7s:x 8 -tp @s ~-4 ~ ~ -execute @s[score_b7s:success_cnt_min=1] ~ ~ ~ scoreboard players add @e[tag=b7s:_self] b7s:x 4 -tp @s ~-2 ~ ~ -execute @s[score_b7s:success_cnt_min=1] ~ ~ ~ scoreboard players add @e[tag=b7s:_self] b7s:x 2 -tp @s ~-1 ~ ~ -execute @s[score_b7s:success_cnt_min=1] ~ ~ ~ scoreboard players add @e[tag=b7s:_self] b7s:x 1 - -tp @s ~ ~-4096 ~ -execute @s[score_b7s:success_cnt_min=1] ~ ~ ~ scoreboard players add @e[tag=b7s:_self] b7s:y 4096 -tp @s ~ ~-2048 ~ -execute @s[score_b7s:success_cnt_min=1] ~ ~ ~ scoreboard players add @e[tag=b7s:_self] b7s:y 2048 -tp @s ~ ~-1024 ~ -execute @s[score_b7s:success_cnt_min=1] ~ ~ ~ scoreboard players add @e[tag=b7s:_self] b7s:y 1024 -tp @s ~ ~-512 ~ -execute @s[score_b7s:success_cnt_min=1] ~ ~ ~ scoreboard players add @e[tag=b7s:_self] b7s:y 512 -tp @s ~ ~-256 ~ -execute @s[score_b7s:success_cnt_min=1] ~ ~ ~ scoreboard players add @e[tag=b7s:_self] b7s:y 256 -tp @s ~ ~-128 ~ -execute @s[score_b7s:success_cnt_min=1] ~ ~ ~ scoreboard players add @e[tag=b7s:_self] b7s:y 128 -tp @s ~ ~-64 ~ -execute @s[score_b7s:success_cnt_min=1] ~ ~ ~ scoreboard players add @e[tag=b7s:_self] b7s:y 64 -tp @s ~ ~-32 ~ -execute @s[score_b7s:success_cnt_min=1] ~ ~ ~ scoreboard players add @e[tag=b7s:_self] b7s:y 32 -tp @s ~ ~-16 ~ -execute @s[score_b7s:success_cnt_min=1] ~ ~ ~ scoreboard players add @e[tag=b7s:_self] b7s:y 16 -tp @s ~ ~-8 ~ -execute @s[score_b7s:success_cnt_min=1] ~ ~ ~ scoreboard players add @e[tag=b7s:_self] b7s:y 8 -tp @s ~ ~-4 ~ -execute @s[score_b7s:success_cnt_min=1] ~ ~ ~ scoreboard players add @e[tag=b7s:_self] b7s:y 4 -tp @s ~ ~-2 ~ -execute @s[score_b7s:success_cnt_min=1] ~ ~ ~ scoreboard players add @e[tag=b7s:_self] b7s:y 2 -tp @s ~ ~-1 ~ -execute @s[score_b7s:success_cnt_min=1] ~ ~ ~ scoreboard players add @e[tag=b7s:_self] b7s:y 1 - -tp @s ~ ~ ~-33554432 -execute @s[score_b7s:success_cnt_min=1] ~ ~ ~ scoreboard players add @e[tag=b7s:_self] b7s:z 33554432 -tp @s ~ ~ ~-16777216 -execute @s[score_b7s:success_cnt_min=1] ~ ~ ~ scoreboard players add @e[tag=b7s:_self] b7s:z 16777216 -tp @s ~ ~ ~-8388608 -execute @s[score_b7s:success_cnt_min=1] ~ ~ ~ scoreboard players add @e[tag=b7s:_self] b7s:z 8388608 -tp @s ~ ~ ~-4194304 -execute @s[score_b7s:success_cnt_min=1] ~ ~ ~ scoreboard players add @e[tag=b7s:_self] b7s:z 4194304 -tp @s ~ ~ ~-2097152 -execute @s[score_b7s:success_cnt_min=1] ~ ~ ~ scoreboard players add @e[tag=b7s:_self] b7s:z 2097152 -tp @s ~ ~ ~-1048576 -execute @s[score_b7s:success_cnt_min=1] ~ ~ ~ scoreboard players add @e[tag=b7s:_self] b7s:z 1048576 -tp @s ~ ~ ~-524288 -execute @s[score_b7s:success_cnt_min=1] ~ ~ ~ scoreboard players add @e[tag=b7s:_self] b7s:z 524288 -tp @s ~ ~ ~-262144 -execute @s[score_b7s:success_cnt_min=1] ~ ~ ~ scoreboard players add @e[tag=b7s:_self] b7s:z 262144 -tp @s ~ ~ ~-131072 -execute @s[score_b7s:success_cnt_min=1] ~ ~ ~ scoreboard players add @e[tag=b7s:_self] b7s:z 131072 -tp @s ~ ~ ~-65536 -execute @s[score_b7s:success_cnt_min=1] ~ ~ ~ scoreboard players add @e[tag=b7s:_self] b7s:z 65536 -tp @s ~ ~ ~-32768 -execute @s[score_b7s:success_cnt_min=1] ~ ~ ~ scoreboard players add @e[tag=b7s:_self] b7s:z 32768 -tp @s ~ ~ ~-16384 -execute @s[score_b7s:success_cnt_min=1] ~ ~ ~ scoreboard players add @e[tag=b7s:_self] b7s:z 16384 -tp @s ~ ~ ~-8192 -execute @s[score_b7s:success_cnt_min=1] ~ ~ ~ scoreboard players add @e[tag=b7s:_self] b7s:z 8192 -tp @s ~ ~ ~-4096 -execute @s[score_b7s:success_cnt_min=1] ~ ~ ~ scoreboard players add @e[tag=b7s:_self] b7s:z 4096 -tp @s ~ ~ ~-2048 -execute @s[score_b7s:success_cnt_min=1] ~ ~ ~ scoreboard players add @e[tag=b7s:_self] b7s:z 2048 -tp @s ~ ~ ~-1024 -execute @s[score_b7s:success_cnt_min=1] ~ ~ ~ scoreboard players add @e[tag=b7s:_self] b7s:z 1024 -tp @s ~ ~ ~-512 -execute @s[score_b7s:success_cnt_min=1] ~ ~ ~ scoreboard players add @e[tag=b7s:_self] b7s:z 512 -tp @s ~ ~ ~-256 -execute @s[score_b7s:success_cnt_min=1] ~ ~ ~ scoreboard players add @e[tag=b7s:_self] b7s:z 256 -tp @s ~ ~ ~-128 -execute @s[score_b7s:success_cnt_min=1] ~ ~ ~ scoreboard players add @e[tag=b7s:_self] b7s:z 128 -tp @s ~ ~ ~-64 -execute @s[score_b7s:success_cnt_min=1] ~ ~ ~ scoreboard players add @e[tag=b7s:_self] b7s:z 64 -tp @s ~ ~ ~-32 -execute @s[score_b7s:success_cnt_min=1] ~ ~ ~ scoreboard players add @e[tag=b7s:_self] b7s:z 32 -tp @s ~ ~ ~-16 -execute @s[score_b7s:success_cnt_min=1] ~ ~ ~ scoreboard players add @e[tag=b7s:_self] b7s:z 16 -tp @s ~ ~ ~-8 -execute @s[score_b7s:success_cnt_min=1] ~ ~ ~ scoreboard players add @e[tag=b7s:_self] b7s:z 8 -tp @s ~ ~ ~-4 -execute @s[score_b7s:success_cnt_min=1] ~ ~ ~ scoreboard players add @e[tag=b7s:_self] b7s:z 4 -tp @s ~ ~ ~-2 -execute @s[score_b7s:success_cnt_min=1] ~ ~ ~ scoreboard players add @e[tag=b7s:_self] b7s:z 2 -tp @s ~ ~ ~-1 -execute @s[score_b7s:success_cnt_min=1] ~ ~ ~ scoreboard players add @e[tag=b7s:_self] b7s:z 1 diff --git a/data/b7s/functions/entity/get_pos/_as_marker.mcfunction.py b/data/b7s/functions/entity/get_pos/_as_marker.mcfunction.py deleted file mode 100644 index cd9c9a9..0000000 --- a/data/b7s/functions/entity/get_pos/_as_marker.mcfunction.py +++ /dev/null @@ -1,24 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -print('# This Source Code Form is subject to the terms of the Mozilla Public') -print('# License, v. 2.0. If a copy of the MPL was not distributed with this') -print('# file, You can obtain one at http://mozilla.org/MPL/2.0/.') -print() -print('function b7s:entity/track_success_cnt') - -print() -for exponent in range(25, -1, -1): - print('tp @s ~{} ~ ~'.format(-2 ** exponent)) - print('execute @s[score_b7s:success_cnt_min=1] ~ ~ ~ scoreboard players add @e[tag=b7s:_self] b7s:x {}'.format(2 ** exponent)) - -print() -for exponent in range(12, -1, -1): - print('tp @s ~ ~{} ~'.format(-2 ** exponent)) - print('execute @s[score_b7s:success_cnt_min=1] ~ ~ ~ scoreboard players add @e[tag=b7s:_self] b7s:y {}'.format(2 ** exponent)) - -print() -for exponent in range(25, -1, -1): - print('tp @s ~ ~ ~{}'.format(-2 ** exponent)) - print('execute @s[score_b7s:success_cnt_min=1] ~ ~ ~ scoreboard players add @e[tag=b7s:_self] b7s:z {}'.format(2 ** exponent)) diff --git a/data/b7s/functions/entity/get_pos_in_chunk.mcfunction b/data/b7s/functions/entity/get_pos_in_chunk.mcfunction deleted file mode 100644 index 75e8aa5..0000000 --- a/data/b7s/functions/entity/get_pos_in_chunk.mcfunction +++ /dev/null @@ -1,35 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -# Gets the chunk position of a player or entity. -# -# Scores required: -# b7s:x — the x coordinate of the entity -# b7s:y — the y coordinate of the entity -# b7s:z — the z coordinate of the entity -# -# Scores set: -# b7s:x_in_chunk — the chunk x coordinate of the entity -# b7s:y_in_chunk — the chunk y coordinate of the entity -# b7s:z_in_chunk — the chunk z coordinate of the entity -# -# Usage: -# /scoreboard players set b7s:x -# /scoreboard players set b7s:y -# /scoreboard players set b7s:z -# /execute ~ ~ ~ function b7s:entity/get_pos_in_chunk - -scoreboard players set @s b7s:_tmp 16 - -scoreboard players operation @s b7s:x_in_chunk = @s b7s:x -scoreboard players operation @s b7s:y_in_chunk = @s b7s:y -scoreboard players operation @s b7s:z_in_chunk = @s b7s:z - -scoreboard players operation @s b7s:x_in_chunk %= @s b7s:_tmp -scoreboard players operation @s b7s:y_in_chunk %= @s b7s:_tmp -scoreboard players operation @s b7s:z_in_chunk %= @s b7s:_tmp - -scoreboard players operation @s[score_b7s:x_in_chunk=-1] b7s:x_in_chunk += @s b7s:_tmp -scoreboard players operation @s[score_b7s:y_in_chunk=-1] b7s:y_in_chunk += @s b7s:_tmp -scoreboard players operation @s[score_b7s:z_in_chunk=-1] b7s:z_in_chunk += @s b7s:_tmp diff --git a/data/b7s/functions/entity/get_rot.mcfunction b/data/b7s/functions/entity/get_rot.mcfunction deleted file mode 100644 index 5b3e19d..0000000 --- a/data/b7s/functions/entity/get_rot.mcfunction +++ /dev/null @@ -1,555 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -# Gets the rotation of a player or entity. -# -# Scores set: -# b7s:rot_x — the entity's x rotation -# b7s:rot_y — the entity's y rotation -# -# Usage: -# /execute ~ ~ ~ function b7s:entity/get_rot - -scoreboard players set @s[rxm=-90,rx=-90] b7s:rot_x -90 -scoreboard players set @s[rxm=-89,rx=-89] b7s:rot_x -89 -scoreboard players set @s[rxm=-88,rx=-88] b7s:rot_x -88 -scoreboard players set @s[rxm=-87,rx=-87] b7s:rot_x -87 -scoreboard players set @s[rxm=-86,rx=-86] b7s:rot_x -86 -scoreboard players set @s[rxm=-85,rx=-85] b7s:rot_x -85 -scoreboard players set @s[rxm=-84,rx=-84] b7s:rot_x -84 -scoreboard players set @s[rxm=-83,rx=-83] b7s:rot_x -83 -scoreboard players set @s[rxm=-82,rx=-82] b7s:rot_x -82 -scoreboard players set @s[rxm=-81,rx=-81] b7s:rot_x -81 -scoreboard players set @s[rxm=-80,rx=-80] b7s:rot_x -80 -scoreboard players set @s[rxm=-79,rx=-79] b7s:rot_x -79 -scoreboard players set @s[rxm=-78,rx=-78] b7s:rot_x -78 -scoreboard players set @s[rxm=-77,rx=-77] b7s:rot_x -77 -scoreboard players set @s[rxm=-76,rx=-76] b7s:rot_x -76 -scoreboard players set @s[rxm=-75,rx=-75] b7s:rot_x -75 -scoreboard players set @s[rxm=-74,rx=-74] b7s:rot_x -74 -scoreboard players set @s[rxm=-73,rx=-73] b7s:rot_x -73 -scoreboard players set @s[rxm=-72,rx=-72] b7s:rot_x -72 -scoreboard players set @s[rxm=-71,rx=-71] b7s:rot_x -71 -scoreboard players set @s[rxm=-70,rx=-70] b7s:rot_x -70 -scoreboard players set @s[rxm=-69,rx=-69] b7s:rot_x -69 -scoreboard players set @s[rxm=-68,rx=-68] b7s:rot_x -68 -scoreboard players set @s[rxm=-67,rx=-67] b7s:rot_x -67 -scoreboard players set @s[rxm=-66,rx=-66] b7s:rot_x -66 -scoreboard players set @s[rxm=-65,rx=-65] b7s:rot_x -65 -scoreboard players set @s[rxm=-64,rx=-64] b7s:rot_x -64 -scoreboard players set @s[rxm=-63,rx=-63] b7s:rot_x -63 -scoreboard players set @s[rxm=-62,rx=-62] b7s:rot_x -62 -scoreboard players set @s[rxm=-61,rx=-61] b7s:rot_x -61 -scoreboard players set @s[rxm=-60,rx=-60] b7s:rot_x -60 -scoreboard players set @s[rxm=-59,rx=-59] b7s:rot_x -59 -scoreboard players set @s[rxm=-58,rx=-58] b7s:rot_x -58 -scoreboard players set @s[rxm=-57,rx=-57] b7s:rot_x -57 -scoreboard players set @s[rxm=-56,rx=-56] b7s:rot_x -56 -scoreboard players set @s[rxm=-55,rx=-55] b7s:rot_x -55 -scoreboard players set @s[rxm=-54,rx=-54] b7s:rot_x -54 -scoreboard players set @s[rxm=-53,rx=-53] b7s:rot_x -53 -scoreboard players set @s[rxm=-52,rx=-52] b7s:rot_x -52 -scoreboard players set @s[rxm=-51,rx=-51] b7s:rot_x -51 -scoreboard players set @s[rxm=-50,rx=-50] b7s:rot_x -50 -scoreboard players set @s[rxm=-49,rx=-49] b7s:rot_x -49 -scoreboard players set @s[rxm=-48,rx=-48] b7s:rot_x -48 -scoreboard players set @s[rxm=-47,rx=-47] b7s:rot_x -47 -scoreboard players set @s[rxm=-46,rx=-46] b7s:rot_x -46 -scoreboard players set @s[rxm=-45,rx=-45] b7s:rot_x -45 -scoreboard players set @s[rxm=-44,rx=-44] b7s:rot_x -44 -scoreboard players set @s[rxm=-43,rx=-43] b7s:rot_x -43 -scoreboard players set @s[rxm=-42,rx=-42] b7s:rot_x -42 -scoreboard players set @s[rxm=-41,rx=-41] b7s:rot_x -41 -scoreboard players set @s[rxm=-40,rx=-40] b7s:rot_x -40 -scoreboard players set @s[rxm=-39,rx=-39] b7s:rot_x -39 -scoreboard players set @s[rxm=-38,rx=-38] b7s:rot_x -38 -scoreboard players set @s[rxm=-37,rx=-37] b7s:rot_x -37 -scoreboard players set @s[rxm=-36,rx=-36] b7s:rot_x -36 -scoreboard players set @s[rxm=-35,rx=-35] b7s:rot_x -35 -scoreboard players set @s[rxm=-34,rx=-34] b7s:rot_x -34 -scoreboard players set @s[rxm=-33,rx=-33] b7s:rot_x -33 -scoreboard players set @s[rxm=-32,rx=-32] b7s:rot_x -32 -scoreboard players set @s[rxm=-31,rx=-31] b7s:rot_x -31 -scoreboard players set @s[rxm=-30,rx=-30] b7s:rot_x -30 -scoreboard players set @s[rxm=-29,rx=-29] b7s:rot_x -29 -scoreboard players set @s[rxm=-28,rx=-28] b7s:rot_x -28 -scoreboard players set @s[rxm=-27,rx=-27] b7s:rot_x -27 -scoreboard players set @s[rxm=-26,rx=-26] b7s:rot_x -26 -scoreboard players set @s[rxm=-25,rx=-25] b7s:rot_x -25 -scoreboard players set @s[rxm=-24,rx=-24] b7s:rot_x -24 -scoreboard players set @s[rxm=-23,rx=-23] b7s:rot_x -23 -scoreboard players set @s[rxm=-22,rx=-22] b7s:rot_x -22 -scoreboard players set @s[rxm=-21,rx=-21] b7s:rot_x -21 -scoreboard players set @s[rxm=-20,rx=-20] b7s:rot_x -20 -scoreboard players set @s[rxm=-19,rx=-19] b7s:rot_x -19 -scoreboard players set @s[rxm=-18,rx=-18] b7s:rot_x -18 -scoreboard players set @s[rxm=-17,rx=-17] b7s:rot_x -17 -scoreboard players set @s[rxm=-16,rx=-16] b7s:rot_x -16 -scoreboard players set @s[rxm=-15,rx=-15] b7s:rot_x -15 -scoreboard players set @s[rxm=-14,rx=-14] b7s:rot_x -14 -scoreboard players set @s[rxm=-13,rx=-13] b7s:rot_x -13 -scoreboard players set @s[rxm=-12,rx=-12] b7s:rot_x -12 -scoreboard players set @s[rxm=-11,rx=-11] b7s:rot_x -11 -scoreboard players set @s[rxm=-10,rx=-10] b7s:rot_x -10 -scoreboard players set @s[rxm=-9,rx=-9] b7s:rot_x -9 -scoreboard players set @s[rxm=-8,rx=-8] b7s:rot_x -8 -scoreboard players set @s[rxm=-7,rx=-7] b7s:rot_x -7 -scoreboard players set @s[rxm=-6,rx=-6] b7s:rot_x -6 -scoreboard players set @s[rxm=-5,rx=-5] b7s:rot_x -5 -scoreboard players set @s[rxm=-4,rx=-4] b7s:rot_x -4 -scoreboard players set @s[rxm=-3,rx=-3] b7s:rot_x -3 -scoreboard players set @s[rxm=-2,rx=-2] b7s:rot_x -2 -scoreboard players set @s[rxm=-1,rx=-1] b7s:rot_x -1 -scoreboard players set @s[rxm=0,rx=0] b7s:rot_x 0 -scoreboard players set @s[rxm=1,rx=1] b7s:rot_x 1 -scoreboard players set @s[rxm=2,rx=2] b7s:rot_x 2 -scoreboard players set @s[rxm=3,rx=3] b7s:rot_x 3 -scoreboard players set @s[rxm=4,rx=4] b7s:rot_x 4 -scoreboard players set @s[rxm=5,rx=5] b7s:rot_x 5 -scoreboard players set @s[rxm=6,rx=6] b7s:rot_x 6 -scoreboard players set @s[rxm=7,rx=7] b7s:rot_x 7 -scoreboard players set @s[rxm=8,rx=8] b7s:rot_x 8 -scoreboard players set @s[rxm=9,rx=9] b7s:rot_x 9 -scoreboard players set @s[rxm=10,rx=10] b7s:rot_x 10 -scoreboard players set @s[rxm=11,rx=11] b7s:rot_x 11 -scoreboard players set @s[rxm=12,rx=12] b7s:rot_x 12 -scoreboard players set @s[rxm=13,rx=13] b7s:rot_x 13 -scoreboard players set @s[rxm=14,rx=14] b7s:rot_x 14 -scoreboard players set @s[rxm=15,rx=15] b7s:rot_x 15 -scoreboard players set @s[rxm=16,rx=16] b7s:rot_x 16 -scoreboard players set @s[rxm=17,rx=17] b7s:rot_x 17 -scoreboard players set @s[rxm=18,rx=18] b7s:rot_x 18 -scoreboard players set @s[rxm=19,rx=19] b7s:rot_x 19 -scoreboard players set @s[rxm=20,rx=20] b7s:rot_x 20 -scoreboard players set @s[rxm=21,rx=21] b7s:rot_x 21 -scoreboard players set @s[rxm=22,rx=22] b7s:rot_x 22 -scoreboard players set @s[rxm=23,rx=23] b7s:rot_x 23 -scoreboard players set @s[rxm=24,rx=24] b7s:rot_x 24 -scoreboard players set @s[rxm=25,rx=25] b7s:rot_x 25 -scoreboard players set @s[rxm=26,rx=26] b7s:rot_x 26 -scoreboard players set @s[rxm=27,rx=27] b7s:rot_x 27 -scoreboard players set @s[rxm=28,rx=28] b7s:rot_x 28 -scoreboard players set @s[rxm=29,rx=29] b7s:rot_x 29 -scoreboard players set @s[rxm=30,rx=30] b7s:rot_x 30 -scoreboard players set @s[rxm=31,rx=31] b7s:rot_x 31 -scoreboard players set @s[rxm=32,rx=32] b7s:rot_x 32 -scoreboard players set @s[rxm=33,rx=33] b7s:rot_x 33 -scoreboard players set @s[rxm=34,rx=34] b7s:rot_x 34 -scoreboard players set @s[rxm=35,rx=35] b7s:rot_x 35 -scoreboard players set @s[rxm=36,rx=36] b7s:rot_x 36 -scoreboard players set @s[rxm=37,rx=37] b7s:rot_x 37 -scoreboard players set @s[rxm=38,rx=38] b7s:rot_x 38 -scoreboard players set @s[rxm=39,rx=39] b7s:rot_x 39 -scoreboard players set @s[rxm=40,rx=40] b7s:rot_x 40 -scoreboard players set @s[rxm=41,rx=41] b7s:rot_x 41 -scoreboard players set @s[rxm=42,rx=42] b7s:rot_x 42 -scoreboard players set @s[rxm=43,rx=43] b7s:rot_x 43 -scoreboard players set @s[rxm=44,rx=44] b7s:rot_x 44 -scoreboard players set @s[rxm=45,rx=45] b7s:rot_x 45 -scoreboard players set @s[rxm=46,rx=46] b7s:rot_x 46 -scoreboard players set @s[rxm=47,rx=47] b7s:rot_x 47 -scoreboard players set @s[rxm=48,rx=48] b7s:rot_x 48 -scoreboard players set @s[rxm=49,rx=49] b7s:rot_x 49 -scoreboard players set @s[rxm=50,rx=50] b7s:rot_x 50 -scoreboard players set @s[rxm=51,rx=51] b7s:rot_x 51 -scoreboard players set @s[rxm=52,rx=52] b7s:rot_x 52 -scoreboard players set @s[rxm=53,rx=53] b7s:rot_x 53 -scoreboard players set @s[rxm=54,rx=54] b7s:rot_x 54 -scoreboard players set @s[rxm=55,rx=55] b7s:rot_x 55 -scoreboard players set @s[rxm=56,rx=56] b7s:rot_x 56 -scoreboard players set @s[rxm=57,rx=57] b7s:rot_x 57 -scoreboard players set @s[rxm=58,rx=58] b7s:rot_x 58 -scoreboard players set @s[rxm=59,rx=59] b7s:rot_x 59 -scoreboard players set @s[rxm=60,rx=60] b7s:rot_x 60 -scoreboard players set @s[rxm=61,rx=61] b7s:rot_x 61 -scoreboard players set @s[rxm=62,rx=62] b7s:rot_x 62 -scoreboard players set @s[rxm=63,rx=63] b7s:rot_x 63 -scoreboard players set @s[rxm=64,rx=64] b7s:rot_x 64 -scoreboard players set @s[rxm=65,rx=65] b7s:rot_x 65 -scoreboard players set @s[rxm=66,rx=66] b7s:rot_x 66 -scoreboard players set @s[rxm=67,rx=67] b7s:rot_x 67 -scoreboard players set @s[rxm=68,rx=68] b7s:rot_x 68 -scoreboard players set @s[rxm=69,rx=69] b7s:rot_x 69 -scoreboard players set @s[rxm=70,rx=70] b7s:rot_x 70 -scoreboard players set @s[rxm=71,rx=71] b7s:rot_x 71 -scoreboard players set @s[rxm=72,rx=72] b7s:rot_x 72 -scoreboard players set @s[rxm=73,rx=73] b7s:rot_x 73 -scoreboard players set @s[rxm=74,rx=74] b7s:rot_x 74 -scoreboard players set @s[rxm=75,rx=75] b7s:rot_x 75 -scoreboard players set @s[rxm=76,rx=76] b7s:rot_x 76 -scoreboard players set @s[rxm=77,rx=77] b7s:rot_x 77 -scoreboard players set @s[rxm=78,rx=78] b7s:rot_x 78 -scoreboard players set @s[rxm=79,rx=79] b7s:rot_x 79 -scoreboard players set @s[rxm=80,rx=80] b7s:rot_x 80 -scoreboard players set @s[rxm=81,rx=81] b7s:rot_x 81 -scoreboard players set @s[rxm=82,rx=82] b7s:rot_x 82 -scoreboard players set @s[rxm=83,rx=83] b7s:rot_x 83 -scoreboard players set @s[rxm=84,rx=84] b7s:rot_x 84 -scoreboard players set @s[rxm=85,rx=85] b7s:rot_x 85 -scoreboard players set @s[rxm=86,rx=86] b7s:rot_x 86 -scoreboard players set @s[rxm=87,rx=87] b7s:rot_x 87 -scoreboard players set @s[rxm=88,rx=88] b7s:rot_x 88 -scoreboard players set @s[rxm=89,rx=89] b7s:rot_x 89 -scoreboard players set @s[rxm=90,rx=90] b7s:rot_x 90 - -scoreboard players set @s[rym=-180,ry=-180] b7s:rot_y -180 -scoreboard players set @s[rym=-179,ry=-179] b7s:rot_y -179 -scoreboard players set @s[rym=-178,ry=-178] b7s:rot_y -178 -scoreboard players set @s[rym=-177,ry=-177] b7s:rot_y -177 -scoreboard players set @s[rym=-176,ry=-176] b7s:rot_y -176 -scoreboard players set @s[rym=-175,ry=-175] b7s:rot_y -175 -scoreboard players set @s[rym=-174,ry=-174] b7s:rot_y -174 -scoreboard players set @s[rym=-173,ry=-173] b7s:rot_y -173 -scoreboard players set @s[rym=-172,ry=-172] b7s:rot_y -172 -scoreboard players set @s[rym=-171,ry=-171] b7s:rot_y -171 -scoreboard players set @s[rym=-170,ry=-170] b7s:rot_y -170 -scoreboard players set @s[rym=-169,ry=-169] b7s:rot_y -169 -scoreboard players set @s[rym=-168,ry=-168] b7s:rot_y -168 -scoreboard players set @s[rym=-167,ry=-167] b7s:rot_y -167 -scoreboard players set @s[rym=-166,ry=-166] b7s:rot_y -166 -scoreboard players set @s[rym=-165,ry=-165] b7s:rot_y -165 -scoreboard players set @s[rym=-164,ry=-164] b7s:rot_y -164 -scoreboard players set @s[rym=-163,ry=-163] b7s:rot_y -163 -scoreboard players set @s[rym=-162,ry=-162] b7s:rot_y -162 -scoreboard players set @s[rym=-161,ry=-161] b7s:rot_y -161 -scoreboard players set @s[rym=-160,ry=-160] b7s:rot_y -160 -scoreboard players set @s[rym=-159,ry=-159] b7s:rot_y -159 -scoreboard players set @s[rym=-158,ry=-158] b7s:rot_y -158 -scoreboard players set @s[rym=-157,ry=-157] b7s:rot_y -157 -scoreboard players set @s[rym=-156,ry=-156] b7s:rot_y -156 -scoreboard players set @s[rym=-155,ry=-155] b7s:rot_y -155 -scoreboard players set @s[rym=-154,ry=-154] b7s:rot_y -154 -scoreboard players set @s[rym=-153,ry=-153] b7s:rot_y -153 -scoreboard players set @s[rym=-152,ry=-152] b7s:rot_y -152 -scoreboard players set @s[rym=-151,ry=-151] b7s:rot_y -151 -scoreboard players set @s[rym=-150,ry=-150] b7s:rot_y -150 -scoreboard players set @s[rym=-149,ry=-149] b7s:rot_y -149 -scoreboard players set @s[rym=-148,ry=-148] b7s:rot_y -148 -scoreboard players set @s[rym=-147,ry=-147] b7s:rot_y -147 -scoreboard players set @s[rym=-146,ry=-146] b7s:rot_y -146 -scoreboard players set @s[rym=-145,ry=-145] b7s:rot_y -145 -scoreboard players set @s[rym=-144,ry=-144] b7s:rot_y -144 -scoreboard players set @s[rym=-143,ry=-143] b7s:rot_y -143 -scoreboard players set @s[rym=-142,ry=-142] b7s:rot_y -142 -scoreboard players set @s[rym=-141,ry=-141] b7s:rot_y -141 -scoreboard players set @s[rym=-140,ry=-140] b7s:rot_y -140 -scoreboard players set @s[rym=-139,ry=-139] b7s:rot_y -139 -scoreboard players set @s[rym=-138,ry=-138] b7s:rot_y -138 -scoreboard players set @s[rym=-137,ry=-137] b7s:rot_y -137 -scoreboard players set @s[rym=-136,ry=-136] b7s:rot_y -136 -scoreboard players set @s[rym=-135,ry=-135] b7s:rot_y -135 -scoreboard players set @s[rym=-134,ry=-134] b7s:rot_y -134 -scoreboard players set @s[rym=-133,ry=-133] b7s:rot_y -133 -scoreboard players set @s[rym=-132,ry=-132] b7s:rot_y -132 -scoreboard players set @s[rym=-131,ry=-131] b7s:rot_y -131 -scoreboard players set @s[rym=-130,ry=-130] b7s:rot_y -130 -scoreboard players set @s[rym=-129,ry=-129] b7s:rot_y -129 -scoreboard players set @s[rym=-128,ry=-128] b7s:rot_y -128 -scoreboard players set @s[rym=-127,ry=-127] b7s:rot_y -127 -scoreboard players set @s[rym=-126,ry=-126] b7s:rot_y -126 -scoreboard players set @s[rym=-125,ry=-125] b7s:rot_y -125 -scoreboard players set @s[rym=-124,ry=-124] b7s:rot_y -124 -scoreboard players set @s[rym=-123,ry=-123] b7s:rot_y -123 -scoreboard players set @s[rym=-122,ry=-122] b7s:rot_y -122 -scoreboard players set @s[rym=-121,ry=-121] b7s:rot_y -121 -scoreboard players set @s[rym=-120,ry=-120] b7s:rot_y -120 -scoreboard players set @s[rym=-119,ry=-119] b7s:rot_y -119 -scoreboard players set @s[rym=-118,ry=-118] b7s:rot_y -118 -scoreboard players set @s[rym=-117,ry=-117] b7s:rot_y -117 -scoreboard players set @s[rym=-116,ry=-116] b7s:rot_y -116 -scoreboard players set @s[rym=-115,ry=-115] b7s:rot_y -115 -scoreboard players set @s[rym=-114,ry=-114] b7s:rot_y -114 -scoreboard players set @s[rym=-113,ry=-113] b7s:rot_y -113 -scoreboard players set @s[rym=-112,ry=-112] b7s:rot_y -112 -scoreboard players set @s[rym=-111,ry=-111] b7s:rot_y -111 -scoreboard players set @s[rym=-110,ry=-110] b7s:rot_y -110 -scoreboard players set @s[rym=-109,ry=-109] b7s:rot_y -109 -scoreboard players set @s[rym=-108,ry=-108] b7s:rot_y -108 -scoreboard players set @s[rym=-107,ry=-107] b7s:rot_y -107 -scoreboard players set @s[rym=-106,ry=-106] b7s:rot_y -106 -scoreboard players set @s[rym=-105,ry=-105] b7s:rot_y -105 -scoreboard players set @s[rym=-104,ry=-104] b7s:rot_y -104 -scoreboard players set @s[rym=-103,ry=-103] b7s:rot_y -103 -scoreboard players set @s[rym=-102,ry=-102] b7s:rot_y -102 -scoreboard players set @s[rym=-101,ry=-101] b7s:rot_y -101 -scoreboard players set @s[rym=-100,ry=-100] b7s:rot_y -100 -scoreboard players set @s[rym=-99,ry=-99] b7s:rot_y -99 -scoreboard players set @s[rym=-98,ry=-98] b7s:rot_y -98 -scoreboard players set @s[rym=-97,ry=-97] b7s:rot_y -97 -scoreboard players set @s[rym=-96,ry=-96] b7s:rot_y -96 -scoreboard players set @s[rym=-95,ry=-95] b7s:rot_y -95 -scoreboard players set @s[rym=-94,ry=-94] b7s:rot_y -94 -scoreboard players set @s[rym=-93,ry=-93] b7s:rot_y -93 -scoreboard players set @s[rym=-92,ry=-92] b7s:rot_y -92 -scoreboard players set @s[rym=-91,ry=-91] b7s:rot_y -91 -scoreboard players set @s[rym=-90,ry=-90] b7s:rot_y -90 -scoreboard players set @s[rym=-89,ry=-89] b7s:rot_y -89 -scoreboard players set @s[rym=-88,ry=-88] b7s:rot_y -88 -scoreboard players set @s[rym=-87,ry=-87] b7s:rot_y -87 -scoreboard players set @s[rym=-86,ry=-86] b7s:rot_y -86 -scoreboard players set @s[rym=-85,ry=-85] b7s:rot_y -85 -scoreboard players set @s[rym=-84,ry=-84] b7s:rot_y -84 -scoreboard players set @s[rym=-83,ry=-83] b7s:rot_y -83 -scoreboard players set @s[rym=-82,ry=-82] b7s:rot_y -82 -scoreboard players set @s[rym=-81,ry=-81] b7s:rot_y -81 -scoreboard players set @s[rym=-80,ry=-80] b7s:rot_y -80 -scoreboard players set @s[rym=-79,ry=-79] b7s:rot_y -79 -scoreboard players set @s[rym=-78,ry=-78] b7s:rot_y -78 -scoreboard players set @s[rym=-77,ry=-77] b7s:rot_y -77 -scoreboard players set @s[rym=-76,ry=-76] b7s:rot_y -76 -scoreboard players set @s[rym=-75,ry=-75] b7s:rot_y -75 -scoreboard players set @s[rym=-74,ry=-74] b7s:rot_y -74 -scoreboard players set @s[rym=-73,ry=-73] b7s:rot_y -73 -scoreboard players set @s[rym=-72,ry=-72] b7s:rot_y -72 -scoreboard players set @s[rym=-71,ry=-71] b7s:rot_y -71 -scoreboard players set @s[rym=-70,ry=-70] b7s:rot_y -70 -scoreboard players set @s[rym=-69,ry=-69] b7s:rot_y -69 -scoreboard players set @s[rym=-68,ry=-68] b7s:rot_y -68 -scoreboard players set @s[rym=-67,ry=-67] b7s:rot_y -67 -scoreboard players set @s[rym=-66,ry=-66] b7s:rot_y -66 -scoreboard players set @s[rym=-65,ry=-65] b7s:rot_y -65 -scoreboard players set @s[rym=-64,ry=-64] b7s:rot_y -64 -scoreboard players set @s[rym=-63,ry=-63] b7s:rot_y -63 -scoreboard players set @s[rym=-62,ry=-62] b7s:rot_y -62 -scoreboard players set @s[rym=-61,ry=-61] b7s:rot_y -61 -scoreboard players set @s[rym=-60,ry=-60] b7s:rot_y -60 -scoreboard players set @s[rym=-59,ry=-59] b7s:rot_y -59 -scoreboard players set @s[rym=-58,ry=-58] b7s:rot_y -58 -scoreboard players set @s[rym=-57,ry=-57] b7s:rot_y -57 -scoreboard players set @s[rym=-56,ry=-56] b7s:rot_y -56 -scoreboard players set @s[rym=-55,ry=-55] b7s:rot_y -55 -scoreboard players set @s[rym=-54,ry=-54] b7s:rot_y -54 -scoreboard players set @s[rym=-53,ry=-53] b7s:rot_y -53 -scoreboard players set @s[rym=-52,ry=-52] b7s:rot_y -52 -scoreboard players set @s[rym=-51,ry=-51] b7s:rot_y -51 -scoreboard players set @s[rym=-50,ry=-50] b7s:rot_y -50 -scoreboard players set @s[rym=-49,ry=-49] b7s:rot_y -49 -scoreboard players set @s[rym=-48,ry=-48] b7s:rot_y -48 -scoreboard players set @s[rym=-47,ry=-47] b7s:rot_y -47 -scoreboard players set @s[rym=-46,ry=-46] b7s:rot_y -46 -scoreboard players set @s[rym=-45,ry=-45] b7s:rot_y -45 -scoreboard players set @s[rym=-44,ry=-44] b7s:rot_y -44 -scoreboard players set @s[rym=-43,ry=-43] b7s:rot_y -43 -scoreboard players set @s[rym=-42,ry=-42] b7s:rot_y -42 -scoreboard players set @s[rym=-41,ry=-41] b7s:rot_y -41 -scoreboard players set @s[rym=-40,ry=-40] b7s:rot_y -40 -scoreboard players set @s[rym=-39,ry=-39] b7s:rot_y -39 -scoreboard players set @s[rym=-38,ry=-38] b7s:rot_y -38 -scoreboard players set @s[rym=-37,ry=-37] b7s:rot_y -37 -scoreboard players set @s[rym=-36,ry=-36] b7s:rot_y -36 -scoreboard players set @s[rym=-35,ry=-35] b7s:rot_y -35 -scoreboard players set @s[rym=-34,ry=-34] b7s:rot_y -34 -scoreboard players set @s[rym=-33,ry=-33] b7s:rot_y -33 -scoreboard players set @s[rym=-32,ry=-32] b7s:rot_y -32 -scoreboard players set @s[rym=-31,ry=-31] b7s:rot_y -31 -scoreboard players set @s[rym=-30,ry=-30] b7s:rot_y -30 -scoreboard players set @s[rym=-29,ry=-29] b7s:rot_y -29 -scoreboard players set @s[rym=-28,ry=-28] b7s:rot_y -28 -scoreboard players set @s[rym=-27,ry=-27] b7s:rot_y -27 -scoreboard players set @s[rym=-26,ry=-26] b7s:rot_y -26 -scoreboard players set @s[rym=-25,ry=-25] b7s:rot_y -25 -scoreboard players set @s[rym=-24,ry=-24] b7s:rot_y -24 -scoreboard players set @s[rym=-23,ry=-23] b7s:rot_y -23 -scoreboard players set @s[rym=-22,ry=-22] b7s:rot_y -22 -scoreboard players set @s[rym=-21,ry=-21] b7s:rot_y -21 -scoreboard players set @s[rym=-20,ry=-20] b7s:rot_y -20 -scoreboard players set @s[rym=-19,ry=-19] b7s:rot_y -19 -scoreboard players set @s[rym=-18,ry=-18] b7s:rot_y -18 -scoreboard players set @s[rym=-17,ry=-17] b7s:rot_y -17 -scoreboard players set @s[rym=-16,ry=-16] b7s:rot_y -16 -scoreboard players set @s[rym=-15,ry=-15] b7s:rot_y -15 -scoreboard players set @s[rym=-14,ry=-14] b7s:rot_y -14 -scoreboard players set @s[rym=-13,ry=-13] b7s:rot_y -13 -scoreboard players set @s[rym=-12,ry=-12] b7s:rot_y -12 -scoreboard players set @s[rym=-11,ry=-11] b7s:rot_y -11 -scoreboard players set @s[rym=-10,ry=-10] b7s:rot_y -10 -scoreboard players set @s[rym=-9,ry=-9] b7s:rot_y -9 -scoreboard players set @s[rym=-8,ry=-8] b7s:rot_y -8 -scoreboard players set @s[rym=-7,ry=-7] b7s:rot_y -7 -scoreboard players set @s[rym=-6,ry=-6] b7s:rot_y -6 -scoreboard players set @s[rym=-5,ry=-5] b7s:rot_y -5 -scoreboard players set @s[rym=-4,ry=-4] b7s:rot_y -4 -scoreboard players set @s[rym=-3,ry=-3] b7s:rot_y -3 -scoreboard players set @s[rym=-2,ry=-2] b7s:rot_y -2 -scoreboard players set @s[rym=-1,ry=-1] b7s:rot_y -1 -scoreboard players set @s[rym=0,ry=0] b7s:rot_y 0 -scoreboard players set @s[rym=1,ry=1] b7s:rot_y 1 -scoreboard players set @s[rym=2,ry=2] b7s:rot_y 2 -scoreboard players set @s[rym=3,ry=3] b7s:rot_y 3 -scoreboard players set @s[rym=4,ry=4] b7s:rot_y 4 -scoreboard players set @s[rym=5,ry=5] b7s:rot_y 5 -scoreboard players set @s[rym=6,ry=6] b7s:rot_y 6 -scoreboard players set @s[rym=7,ry=7] b7s:rot_y 7 -scoreboard players set @s[rym=8,ry=8] b7s:rot_y 8 -scoreboard players set @s[rym=9,ry=9] b7s:rot_y 9 -scoreboard players set @s[rym=10,ry=10] b7s:rot_y 10 -scoreboard players set @s[rym=11,ry=11] b7s:rot_y 11 -scoreboard players set @s[rym=12,ry=12] b7s:rot_y 12 -scoreboard players set @s[rym=13,ry=13] b7s:rot_y 13 -scoreboard players set @s[rym=14,ry=14] b7s:rot_y 14 -scoreboard players set @s[rym=15,ry=15] b7s:rot_y 15 -scoreboard players set @s[rym=16,ry=16] b7s:rot_y 16 -scoreboard players set @s[rym=17,ry=17] b7s:rot_y 17 -scoreboard players set @s[rym=18,ry=18] b7s:rot_y 18 -scoreboard players set @s[rym=19,ry=19] b7s:rot_y 19 -scoreboard players set @s[rym=20,ry=20] b7s:rot_y 20 -scoreboard players set @s[rym=21,ry=21] b7s:rot_y 21 -scoreboard players set @s[rym=22,ry=22] b7s:rot_y 22 -scoreboard players set @s[rym=23,ry=23] b7s:rot_y 23 -scoreboard players set @s[rym=24,ry=24] b7s:rot_y 24 -scoreboard players set @s[rym=25,ry=25] b7s:rot_y 25 -scoreboard players set @s[rym=26,ry=26] b7s:rot_y 26 -scoreboard players set @s[rym=27,ry=27] b7s:rot_y 27 -scoreboard players set @s[rym=28,ry=28] b7s:rot_y 28 -scoreboard players set @s[rym=29,ry=29] b7s:rot_y 29 -scoreboard players set @s[rym=30,ry=30] b7s:rot_y 30 -scoreboard players set @s[rym=31,ry=31] b7s:rot_y 31 -scoreboard players set @s[rym=32,ry=32] b7s:rot_y 32 -scoreboard players set @s[rym=33,ry=33] b7s:rot_y 33 -scoreboard players set @s[rym=34,ry=34] b7s:rot_y 34 -scoreboard players set @s[rym=35,ry=35] b7s:rot_y 35 -scoreboard players set @s[rym=36,ry=36] b7s:rot_y 36 -scoreboard players set @s[rym=37,ry=37] b7s:rot_y 37 -scoreboard players set @s[rym=38,ry=38] b7s:rot_y 38 -scoreboard players set @s[rym=39,ry=39] b7s:rot_y 39 -scoreboard players set @s[rym=40,ry=40] b7s:rot_y 40 -scoreboard players set @s[rym=41,ry=41] b7s:rot_y 41 -scoreboard players set @s[rym=42,ry=42] b7s:rot_y 42 -scoreboard players set @s[rym=43,ry=43] b7s:rot_y 43 -scoreboard players set @s[rym=44,ry=44] b7s:rot_y 44 -scoreboard players set @s[rym=45,ry=45] b7s:rot_y 45 -scoreboard players set @s[rym=46,ry=46] b7s:rot_y 46 -scoreboard players set @s[rym=47,ry=47] b7s:rot_y 47 -scoreboard players set @s[rym=48,ry=48] b7s:rot_y 48 -scoreboard players set @s[rym=49,ry=49] b7s:rot_y 49 -scoreboard players set @s[rym=50,ry=50] b7s:rot_y 50 -scoreboard players set @s[rym=51,ry=51] b7s:rot_y 51 -scoreboard players set @s[rym=52,ry=52] b7s:rot_y 52 -scoreboard players set @s[rym=53,ry=53] b7s:rot_y 53 -scoreboard players set @s[rym=54,ry=54] b7s:rot_y 54 -scoreboard players set @s[rym=55,ry=55] b7s:rot_y 55 -scoreboard players set @s[rym=56,ry=56] b7s:rot_y 56 -scoreboard players set @s[rym=57,ry=57] b7s:rot_y 57 -scoreboard players set @s[rym=58,ry=58] b7s:rot_y 58 -scoreboard players set @s[rym=59,ry=59] b7s:rot_y 59 -scoreboard players set @s[rym=60,ry=60] b7s:rot_y 60 -scoreboard players set @s[rym=61,ry=61] b7s:rot_y 61 -scoreboard players set @s[rym=62,ry=62] b7s:rot_y 62 -scoreboard players set @s[rym=63,ry=63] b7s:rot_y 63 -scoreboard players set @s[rym=64,ry=64] b7s:rot_y 64 -scoreboard players set @s[rym=65,ry=65] b7s:rot_y 65 -scoreboard players set @s[rym=66,ry=66] b7s:rot_y 66 -scoreboard players set @s[rym=67,ry=67] b7s:rot_y 67 -scoreboard players set @s[rym=68,ry=68] b7s:rot_y 68 -scoreboard players set @s[rym=69,ry=69] b7s:rot_y 69 -scoreboard players set @s[rym=70,ry=70] b7s:rot_y 70 -scoreboard players set @s[rym=71,ry=71] b7s:rot_y 71 -scoreboard players set @s[rym=72,ry=72] b7s:rot_y 72 -scoreboard players set @s[rym=73,ry=73] b7s:rot_y 73 -scoreboard players set @s[rym=74,ry=74] b7s:rot_y 74 -scoreboard players set @s[rym=75,ry=75] b7s:rot_y 75 -scoreboard players set @s[rym=76,ry=76] b7s:rot_y 76 -scoreboard players set @s[rym=77,ry=77] b7s:rot_y 77 -scoreboard players set @s[rym=78,ry=78] b7s:rot_y 78 -scoreboard players set @s[rym=79,ry=79] b7s:rot_y 79 -scoreboard players set @s[rym=80,ry=80] b7s:rot_y 80 -scoreboard players set @s[rym=81,ry=81] b7s:rot_y 81 -scoreboard players set @s[rym=82,ry=82] b7s:rot_y 82 -scoreboard players set @s[rym=83,ry=83] b7s:rot_y 83 -scoreboard players set @s[rym=84,ry=84] b7s:rot_y 84 -scoreboard players set @s[rym=85,ry=85] b7s:rot_y 85 -scoreboard players set @s[rym=86,ry=86] b7s:rot_y 86 -scoreboard players set @s[rym=87,ry=87] b7s:rot_y 87 -scoreboard players set @s[rym=88,ry=88] b7s:rot_y 88 -scoreboard players set @s[rym=89,ry=89] b7s:rot_y 89 -scoreboard players set @s[rym=90,ry=90] b7s:rot_y 90 -scoreboard players set @s[rym=91,ry=91] b7s:rot_y 91 -scoreboard players set @s[rym=92,ry=92] b7s:rot_y 92 -scoreboard players set @s[rym=93,ry=93] b7s:rot_y 93 -scoreboard players set @s[rym=94,ry=94] b7s:rot_y 94 -scoreboard players set @s[rym=95,ry=95] b7s:rot_y 95 -scoreboard players set @s[rym=96,ry=96] b7s:rot_y 96 -scoreboard players set @s[rym=97,ry=97] b7s:rot_y 97 -scoreboard players set @s[rym=98,ry=98] b7s:rot_y 98 -scoreboard players set @s[rym=99,ry=99] b7s:rot_y 99 -scoreboard players set @s[rym=100,ry=100] b7s:rot_y 100 -scoreboard players set @s[rym=101,ry=101] b7s:rot_y 101 -scoreboard players set @s[rym=102,ry=102] b7s:rot_y 102 -scoreboard players set @s[rym=103,ry=103] b7s:rot_y 103 -scoreboard players set @s[rym=104,ry=104] b7s:rot_y 104 -scoreboard players set @s[rym=105,ry=105] b7s:rot_y 105 -scoreboard players set @s[rym=106,ry=106] b7s:rot_y 106 -scoreboard players set @s[rym=107,ry=107] b7s:rot_y 107 -scoreboard players set @s[rym=108,ry=108] b7s:rot_y 108 -scoreboard players set @s[rym=109,ry=109] b7s:rot_y 109 -scoreboard players set @s[rym=110,ry=110] b7s:rot_y 110 -scoreboard players set @s[rym=111,ry=111] b7s:rot_y 111 -scoreboard players set @s[rym=112,ry=112] b7s:rot_y 112 -scoreboard players set @s[rym=113,ry=113] b7s:rot_y 113 -scoreboard players set @s[rym=114,ry=114] b7s:rot_y 114 -scoreboard players set @s[rym=115,ry=115] b7s:rot_y 115 -scoreboard players set @s[rym=116,ry=116] b7s:rot_y 116 -scoreboard players set @s[rym=117,ry=117] b7s:rot_y 117 -scoreboard players set @s[rym=118,ry=118] b7s:rot_y 118 -scoreboard players set @s[rym=119,ry=119] b7s:rot_y 119 -scoreboard players set @s[rym=120,ry=120] b7s:rot_y 120 -scoreboard players set @s[rym=121,ry=121] b7s:rot_y 121 -scoreboard players set @s[rym=122,ry=122] b7s:rot_y 122 -scoreboard players set @s[rym=123,ry=123] b7s:rot_y 123 -scoreboard players set @s[rym=124,ry=124] b7s:rot_y 124 -scoreboard players set @s[rym=125,ry=125] b7s:rot_y 125 -scoreboard players set @s[rym=126,ry=126] b7s:rot_y 126 -scoreboard players set @s[rym=127,ry=127] b7s:rot_y 127 -scoreboard players set @s[rym=128,ry=128] b7s:rot_y 128 -scoreboard players set @s[rym=129,ry=129] b7s:rot_y 129 -scoreboard players set @s[rym=130,ry=130] b7s:rot_y 130 -scoreboard players set @s[rym=131,ry=131] b7s:rot_y 131 -scoreboard players set @s[rym=132,ry=132] b7s:rot_y 132 -scoreboard players set @s[rym=133,ry=133] b7s:rot_y 133 -scoreboard players set @s[rym=134,ry=134] b7s:rot_y 134 -scoreboard players set @s[rym=135,ry=135] b7s:rot_y 135 -scoreboard players set @s[rym=136,ry=136] b7s:rot_y 136 -scoreboard players set @s[rym=137,ry=137] b7s:rot_y 137 -scoreboard players set @s[rym=138,ry=138] b7s:rot_y 138 -scoreboard players set @s[rym=139,ry=139] b7s:rot_y 139 -scoreboard players set @s[rym=140,ry=140] b7s:rot_y 140 -scoreboard players set @s[rym=141,ry=141] b7s:rot_y 141 -scoreboard players set @s[rym=142,ry=142] b7s:rot_y 142 -scoreboard players set @s[rym=143,ry=143] b7s:rot_y 143 -scoreboard players set @s[rym=144,ry=144] b7s:rot_y 144 -scoreboard players set @s[rym=145,ry=145] b7s:rot_y 145 -scoreboard players set @s[rym=146,ry=146] b7s:rot_y 146 -scoreboard players set @s[rym=147,ry=147] b7s:rot_y 147 -scoreboard players set @s[rym=148,ry=148] b7s:rot_y 148 -scoreboard players set @s[rym=149,ry=149] b7s:rot_y 149 -scoreboard players set @s[rym=150,ry=150] b7s:rot_y 150 -scoreboard players set @s[rym=151,ry=151] b7s:rot_y 151 -scoreboard players set @s[rym=152,ry=152] b7s:rot_y 152 -scoreboard players set @s[rym=153,ry=153] b7s:rot_y 153 -scoreboard players set @s[rym=154,ry=154] b7s:rot_y 154 -scoreboard players set @s[rym=155,ry=155] b7s:rot_y 155 -scoreboard players set @s[rym=156,ry=156] b7s:rot_y 156 -scoreboard players set @s[rym=157,ry=157] b7s:rot_y 157 -scoreboard players set @s[rym=158,ry=158] b7s:rot_y 158 -scoreboard players set @s[rym=159,ry=159] b7s:rot_y 159 -scoreboard players set @s[rym=160,ry=160] b7s:rot_y 160 -scoreboard players set @s[rym=161,ry=161] b7s:rot_y 161 -scoreboard players set @s[rym=162,ry=162] b7s:rot_y 162 -scoreboard players set @s[rym=163,ry=163] b7s:rot_y 163 -scoreboard players set @s[rym=164,ry=164] b7s:rot_y 164 -scoreboard players set @s[rym=165,ry=165] b7s:rot_y 165 -scoreboard players set @s[rym=166,ry=166] b7s:rot_y 166 -scoreboard players set @s[rym=167,ry=167] b7s:rot_y 167 -scoreboard players set @s[rym=168,ry=168] b7s:rot_y 168 -scoreboard players set @s[rym=169,ry=169] b7s:rot_y 169 -scoreboard players set @s[rym=170,ry=170] b7s:rot_y 170 -scoreboard players set @s[rym=171,ry=171] b7s:rot_y 171 -scoreboard players set @s[rym=172,ry=172] b7s:rot_y 172 -scoreboard players set @s[rym=173,ry=173] b7s:rot_y 173 -scoreboard players set @s[rym=174,ry=174] b7s:rot_y 174 -scoreboard players set @s[rym=175,ry=175] b7s:rot_y 175 -scoreboard players set @s[rym=176,ry=176] b7s:rot_y 176 -scoreboard players set @s[rym=177,ry=177] b7s:rot_y 177 -scoreboard players set @s[rym=178,ry=178] b7s:rot_y 178 -scoreboard players set @s[rym=179,ry=179] b7s:rot_y 179 diff --git a/data/b7s/functions/entity/get_rot.mcfunction.py b/data/b7s/functions/entity/get_rot.mcfunction.py deleted file mode 100644 index 9f6acae..0000000 --- a/data/b7s/functions/entity/get_rot.mcfunction.py +++ /dev/null @@ -1,24 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -print('# This Source Code Form is subject to the terms of the Mozilla Public') -print('# License, v. 2.0. If a copy of the MPL was not distributed with this') -print('# file, You can obtain one at http://mozilla.org/MPL/2.0/.') -print() -print('# Gets the rotation of a player or entity.') -print('#') -print('# Scores set:') -print("# b7s:rot_x — the entity's x rotation") -print("# b7s:rot_y — the entity's y rotation") -print('#') -print('# Usage:') -print('# /execute ~ ~ ~ function b7s:entity/get_rot') - -print() -for i in range(-90, 91): - print('scoreboard players set @s[rxm={0},rx={0}] b7s:rot_x {0}'.format(i)) - -print() -for i in range(-180, 180): - print('scoreboard players set @s[rym={0},ry={0}] b7s:rot_y {0}'.format(i)) diff --git a/data/b7s/functions/entity/home/check_dim_set.mcfunction b/data/b7s/functions/entity/home/check_dim_set.mcfunction deleted file mode 100644 index 6f52437..0000000 --- a/data/b7s/functions/entity/home/check_dim_set.mcfunction +++ /dev/null @@ -1,15 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -# Checks whether a player or entity has its home dimension set. -# -# Tags set: -# b7s:home_dim_set — if the home dimension was set -# -# Usage: -# /execute ~ ~ ~ function b7s:entity/home/check_dim_set - -scoreboard players tag @s remove b7s:home_dim_set -scoreboard players tag @s[tag=!b7s:home_dim_tags_set,score_b7s:home_dim_min=-2147483648] add b7s:home_dim_set -scoreboard players tag @s[tag=b7s:home_dim_tags_set] add b7s:home_dim_set diff --git a/data/b7s/functions/entity/home/check_loc_set.mcfunction b/data/b7s/functions/entity/home/check_loc_set.mcfunction index e5aea10..6d0c5b7 100644 --- a/data/b7s/functions/entity/home/check_loc_set.mcfunction +++ b/data/b7s/functions/entity/home/check_loc_set.mcfunction @@ -4,14 +4,12 @@ # Checks whether a player or entity has its home location set. # -# Tags set: -# b7s:home_loc_set — if the home location was set +# Scores set: +# b7s.val - to 1 if the home location was set, 0 otherwise # # Usage: -# /execute ~ ~ ~ function b7s:entity/home/check_loc_set +# /execute as run function b7s:entity/home/check_loc_set -scoreboard players tag @s remove b7s:home_loc_set -function b7s:entity/home/check_dim_set -function b7s:entity/home/check_pos_set -function b7s:entity/home/check_rot_set -execute @s[tag=b7s:home_dim_set] ~ ~ ~ execute @s[tag=b7s:home_pos_set] ~ ~ ~ scoreboard players tag @s[tag=b7s:home_rot_set] add b7s:home_loc_set +scoreboard players set @s b7s.val 0 +scoreboard players set @s[tag=b7s.home_loc_set,tag=b7s.home_dim_set,tag=b7s.home_x_set,tag=b7s.home_y_set,tag=b7s.home_z_set] b7s.val 1 +scoreboard players set @s[tag=!b7s.home_loc_set,scores={b7s.home_dim=-2147483648..,b7s.home_x=-2147483648..b7s.home_y=-2147483648..b7s.home_z=-2147483648..}] b7s.val 1 diff --git a/data/b7s/functions/entity/home/check_pos_set.mcfunction b/data/b7s/functions/entity/home/check_pos_set.mcfunction deleted file mode 100644 index 81122f6..0000000 --- a/data/b7s/functions/entity/home/check_pos_set.mcfunction +++ /dev/null @@ -1,15 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -# Checks whether a player or entity has its home position set. -# -# Tags set: -# b7s:home_pos_set — if the home position was set -# -# Usage: -# /execute ~ ~ ~ function b7s:entity/home/check_pos_set - -scoreboard players tag @s remove b7s:home_pos_set -scoreboard players tag @s[tag=!b7s:home_pos_tags_set,score_b7s:home_x_min=-2147483648,score_b7s:home_y_min=-2147483648,score_b7s:home_z_min=-2147483648] add b7s:home_pos_set -scoreboard players tag @s[tag=b7s:home_pos_tags_set] add b7s:home_pos_set diff --git a/data/b7s/functions/entity/home/check_rot_set.mcfunction b/data/b7s/functions/entity/home/check_rot_set.mcfunction deleted file mode 100644 index 8dfac58..0000000 --- a/data/b7s/functions/entity/home/check_rot_set.mcfunction +++ /dev/null @@ -1,15 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -# Checks whether a player or entity has its home rotation set. -# -# Tags set: -# b7s:home_rot_set — if the home rotation was set -# -# Usage: -# /execute ~ ~ ~ function b7s:entity/home/check_rot_set - -scoreboard players tag @s remove b7s:home_rot_set -scoreboard players tag @s[tag=!b7s:home_rot_tags_set,score_b7s:home_rot_x_min=-2147483648,score_b7s:home_rot_y_min=-2147483648] add b7s:home_rot_set -scoreboard players tag @s[tag=b7s:home_rot_tags_set] add b7s:home_rot_set diff --git a/data/b7s/functions/entity/home/get_dim.mcfunction b/data/b7s/functions/entity/home/get_dim.mcfunction deleted file mode 100644 index e2ce224..0000000 --- a/data/b7s/functions/entity/home/get_dim.mcfunction +++ /dev/null @@ -1,14 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -# Gets the home dimension of a player or entity. -# -# Scores set: -# b7s:dim — to the home's dimension -# -# Usage: -# /execute ~ ~ ~ function b7s:entity/home/get_dim - -function b7s:entity/home/get_dim/_unless_set_as_tags unless @s[tag=b7s:home_dim_tags_set] -function b7s:entity/home/get_dim/_if_set_as_tags if @s[tag=b7s:home_dim_tags_set] diff --git a/data/b7s/functions/entity/home/get_dim/_if_set_as_tags.mcfunction b/data/b7s/functions/entity/home/get_dim/_if_set_as_tags.mcfunction deleted file mode 100644 index 4759b35..0000000 --- a/data/b7s/functions/entity/home/get_dim/_if_set_as_tags.mcfunction +++ /dev/null @@ -1,7 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -scoreboard players set @s[tag=b7s:home_dim_nether] b7s:dim -1 -scoreboard players set @s[tag=b7s:home_dim_overworld] b7s:dim 0 -scoreboard players set @s[tag=b7s:home_dim_end] b7s:dim 1 diff --git a/data/b7s/functions/entity/home/get_dim/_unless_set_as_tags.mcfunction b/data/b7s/functions/entity/home/get_dim/_unless_set_as_tags.mcfunction deleted file mode 100644 index 32d9d09..0000000 --- a/data/b7s/functions/entity/home/get_dim/_unless_set_as_tags.mcfunction +++ /dev/null @@ -1,5 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -scoreboard players operation @s b7s:dim = @s b7s:home_dim diff --git a/data/b7s/functions/entity/home/get_loc.mcfunction b/data/b7s/functions/entity/home/get_loc.mcfunction index 8f75f0f..d716054 100644 --- a/data/b7s/functions/entity/home/get_loc.mcfunction +++ b/data/b7s/functions/entity/home/get_loc.mcfunction @@ -5,16 +5,22 @@ # Gets the home location of a player or entity. # # Scores set: -# b7s:dim — to the home's dimension -# b7s:x — to the home's x coordinate -# b7s:y — to the home's y coordinate -# b7s:z — to the home's z coordinate -# b7s:rot_x — to the home's x rotation -# b7s:rot_y — to the home's y rotation +# b7s.dim - to the dimension of the home location +# b7s.x - to the x coordinate of the home location +# b7s.y - to the y coordinate of the home location +# b7s.z - to the z coordinate of the home location +# b7s.rot_x - to the x rotation of the home location +# b7s.rot_y - to the y rotation of the home location # # Usage: -# /execute ~ ~ ~ function b7s:entity/home/get_loc +# /execute as run function b7s:entity/home/get_loc -function b7s:entity/home/get_dim -function b7s:entity/home/get_pos -function b7s:entity/home/get_rot +scoreboard players reset @s b7s.dim +scoreboard players reset @s b7s.x +scoreboard players reset @s b7s.y +scoreboard players reset @s b7s.z +scoreboard players reset @s b7s.rot_x +scoreboard players reset @s b7s.rot_y + +execute if entity @s[tag=b7s.home_loc_set] run function b7s:entity/home/get_loc/_if_saved_as_tags +execute unless entity @s[tag=b7s.home_loc_set] run function b7s:entity/home/get_loc/_unless_saved_as_tags diff --git a/data/b7s/functions/entity/home/get_loc/_if_saved_as_tags.mcfunction b/data/b7s/functions/entity/home/get_loc/_if_saved_as_tags.mcfunction new file mode 100644 index 0000000..f63ff98 --- /dev/null +++ b/data/b7s/functions/entity/home/get_loc/_if_saved_as_tags.mcfunction @@ -0,0 +1,10 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. + +execute if entity @s[tag=b7s.home_dim_set] run function b7s:entity/home/get_loc/_if_saved_as_tags_if_dim_set +execute if entity @s[tag=b7s.home_x_set] run function b7s:entity/home/get_loc/_if_saved_as_tags_if_x_set +execute if entity @s[tag=b7s.home_y_set] run function b7s:entity/home/get_loc/_if_saved_as_tags_if_y_set +execute if entity @s[tag=b7s.home_z_set] run function b7s:entity/home/get_loc/_if_saved_as_tags_if_z_set +execute if entity @s[tag=b7s.home_rot_x_set] run function b7s:entity/home/get_loc/_if_saved_as_tags_if_rot_x_set +execute if entity @s[tag=b7s.home_rot_y_set] run function b7s:entity/home/get_loc/_if_saved_as_tags_if_rot_y_set diff --git a/data/b7s/functions/entity/home/get_loc/_if_saved_as_tags_if_dim_set.mcfunction b/data/b7s/functions/entity/home/get_loc/_if_saved_as_tags_if_dim_set.mcfunction new file mode 100644 index 0000000..bdbef41 --- /dev/null +++ b/data/b7s/functions/entity/home/get_loc/_if_saved_as_tags_if_dim_set.mcfunction @@ -0,0 +1,38 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. + +scoreboard players set @s b7s.dim -2147483648 +scoreboard players add @s[tag=b7s.home_dim_31] b7s.dim 1073741824 +scoreboard players add @s[tag=b7s.home_dim_31] b7s.dim 1073741824 +scoreboard players add @s[tag=b7s.home_dim_30] b7s.dim 1073741824 +scoreboard players add @s[tag=b7s.home_dim_29] b7s.dim 536870912 +scoreboard players add @s[tag=b7s.home_dim_28] b7s.dim 268435456 +scoreboard players add @s[tag=b7s.home_dim_27] b7s.dim 134217728 +scoreboard players add @s[tag=b7s.home_dim_26] b7s.dim 67108864 +scoreboard players add @s[tag=b7s.home_dim_25] b7s.dim 33554432 +scoreboard players add @s[tag=b7s.home_dim_24] b7s.dim 16777216 +scoreboard players add @s[tag=b7s.home_dim_23] b7s.dim 8388608 +scoreboard players add @s[tag=b7s.home_dim_22] b7s.dim 4194304 +scoreboard players add @s[tag=b7s.home_dim_21] b7s.dim 2097152 +scoreboard players add @s[tag=b7s.home_dim_20] b7s.dim 1048576 +scoreboard players add @s[tag=b7s.home_dim_19] b7s.dim 524288 +scoreboard players add @s[tag=b7s.home_dim_18] b7s.dim 262144 +scoreboard players add @s[tag=b7s.home_dim_17] b7s.dim 131072 +scoreboard players add @s[tag=b7s.home_dim_16] b7s.dim 65536 +scoreboard players add @s[tag=b7s.home_dim_15] b7s.dim 32768 +scoreboard players add @s[tag=b7s.home_dim_14] b7s.dim 16384 +scoreboard players add @s[tag=b7s.home_dim_13] b7s.dim 8192 +scoreboard players add @s[tag=b7s.home_dim_12] b7s.dim 4096 +scoreboard players add @s[tag=b7s.home_dim_11] b7s.dim 2048 +scoreboard players add @s[tag=b7s.home_dim_10] b7s.dim 1024 +scoreboard players add @s[tag=b7s.home_dim_9] b7s.dim 512 +scoreboard players add @s[tag=b7s.home_dim_8] b7s.dim 256 +scoreboard players add @s[tag=b7s.home_dim_7] b7s.dim 128 +scoreboard players add @s[tag=b7s.home_dim_6] b7s.dim 64 +scoreboard players add @s[tag=b7s.home_dim_5] b7s.dim 32 +scoreboard players add @s[tag=b7s.home_dim_4] b7s.dim 16 +scoreboard players add @s[tag=b7s.home_dim_3] b7s.dim 8 +scoreboard players add @s[tag=b7s.home_dim_2] b7s.dim 4 +scoreboard players add @s[tag=b7s.home_dim_1] b7s.dim 2 +scoreboard players add @s[tag=b7s.home_dim_0] b7s.dim 1 diff --git a/data/b7s/functions/entity/home/get_loc/_if_saved_as_tags_if_dim_set.mcfunction.py b/data/b7s/functions/entity/home/get_loc/_if_saved_as_tags_if_dim_set.mcfunction.py new file mode 100644 index 0000000..2a9daa9 --- /dev/null +++ b/data/b7s/functions/entity/home/get_loc/_if_saved_as_tags_if_dim_set.mcfunction.py @@ -0,0 +1,14 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. + +print('# This Source Code Form is subject to the terms of the Mozilla Public') +print('# License, v. 2.0. If a copy of the MPL was not distributed with this') +print('# file, You can obtain one at http://mozilla.org/MPL/2.0/.') +print() + +print('scoreboard players set @s b7s.dim -2147483648') +print('scoreboard players add @s[tag=b7s.home_dim_31] b7s.dim 1073741824') +print('scoreboard players add @s[tag=b7s.home_dim_31] b7s.dim 1073741824') +for i in range(30, -1, -1): + print('scoreboard players add @s[tag=b7s.home_dim_{}] b7s.dim {}'.format(i, 2 ** i)) diff --git a/data/b7s/functions/entity/home/get_loc/_if_saved_as_tags_if_rot_x_set.mcfunction b/data/b7s/functions/entity/home/get_loc/_if_saved_as_tags_if_rot_x_set.mcfunction new file mode 100644 index 0000000..b1d68af --- /dev/null +++ b/data/b7s/functions/entity/home/get_loc/_if_saved_as_tags_if_rot_x_set.mcfunction @@ -0,0 +1,38 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. + +scoreboard players set @s b7s.rot_x -2147483648 +scoreboard players add @s[tag=b7s.home_rot_x_31] b7s.rot_x 1073741824 +scoreboard players add @s[tag=b7s.home_rot_x_31] b7s.rot_x 1073741824 +scoreboard players add @s[tag=b7s.home_rot_x_30] b7s.rot_x 1073741824 +scoreboard players add @s[tag=b7s.home_rot_x_29] b7s.rot_x 536870912 +scoreboard players add @s[tag=b7s.home_rot_x_28] b7s.rot_x 268435456 +scoreboard players add @s[tag=b7s.home_rot_x_27] b7s.rot_x 134217728 +scoreboard players add @s[tag=b7s.home_rot_x_26] b7s.rot_x 67108864 +scoreboard players add @s[tag=b7s.home_rot_x_25] b7s.rot_x 33554432 +scoreboard players add @s[tag=b7s.home_rot_x_24] b7s.rot_x 16777216 +scoreboard players add @s[tag=b7s.home_rot_x_23] b7s.rot_x 8388608 +scoreboard players add @s[tag=b7s.home_rot_x_22] b7s.rot_x 4194304 +scoreboard players add @s[tag=b7s.home_rot_x_21] b7s.rot_x 2097152 +scoreboard players add @s[tag=b7s.home_rot_x_20] b7s.rot_x 1048576 +scoreboard players add @s[tag=b7s.home_rot_x_19] b7s.rot_x 524288 +scoreboard players add @s[tag=b7s.home_rot_x_18] b7s.rot_x 262144 +scoreboard players add @s[tag=b7s.home_rot_x_17] b7s.rot_x 131072 +scoreboard players add @s[tag=b7s.home_rot_x_16] b7s.rot_x 65536 +scoreboard players add @s[tag=b7s.home_rot_x_15] b7s.rot_x 32768 +scoreboard players add @s[tag=b7s.home_rot_x_14] b7s.rot_x 16384 +scoreboard players add @s[tag=b7s.home_rot_x_13] b7s.rot_x 8192 +scoreboard players add @s[tag=b7s.home_rot_x_12] b7s.rot_x 4096 +scoreboard players add @s[tag=b7s.home_rot_x_11] b7s.rot_x 2048 +scoreboard players add @s[tag=b7s.home_rot_x_10] b7s.rot_x 1024 +scoreboard players add @s[tag=b7s.home_rot_x_9] b7s.rot_x 512 +scoreboard players add @s[tag=b7s.home_rot_x_8] b7s.rot_x 256 +scoreboard players add @s[tag=b7s.home_rot_x_7] b7s.rot_x 128 +scoreboard players add @s[tag=b7s.home_rot_x_6] b7s.rot_x 64 +scoreboard players add @s[tag=b7s.home_rot_x_5] b7s.rot_x 32 +scoreboard players add @s[tag=b7s.home_rot_x_4] b7s.rot_x 16 +scoreboard players add @s[tag=b7s.home_rot_x_3] b7s.rot_x 8 +scoreboard players add @s[tag=b7s.home_rot_x_2] b7s.rot_x 4 +scoreboard players add @s[tag=b7s.home_rot_x_1] b7s.rot_x 2 +scoreboard players add @s[tag=b7s.home_rot_x_0] b7s.rot_x 1 diff --git a/data/b7s/functions/entity/home/get_loc/_if_saved_as_tags_if_rot_x_set.mcfunction.py b/data/b7s/functions/entity/home/get_loc/_if_saved_as_tags_if_rot_x_set.mcfunction.py new file mode 100644 index 0000000..cfd9882 --- /dev/null +++ b/data/b7s/functions/entity/home/get_loc/_if_saved_as_tags_if_rot_x_set.mcfunction.py @@ -0,0 +1,14 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. + +print('# This Source Code Form is subject to the terms of the Mozilla Public') +print('# License, v. 2.0. If a copy of the MPL was not distributed with this') +print('# file, You can obtain one at http://mozilla.org/MPL/2.0/.') +print() + +print('scoreboard players set @s b7s.rot_x -2147483648') +print('scoreboard players add @s[tag=b7s.home_rot_x_31] b7s.rot_x 1073741824') +print('scoreboard players add @s[tag=b7s.home_rot_x_31] b7s.rot_x 1073741824') +for i in range(30, -1, -1): + print('scoreboard players add @s[tag=b7s.home_rot_x_{}] b7s.rot_x {}'.format(i, 2 ** i)) diff --git a/data/b7s/functions/entity/home/get_loc/_if_saved_as_tags_if_rot_y_set.mcfunction b/data/b7s/functions/entity/home/get_loc/_if_saved_as_tags_if_rot_y_set.mcfunction new file mode 100644 index 0000000..f9ad031 --- /dev/null +++ b/data/b7s/functions/entity/home/get_loc/_if_saved_as_tags_if_rot_y_set.mcfunction @@ -0,0 +1,38 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. + +scoreboard players set @s b7s.rot_y -2147483648 +scoreboard players add @s[tag=b7s.home_rot_y_31] b7s.rot_y 1073741824 +scoreboard players add @s[tag=b7s.home_rot_y_31] b7s.rot_y 1073741824 +scoreboard players add @s[tag=b7s.home_rot_y_30] b7s.rot_y 1073741824 +scoreboard players add @s[tag=b7s.home_rot_y_29] b7s.rot_y 536870912 +scoreboard players add @s[tag=b7s.home_rot_y_28] b7s.rot_y 268435456 +scoreboard players add @s[tag=b7s.home_rot_y_27] b7s.rot_y 134217728 +scoreboard players add @s[tag=b7s.home_rot_y_26] b7s.rot_y 67108864 +scoreboard players add @s[tag=b7s.home_rot_y_25] b7s.rot_y 33554432 +scoreboard players add @s[tag=b7s.home_rot_y_24] b7s.rot_y 16777216 +scoreboard players add @s[tag=b7s.home_rot_y_23] b7s.rot_y 8388608 +scoreboard players add @s[tag=b7s.home_rot_y_22] b7s.rot_y 4194304 +scoreboard players add @s[tag=b7s.home_rot_y_21] b7s.rot_y 2097152 +scoreboard players add @s[tag=b7s.home_rot_y_20] b7s.rot_y 1048576 +scoreboard players add @s[tag=b7s.home_rot_y_19] b7s.rot_y 524288 +scoreboard players add @s[tag=b7s.home_rot_y_18] b7s.rot_y 262144 +scoreboard players add @s[tag=b7s.home_rot_y_17] b7s.rot_y 131072 +scoreboard players add @s[tag=b7s.home_rot_y_16] b7s.rot_y 65536 +scoreboard players add @s[tag=b7s.home_rot_y_15] b7s.rot_y 32768 +scoreboard players add @s[tag=b7s.home_rot_y_14] b7s.rot_y 16384 +scoreboard players add @s[tag=b7s.home_rot_y_13] b7s.rot_y 8192 +scoreboard players add @s[tag=b7s.home_rot_y_12] b7s.rot_y 4096 +scoreboard players add @s[tag=b7s.home_rot_y_11] b7s.rot_y 2048 +scoreboard players add @s[tag=b7s.home_rot_y_10] b7s.rot_y 1024 +scoreboard players add @s[tag=b7s.home_rot_y_9] b7s.rot_y 512 +scoreboard players add @s[tag=b7s.home_rot_y_8] b7s.rot_y 256 +scoreboard players add @s[tag=b7s.home_rot_y_7] b7s.rot_y 128 +scoreboard players add @s[tag=b7s.home_rot_y_6] b7s.rot_y 64 +scoreboard players add @s[tag=b7s.home_rot_y_5] b7s.rot_y 32 +scoreboard players add @s[tag=b7s.home_rot_y_4] b7s.rot_y 16 +scoreboard players add @s[tag=b7s.home_rot_y_3] b7s.rot_y 8 +scoreboard players add @s[tag=b7s.home_rot_y_2] b7s.rot_y 4 +scoreboard players add @s[tag=b7s.home_rot_y_1] b7s.rot_y 2 +scoreboard players add @s[tag=b7s.home_rot_y_0] b7s.rot_y 1 diff --git a/data/b7s/functions/entity/home/get_loc/_if_saved_as_tags_if_rot_y_set.mcfunction.py b/data/b7s/functions/entity/home/get_loc/_if_saved_as_tags_if_rot_y_set.mcfunction.py new file mode 100644 index 0000000..e33c0c7 --- /dev/null +++ b/data/b7s/functions/entity/home/get_loc/_if_saved_as_tags_if_rot_y_set.mcfunction.py @@ -0,0 +1,14 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. + +print('# This Source Code Form is subject to the terms of the Mozilla Public') +print('# License, v. 2.0. If a copy of the MPL was not distributed with this') +print('# file, You can obtain one at http://mozilla.org/MPL/2.0/.') +print() + +print('scoreboard players set @s b7s.rot_y -2147483648') +print('scoreboard players add @s[tag=b7s.home_rot_y_31] b7s.rot_y 1073741824') +print('scoreboard players add @s[tag=b7s.home_rot_y_31] b7s.rot_y 1073741824') +for i in range(30, -1, -1): + print('scoreboard players add @s[tag=b7s.home_rot_y_{}] b7s.rot_y {}'.format(i, 2 ** i)) diff --git a/data/b7s/functions/entity/home/get_loc/_if_saved_as_tags_if_x_set.mcfunction b/data/b7s/functions/entity/home/get_loc/_if_saved_as_tags_if_x_set.mcfunction new file mode 100644 index 0000000..ddebead --- /dev/null +++ b/data/b7s/functions/entity/home/get_loc/_if_saved_as_tags_if_x_set.mcfunction @@ -0,0 +1,38 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. + +scoreboard players set @s b7s.x -2147483648 +scoreboard players add @s[tag=b7s.home_x_31] b7s.x 1073741824 +scoreboard players add @s[tag=b7s.home_x_31] b7s.x 1073741824 +scoreboard players add @s[tag=b7s.home_x_30] b7s.x 1073741824 +scoreboard players add @s[tag=b7s.home_x_29] b7s.x 536870912 +scoreboard players add @s[tag=b7s.home_x_28] b7s.x 268435456 +scoreboard players add @s[tag=b7s.home_x_27] b7s.x 134217728 +scoreboard players add @s[tag=b7s.home_x_26] b7s.x 67108864 +scoreboard players add @s[tag=b7s.home_x_25] b7s.x 33554432 +scoreboard players add @s[tag=b7s.home_x_24] b7s.x 16777216 +scoreboard players add @s[tag=b7s.home_x_23] b7s.x 8388608 +scoreboard players add @s[tag=b7s.home_x_22] b7s.x 4194304 +scoreboard players add @s[tag=b7s.home_x_21] b7s.x 2097152 +scoreboard players add @s[tag=b7s.home_x_20] b7s.x 1048576 +scoreboard players add @s[tag=b7s.home_x_19] b7s.x 524288 +scoreboard players add @s[tag=b7s.home_x_18] b7s.x 262144 +scoreboard players add @s[tag=b7s.home_x_17] b7s.x 131072 +scoreboard players add @s[tag=b7s.home_x_16] b7s.x 65536 +scoreboard players add @s[tag=b7s.home_x_15] b7s.x 32768 +scoreboard players add @s[tag=b7s.home_x_14] b7s.x 16384 +scoreboard players add @s[tag=b7s.home_x_13] b7s.x 8192 +scoreboard players add @s[tag=b7s.home_x_12] b7s.x 4096 +scoreboard players add @s[tag=b7s.home_x_11] b7s.x 2048 +scoreboard players add @s[tag=b7s.home_x_10] b7s.x 1024 +scoreboard players add @s[tag=b7s.home_x_9] b7s.x 512 +scoreboard players add @s[tag=b7s.home_x_8] b7s.x 256 +scoreboard players add @s[tag=b7s.home_x_7] b7s.x 128 +scoreboard players add @s[tag=b7s.home_x_6] b7s.x 64 +scoreboard players add @s[tag=b7s.home_x_5] b7s.x 32 +scoreboard players add @s[tag=b7s.home_x_4] b7s.x 16 +scoreboard players add @s[tag=b7s.home_x_3] b7s.x 8 +scoreboard players add @s[tag=b7s.home_x_2] b7s.x 4 +scoreboard players add @s[tag=b7s.home_x_1] b7s.x 2 +scoreboard players add @s[tag=b7s.home_x_0] b7s.x 1 diff --git a/data/b7s/functions/entity/home/get_loc/_if_saved_as_tags_if_x_set.mcfunction.py b/data/b7s/functions/entity/home/get_loc/_if_saved_as_tags_if_x_set.mcfunction.py new file mode 100644 index 0000000..c431f0f --- /dev/null +++ b/data/b7s/functions/entity/home/get_loc/_if_saved_as_tags_if_x_set.mcfunction.py @@ -0,0 +1,14 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. + +print('# This Source Code Form is subject to the terms of the Mozilla Public') +print('# License, v. 2.0. If a copy of the MPL was not distributed with this') +print('# file, You can obtain one at http://mozilla.org/MPL/2.0/.') +print() + +print('scoreboard players set @s b7s.x -2147483648') +print('scoreboard players add @s[tag=b7s.home_x_31] b7s.x 1073741824') +print('scoreboard players add @s[tag=b7s.home_x_31] b7s.x 1073741824') +for i in range(30, -1, -1): + print('scoreboard players add @s[tag=b7s.home_x_{}] b7s.x {}'.format(i, 2 ** i)) diff --git a/data/b7s/functions/entity/home/get_loc/_if_saved_as_tags_if_y_set.mcfunction b/data/b7s/functions/entity/home/get_loc/_if_saved_as_tags_if_y_set.mcfunction new file mode 100644 index 0000000..d72b6d5 --- /dev/null +++ b/data/b7s/functions/entity/home/get_loc/_if_saved_as_tags_if_y_set.mcfunction @@ -0,0 +1,38 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. + +scoreboard players set @s b7s.y -2147483648 +scoreboard players add @s[tag=b7s.home_y_31] b7s.y 1073741824 +scoreboard players add @s[tag=b7s.home_y_31] b7s.y 1073741824 +scoreboard players add @s[tag=b7s.home_y_30] b7s.y 1073741824 +scoreboard players add @s[tag=b7s.home_y_29] b7s.y 536870912 +scoreboard players add @s[tag=b7s.home_y_28] b7s.y 268435456 +scoreboard players add @s[tag=b7s.home_y_27] b7s.y 134217728 +scoreboard players add @s[tag=b7s.home_y_26] b7s.y 67108864 +scoreboard players add @s[tag=b7s.home_y_25] b7s.y 33554432 +scoreboard players add @s[tag=b7s.home_y_24] b7s.y 16777216 +scoreboard players add @s[tag=b7s.home_y_23] b7s.y 8388608 +scoreboard players add @s[tag=b7s.home_y_22] b7s.y 4194304 +scoreboard players add @s[tag=b7s.home_y_21] b7s.y 2097152 +scoreboard players add @s[tag=b7s.home_y_20] b7s.y 1048576 +scoreboard players add @s[tag=b7s.home_y_19] b7s.y 524288 +scoreboard players add @s[tag=b7s.home_y_18] b7s.y 262144 +scoreboard players add @s[tag=b7s.home_y_17] b7s.y 131072 +scoreboard players add @s[tag=b7s.home_y_16] b7s.y 65536 +scoreboard players add @s[tag=b7s.home_y_15] b7s.y 32768 +scoreboard players add @s[tag=b7s.home_y_14] b7s.y 16384 +scoreboard players add @s[tag=b7s.home_y_13] b7s.y 8192 +scoreboard players add @s[tag=b7s.home_y_12] b7s.y 4096 +scoreboard players add @s[tag=b7s.home_y_11] b7s.y 2048 +scoreboard players add @s[tag=b7s.home_y_10] b7s.y 1024 +scoreboard players add @s[tag=b7s.home_y_9] b7s.y 512 +scoreboard players add @s[tag=b7s.home_y_8] b7s.y 256 +scoreboard players add @s[tag=b7s.home_y_7] b7s.y 128 +scoreboard players add @s[tag=b7s.home_y_6] b7s.y 64 +scoreboard players add @s[tag=b7s.home_y_5] b7s.y 32 +scoreboard players add @s[tag=b7s.home_y_4] b7s.y 16 +scoreboard players add @s[tag=b7s.home_y_3] b7s.y 8 +scoreboard players add @s[tag=b7s.home_y_2] b7s.y 4 +scoreboard players add @s[tag=b7s.home_y_1] b7s.y 2 +scoreboard players add @s[tag=b7s.home_y_0] b7s.y 1 diff --git a/data/b7s/functions/entity/home/get_loc/_if_saved_as_tags_if_y_set.mcfunction.py b/data/b7s/functions/entity/home/get_loc/_if_saved_as_tags_if_y_set.mcfunction.py new file mode 100644 index 0000000..870e416 --- /dev/null +++ b/data/b7s/functions/entity/home/get_loc/_if_saved_as_tags_if_y_set.mcfunction.py @@ -0,0 +1,14 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. + +print('# This Source Code Form is subject to the terms of the Mozilla Public') +print('# License, v. 2.0. If a copy of the MPL was not distributed with this') +print('# file, You can obtain one at http://mozilla.org/MPL/2.0/.') +print() + +print('scoreboard players set @s b7s.y -2147483648') +print('scoreboard players add @s[tag=b7s.home_y_31] b7s.y 1073741824') +print('scoreboard players add @s[tag=b7s.home_y_31] b7s.y 1073741824') +for i in range(30, -1, -1): + print('scoreboard players add @s[tag=b7s.home_y_{}] b7s.y {}'.format(i, 2 ** i)) diff --git a/data/b7s/functions/entity/home/get_loc/_if_saved_as_tags_if_z_set.mcfunction b/data/b7s/functions/entity/home/get_loc/_if_saved_as_tags_if_z_set.mcfunction new file mode 100644 index 0000000..78454ff --- /dev/null +++ b/data/b7s/functions/entity/home/get_loc/_if_saved_as_tags_if_z_set.mcfunction @@ -0,0 +1,38 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. + +scoreboard players set @s b7s.z -2147483648 +scoreboard players add @s[tag=b7s.home_z_31] b7s.z 1073741824 +scoreboard players add @s[tag=b7s.home_z_31] b7s.z 1073741824 +scoreboard players add @s[tag=b7s.home_z_30] b7s.z 1073741824 +scoreboard players add @s[tag=b7s.home_z_29] b7s.z 536870912 +scoreboard players add @s[tag=b7s.home_z_28] b7s.z 268435456 +scoreboard players add @s[tag=b7s.home_z_27] b7s.z 134217728 +scoreboard players add @s[tag=b7s.home_z_26] b7s.z 67108864 +scoreboard players add @s[tag=b7s.home_z_25] b7s.z 33554432 +scoreboard players add @s[tag=b7s.home_z_24] b7s.z 16777216 +scoreboard players add @s[tag=b7s.home_z_23] b7s.z 8388608 +scoreboard players add @s[tag=b7s.home_z_22] b7s.z 4194304 +scoreboard players add @s[tag=b7s.home_z_21] b7s.z 2097152 +scoreboard players add @s[tag=b7s.home_z_20] b7s.z 1048576 +scoreboard players add @s[tag=b7s.home_z_19] b7s.z 524288 +scoreboard players add @s[tag=b7s.home_z_18] b7s.z 262144 +scoreboard players add @s[tag=b7s.home_z_17] b7s.z 131072 +scoreboard players add @s[tag=b7s.home_z_16] b7s.z 65536 +scoreboard players add @s[tag=b7s.home_z_15] b7s.z 32768 +scoreboard players add @s[tag=b7s.home_z_14] b7s.z 16384 +scoreboard players add @s[tag=b7s.home_z_13] b7s.z 8192 +scoreboard players add @s[tag=b7s.home_z_12] b7s.z 4096 +scoreboard players add @s[tag=b7s.home_z_11] b7s.z 2048 +scoreboard players add @s[tag=b7s.home_z_10] b7s.z 1024 +scoreboard players add @s[tag=b7s.home_z_9] b7s.z 512 +scoreboard players add @s[tag=b7s.home_z_8] b7s.z 256 +scoreboard players add @s[tag=b7s.home_z_7] b7s.z 128 +scoreboard players add @s[tag=b7s.home_z_6] b7s.z 64 +scoreboard players add @s[tag=b7s.home_z_5] b7s.z 32 +scoreboard players add @s[tag=b7s.home_z_4] b7s.z 16 +scoreboard players add @s[tag=b7s.home_z_3] b7s.z 8 +scoreboard players add @s[tag=b7s.home_z_2] b7s.z 4 +scoreboard players add @s[tag=b7s.home_z_1] b7s.z 2 +scoreboard players add @s[tag=b7s.home_z_0] b7s.z 1 diff --git a/data/b7s/functions/entity/home/get_loc/_if_saved_as_tags_if_z_set.mcfunction.py b/data/b7s/functions/entity/home/get_loc/_if_saved_as_tags_if_z_set.mcfunction.py new file mode 100644 index 0000000..1fa5bab --- /dev/null +++ b/data/b7s/functions/entity/home/get_loc/_if_saved_as_tags_if_z_set.mcfunction.py @@ -0,0 +1,14 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. + +print('# This Source Code Form is subject to the terms of the Mozilla Public') +print('# License, v. 2.0. If a copy of the MPL was not distributed with this') +print('# file, You can obtain one at http://mozilla.org/MPL/2.0/.') +print() + +print('scoreboard players set @s b7s.z -2147483648') +print('scoreboard players add @s[tag=b7s.home_z_31] b7s.z 1073741824') +print('scoreboard players add @s[tag=b7s.home_z_31] b7s.z 1073741824') +for i in range(30, -1, -1): + print('scoreboard players add @s[tag=b7s.home_z_{}] b7s.z {}'.format(i, 2 ** i)) diff --git a/data/b7s/functions/entity/home/get_loc/_unless_saved_as_tags.mcfunction b/data/b7s/functions/entity/home/get_loc/_unless_saved_as_tags.mcfunction new file mode 100644 index 0000000..ee34902 --- /dev/null +++ b/data/b7s/functions/entity/home/get_loc/_unless_saved_as_tags.mcfunction @@ -0,0 +1,10 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. + +scoreboard players operation @s b7s.dim = @s[scores={b7s.home_dim=-2147483648..}] b7s.home_dim +scoreboard players operation @s b7s.x = @s[scores={b7s.home_x=-2147483648..}] b7s.home_x +scoreboard players operation @s b7s.y = @s[scores={b7s.home_y=-2147483648..}] b7s.home_y +scoreboard players operation @s b7s.z = @s[scores={b7s.home_z=-2147483648..}] b7s.home_z +scoreboard players operation @s b7s.rot_x = @s[scores={b7s.home_rot_x=-2147483648..}] b7s.home_rot_x +scoreboard players operation @s b7s.rot_y = @s[scores={b7s.home_rot_y=-2147483648..}] b7s.home_rot_y diff --git a/data/b7s/functions/entity/home/get_pos.mcfunction b/data/b7s/functions/entity/home/get_pos.mcfunction deleted file mode 100644 index 269168e..0000000 --- a/data/b7s/functions/entity/home/get_pos.mcfunction +++ /dev/null @@ -1,16 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -# Gets the home position of a player or entity. -# -# Scores set: -# b7s:x — to the home's x coordinate -# b7s:y — to the home's y coordinate -# b7s:z — to the home's z coordinate -# -# Usage: -# /execute ~ ~ ~ function b7s:entity/home/get_pos - -function b7s:entity/home/get_pos/_unless_set_as_tags unless @s[tag=b7s:home_pos_tags_set] -function b7s:entity/home/get_pos/_if_set_as_tags if @s[tag=b7s:home_pos_tags_set] diff --git a/data/b7s/functions/entity/home/get_pos/_if_set_as_tags.mcfunction b/data/b7s/functions/entity/home/get_pos/_if_set_as_tags.mcfunction deleted file mode 100644 index 839dc66..0000000 --- a/data/b7s/functions/entity/home/get_pos/_if_set_as_tags.mcfunction +++ /dev/null @@ -1,75 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -scoreboard players set @s b7s:x -30000000 -scoreboard players set @s b7s:y -4096 -scoreboard players set @s b7s:z -30000000 - -scoreboard players add @s[tag=b7s:home_x_25] b7s:x 33554432 -scoreboard players add @s[tag=b7s:home_x_24] b7s:x 16777216 -scoreboard players add @s[tag=b7s:home_x_23] b7s:x 8388608 -scoreboard players add @s[tag=b7s:home_x_22] b7s:x 4194304 -scoreboard players add @s[tag=b7s:home_x_21] b7s:x 2097152 -scoreboard players add @s[tag=b7s:home_x_20] b7s:x 1048576 -scoreboard players add @s[tag=b7s:home_x_19] b7s:x 524288 -scoreboard players add @s[tag=b7s:home_x_18] b7s:x 262144 -scoreboard players add @s[tag=b7s:home_x_17] b7s:x 131072 -scoreboard players add @s[tag=b7s:home_x_16] b7s:x 65536 -scoreboard players add @s[tag=b7s:home_x_15] b7s:x 32768 -scoreboard players add @s[tag=b7s:home_x_14] b7s:x 16384 -scoreboard players add @s[tag=b7s:home_x_13] b7s:x 8192 -scoreboard players add @s[tag=b7s:home_x_12] b7s:x 4096 -scoreboard players add @s[tag=b7s:home_x_11] b7s:x 2048 -scoreboard players add @s[tag=b7s:home_x_10] b7s:x 1024 -scoreboard players add @s[tag=b7s:home_x_9] b7s:x 512 -scoreboard players add @s[tag=b7s:home_x_8] b7s:x 256 -scoreboard players add @s[tag=b7s:home_x_7] b7s:x 128 -scoreboard players add @s[tag=b7s:home_x_6] b7s:x 64 -scoreboard players add @s[tag=b7s:home_x_5] b7s:x 32 -scoreboard players add @s[tag=b7s:home_x_4] b7s:x 16 -scoreboard players add @s[tag=b7s:home_x_3] b7s:x 8 -scoreboard players add @s[tag=b7s:home_x_2] b7s:x 4 -scoreboard players add @s[tag=b7s:home_x_1] b7s:x 2 -scoreboard players add @s[tag=b7s:home_x_0] b7s:x 1 - -scoreboard players add @s[tag=b7s:home_y_12] b7s:y 4096 -scoreboard players add @s[tag=b7s:home_y_11] b7s:y 2048 -scoreboard players add @s[tag=b7s:home_y_10] b7s:y 1024 -scoreboard players add @s[tag=b7s:home_y_9] b7s:y 512 -scoreboard players add @s[tag=b7s:home_y_8] b7s:y 256 -scoreboard players add @s[tag=b7s:home_y_7] b7s:y 128 -scoreboard players add @s[tag=b7s:home_y_6] b7s:y 64 -scoreboard players add @s[tag=b7s:home_y_5] b7s:y 32 -scoreboard players add @s[tag=b7s:home_y_4] b7s:y 16 -scoreboard players add @s[tag=b7s:home_y_3] b7s:y 8 -scoreboard players add @s[tag=b7s:home_y_2] b7s:y 4 -scoreboard players add @s[tag=b7s:home_y_1] b7s:y 2 -scoreboard players add @s[tag=b7s:home_y_0] b7s:y 1 - -scoreboard players add @s[tag=b7s:home_z_25] b7s:z 33554432 -scoreboard players add @s[tag=b7s:home_z_24] b7s:z 16777216 -scoreboard players add @s[tag=b7s:home_z_23] b7s:z 8388608 -scoreboard players add @s[tag=b7s:home_z_22] b7s:z 4194304 -scoreboard players add @s[tag=b7s:home_z_21] b7s:z 2097152 -scoreboard players add @s[tag=b7s:home_z_20] b7s:z 1048576 -scoreboard players add @s[tag=b7s:home_z_19] b7s:z 524288 -scoreboard players add @s[tag=b7s:home_z_18] b7s:z 262144 -scoreboard players add @s[tag=b7s:home_z_17] b7s:z 131072 -scoreboard players add @s[tag=b7s:home_z_16] b7s:z 65536 -scoreboard players add @s[tag=b7s:home_z_15] b7s:z 32768 -scoreboard players add @s[tag=b7s:home_z_14] b7s:z 16384 -scoreboard players add @s[tag=b7s:home_z_13] b7s:z 8192 -scoreboard players add @s[tag=b7s:home_z_12] b7s:z 4096 -scoreboard players add @s[tag=b7s:home_z_11] b7s:z 2048 -scoreboard players add @s[tag=b7s:home_z_10] b7s:z 1024 -scoreboard players add @s[tag=b7s:home_z_9] b7s:z 512 -scoreboard players add @s[tag=b7s:home_z_8] b7s:z 256 -scoreboard players add @s[tag=b7s:home_z_7] b7s:z 128 -scoreboard players add @s[tag=b7s:home_z_6] b7s:z 64 -scoreboard players add @s[tag=b7s:home_z_5] b7s:z 32 -scoreboard players add @s[tag=b7s:home_z_4] b7s:z 16 -scoreboard players add @s[tag=b7s:home_z_3] b7s:z 8 -scoreboard players add @s[tag=b7s:home_z_2] b7s:z 4 -scoreboard players add @s[tag=b7s:home_z_1] b7s:z 2 -scoreboard players add @s[tag=b7s:home_z_0] b7s:z 1 diff --git a/data/b7s/functions/entity/home/get_pos/_if_set_as_tags.mcfunction.py b/data/b7s/functions/entity/home/get_pos/_if_set_as_tags.mcfunction.py deleted file mode 100644 index 72e0ca6..0000000 --- a/data/b7s/functions/entity/home/get_pos/_if_set_as_tags.mcfunction.py +++ /dev/null @@ -1,23 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -print('# This Source Code Form is subject to the terms of the Mozilla Public') -print('# License, v. 2.0. If a copy of the MPL was not distributed with this') -print('# file, You can obtain one at http://mozilla.org/MPL/2.0/.') -print() -print('scoreboard players set @s b7s:x -30000000') -print('scoreboard players set @s b7s:y -4096') -print('scoreboard players set @s b7s:z -30000000') - -print() -for exponent in range(25, -1, -1): - print('scoreboard players add @s[tag=b7s:home_x_{}] b7s:x {}'.format(exponent, 2 ** exponent)) - -print() -for exponent in range(12, -1, -1): - print('scoreboard players add @s[tag=b7s:home_y_{}] b7s:y {}'.format(exponent, 2 ** exponent)) - -print() -for exponent in range(25, -1, -1): - print('scoreboard players add @s[tag=b7s:home_z_{}] b7s:z {}'.format(exponent, 2 ** exponent)) diff --git a/data/b7s/functions/entity/home/get_pos/_unless_set_as_tags.mcfunction b/data/b7s/functions/entity/home/get_pos/_unless_set_as_tags.mcfunction deleted file mode 100644 index 2ccf145..0000000 --- a/data/b7s/functions/entity/home/get_pos/_unless_set_as_tags.mcfunction +++ /dev/null @@ -1,7 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -scoreboard players operation @s b7s:x = @s b7s:home_x -scoreboard players operation @s b7s:y = @s b7s:home_y -scoreboard players operation @s b7s:z = @s b7s:home_z diff --git a/data/b7s/functions/entity/home/get_rot.mcfunction b/data/b7s/functions/entity/home/get_rot.mcfunction deleted file mode 100644 index 0909c88..0000000 --- a/data/b7s/functions/entity/home/get_rot.mcfunction +++ /dev/null @@ -1,15 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -# Gets the home rotation of a player or entity. -# -# Scores set: -# b7s:rot_x — to the home's x rotation -# b7s:rot_y — to the home's y rotation -# -# Usage: -# /execute ~ ~ ~ function b7s:entity/home/get_rot - -function b7s:entity/home/get_rot/_unless_set_as_tags unless @s[tag=b7s:home_rot_tags_set] -function b7s:entity/home/get_rot/_if_set_as_tags if @s[tag=b7s:home_rot_tags_set] diff --git a/data/b7s/functions/entity/home/get_rot/_if_set_as_tags.mcfunction b/data/b7s/functions/entity/home/get_rot/_if_set_as_tags.mcfunction deleted file mode 100644 index 6fb7bba..0000000 --- a/data/b7s/functions/entity/home/get_rot/_if_set_as_tags.mcfunction +++ /dev/null @@ -1,25 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -scoreboard players set @s b7s:rot_x -90 -scoreboard players set @s b7s:rot_y -180 - -scoreboard players add @s[tag=b7s:home_rot_x_7] b7s:rot_x 128 -scoreboard players add @s[tag=b7s:home_rot_x_6] b7s:rot_x 64 -scoreboard players add @s[tag=b7s:home_rot_x_5] b7s:rot_x 32 -scoreboard players add @s[tag=b7s:home_rot_x_4] b7s:rot_x 16 -scoreboard players add @s[tag=b7s:home_rot_x_3] b7s:rot_x 8 -scoreboard players add @s[tag=b7s:home_rot_x_2] b7s:rot_x 4 -scoreboard players add @s[tag=b7s:home_rot_x_1] b7s:rot_x 2 -scoreboard players add @s[tag=b7s:home_rot_x_0] b7s:rot_x 1 - -scoreboard players add @s[tag=b7s:home_rot_y_8] b7s:rot_y 256 -scoreboard players add @s[tag=b7s:home_rot_y_7] b7s:rot_y 128 -scoreboard players add @s[tag=b7s:home_rot_y_6] b7s:rot_y 64 -scoreboard players add @s[tag=b7s:home_rot_y_5] b7s:rot_y 32 -scoreboard players add @s[tag=b7s:home_rot_y_4] b7s:rot_y 16 -scoreboard players add @s[tag=b7s:home_rot_y_3] b7s:rot_y 8 -scoreboard players add @s[tag=b7s:home_rot_y_2] b7s:rot_y 4 -scoreboard players add @s[tag=b7s:home_rot_y_1] b7s:rot_y 2 -scoreboard players add @s[tag=b7s:home_rot_y_0] b7s:rot_y 1 diff --git a/data/b7s/functions/entity/home/get_rot/_unless_set_as_tags.mcfunction b/data/b7s/functions/entity/home/get_rot/_unless_set_as_tags.mcfunction deleted file mode 100644 index 9006c5e..0000000 --- a/data/b7s/functions/entity/home/get_rot/_unless_set_as_tags.mcfunction +++ /dev/null @@ -1,7 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -scoreboard players operation @s b7s:rot_x = @s b7s:home_rot_x -scoreboard players operation @s b7s:rot_y = @s b7s:home_rot_y -scoreboard players operation @s b7s:rot_z = @s b7s:home_rot_z diff --git a/data/b7s/functions/entity/home/set_dim.mcfunction b/data/b7s/functions/entity/home/set_dim.mcfunction deleted file mode 100644 index 1b476b2..0000000 --- a/data/b7s/functions/entity/home/set_dim.mcfunction +++ /dev/null @@ -1,15 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -# Sets the home dimension of a player or entity. -# -# Scores required: -# b7s:dim — the home's dimension -# -# Usage: -# /scoreboard players set b7s:dim -# /execute ~ ~ ~ function b7s:entity/home/set_dim - -function b7s:config/home/get_save_as_tags -function b7s:entity/home/set_dim/_perform diff --git a/data/b7s/functions/entity/home/set_dim/_if_save_as_tags.mcfunction b/data/b7s/functions/entity/home/set_dim/_if_save_as_tags.mcfunction deleted file mode 100644 index c40226d..0000000 --- a/data/b7s/functions/entity/home/set_dim/_if_save_as_tags.mcfunction +++ /dev/null @@ -1,13 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -scoreboard players tag @s remove b7s:home_dim_nether -scoreboard players tag @s remove b7s:home_dim_overworld -scoreboard players tag @s remove b7s:home_dim_end - -scoreboard players tag @s[score_b7s:dim_min=-1,score_b7s:dim=-1] add b7s:home_dim_nether -scoreboard players tag @s[score_b7s:dim_min=0,score_b7s:dim=0] add b7s:home_dim_overworld -scoreboard players tag @s[score_b7s:dim_min=1,score_b7s:dim=1] add b7s:home_dim_end - -scoreboard players tag @s add b7s:home_dim_tags_set diff --git a/data/b7s/functions/entity/home/set_dim/_perform.mcfunction b/data/b7s/functions/entity/home/set_dim/_perform.mcfunction deleted file mode 100644 index 409e630..0000000 --- a/data/b7s/functions/entity/home/set_dim/_perform.mcfunction +++ /dev/null @@ -1,6 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -function b7s:entity/home/set_dim/_unless_save_as_tags unless @s[tag=b7s:home_as_tags] -function b7s:entity/home/set_dim/_if_save_as_tags if @s[tag=b7s:home_as_tags] diff --git a/data/b7s/functions/entity/home/set_dim/_unless_save_as_tags.mcfunction b/data/b7s/functions/entity/home/set_dim/_unless_save_as_tags.mcfunction deleted file mode 100644 index 2fb1129..0000000 --- a/data/b7s/functions/entity/home/set_dim/_unless_save_as_tags.mcfunction +++ /dev/null @@ -1,7 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -scoreboard players operation @s b7s:home_dim = @s b7s:dim - -scoreboard players tag @s remove b7s:home_dim_tags_set diff --git a/data/b7s/functions/entity/home/set_loc.mcfunction b/data/b7s/functions/entity/home/set_loc.mcfunction index 93c570d..2d77e16 100644 --- a/data/b7s/functions/entity/home/set_loc.mcfunction +++ b/data/b7s/functions/entity/home/set_loc.mcfunction @@ -5,23 +5,26 @@ # Sets the home location of a player or entity. # # Scores required: -# b7s:dim — the home's dimension -# b7s:x — the home's x coordinate -# b7s:y — the home's y coordinate -# b7s:z — the home's z coordinate -# b7s:rot_x — the home's x rotation -# b7s:rot_y — the home's y rotation +# b7s.dim - the dimension of the home location +# b7s.x - the x coordinate of the home location +# b7s.y - the y coordinate of the home location +# b7s.z - the z coordinate of the home location +# b7s.rot_x - the x rotation of the home location +# b7s.rot_y - the y rotation of the home location # # Usage: -# /scoreboard players set b7s:dim -# /scoreboard players set b7s:x -# /scoreboard players set b7s:y -# /scoreboard players set b7s:z -# /scoreboard players set b7s:rot_x -# /scoreboard players set b7s:rot_y -# /execute ~ ~ ~ function b7s:entity/home/set_loc +# /scoreboard players set b7s.dim +# /scoreboard players set b7s.x +# /scoreboard players set b7s.y +# /scoreboard players set b7s.z +# /scoreboard players set b7s.rot_x +# /scoreboard players set b7s.rot_y +# /execute as run function b7s:entity/home/set_loc + +scoreboard players operation @s b7s._val = @s b7s.val function b7s:config/home/get_save_as_tags -function b7s:entity/home/set_dim/_perform -function b7s:entity/home/set_pos/_perform -function b7s:entity/home/set_rot/_perform +execute if score @s b7s.val matches 1 run function b7s:entity/home/set_loc/_if_save_as_tags +execute unless score @s b7s.val matches 1 run function b7s:entity/home/set_loc/_unless_save_as_tags + +scoreboard players operation @s b7s.val = @s b7s._val diff --git a/data/b7s/functions/entity/home/set_loc/_if_save_as_tags.mcfunction b/data/b7s/functions/entity/home/set_loc/_if_save_as_tags.mcfunction new file mode 100644 index 0000000..4fd3ccc --- /dev/null +++ b/data/b7s/functions/entity/home/set_loc/_if_save_as_tags.mcfunction @@ -0,0 +1,11 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. + +execute if score @s b7s.dim matches -2147483648.. run function b7s:entity/home/set_loc/_if_save_as_tags_if_dim_set +execute if score @s b7s.x matches -2147483648.. run function b7s:entity/home/set_loc/_if_save_as_tags_if_x_set +execute if score @s b7s.y matches -2147483648.. run function b7s:entity/home/set_loc/_if_save_as_tags_if_y_set +execute if score @s b7s.z matches -2147483648.. run function b7s:entity/home/set_loc/_if_save_as_tags_if_z_set +execute if score @s b7s.rot_x matches -2147483648.. run function b7s:entity/home/set_loc/_if_save_as_tags_if_rot_x_set +execute if score @s b7s.rot_y matches -2147483648.. run function b7s:entity/home/set_loc/_if_save_as_tags_if_rot_y_set +tag @s add b7s.home_loc_set diff --git a/data/b7s/functions/entity/home/set_loc/_if_save_as_tags_if_dim_set.mcfunction b/data/b7s/functions/entity/home/set_loc/_if_save_as_tags_if_dim_set.mcfunction new file mode 100644 index 0000000..49ec8ee --- /dev/null +++ b/data/b7s/functions/entity/home/set_loc/_if_save_as_tags_if_dim_set.mcfunction @@ -0,0 +1,168 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. + +tag @s add b7s.home_dim_0 +tag @s add b7s.home_dim_1 +tag @s add b7s.home_dim_2 +tag @s add b7s.home_dim_3 +tag @s add b7s.home_dim_4 +tag @s add b7s.home_dim_5 +tag @s add b7s.home_dim_6 +tag @s add b7s.home_dim_7 +tag @s add b7s.home_dim_8 +tag @s add b7s.home_dim_9 +tag @s add b7s.home_dim_10 +tag @s add b7s.home_dim_11 +tag @s add b7s.home_dim_12 +tag @s add b7s.home_dim_13 +tag @s add b7s.home_dim_14 +tag @s add b7s.home_dim_15 +tag @s add b7s.home_dim_16 +tag @s add b7s.home_dim_17 +tag @s add b7s.home_dim_18 +tag @s add b7s.home_dim_19 +tag @s add b7s.home_dim_20 +tag @s add b7s.home_dim_21 +tag @s add b7s.home_dim_22 +tag @s add b7s.home_dim_23 +tag @s add b7s.home_dim_24 +tag @s add b7s.home_dim_25 +tag @s add b7s.home_dim_26 +tag @s add b7s.home_dim_27 +tag @s add b7s.home_dim_28 +tag @s add b7s.home_dim_29 +tag @s add b7s.home_dim_30 +tag @s add b7s.home_dim_31 + +scoreboard players operation @s b7s._tmp_1 = @s b7s.dim +tag @s[scores={b7s._tmp_1=..-1}] remove b7s.home_dim_31 +scoreboard players add @s[tag=!b7s.home_dim_31] b7s._tmp_1 1073741824 +scoreboard players add @s[tag=!b7s.home_dim_31] b7s._tmp_1 1073741824 +scoreboard players set @s b7s._tmp_2 2 + +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_dim_0 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_dim_1 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_dim_2 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_dim_3 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_dim_4 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_dim_5 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_dim_6 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_dim_7 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_dim_8 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_dim_9 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_dim_10 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_dim_11 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_dim_12 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_dim_13 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_dim_14 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_dim_15 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_dim_16 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_dim_17 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_dim_18 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_dim_19 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_dim_20 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_dim_21 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_dim_22 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_dim_23 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_dim_24 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_dim_25 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_dim_26 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_dim_27 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_dim_28 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_dim_29 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_dim_30 + +tag @s add b7s.home_dim_set diff --git a/data/b7s/functions/entity/home/set_loc/_if_save_as_tags_if_dim_set.mcfunction.py b/data/b7s/functions/entity/home/set_loc/_if_save_as_tags_if_dim_set.mcfunction.py new file mode 100644 index 0000000..6de0ae1 --- /dev/null +++ b/data/b7s/functions/entity/home/set_loc/_if_save_as_tags_if_dim_set.mcfunction.py @@ -0,0 +1,29 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. + +print('# This Source Code Form is subject to the terms of the Mozilla Public') +print('# License, v. 2.0. If a copy of the MPL was not distributed with this') +print('# file, You can obtain one at http://mozilla.org/MPL/2.0/.') +print() + +for i in range(32): + print('tag @s add b7s.home_dim_{}'.format(i)) +print() + +print('scoreboard players operation @s b7s._tmp_1 = @s b7s.dim') +print('tag @s[scores={b7s._tmp_1=..-1}] remove b7s.home_dim_31') +print('scoreboard players add @s[tag=!b7s.home_dim_31] b7s._tmp_1 1073741824') +print('scoreboard players add @s[tag=!b7s.home_dim_31] b7s._tmp_1 1073741824') +print('scoreboard players set @s b7s._tmp_2 2') +print() + +for i in range(31): + print('scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1') + print('scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2') + print('tag @s[scores={{b7s._tmp_3=0}}] remove b7s.home_dim_{}'.format(i)) + if i != 30: + print('scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2') +print() + +print('tag @s add b7s.home_dim_set') diff --git a/data/b7s/functions/entity/home/set_loc/_if_save_as_tags_if_rot_x_set.mcfunction b/data/b7s/functions/entity/home/set_loc/_if_save_as_tags_if_rot_x_set.mcfunction new file mode 100644 index 0000000..fac930d --- /dev/null +++ b/data/b7s/functions/entity/home/set_loc/_if_save_as_tags_if_rot_x_set.mcfunction @@ -0,0 +1,168 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. + +tag @s add b7s.home_rot_x_0 +tag @s add b7s.home_rot_x_1 +tag @s add b7s.home_rot_x_2 +tag @s add b7s.home_rot_x_3 +tag @s add b7s.home_rot_x_4 +tag @s add b7s.home_rot_x_5 +tag @s add b7s.home_rot_x_6 +tag @s add b7s.home_rot_x_7 +tag @s add b7s.home_rot_x_8 +tag @s add b7s.home_rot_x_9 +tag @s add b7s.home_rot_x_10 +tag @s add b7s.home_rot_x_11 +tag @s add b7s.home_rot_x_12 +tag @s add b7s.home_rot_x_13 +tag @s add b7s.home_rot_x_14 +tag @s add b7s.home_rot_x_15 +tag @s add b7s.home_rot_x_16 +tag @s add b7s.home_rot_x_17 +tag @s add b7s.home_rot_x_18 +tag @s add b7s.home_rot_x_19 +tag @s add b7s.home_rot_x_20 +tag @s add b7s.home_rot_x_21 +tag @s add b7s.home_rot_x_22 +tag @s add b7s.home_rot_x_23 +tag @s add b7s.home_rot_x_24 +tag @s add b7s.home_rot_x_25 +tag @s add b7s.home_rot_x_26 +tag @s add b7s.home_rot_x_27 +tag @s add b7s.home_rot_x_28 +tag @s add b7s.home_rot_x_29 +tag @s add b7s.home_rot_x_30 +tag @s add b7s.home_rot_x_31 + +scoreboard players operation @s b7s._tmp_1 = @s b7s.rot_x +tag @s[scores={b7s._tmp_1=..-1}] remove b7s.home_rot_x_31 +scoreboard players add @s[tag=!b7s.home_rot_x_31] b7s._tmp_1 1073741824 +scoreboard players add @s[tag=!b7s.home_rot_x_31] b7s._tmp_1 1073741824 +scoreboard players set @s b7s._tmp_2 2 + +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_rot_x_0 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_rot_x_1 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_rot_x_2 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_rot_x_3 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_rot_x_4 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_rot_x_5 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_rot_x_6 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_rot_x_7 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_rot_x_8 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_rot_x_9 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_rot_x_10 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_rot_x_11 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_rot_x_12 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_rot_x_13 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_rot_x_14 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_rot_x_15 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_rot_x_16 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_rot_x_17 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_rot_x_18 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_rot_x_19 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_rot_x_20 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_rot_x_21 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_rot_x_22 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_rot_x_23 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_rot_x_24 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_rot_x_25 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_rot_x_26 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_rot_x_27 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_rot_x_28 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_rot_x_29 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_rot_x_30 + +tag @s add b7s.home_rot_x_set diff --git a/data/b7s/functions/entity/home/set_loc/_if_save_as_tags_if_rot_x_set.mcfunction.py b/data/b7s/functions/entity/home/set_loc/_if_save_as_tags_if_rot_x_set.mcfunction.py new file mode 100644 index 0000000..502fa83 --- /dev/null +++ b/data/b7s/functions/entity/home/set_loc/_if_save_as_tags_if_rot_x_set.mcfunction.py @@ -0,0 +1,29 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. + +print('# This Source Code Form is subject to the terms of the Mozilla Public') +print('# License, v. 2.0. If a copy of the MPL was not distributed with this') +print('# file, You can obtain one at http://mozilla.org/MPL/2.0/.') +print() + +for i in range(32): + print('tag @s add b7s.home_rot_x_{}'.format(i)) +print() + +print('scoreboard players operation @s b7s._tmp_1 = @s b7s.rot_x') +print('tag @s[scores={b7s._tmp_1=..-1}] remove b7s.home_rot_x_31') +print('scoreboard players add @s[tag=!b7s.home_rot_x_31] b7s._tmp_1 1073741824') +print('scoreboard players add @s[tag=!b7s.home_rot_x_31] b7s._tmp_1 1073741824') +print('scoreboard players set @s b7s._tmp_2 2') +print() + +for i in range(31): + print('scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1') + print('scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2') + print('tag @s[scores={{b7s._tmp_3=0}}] remove b7s.home_rot_x_{}'.format(i)) + if i != 30: + print('scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2') +print() + +print('tag @s add b7s.home_rot_x_set') diff --git a/data/b7s/functions/entity/home/set_loc/_if_save_as_tags_if_rot_y_set.mcfunction b/data/b7s/functions/entity/home/set_loc/_if_save_as_tags_if_rot_y_set.mcfunction new file mode 100644 index 0000000..9dc1220 --- /dev/null +++ b/data/b7s/functions/entity/home/set_loc/_if_save_as_tags_if_rot_y_set.mcfunction @@ -0,0 +1,168 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. + +tag @s add b7s.home_rot_y_0 +tag @s add b7s.home_rot_y_1 +tag @s add b7s.home_rot_y_2 +tag @s add b7s.home_rot_y_3 +tag @s add b7s.home_rot_y_4 +tag @s add b7s.home_rot_y_5 +tag @s add b7s.home_rot_y_6 +tag @s add b7s.home_rot_y_7 +tag @s add b7s.home_rot_y_8 +tag @s add b7s.home_rot_y_9 +tag @s add b7s.home_rot_y_10 +tag @s add b7s.home_rot_y_11 +tag @s add b7s.home_rot_y_12 +tag @s add b7s.home_rot_y_13 +tag @s add b7s.home_rot_y_14 +tag @s add b7s.home_rot_y_15 +tag @s add b7s.home_rot_y_16 +tag @s add b7s.home_rot_y_17 +tag @s add b7s.home_rot_y_18 +tag @s add b7s.home_rot_y_19 +tag @s add b7s.home_rot_y_20 +tag @s add b7s.home_rot_y_21 +tag @s add b7s.home_rot_y_22 +tag @s add b7s.home_rot_y_23 +tag @s add b7s.home_rot_y_24 +tag @s add b7s.home_rot_y_25 +tag @s add b7s.home_rot_y_26 +tag @s add b7s.home_rot_y_27 +tag @s add b7s.home_rot_y_28 +tag @s add b7s.home_rot_y_29 +tag @s add b7s.home_rot_y_30 +tag @s add b7s.home_rot_y_31 + +scoreboard players operation @s b7s._tmp_1 = @s b7s.rot_y +tag @s[scores={b7s._tmp_1=..-1}] remove b7s.home_rot_y_31 +scoreboard players add @s[tag=!b7s.home_rot_y_31] b7s._tmp_1 1073741824 +scoreboard players add @s[tag=!b7s.home_rot_y_31] b7s._tmp_1 1073741824 +scoreboard players set @s b7s._tmp_2 2 + +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_rot_y_0 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_rot_y_1 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_rot_y_2 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_rot_y_3 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_rot_y_4 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_rot_y_5 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_rot_y_6 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_rot_y_7 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_rot_y_8 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_rot_y_9 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_rot_y_10 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_rot_y_11 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_rot_y_12 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_rot_y_13 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_rot_y_14 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_rot_y_15 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_rot_y_16 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_rot_y_17 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_rot_y_18 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_rot_y_19 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_rot_y_20 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_rot_y_21 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_rot_y_22 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_rot_y_23 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_rot_y_24 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_rot_y_25 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_rot_y_26 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_rot_y_27 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_rot_y_28 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_rot_y_29 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_rot_y_30 + +tag @s add b7s.home_rot_y_set diff --git a/data/b7s/functions/entity/home/set_loc/_if_save_as_tags_if_rot_y_set.mcfunction.py b/data/b7s/functions/entity/home/set_loc/_if_save_as_tags_if_rot_y_set.mcfunction.py new file mode 100644 index 0000000..4def735 --- /dev/null +++ b/data/b7s/functions/entity/home/set_loc/_if_save_as_tags_if_rot_y_set.mcfunction.py @@ -0,0 +1,29 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. + +print('# This Source Code Form is subject to the terms of the Mozilla Public') +print('# License, v. 2.0. If a copy of the MPL was not distributed with this') +print('# file, You can obtain one at http://mozilla.org/MPL/2.0/.') +print() + +for i in range(32): + print('tag @s add b7s.home_rot_y_{}'.format(i)) +print() + +print('scoreboard players operation @s b7s._tmp_1 = @s b7s.rot_y') +print('tag @s[scores={b7s._tmp_1=..-1}] remove b7s.home_rot_y_31') +print('scoreboard players add @s[tag=!b7s.home_rot_y_31] b7s._tmp_1 1073741824') +print('scoreboard players add @s[tag=!b7s.home_rot_y_31] b7s._tmp_1 1073741824') +print('scoreboard players set @s b7s._tmp_2 2') +print() + +for i in range(31): + print('scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1') + print('scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2') + print('tag @s[scores={{b7s._tmp_3=0}}] remove b7s.home_rot_y_{}'.format(i)) + if i != 30: + print('scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2') +print() + +print('tag @s add b7s.home_rot_y_set') diff --git a/data/b7s/functions/entity/home/set_loc/_if_save_as_tags_if_x_set.mcfunction b/data/b7s/functions/entity/home/set_loc/_if_save_as_tags_if_x_set.mcfunction new file mode 100644 index 0000000..6ba1861 --- /dev/null +++ b/data/b7s/functions/entity/home/set_loc/_if_save_as_tags_if_x_set.mcfunction @@ -0,0 +1,168 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. + +tag @s add b7s.home_x_0 +tag @s add b7s.home_x_1 +tag @s add b7s.home_x_2 +tag @s add b7s.home_x_3 +tag @s add b7s.home_x_4 +tag @s add b7s.home_x_5 +tag @s add b7s.home_x_6 +tag @s add b7s.home_x_7 +tag @s add b7s.home_x_8 +tag @s add b7s.home_x_9 +tag @s add b7s.home_x_10 +tag @s add b7s.home_x_11 +tag @s add b7s.home_x_12 +tag @s add b7s.home_x_13 +tag @s add b7s.home_x_14 +tag @s add b7s.home_x_15 +tag @s add b7s.home_x_16 +tag @s add b7s.home_x_17 +tag @s add b7s.home_x_18 +tag @s add b7s.home_x_19 +tag @s add b7s.home_x_20 +tag @s add b7s.home_x_21 +tag @s add b7s.home_x_22 +tag @s add b7s.home_x_23 +tag @s add b7s.home_x_24 +tag @s add b7s.home_x_25 +tag @s add b7s.home_x_26 +tag @s add b7s.home_x_27 +tag @s add b7s.home_x_28 +tag @s add b7s.home_x_29 +tag @s add b7s.home_x_30 +tag @s add b7s.home_x_31 + +scoreboard players operation @s b7s._tmp_1 = @s b7s.x +tag @s[scores={b7s._tmp_1=..-1}] remove b7s.home_x_31 +scoreboard players add @s[tag=!b7s.home_x_31] b7s._tmp_1 1073741824 +scoreboard players add @s[tag=!b7s.home_x_31] b7s._tmp_1 1073741824 +scoreboard players set @s b7s._tmp_2 2 + +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_x_0 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_x_1 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_x_2 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_x_3 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_x_4 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_x_5 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_x_6 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_x_7 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_x_8 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_x_9 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_x_10 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_x_11 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_x_12 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_x_13 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_x_14 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_x_15 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_x_16 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_x_17 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_x_18 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_x_19 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_x_20 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_x_21 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_x_22 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_x_23 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_x_24 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_x_25 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_x_26 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_x_27 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_x_28 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_x_29 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_x_30 + +tag @s add b7s.home_x_set diff --git a/data/b7s/functions/entity/home/set_loc/_if_save_as_tags_if_x_set.mcfunction.py b/data/b7s/functions/entity/home/set_loc/_if_save_as_tags_if_x_set.mcfunction.py new file mode 100644 index 0000000..0929bdf --- /dev/null +++ b/data/b7s/functions/entity/home/set_loc/_if_save_as_tags_if_x_set.mcfunction.py @@ -0,0 +1,29 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. + +print('# This Source Code Form is subject to the terms of the Mozilla Public') +print('# License, v. 2.0. If a copy of the MPL was not distributed with this') +print('# file, You can obtain one at http://mozilla.org/MPL/2.0/.') +print() + +for i in range(32): + print('tag @s add b7s.home_x_{}'.format(i)) +print() + +print('scoreboard players operation @s b7s._tmp_1 = @s b7s.x') +print('tag @s[scores={b7s._tmp_1=..-1}] remove b7s.home_x_31') +print('scoreboard players add @s[tag=!b7s.home_x_31] b7s._tmp_1 1073741824') +print('scoreboard players add @s[tag=!b7s.home_x_31] b7s._tmp_1 1073741824') +print('scoreboard players set @s b7s._tmp_2 2') +print() + +for i in range(31): + print('scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1') + print('scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2') + print('tag @s[scores={{b7s._tmp_3=0}}] remove b7s.home_x_{}'.format(i)) + if i != 30: + print('scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2') +print() + +print('tag @s add b7s.home_x_set') diff --git a/data/b7s/functions/entity/home/set_loc/_if_save_as_tags_if_y_set.mcfunction b/data/b7s/functions/entity/home/set_loc/_if_save_as_tags_if_y_set.mcfunction new file mode 100644 index 0000000..fe29f33 --- /dev/null +++ b/data/b7s/functions/entity/home/set_loc/_if_save_as_tags_if_y_set.mcfunction @@ -0,0 +1,168 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. + +tag @s add b7s.home_y_0 +tag @s add b7s.home_y_1 +tag @s add b7s.home_y_2 +tag @s add b7s.home_y_3 +tag @s add b7s.home_y_4 +tag @s add b7s.home_y_5 +tag @s add b7s.home_y_6 +tag @s add b7s.home_y_7 +tag @s add b7s.home_y_8 +tag @s add b7s.home_y_9 +tag @s add b7s.home_y_10 +tag @s add b7s.home_y_11 +tag @s add b7s.home_y_12 +tag @s add b7s.home_y_13 +tag @s add b7s.home_y_14 +tag @s add b7s.home_y_15 +tag @s add b7s.home_y_16 +tag @s add b7s.home_y_17 +tag @s add b7s.home_y_18 +tag @s add b7s.home_y_19 +tag @s add b7s.home_y_20 +tag @s add b7s.home_y_21 +tag @s add b7s.home_y_22 +tag @s add b7s.home_y_23 +tag @s add b7s.home_y_24 +tag @s add b7s.home_y_25 +tag @s add b7s.home_y_26 +tag @s add b7s.home_y_27 +tag @s add b7s.home_y_28 +tag @s add b7s.home_y_29 +tag @s add b7s.home_y_30 +tag @s add b7s.home_y_31 + +scoreboard players operation @s b7s._tmp_1 = @s b7s.y +tag @s[scores={b7s._tmp_1=..-1}] remove b7s.home_y_31 +scoreboard players add @s[tag=!b7s.home_y_31] b7s._tmp_1 1073741824 +scoreboard players add @s[tag=!b7s.home_y_31] b7s._tmp_1 1073741824 +scoreboard players set @s b7s._tmp_2 2 + +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_y_0 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_y_1 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_y_2 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_y_3 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_y_4 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_y_5 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_y_6 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_y_7 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_y_8 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_y_9 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_y_10 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_y_11 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_y_12 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_y_13 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_y_14 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_y_15 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_y_16 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_y_17 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_y_18 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_y_19 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_y_20 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_y_21 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_y_22 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_y_23 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_y_24 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_y_25 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_y_26 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_y_27 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_y_28 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_y_29 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_y_30 + +tag @s add b7s.home_y_set diff --git a/data/b7s/functions/entity/home/set_loc/_if_save_as_tags_if_y_set.mcfunction.py b/data/b7s/functions/entity/home/set_loc/_if_save_as_tags_if_y_set.mcfunction.py new file mode 100644 index 0000000..539c178 --- /dev/null +++ b/data/b7s/functions/entity/home/set_loc/_if_save_as_tags_if_y_set.mcfunction.py @@ -0,0 +1,29 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. + +print('# This Source Code Form is subject to the terms of the Mozilla Public') +print('# License, v. 2.0. If a copy of the MPL was not distributed with this') +print('# file, You can obtain one at http://mozilla.org/MPL/2.0/.') +print() + +for i in range(32): + print('tag @s add b7s.home_y_{}'.format(i)) +print() + +print('scoreboard players operation @s b7s._tmp_1 = @s b7s.y') +print('tag @s[scores={b7s._tmp_1=..-1}] remove b7s.home_y_31') +print('scoreboard players add @s[tag=!b7s.home_y_31] b7s._tmp_1 1073741824') +print('scoreboard players add @s[tag=!b7s.home_y_31] b7s._tmp_1 1073741824') +print('scoreboard players set @s b7s._tmp_2 2') +print() + +for i in range(31): + print('scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1') + print('scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2') + print('tag @s[scores={{b7s._tmp_3=0}}] remove b7s.home_y_{}'.format(i)) + if i != 30: + print('scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2') +print() + +print('tag @s add b7s.home_y_set') diff --git a/data/b7s/functions/entity/home/set_loc/_if_save_as_tags_if_z_set.mcfunction b/data/b7s/functions/entity/home/set_loc/_if_save_as_tags_if_z_set.mcfunction new file mode 100644 index 0000000..bcfcbd9 --- /dev/null +++ b/data/b7s/functions/entity/home/set_loc/_if_save_as_tags_if_z_set.mcfunction @@ -0,0 +1,168 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. + +tag @s add b7s.home_z_0 +tag @s add b7s.home_z_1 +tag @s add b7s.home_z_2 +tag @s add b7s.home_z_3 +tag @s add b7s.home_z_4 +tag @s add b7s.home_z_5 +tag @s add b7s.home_z_6 +tag @s add b7s.home_z_7 +tag @s add b7s.home_z_8 +tag @s add b7s.home_z_9 +tag @s add b7s.home_z_10 +tag @s add b7s.home_z_11 +tag @s add b7s.home_z_12 +tag @s add b7s.home_z_13 +tag @s add b7s.home_z_14 +tag @s add b7s.home_z_15 +tag @s add b7s.home_z_16 +tag @s add b7s.home_z_17 +tag @s add b7s.home_z_18 +tag @s add b7s.home_z_19 +tag @s add b7s.home_z_20 +tag @s add b7s.home_z_21 +tag @s add b7s.home_z_22 +tag @s add b7s.home_z_23 +tag @s add b7s.home_z_24 +tag @s add b7s.home_z_25 +tag @s add b7s.home_z_26 +tag @s add b7s.home_z_27 +tag @s add b7s.home_z_28 +tag @s add b7s.home_z_29 +tag @s add b7s.home_z_30 +tag @s add b7s.home_z_31 + +scoreboard players operation @s b7s._tmp_1 = @s b7s.z +tag @s[scores={b7s._tmp_1=..-1}] remove b7s.home_z_31 +scoreboard players add @s[tag=!b7s.home_z_31] b7s._tmp_1 1073741824 +scoreboard players add @s[tag=!b7s.home_z_31] b7s._tmp_1 1073741824 +scoreboard players set @s b7s._tmp_2 2 + +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_z_0 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_z_1 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_z_2 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_z_3 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_z_4 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_z_5 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_z_6 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_z_7 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_z_8 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_z_9 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_z_10 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_z_11 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_z_12 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_z_13 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_z_14 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_z_15 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_z_16 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_z_17 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_z_18 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_z_19 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_z_20 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_z_21 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_z_22 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_z_23 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_z_24 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_z_25 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_z_26 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_z_27 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_z_28 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_z_29 +scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2 +scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1 +scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2 +tag @s[scores={b7s._tmp_3=0}] remove b7s.home_z_30 + +tag @s add b7s.home_z_set diff --git a/data/b7s/functions/entity/home/set_loc/_if_save_as_tags_if_z_set.mcfunction.py b/data/b7s/functions/entity/home/set_loc/_if_save_as_tags_if_z_set.mcfunction.py new file mode 100644 index 0000000..c473d34 --- /dev/null +++ b/data/b7s/functions/entity/home/set_loc/_if_save_as_tags_if_z_set.mcfunction.py @@ -0,0 +1,29 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. + +print('# This Source Code Form is subject to the terms of the Mozilla Public') +print('# License, v. 2.0. If a copy of the MPL was not distributed with this') +print('# file, You can obtain one at http://mozilla.org/MPL/2.0/.') +print() + +for i in range(32): + print('tag @s add b7s.home_z_{}'.format(i)) +print() + +print('scoreboard players operation @s b7s._tmp_1 = @s b7s.z') +print('tag @s[scores={b7s._tmp_1=..-1}] remove b7s.home_z_31') +print('scoreboard players add @s[tag=!b7s.home_z_31] b7s._tmp_1 1073741824') +print('scoreboard players add @s[tag=!b7s.home_z_31] b7s._tmp_1 1073741824') +print('scoreboard players set @s b7s._tmp_2 2') +print() + +for i in range(31): + print('scoreboard players operation @s b7s._tmp_3 = @s b7s._tmp_1') + print('scoreboard players operation @s b7s._tmp_3 %= @s b7s._tmp_2') + print('tag @s[scores={{b7s._tmp_3=0}}] remove b7s.home_z_{}'.format(i)) + if i != 30: + print('scoreboard players operation @s b7s._tmp_1 /= @s b7s._tmp_2') +print() + +print('tag @s add b7s.home_z_set') diff --git a/data/b7s/functions/entity/home/set_loc/_unless_save_as_tags.mcfunction b/data/b7s/functions/entity/home/set_loc/_unless_save_as_tags.mcfunction new file mode 100644 index 0000000..66c57f3 --- /dev/null +++ b/data/b7s/functions/entity/home/set_loc/_unless_save_as_tags.mcfunction @@ -0,0 +1,11 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. + +scoreboard players operation @s b7s.home_dim = @s[scores={b7s.dim=-2147483648..}] b7s.dim +scoreboard players operation @s b7s.home_x = @s[scores={b7s.x=-2147483648..}] b7s.x +scoreboard players operation @s b7s.home_y = @s[scores={b7s.y=-2147483648..}] b7s.y +scoreboard players operation @s b7s.home_z = @s[scores={b7s.z=-2147483648..}] b7s.z +scoreboard players operation @s b7s.home_rot_x = @s[scores={b7s.rot_x=-2147483648..}] b7s.rot_x +scoreboard players operation @s b7s.home_rot_y = @s[scores={b7s.rot_y=-2147483648..}] b7s.rot_y +tag @s remove b7s.home_loc_set diff --git a/data/b7s/functions/entity/home/set_pos.mcfunction b/data/b7s/functions/entity/home/set_pos.mcfunction deleted file mode 100644 index e307d4d..0000000 --- a/data/b7s/functions/entity/home/set_pos.mcfunction +++ /dev/null @@ -1,19 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -# Sets the home position of a player or entity. -# -# Scores required: -# b7s:x — the home's x coordinate -# b7s:y — the home's y coordinate -# b7s:z — the home's z coordinate -# -# Usage: -# /scoreboard players set b7s:x -# /scoreboard players set b7s:y -# /scoreboard players set b7s:z -# /execute ~ ~ ~ function b7s:entity/home/set_pos - -function b7s:config/home/get_save_as_tags -function b7s:entity/home/set_pos/_perform diff --git a/data/b7s/functions/entity/home/set_pos/_if_save_as_tags.mcfunction b/data/b7s/functions/entity/home/set_pos/_if_save_as_tags.mcfunction deleted file mode 100644 index 1c1fc24..0000000 --- a/data/b7s/functions/entity/home/set_pos/_if_save_as_tags.mcfunction +++ /dev/null @@ -1,209 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -scoreboard players tag @s remove b7s:home_x_25 -scoreboard players tag @s remove b7s:home_x_24 -scoreboard players tag @s remove b7s:home_x_23 -scoreboard players tag @s remove b7s:home_x_22 -scoreboard players tag @s remove b7s:home_x_21 -scoreboard players tag @s remove b7s:home_x_20 -scoreboard players tag @s remove b7s:home_x_19 -scoreboard players tag @s remove b7s:home_x_18 -scoreboard players tag @s remove b7s:home_x_17 -scoreboard players tag @s remove b7s:home_x_16 -scoreboard players tag @s remove b7s:home_x_15 -scoreboard players tag @s remove b7s:home_x_14 -scoreboard players tag @s remove b7s:home_x_13 -scoreboard players tag @s remove b7s:home_x_12 -scoreboard players tag @s remove b7s:home_x_11 -scoreboard players tag @s remove b7s:home_x_10 -scoreboard players tag @s remove b7s:home_x_9 -scoreboard players tag @s remove b7s:home_x_8 -scoreboard players tag @s remove b7s:home_x_7 -scoreboard players tag @s remove b7s:home_x_6 -scoreboard players tag @s remove b7s:home_x_5 -scoreboard players tag @s remove b7s:home_x_4 -scoreboard players tag @s remove b7s:home_x_3 -scoreboard players tag @s remove b7s:home_x_2 -scoreboard players tag @s remove b7s:home_x_1 -scoreboard players tag @s remove b7s:home_x_0 - -scoreboard players tag @s remove b7s:home_y_12 -scoreboard players tag @s remove b7s:home_y_11 -scoreboard players tag @s remove b7s:home_y_10 -scoreboard players tag @s remove b7s:home_y_9 -scoreboard players tag @s remove b7s:home_y_8 -scoreboard players tag @s remove b7s:home_y_7 -scoreboard players tag @s remove b7s:home_y_6 -scoreboard players tag @s remove b7s:home_y_5 -scoreboard players tag @s remove b7s:home_y_4 -scoreboard players tag @s remove b7s:home_y_3 -scoreboard players tag @s remove b7s:home_y_2 -scoreboard players tag @s remove b7s:home_y_1 -scoreboard players tag @s remove b7s:home_y_0 - -scoreboard players tag @s remove b7s:home_z_25 -scoreboard players tag @s remove b7s:home_z_24 -scoreboard players tag @s remove b7s:home_z_23 -scoreboard players tag @s remove b7s:home_z_22 -scoreboard players tag @s remove b7s:home_z_21 -scoreboard players tag @s remove b7s:home_z_20 -scoreboard players tag @s remove b7s:home_z_19 -scoreboard players tag @s remove b7s:home_z_18 -scoreboard players tag @s remove b7s:home_z_17 -scoreboard players tag @s remove b7s:home_z_16 -scoreboard players tag @s remove b7s:home_z_15 -scoreboard players tag @s remove b7s:home_z_14 -scoreboard players tag @s remove b7s:home_z_13 -scoreboard players tag @s remove b7s:home_z_12 -scoreboard players tag @s remove b7s:home_z_11 -scoreboard players tag @s remove b7s:home_z_10 -scoreboard players tag @s remove b7s:home_z_9 -scoreboard players tag @s remove b7s:home_z_8 -scoreboard players tag @s remove b7s:home_z_7 -scoreboard players tag @s remove b7s:home_z_6 -scoreboard players tag @s remove b7s:home_z_5 -scoreboard players tag @s remove b7s:home_z_4 -scoreboard players tag @s remove b7s:home_z_3 -scoreboard players tag @s remove b7s:home_z_2 -scoreboard players tag @s remove b7s:home_z_1 -scoreboard players tag @s remove b7s:home_z_0 - -scoreboard players operation @s b7s:_tmp = @s b7s:x -scoreboard players add @s b7s:_tmp 30000000 -scoreboard players tag @s[score_b7s:_tmp_min=33554432] add b7s:home_x_25 -scoreboard players remove @s[score_b7s:_tmp_min=33554432] b7s:_tmp 33554432 -scoreboard players tag @s[score_b7s:_tmp_min=16777216] add b7s:home_x_24 -scoreboard players remove @s[score_b7s:_tmp_min=16777216] b7s:_tmp 16777216 -scoreboard players tag @s[score_b7s:_tmp_min=8388608] add b7s:home_x_23 -scoreboard players remove @s[score_b7s:_tmp_min=8388608] b7s:_tmp 8388608 -scoreboard players tag @s[score_b7s:_tmp_min=4194304] add b7s:home_x_22 -scoreboard players remove @s[score_b7s:_tmp_min=4194304] b7s:_tmp 4194304 -scoreboard players tag @s[score_b7s:_tmp_min=2097152] add b7s:home_x_21 -scoreboard players remove @s[score_b7s:_tmp_min=2097152] b7s:_tmp 2097152 -scoreboard players tag @s[score_b7s:_tmp_min=1048576] add b7s:home_x_20 -scoreboard players remove @s[score_b7s:_tmp_min=1048576] b7s:_tmp 1048576 -scoreboard players tag @s[score_b7s:_tmp_min=524288] add b7s:home_x_19 -scoreboard players remove @s[score_b7s:_tmp_min=524288] b7s:_tmp 524288 -scoreboard players tag @s[score_b7s:_tmp_min=262144] add b7s:home_x_18 -scoreboard players remove @s[score_b7s:_tmp_min=262144] b7s:_tmp 262144 -scoreboard players tag @s[score_b7s:_tmp_min=131072] add b7s:home_x_17 -scoreboard players remove @s[score_b7s:_tmp_min=131072] b7s:_tmp 131072 -scoreboard players tag @s[score_b7s:_tmp_min=65536] add b7s:home_x_16 -scoreboard players remove @s[score_b7s:_tmp_min=65536] b7s:_tmp 65536 -scoreboard players tag @s[score_b7s:_tmp_min=32768] add b7s:home_x_15 -scoreboard players remove @s[score_b7s:_tmp_min=32768] b7s:_tmp 32768 -scoreboard players tag @s[score_b7s:_tmp_min=16384] add b7s:home_x_14 -scoreboard players remove @s[score_b7s:_tmp_min=16384] b7s:_tmp 16384 -scoreboard players tag @s[score_b7s:_tmp_min=8192] add b7s:home_x_13 -scoreboard players remove @s[score_b7s:_tmp_min=8192] b7s:_tmp 8192 -scoreboard players tag @s[score_b7s:_tmp_min=4096] add b7s:home_x_12 -scoreboard players remove @s[score_b7s:_tmp_min=4096] b7s:_tmp 4096 -scoreboard players tag @s[score_b7s:_tmp_min=2048] add b7s:home_x_11 -scoreboard players remove @s[score_b7s:_tmp_min=2048] b7s:_tmp 2048 -scoreboard players tag @s[score_b7s:_tmp_min=1024] add b7s:home_x_10 -scoreboard players remove @s[score_b7s:_tmp_min=1024] b7s:_tmp 1024 -scoreboard players tag @s[score_b7s:_tmp_min=512] add b7s:home_x_9 -scoreboard players remove @s[score_b7s:_tmp_min=512] b7s:_tmp 512 -scoreboard players tag @s[score_b7s:_tmp_min=256] add b7s:home_x_8 -scoreboard players remove @s[score_b7s:_tmp_min=256] b7s:_tmp 256 -scoreboard players tag @s[score_b7s:_tmp_min=128] add b7s:home_x_7 -scoreboard players remove @s[score_b7s:_tmp_min=128] b7s:_tmp 128 -scoreboard players tag @s[score_b7s:_tmp_min=64] add b7s:home_x_6 -scoreboard players remove @s[score_b7s:_tmp_min=64] b7s:_tmp 64 -scoreboard players tag @s[score_b7s:_tmp_min=32] add b7s:home_x_5 -scoreboard players remove @s[score_b7s:_tmp_min=32] b7s:_tmp 32 -scoreboard players tag @s[score_b7s:_tmp_min=16] add b7s:home_x_4 -scoreboard players remove @s[score_b7s:_tmp_min=16] b7s:_tmp 16 -scoreboard players tag @s[score_b7s:_tmp_min=8] add b7s:home_x_3 -scoreboard players remove @s[score_b7s:_tmp_min=8] b7s:_tmp 8 -scoreboard players tag @s[score_b7s:_tmp_min=4] add b7s:home_x_2 -scoreboard players remove @s[score_b7s:_tmp_min=4] b7s:_tmp 4 -scoreboard players tag @s[score_b7s:_tmp_min=2] add b7s:home_x_1 -scoreboard players remove @s[score_b7s:_tmp_min=2] b7s:_tmp 2 -scoreboard players tag @s[score_b7s:_tmp_min=1] add b7s:home_x_0 - -scoreboard players operation @s b7s:_tmp = @s b7s:y -scoreboard players add @s b7s:_tmp 4096 -scoreboard players tag @s[score_b7s:_tmp_min=4096] add b7s:home_y_12 -scoreboard players remove @s[score_b7s:_tmp_min=4096] b7s:_tmp 4096 -scoreboard players tag @s[score_b7s:_tmp_min=2048] add b7s:home_y_11 -scoreboard players remove @s[score_b7s:_tmp_min=2048] b7s:_tmp 2048 -scoreboard players tag @s[score_b7s:_tmp_min=1024] add b7s:home_y_10 -scoreboard players remove @s[score_b7s:_tmp_min=1024] b7s:_tmp 1024 -scoreboard players tag @s[score_b7s:_tmp_min=512] add b7s:home_y_9 -scoreboard players remove @s[score_b7s:_tmp_min=512] b7s:_tmp 512 -scoreboard players tag @s[score_b7s:_tmp_min=256] add b7s:home_y_8 -scoreboard players remove @s[score_b7s:_tmp_min=256] b7s:_tmp 256 -scoreboard players tag @s[score_b7s:_tmp_min=128] add b7s:home_y_7 -scoreboard players remove @s[score_b7s:_tmp_min=128] b7s:_tmp 128 -scoreboard players tag @s[score_b7s:_tmp_min=64] add b7s:home_y_6 -scoreboard players remove @s[score_b7s:_tmp_min=64] b7s:_tmp 64 -scoreboard players tag @s[score_b7s:_tmp_min=32] add b7s:home_y_5 -scoreboard players remove @s[score_b7s:_tmp_min=32] b7s:_tmp 32 -scoreboard players tag @s[score_b7s:_tmp_min=16] add b7s:home_y_4 -scoreboard players remove @s[score_b7s:_tmp_min=16] b7s:_tmp 16 -scoreboard players tag @s[score_b7s:_tmp_min=8] add b7s:home_y_3 -scoreboard players remove @s[score_b7s:_tmp_min=8] b7s:_tmp 8 -scoreboard players tag @s[score_b7s:_tmp_min=4] add b7s:home_y_2 -scoreboard players remove @s[score_b7s:_tmp_min=4] b7s:_tmp 4 -scoreboard players tag @s[score_b7s:_tmp_min=2] add b7s:home_y_1 -scoreboard players remove @s[score_b7s:_tmp_min=2] b7s:_tmp 2 -scoreboard players tag @s[score_b7s:_tmp_min=1] add b7s:home_y_0 - -scoreboard players operation @s b7s:_tmp = @s b7s:z -scoreboard players add @s b7s:_tmp 30000000 -scoreboard players tag @s[score_b7s:_tmp_min=33554432] add b7s:home_z_25 -scoreboard players remove @s[score_b7s:_tmp_min=33554432] b7s:_tmp 33554432 -scoreboard players tag @s[score_b7s:_tmp_min=16777216] add b7s:home_z_24 -scoreboard players remove @s[score_b7s:_tmp_min=16777216] b7s:_tmp 16777216 -scoreboard players tag @s[score_b7s:_tmp_min=8388608] add b7s:home_z_23 -scoreboard players remove @s[score_b7s:_tmp_min=8388608] b7s:_tmp 8388608 -scoreboard players tag @s[score_b7s:_tmp_min=4194304] add b7s:home_z_22 -scoreboard players remove @s[score_b7s:_tmp_min=4194304] b7s:_tmp 4194304 -scoreboard players tag @s[score_b7s:_tmp_min=2097152] add b7s:home_z_21 -scoreboard players remove @s[score_b7s:_tmp_min=2097152] b7s:_tmp 2097152 -scoreboard players tag @s[score_b7s:_tmp_min=1048576] add b7s:home_z_20 -scoreboard players remove @s[score_b7s:_tmp_min=1048576] b7s:_tmp 1048576 -scoreboard players tag @s[score_b7s:_tmp_min=524288] add b7s:home_z_19 -scoreboard players remove @s[score_b7s:_tmp_min=524288] b7s:_tmp 524288 -scoreboard players tag @s[score_b7s:_tmp_min=262144] add b7s:home_z_18 -scoreboard players remove @s[score_b7s:_tmp_min=262144] b7s:_tmp 262144 -scoreboard players tag @s[score_b7s:_tmp_min=131072] add b7s:home_z_17 -scoreboard players remove @s[score_b7s:_tmp_min=131072] b7s:_tmp 131072 -scoreboard players tag @s[score_b7s:_tmp_min=65536] add b7s:home_z_16 -scoreboard players remove @s[score_b7s:_tmp_min=65536] b7s:_tmp 65536 -scoreboard players tag @s[score_b7s:_tmp_min=32768] add b7s:home_z_15 -scoreboard players remove @s[score_b7s:_tmp_min=32768] b7s:_tmp 32768 -scoreboard players tag @s[score_b7s:_tmp_min=16384] add b7s:home_z_14 -scoreboard players remove @s[score_b7s:_tmp_min=16384] b7s:_tmp 16384 -scoreboard players tag @s[score_b7s:_tmp_min=8192] add b7s:home_z_13 -scoreboard players remove @s[score_b7s:_tmp_min=8192] b7s:_tmp 8192 -scoreboard players tag @s[score_b7s:_tmp_min=4096] add b7s:home_z_12 -scoreboard players remove @s[score_b7s:_tmp_min=4096] b7s:_tmp 4096 -scoreboard players tag @s[score_b7s:_tmp_min=2048] add b7s:home_z_11 -scoreboard players remove @s[score_b7s:_tmp_min=2048] b7s:_tmp 2048 -scoreboard players tag @s[score_b7s:_tmp_min=1024] add b7s:home_z_10 -scoreboard players remove @s[score_b7s:_tmp_min=1024] b7s:_tmp 1024 -scoreboard players tag @s[score_b7s:_tmp_min=512] add b7s:home_z_9 -scoreboard players remove @s[score_b7s:_tmp_min=512] b7s:_tmp 512 -scoreboard players tag @s[score_b7s:_tmp_min=256] add b7s:home_z_8 -scoreboard players remove @s[score_b7s:_tmp_min=256] b7s:_tmp 256 -scoreboard players tag @s[score_b7s:_tmp_min=128] add b7s:home_z_7 -scoreboard players remove @s[score_b7s:_tmp_min=128] b7s:_tmp 128 -scoreboard players tag @s[score_b7s:_tmp_min=64] add b7s:home_z_6 -scoreboard players remove @s[score_b7s:_tmp_min=64] b7s:_tmp 64 -scoreboard players tag @s[score_b7s:_tmp_min=32] add b7s:home_z_5 -scoreboard players remove @s[score_b7s:_tmp_min=32] b7s:_tmp 32 -scoreboard players tag @s[score_b7s:_tmp_min=16] add b7s:home_z_4 -scoreboard players remove @s[score_b7s:_tmp_min=16] b7s:_tmp 16 -scoreboard players tag @s[score_b7s:_tmp_min=8] add b7s:home_z_3 -scoreboard players remove @s[score_b7s:_tmp_min=8] b7s:_tmp 8 -scoreboard players tag @s[score_b7s:_tmp_min=4] add b7s:home_z_2 -scoreboard players remove @s[score_b7s:_tmp_min=4] b7s:_tmp 4 -scoreboard players tag @s[score_b7s:_tmp_min=2] add b7s:home_z_1 -scoreboard players remove @s[score_b7s:_tmp_min=2] b7s:_tmp 2 -scoreboard players tag @s[score_b7s:_tmp_min=1] add b7s:home_z_0 - -scoreboard players tag @s add b7s:home_pos_tags_set diff --git a/data/b7s/functions/entity/home/set_pos/_if_save_as_tags.mcfunction.py b/data/b7s/functions/entity/home/set_pos/_if_save_as_tags.mcfunction.py deleted file mode 100644 index c7c5159..0000000 --- a/data/b7s/functions/entity/home/set_pos/_if_save_as_tags.mcfunction.py +++ /dev/null @@ -1,46 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -print('# This Source Code Form is subject to the terms of the Mozilla Public') -print('# License, v. 2.0. If a copy of the MPL was not distributed with this') -print('# file, You can obtain one at http://mozilla.org/MPL/2.0/.') - -print() -for exponent in range(25, -1, -1): - print('scoreboard players tag @s remove b7s:home_x_{}'.format(exponent)) - -print() -for exponent in range(12, -1, -1): - print('scoreboard players tag @s remove b7s:home_y_{}'.format(exponent)) - -print() -for exponent in range(25, -1, -1): - print('scoreboard players tag @s remove b7s:home_z_{}'.format(exponent)) - -print() -print('scoreboard players operation @s b7s:_tmp = @s b7s:x') -print('scoreboard players add @s b7s:_tmp 30000000') -for exponent in range(25, -1, -1): - print('scoreboard players tag @s[score_b7s:_tmp_min={}] add b7s:home_x_{}'.format(2 ** exponent, exponent)) - if exponent != 0: - print('scoreboard players remove @s[score_b7s:_tmp_min={0}] b7s:_tmp {0}'.format(2 ** exponent)) - -print() -print('scoreboard players operation @s b7s:_tmp = @s b7s:y') -print('scoreboard players add @s b7s:_tmp 4096') -for exponent in range(12, -1, -1): - print('scoreboard players tag @s[score_b7s:_tmp_min={}] add b7s:home_y_{}'.format(2 ** exponent, exponent)) - if exponent != 0: - print('scoreboard players remove @s[score_b7s:_tmp_min={0}] b7s:_tmp {0}'.format(2 ** exponent)) - -print() -print('scoreboard players operation @s b7s:_tmp = @s b7s:z') -print('scoreboard players add @s b7s:_tmp 30000000') -for exponent in range(25, -1, -1): - print('scoreboard players tag @s[score_b7s:_tmp_min={}] add b7s:home_z_{}'.format(2 ** exponent, exponent)) - if exponent != 0: - print('scoreboard players remove @s[score_b7s:_tmp_min={0}] b7s:_tmp {0}'.format(2 ** exponent)) - -print() -print('scoreboard players tag @s add b7s:home_pos_tags_set') diff --git a/data/b7s/functions/entity/home/set_pos/_perform.mcfunction b/data/b7s/functions/entity/home/set_pos/_perform.mcfunction deleted file mode 100644 index ad2e191..0000000 --- a/data/b7s/functions/entity/home/set_pos/_perform.mcfunction +++ /dev/null @@ -1,6 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -function b7s:entity/home/set_pos/_unless_save_as_tags unless @s[tag=b7s:home_as_tags] -function b7s:entity/home/set_pos/_if_save_as_tags if @s[tag=b7s:home_as_tags] diff --git a/data/b7s/functions/entity/home/set_pos/_unless_save_as_tags.mcfunction b/data/b7s/functions/entity/home/set_pos/_unless_save_as_tags.mcfunction deleted file mode 100644 index 6a1a421..0000000 --- a/data/b7s/functions/entity/home/set_pos/_unless_save_as_tags.mcfunction +++ /dev/null @@ -1,9 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -scoreboard players operation @s b7s:home_x = @s b7s:x -scoreboard players operation @s b7s:home_y = @s b7s:y -scoreboard players operation @s b7s:home_z = @s b7s:z - -scoreboard players tag @s remove b7s:home_pos_tags_set diff --git a/data/b7s/functions/entity/home/set_rot.mcfunction b/data/b7s/functions/entity/home/set_rot.mcfunction deleted file mode 100644 index d4dd239..0000000 --- a/data/b7s/functions/entity/home/set_rot.mcfunction +++ /dev/null @@ -1,17 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -# Sets the home rotation of a player or entity. -# -# Scores required: -# b7s:rot_x — the home's x rotation -# b7s:rot_y — the home's y rotation -# -# Usage: -# /scoreboard players set b7s:rot_x -# /scoreboard players set b7s:rot_y -# /execute ~ ~ ~ function b7s:entity/home/set_rot - -function b7s:config/home/get_save_as_tags -function b7s:entity/home/set_rot/_perform diff --git a/data/b7s/functions/entity/home/set_rot/_if_save_as_tags.mcfunction b/data/b7s/functions/entity/home/set_rot/_if_save_as_tags.mcfunction deleted file mode 100644 index 4efa55f..0000000 --- a/data/b7s/functions/entity/home/set_rot/_if_save_as_tags.mcfunction +++ /dev/null @@ -1,62 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -scoreboard players tag @s remove b7s:home_rot_x_7 -scoreboard players tag @s remove b7s:home_rot_x_6 -scoreboard players tag @s remove b7s:home_rot_x_5 -scoreboard players tag @s remove b7s:home_rot_x_4 -scoreboard players tag @s remove b7s:home_rot_x_3 -scoreboard players tag @s remove b7s:home_rot_x_2 -scoreboard players tag @s remove b7s:home_rot_x_1 -scoreboard players tag @s remove b7s:home_rot_x_0 - -scoreboard players tag @s remove b7s:home_rot_y_8 -scoreboard players tag @s remove b7s:home_rot_y_7 -scoreboard players tag @s remove b7s:home_rot_y_6 -scoreboard players tag @s remove b7s:home_rot_y_5 -scoreboard players tag @s remove b7s:home_rot_y_4 -scoreboard players tag @s remove b7s:home_rot_y_3 -scoreboard players tag @s remove b7s:home_rot_y_2 -scoreboard players tag @s remove b7s:home_rot_y_1 -scoreboard players tag @s remove b7s:home_rot_y_0 - -scoreboard players operation @s b7s:_tmp = @s b7s:rot_x -scoreboard players add @s b7s:_tmp 90 -scoreboard players tag @s[score_b7s:_tmp_min=128] add b7s:home_rot_x_7 -scoreboard players remove @s[score_b7s:_tmp_min=128] b7s:_tmp 128 -scoreboard players tag @s[score_b7s:_tmp_min=64] add b7s:home_rot_x_6 -scoreboard players remove @s[score_b7s:_tmp_min=64] b7s:_tmp 64 -scoreboard players tag @s[score_b7s:_tmp_min=32] add b7s:home_rot_x_5 -scoreboard players remove @s[score_b7s:_tmp_min=32] b7s:_tmp 32 -scoreboard players tag @s[score_b7s:_tmp_min=16] add b7s:home_rot_x_4 -scoreboard players remove @s[score_b7s:_tmp_min=16] b7s:_tmp 16 -scoreboard players tag @s[score_b7s:_tmp_min=8] add b7s:home_rot_x_3 -scoreboard players remove @s[score_b7s:_tmp_min=8] b7s:_tmp 8 -scoreboard players tag @s[score_b7s:_tmp_min=4] add b7s:home_rot_x_2 -scoreboard players remove @s[score_b7s:_tmp_min=4] b7s:_tmp 4 -scoreboard players tag @s[score_b7s:_tmp_min=2] add b7s:home_rot_x_1 -scoreboard players remove @s[score_b7s:_tmp_min=2] b7s:_tmp 2 -scoreboard players tag @s[score_b7s:_tmp_min=1] add b7s:home_rot_x_0 - -scoreboard players operation @s b7s:_tmp = @s b7s:rot_y -scoreboard players add @s b7s:_tmp 180 -scoreboard players tag @s[score_b7s:_tmp_min=256] add b7s:home_rot_y_8 -scoreboard players remove @s[score_b7s:_tmp_min=256] b7s:_tmp 256 -scoreboard players tag @s[score_b7s:_tmp_min=128] add b7s:home_rot_y_7 -scoreboard players remove @s[score_b7s:_tmp_min=128] b7s:_tmp 128 -scoreboard players tag @s[score_b7s:_tmp_min=64] add b7s:home_rot_y_6 -scoreboard players remove @s[score_b7s:_tmp_min=64] b7s:_tmp 64 -scoreboard players tag @s[score_b7s:_tmp_min=32] add b7s:home_rot_y_5 -scoreboard players remove @s[score_b7s:_tmp_min=32] b7s:_tmp 32 -scoreboard players tag @s[score_b7s:_tmp_min=16] add b7s:home_rot_y_4 -scoreboard players remove @s[score_b7s:_tmp_min=16] b7s:_tmp 16 -scoreboard players tag @s[score_b7s:_tmp_min=8] add b7s:home_rot_y_3 -scoreboard players remove @s[score_b7s:_tmp_min=8] b7s:_tmp 8 -scoreboard players tag @s[score_b7s:_tmp_min=4] add b7s:home_rot_y_2 -scoreboard players remove @s[score_b7s:_tmp_min=4] b7s:_tmp 4 -scoreboard players tag @s[score_b7s:_tmp_min=2] add b7s:home_rot_y_1 -scoreboard players remove @s[score_b7s:_tmp_min=2] b7s:_tmp 2 -scoreboard players tag @s[score_b7s:_tmp_min=1] add b7s:home_rot_y_0 - -scoreboard players tag @s add b7s:home_rot_tags_set diff --git a/data/b7s/functions/entity/home/set_rot/_if_save_as_tags.mcfunction.py b/data/b7s/functions/entity/home/set_rot/_if_save_as_tags.mcfunction.py deleted file mode 100644 index 83fe9fc..0000000 --- a/data/b7s/functions/entity/home/set_rot/_if_save_as_tags.mcfunction.py +++ /dev/null @@ -1,34 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -print('# This Source Code Form is subject to the terms of the Mozilla Public') -print('# License, v. 2.0. If a copy of the MPL was not distributed with this') -print('# file, You can obtain one at http://mozilla.org/MPL/2.0/.') - -print() -for exponent in range(7, -1, -1): - print('scoreboard players tag @s remove b7s:home_rot_x_{}'.format(exponent)) - -print() -for exponent in range(8, -1, -1): - print('scoreboard players tag @s remove b7s:home_rot_y_{}'.format(exponent)) - -print() -print('scoreboard players operation @s b7s:_tmp = @s b7s:rot_x') -print('scoreboard players add @s b7s:_tmp 90') -for exponent in range(7, -1, -1): - print('scoreboard players tag @s[score_b7s:_tmp_min={}] add b7s:home_rot_x_{}'.format(2 ** exponent, exponent)) - if exponent != 0: - print('scoreboard players remove @s[score_b7s:_tmp_min={0}] b7s:_tmp {0}'.format(2 ** exponent)) - -print() -print('scoreboard players operation @s b7s:_tmp = @s b7s:rot_y') -print('scoreboard players add @s b7s:_tmp 180') -for exponent in range(8, -1, -1): - print('scoreboard players tag @s[score_b7s:_tmp_min={}] add b7s:home_rot_y_{}'.format(2 ** exponent, exponent)) - if exponent != 0: - print('scoreboard players remove @s[score_b7s:_tmp_min={0}] b7s:_tmp {0}'.format(2 ** exponent)) - -print() -print('scoreboard players tag @s add b7s:home_rot_tags_set') diff --git a/data/b7s/functions/entity/home/set_rot/_perform.mcfunction b/data/b7s/functions/entity/home/set_rot/_perform.mcfunction deleted file mode 100644 index d8d9bf6..0000000 --- a/data/b7s/functions/entity/home/set_rot/_perform.mcfunction +++ /dev/null @@ -1,6 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -function b7s:entity/home/set_rot/_unless_save_as_tags unless @s[tag=b7s:home_as_tags] -function b7s:entity/home/set_rot/_if_save_as_tags if @s[tag=b7s:home_as_tags] diff --git a/data/b7s/functions/entity/home/set_rot/_unless_save_as_tags.mcfunction b/data/b7s/functions/entity/home/set_rot/_unless_save_as_tags.mcfunction deleted file mode 100644 index 8036422..0000000 --- a/data/b7s/functions/entity/home/set_rot/_unless_save_as_tags.mcfunction +++ /dev/null @@ -1,8 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -scoreboard players operation @s b7s:home_rot_x = @s b7s:rot_x -scoreboard players operation @s b7s:home_rot_y = @s b7s:rot_y - -scoreboard players tag @s remove b7s:home_rot_tags_set diff --git a/data/b7s/functions/entity/home/unset_dim.mcfunction b/data/b7s/functions/entity/home/unset_dim.mcfunction deleted file mode 100644 index 1670f07..0000000 --- a/data/b7s/functions/entity/home/unset_dim.mcfunction +++ /dev/null @@ -1,12 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -# Unsets the home dimension of a player or entity. -# -# Usage: -# /execute ~ ~ ~ function b7s:entity/home/unset_loc - -scoreboard players tag @s remove b7s:home_dim_tags_set - -scoreboard players reset @s b7s:home_dim diff --git a/data/b7s/functions/entity/home/unset_loc.mcfunction b/data/b7s/functions/entity/home/unset_loc.mcfunction index be1bbf5..386ba93 100644 --- a/data/b7s/functions/entity/home/unset_loc.mcfunction +++ b/data/b7s/functions/entity/home/unset_loc.mcfunction @@ -5,8 +5,217 @@ # Unsets the home location of a player or entity. # # Usage: -# /execute ~ ~ ~ function b7s:entity/home/unset_loc +# /execute as run function b7s:entity/home/unset_loc -function b7s:entity/home/unset_dim -function b7s:entity/home/unset_pos -function b7s:entity/home/unset_rot +scoreboard players reset @s b7s.home_dim +scoreboard players reset @s b7s.home_x +scoreboard players reset @s b7s.home_y +scoreboard players reset @s b7s.home_z +scoreboard players reset @s b7s.home_rot_x +scoreboard players reset @s b7s.home_rot_y + +tag @s remove b7s.home_dim_0 +tag @s remove b7s.home_dim_1 +tag @s remove b7s.home_dim_2 +tag @s remove b7s.home_dim_3 +tag @s remove b7s.home_dim_4 +tag @s remove b7s.home_dim_5 +tag @s remove b7s.home_dim_6 +tag @s remove b7s.home_dim_7 +tag @s remove b7s.home_dim_8 +tag @s remove b7s.home_dim_9 +tag @s remove b7s.home_dim_10 +tag @s remove b7s.home_dim_11 +tag @s remove b7s.home_dim_12 +tag @s remove b7s.home_dim_13 +tag @s remove b7s.home_dim_14 +tag @s remove b7s.home_dim_15 +tag @s remove b7s.home_dim_16 +tag @s remove b7s.home_dim_17 +tag @s remove b7s.home_dim_18 +tag @s remove b7s.home_dim_19 +tag @s remove b7s.home_dim_20 +tag @s remove b7s.home_dim_21 +tag @s remove b7s.home_dim_22 +tag @s remove b7s.home_dim_23 +tag @s remove b7s.home_dim_24 +tag @s remove b7s.home_dim_25 +tag @s remove b7s.home_dim_26 +tag @s remove b7s.home_dim_27 +tag @s remove b7s.home_dim_28 +tag @s remove b7s.home_dim_29 +tag @s remove b7s.home_dim_30 +tag @s remove b7s.home_dim_31 +tag @s remove b7s.home_dim_set + +tag @s remove b7s.home_x_0 +tag @s remove b7s.home_x_1 +tag @s remove b7s.home_x_2 +tag @s remove b7s.home_x_3 +tag @s remove b7s.home_x_4 +tag @s remove b7s.home_x_5 +tag @s remove b7s.home_x_6 +tag @s remove b7s.home_x_7 +tag @s remove b7s.home_x_8 +tag @s remove b7s.home_x_9 +tag @s remove b7s.home_x_10 +tag @s remove b7s.home_x_11 +tag @s remove b7s.home_x_12 +tag @s remove b7s.home_x_13 +tag @s remove b7s.home_x_14 +tag @s remove b7s.home_x_15 +tag @s remove b7s.home_x_16 +tag @s remove b7s.home_x_17 +tag @s remove b7s.home_x_18 +tag @s remove b7s.home_x_19 +tag @s remove b7s.home_x_20 +tag @s remove b7s.home_x_21 +tag @s remove b7s.home_x_22 +tag @s remove b7s.home_x_23 +tag @s remove b7s.home_x_24 +tag @s remove b7s.home_x_25 +tag @s remove b7s.home_x_26 +tag @s remove b7s.home_x_27 +tag @s remove b7s.home_x_28 +tag @s remove b7s.home_x_29 +tag @s remove b7s.home_x_30 +tag @s remove b7s.home_x_31 +tag @s remove b7s.home_x_set + +tag @s remove b7s.home_y_0 +tag @s remove b7s.home_y_1 +tag @s remove b7s.home_y_2 +tag @s remove b7s.home_y_3 +tag @s remove b7s.home_y_4 +tag @s remove b7s.home_y_5 +tag @s remove b7s.home_y_6 +tag @s remove b7s.home_y_7 +tag @s remove b7s.home_y_8 +tag @s remove b7s.home_y_9 +tag @s remove b7s.home_y_10 +tag @s remove b7s.home_y_11 +tag @s remove b7s.home_y_12 +tag @s remove b7s.home_y_13 +tag @s remove b7s.home_y_14 +tag @s remove b7s.home_y_15 +tag @s remove b7s.home_y_16 +tag @s remove b7s.home_y_17 +tag @s remove b7s.home_y_18 +tag @s remove b7s.home_y_19 +tag @s remove b7s.home_y_20 +tag @s remove b7s.home_y_21 +tag @s remove b7s.home_y_22 +tag @s remove b7s.home_y_23 +tag @s remove b7s.home_y_24 +tag @s remove b7s.home_y_25 +tag @s remove b7s.home_y_26 +tag @s remove b7s.home_y_27 +tag @s remove b7s.home_y_28 +tag @s remove b7s.home_y_29 +tag @s remove b7s.home_y_30 +tag @s remove b7s.home_y_31 +tag @s remove b7s.home_y_set + +tag @s remove b7s.home_z_0 +tag @s remove b7s.home_z_1 +tag @s remove b7s.home_z_2 +tag @s remove b7s.home_z_3 +tag @s remove b7s.home_z_4 +tag @s remove b7s.home_z_5 +tag @s remove b7s.home_z_6 +tag @s remove b7s.home_z_7 +tag @s remove b7s.home_z_8 +tag @s remove b7s.home_z_9 +tag @s remove b7s.home_z_10 +tag @s remove b7s.home_z_11 +tag @s remove b7s.home_z_12 +tag @s remove b7s.home_z_13 +tag @s remove b7s.home_z_14 +tag @s remove b7s.home_z_15 +tag @s remove b7s.home_z_16 +tag @s remove b7s.home_z_17 +tag @s remove b7s.home_z_18 +tag @s remove b7s.home_z_19 +tag @s remove b7s.home_z_20 +tag @s remove b7s.home_z_21 +tag @s remove b7s.home_z_22 +tag @s remove b7s.home_z_23 +tag @s remove b7s.home_z_24 +tag @s remove b7s.home_z_25 +tag @s remove b7s.home_z_26 +tag @s remove b7s.home_z_27 +tag @s remove b7s.home_z_28 +tag @s remove b7s.home_z_29 +tag @s remove b7s.home_z_30 +tag @s remove b7s.home_z_31 +tag @s remove b7s.home_z_set + +tag @s remove b7s.home_rot_x_0 +tag @s remove b7s.home_rot_x_1 +tag @s remove b7s.home_rot_x_2 +tag @s remove b7s.home_rot_x_3 +tag @s remove b7s.home_rot_x_4 +tag @s remove b7s.home_rot_x_5 +tag @s remove b7s.home_rot_x_6 +tag @s remove b7s.home_rot_x_7 +tag @s remove b7s.home_rot_x_8 +tag @s remove b7s.home_rot_x_9 +tag @s remove b7s.home_rot_x_10 +tag @s remove b7s.home_rot_x_11 +tag @s remove b7s.home_rot_x_12 +tag @s remove b7s.home_rot_x_13 +tag @s remove b7s.home_rot_x_14 +tag @s remove b7s.home_rot_x_15 +tag @s remove b7s.home_rot_x_16 +tag @s remove b7s.home_rot_x_17 +tag @s remove b7s.home_rot_x_18 +tag @s remove b7s.home_rot_x_19 +tag @s remove b7s.home_rot_x_20 +tag @s remove b7s.home_rot_x_21 +tag @s remove b7s.home_rot_x_22 +tag @s remove b7s.home_rot_x_23 +tag @s remove b7s.home_rot_x_24 +tag @s remove b7s.home_rot_x_25 +tag @s remove b7s.home_rot_x_26 +tag @s remove b7s.home_rot_x_27 +tag @s remove b7s.home_rot_x_28 +tag @s remove b7s.home_rot_x_29 +tag @s remove b7s.home_rot_x_30 +tag @s remove b7s.home_rot_x_31 +tag @s remove b7s.home_rot_x_set + +tag @s remove b7s.home_rot_y_0 +tag @s remove b7s.home_rot_y_1 +tag @s remove b7s.home_rot_y_2 +tag @s remove b7s.home_rot_y_3 +tag @s remove b7s.home_rot_y_4 +tag @s remove b7s.home_rot_y_5 +tag @s remove b7s.home_rot_y_6 +tag @s remove b7s.home_rot_y_7 +tag @s remove b7s.home_rot_y_8 +tag @s remove b7s.home_rot_y_9 +tag @s remove b7s.home_rot_y_10 +tag @s remove b7s.home_rot_y_11 +tag @s remove b7s.home_rot_y_12 +tag @s remove b7s.home_rot_y_13 +tag @s remove b7s.home_rot_y_14 +tag @s remove b7s.home_rot_y_15 +tag @s remove b7s.home_rot_y_16 +tag @s remove b7s.home_rot_y_17 +tag @s remove b7s.home_rot_y_18 +tag @s remove b7s.home_rot_y_19 +tag @s remove b7s.home_rot_y_20 +tag @s remove b7s.home_rot_y_21 +tag @s remove b7s.home_rot_y_22 +tag @s remove b7s.home_rot_y_23 +tag @s remove b7s.home_rot_y_24 +tag @s remove b7s.home_rot_y_25 +tag @s remove b7s.home_rot_y_26 +tag @s remove b7s.home_rot_y_27 +tag @s remove b7s.home_rot_y_28 +tag @s remove b7s.home_rot_y_29 +tag @s remove b7s.home_rot_y_30 +tag @s remove b7s.home_rot_y_31 +tag @s remove b7s.home_rot_y_set + +tag @s remove b7s.home_loc_set diff --git a/data/b7s/functions/entity/home/unset_loc.mcfunction.py b/data/b7s/functions/entity/home/unset_loc.mcfunction.py new file mode 100644 index 0000000..26202f6 --- /dev/null +++ b/data/b7s/functions/entity/home/unset_loc.mcfunction.py @@ -0,0 +1,53 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. + +print('# This Source Code Form is subject to the terms of the Mozilla Public') +print('# License, v. 2.0. If a copy of the MPL was not distributed with this') +print('# file, You can obtain one at http://mozilla.org/MPL/2.0/.') +print() +print('# Unsets the home location of a player or entity.') +print('#') +print('# Usage:') +print('# /execute as run function b7s:entity/home/unset_loc') +print() + +print('scoreboard players reset @s b7s.home_dim') +print('scoreboard players reset @s b7s.home_x') +print('scoreboard players reset @s b7s.home_y') +print('scoreboard players reset @s b7s.home_z') +print('scoreboard players reset @s b7s.home_rot_x') +print('scoreboard players reset @s b7s.home_rot_y') +print() + +for i in range(32): + print('tag @s remove b7s.home_dim_{}'.format(i)) +print('tag @s remove b7s.home_dim_set') +print() + +for i in range(32): + print('tag @s remove b7s.home_x_{}'.format(i)) +print('tag @s remove b7s.home_x_set') +print() + +for i in range(32): + print('tag @s remove b7s.home_y_{}'.format(i)) +print('tag @s remove b7s.home_y_set') +print() + +for i in range(32): + print('tag @s remove b7s.home_z_{}'.format(i)) +print('tag @s remove b7s.home_z_set') +print() + +for i in range(32): + print('tag @s remove b7s.home_rot_x_{}'.format(i)) +print('tag @s remove b7s.home_rot_x_set') +print() + +for i in range(32): + print('tag @s remove b7s.home_rot_y_{}'.format(i)) +print('tag @s remove b7s.home_rot_y_set') +print() + +print('tag @s remove b7s.home_loc_set') diff --git a/data/b7s/functions/entity/home/unset_pos.mcfunction b/data/b7s/functions/entity/home/unset_pos.mcfunction deleted file mode 100644 index 5132d3b..0000000 --- a/data/b7s/functions/entity/home/unset_pos.mcfunction +++ /dev/null @@ -1,15 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -# Unsets the home position of a player or entity. -# -# Usage: -# /execute ~ ~ ~ function b7s:entity/home/unset_loc - -scoreboard players tag @s remove b7s:home_pos_tags_set -scoreboard players tag @s remove b7s:home_rot_tags_set - -scoreboard players reset @s b7s:home_x -scoreboard players reset @s b7s:home_y -scoreboard players reset @s b7s:home_z diff --git a/data/b7s/functions/entity/home/unset_rot.mcfunction b/data/b7s/functions/entity/home/unset_rot.mcfunction deleted file mode 100644 index 3b00d46..0000000 --- a/data/b7s/functions/entity/home/unset_rot.mcfunction +++ /dev/null @@ -1,13 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -# Unsets the home rotation of a player or entity. -# -# Usage: -# /execute ~ ~ ~ function b7s:entity/home/unset_loc - -scoreboard players tag @s remove b7s:home_rot_tags_set - -scoreboard players reset @s b7s:home_rot_x -scoreboard players reset @s b7s:home_rot_y diff --git a/data/b7s/functions/entity/player/check_armor.mcfunction b/data/b7s/functions/entity/player/check_armor.mcfunction deleted file mode 100644 index 1bc2540..0000000 --- a/data/b7s/functions/entity/player/check_armor.mcfunction +++ /dev/null @@ -1,33 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -# Checks whether a player does or doesn't wear pieces of armor. -# -# Tags set: -# b7s:wears_boots — if the player wears boots -# b7s:wears_leggings — if the player wears leggings -# b7s:wears_chestplate — if the player wears a chestplate -# b7s:wears_helmet — if the player wears a helmet -# b7s:wears_armor — if the player wears any of the above -# b7s:wears_all_armor — if the player wears all of the above -# -# Usage: -# /execute ~ ~ ~ function b7s:entity/player/check_armor - -scoreboard players tag @s remove b7s:wears_boots -scoreboard players tag @s remove b7s:wears_leggings -scoreboard players tag @s remove b7s:wears_chestplate -scoreboard players tag @s remove b7s:wears_helmet -scoreboard players tag @s remove b7s:wears_armor -scoreboard players tag @s remove b7s:wears_all_armor - -scoreboard players tag @s add b7s:wears_boots {Inventory:[{Slot:100b}]} -scoreboard players tag @s[tag=b7s:wears_boots] add b7s:wears_armor -scoreboard players tag @s add b7s:wears_leggings {Inventory:[{Slot:101b}]} -scoreboard players tag @s[tag=b7s:wears_leggings] add b7s:wears_armor -scoreboard players tag @s add b7s:wears_chestplate {Inventory:[{Slot:102b}]} -scoreboard players tag @s[tag=b7s:wears_chestplate] add b7s:wears_armor -scoreboard players tag @s add b7s:wears_helmet {Inventory:[{Slot:103b}]} -scoreboard players tag @s[tag=b7s:wears_helmet] add b7s:wears_armor -execute @e[tag=b7s:wears_boots] ~ ~ ~ execute @e[tag=b7s:wears_leggings] ~ ~ ~ execute @e[tag=b7s:wears_chestplate] ~ ~ ~ scoreboard players tag @s[tag=b7s:wears_helmet] add b7s:wears_all_armor diff --git a/data/b7s/functions/entity/player/check_sleeping.mcfunction b/data/b7s/functions/entity/player/check_sleeping.mcfunction deleted file mode 100644 index ea01bc9..0000000 --- a/data/b7s/functions/entity/player/check_sleeping.mcfunction +++ /dev/null @@ -1,14 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -# Checks whether a player is sleeping. -# -# Tags set: -# b7s:sleeping — if the player is sleeping -# -# Usage: -# /execute ~ ~ ~ function b7s:entity/player/check_sleeping - -scoreboard players tag @s remove b7s:sleeping -scoreboard players tag @s add b7s:sleeping {Sleeping:1b} diff --git a/data/b7s/functions/entity/player/update.mcfunction b/data/b7s/functions/entity/player/update.mcfunction deleted file mode 100644 index 59a6df8..0000000 --- a/data/b7s/functions/entity/player/update.mcfunction +++ /dev/null @@ -1,54 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -# This function is designed to be called automatically by players once every -# second, using custom advancements provided by BareBones. Avoid calling this -# function by your own. - -function b7sp:entity/player/pre_update - -function b7s:entity/player/update/_if_left if @s[score_b7s:_left_min=1] - -function b7s:entity/track_success_cnt unless @s[score_b7s:success_cnt_min=-2147483648] -function b7s:entity/track_aff_blocks unless @s[score_b7s:aff_blocks_min=-2147483648] -function b7s:entity/track_aff_entities unless @s[score_b7s:aff_entities_min=-2147483648] -function b7s:entity/track_aff_items unless @s[score_b7s:aff_items_min=-2147483648] -function b7s:entity/track_query_result unless @s[score_b7s:query_result_min=-2147483648] - -scoreboard players add @s b7s:id 0 -execute @s[score_b7s:id=0] ~ ~ ~ scoreboard players add #b7s:_dummy b7s:id 1 -scoreboard players operation @s[score_b7s:id=0] b7s:id = #b7s:_dummy b7s:id - -execute @s[tag=!b7s:initialized] ~ ~ ~ function b7sp:entity/player/welcome -scoreboard players tag @s[tag=!b7s:initialized] add b7s:initialized - -scoreboard players enable @s b7s:info -execute @s[score_b7s:info_min=1] ~ ~ ~ function b7s:command/info -scoreboard players set @s[score_b7s:info_min=1] b7s:info 0 - -scoreboard players enable @s b7s:tpspawn -execute @s[score_b7s:tpspawn_min=1] ~ ~ ~ function b7s:command/tpspawn -scoreboard players set @s[score_b7s:tpspawn_min=1] b7s:tpspawn 0 - -scoreboard players enable @s b7s:sethome -execute @s[score_b7s:sethome_min=1] ~ ~ ~ function b7s:command/sethome -scoreboard players set @s[score_b7s:sethome_min=1] b7s:sethome 0 - -scoreboard players enable @s b7s:tphome -execute @s[score_b7s:tphome_min=1] ~ ~ ~ function b7s:command/tphome -scoreboard players set @s[score_b7s:tphome_min=1] b7s:tphome 0 - -scoreboard players enable @s b7s:tpback -execute @s[score_b7s:tpback_min=1] ~ ~ ~ function b7s:command/tpback -scoreboard players set @s[score_b7s:tpback_min=1] b7s:tpback 0 - -scoreboard players enable @s b7s:tpreq -execute @s[score_b7s:tpreq_min=1] ~ ~ ~ function b7s:command/tpreq -scoreboard players set @s[score_b7s:tpreq_min=1] b7s:tpreq 0 - -scoreboard players enable @s b7s:tpaccept -execute @s[score_b7s:tpaccept_min=1] ~ ~ ~ function b7s:command/tpaccept -scoreboard players set @s[score_b7s:tpaccept_min=1] b7s:tpaccept 0 - -function b7sp:entity/player/post_update diff --git a/data/b7s/functions/entity/player/update/_if_left.mcfunction b/data/b7s/functions/entity/player/update/_if_left.mcfunction deleted file mode 100644 index 206dee1..0000000 --- a/data/b7s/functions/entity/player/update/_if_left.mcfunction +++ /dev/null @@ -1,9 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -scoreboard players reset @s b7s:req_from -scoreboard players reset @s b7s:_left - -function b7s:config/back/get_persist -function b7s:entity/back/unset_loc unless @s[tag=b7s:persist_back] diff --git a/data/b7s/functions/entity/pulse.mcfunction b/data/b7s/functions/entity/pulse.mcfunction deleted file mode 100644 index 89e17ae..0000000 --- a/data/b7s/functions/entity/pulse.mcfunction +++ /dev/null @@ -1,14 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -# Places and destroys a block of redstone at the position of the entity -# executing the command. -# For example, this can be useful to activate structure blocks. -# -# Usage: -# execute ~ ~ ~ function b7s:entity/pulse - -summon minecraft:area_effect_cloud ~ ~ ~ {Tags:["b7s:_pulser"]} -execute @e[tag=b7s:_pulser] ~ ~ ~ function b7s:entity/pulse/_as_pulser -kill @e[tag=b7s:_pulser] diff --git a/data/b7s/functions/entity/pulse/_as_pulser.mcfunction b/data/b7s/functions/entity/pulse/_as_pulser.mcfunction deleted file mode 100644 index 92d28c2..0000000 --- a/data/b7s/functions/entity/pulse/_as_pulser.mcfunction +++ /dev/null @@ -1,7 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -function b7s:entity/track_success_cnt -fill ~ ~ ~ ~ ~ ~ minecraft:redstone_block 0 replace minecraft:air -execute @s[score_b7s:success_cnt_min=1] ~ ~ ~ setblock ~ ~ ~ minecraft:air diff --git a/data/b7s/functions/entity/tp_loc.mcfunction b/data/b7s/functions/entity/tp_loc.mcfunction index 95a4b40..3b9db54 100644 --- a/data/b7s/functions/entity/tp_loc.mcfunction +++ b/data/b7s/functions/entity/tp_loc.mcfunction @@ -4,28 +4,34 @@ # Teleports a player or entity to a given location. # -# This function fails if the entity would have to change dimension. -# # Scores required: -# b7s:dim — the new dimension for the entity -# b7s:x — the new x coordinate for the entity -# b7s:y — the new y coordinate for the entity -# b7s:z — the new z coordinate for the entity -# b7s:rot_x — the new x rotation for the entity -# b7s:rot_y — the new y rotation for the entity -# -# Tags set: -# b7s:same_dim — if the entity didn't have to change dimension +# b7s.dim - the new dimension for the entity +# b7s.x - the new x coordinate for the entity +# b7s.y - the new y coordinate for the entity +# b7s.z - the new z coordinate for the entity +# b7s.rot_x - the new x rotation for the entity +# b7s.rot_y - the new y rotation for the entity # # Usage: -# /scoreboard players set b7s:dim -# /scoreboard players set b7s:x -# /scoreboard players set b7s:y -# /scoreboard players set b7s:z -# /scoreboard players set b7s:rot_x -# /scoreboard players set b7s:rot_y -# /execute ~ ~ ~ function b7s:entity/tp_loc +# /scoreboard players set b7s.dim +# /scoreboard players set b7s.x +# /scoreboard players set b7s.y +# /scoreboard players set b7s.z +# /scoreboard players set b7s.rot_x +# /scoreboard players set b7s.rot_y +# /execute as run function b7s:entity/tp_loc + +summon minecraft:area_effect_cloud ~ ~ ~ {Tags:["b7s._teleporter"]} +teleport @e[tag=b7s._teleporter] @s + +execute store result entity @e[tag=b7s._teleporter,limit=1] Dimension int 1 run scoreboard players get @s[scores={b7s.dimension=-2147483648..}] b7s.dimension +execute store result entity @e[tag=b7s._teleporter,limit=1] Pos[0] double 1 run scoreboard players get @s[scores={b7s.x=-2147483648..}] b7s.x +execute store result entity @e[tag=b7s._teleporter,limit=1] Pos[1] double 1 run scoreboard players get @s[scores={b7s.y=-2147483648..}] b7s.y +execute store result entity @e[tag=b7s._teleporter,limit=1] Pos[2] double 1 run scoreboard players get @s[scores={b7s.z=-2147483648..}] b7s.z +execute store result entity @e[tag=b7s._teleporter,limit=1] Rotation[0] float 1 run scoreboard players get @s[scores={b7s.rot_x=-2147483648..}] b7s.rot_x +execute store result entity @e[tag=b7s._teleporter,limit=1] Rotation[1] float 1 run scoreboard players get @s[scores={b7s.rot_y=-2147483648..}] b7s.rot_y + +teleport @e[tag=b7s._teleporter,limit=1] +execute at @s run teleport ~.5 ~ ~.5 -function b7s:entity/check_same_dim -function b7s:entity/tp_pos if @s[tag=b7s:same_dim] -function b7s:entity/tp_rot if @s[tag=b7s:same_dim] +kill @e[tag=b7s._teleporter] diff --git a/data/b7s/functions/entity/tp_pos.mcfunction b/data/b7s/functions/entity/tp_pos.mcfunction deleted file mode 100644 index 01bd4b3..0000000 --- a/data/b7s/functions/entity/tp_pos.mcfunction +++ /dev/null @@ -1,162 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -# Teleports a player or entity to a given position. -# -# Scores required: -# b7s:x — the new x coordinate for the entity -# b7s:y — the new y coordinate for the entity -# b7s:z — the new z coordinate for the entity -# -# Usage: -# /scoreboard players set b7s:x -# /scoreboard players set b7s:y -# /scoreboard players set b7s:z -# /execute ~ ~ ~ function b7s:entity/tp_pos - -summon minecraft:area_effect_cloud ~ ~ ~ {Tags:["b7s:_marker"]} -tp @e[tag=b7s:_marker] @s -tp @e[tag=b7s:_marker] -30000000 -4096 -30000000 - -scoreboard players operation @e[tag=b7s:_marker] b7s:x = @s b7s:x -scoreboard players add @e[tag=b7s:_marker] b7s:x 30000000 -scoreboard players operation @e[tag=b7s:_marker] b7s:y = @s b7s:y -scoreboard players add @e[tag=b7s:_marker] b7s:y 4096 -scoreboard players operation @e[tag=b7s:_marker] b7s:z = @s b7s:z -scoreboard players add @e[tag=b7s:_marker] b7s:z 30000000 - -tp @e[tag=b7s:_marker,score_b7s:x_min=33554432] ~33554432 ~ ~ -scoreboard players remove @e[tag=b7s:_marker,score_b7s:x_min=33554432] b7s:x 33554432 -tp @e[tag=b7s:_marker,score_b7s:x_min=16777216] ~16777216 ~ ~ -scoreboard players remove @e[tag=b7s:_marker,score_b7s:x_min=16777216] b7s:x 16777216 -tp @e[tag=b7s:_marker,score_b7s:x_min=8388608] ~8388608 ~ ~ -scoreboard players remove @e[tag=b7s:_marker,score_b7s:x_min=8388608] b7s:x 8388608 -tp @e[tag=b7s:_marker,score_b7s:x_min=4194304] ~4194304 ~ ~ -scoreboard players remove @e[tag=b7s:_marker,score_b7s:x_min=4194304] b7s:x 4194304 -tp @e[tag=b7s:_marker,score_b7s:x_min=2097152] ~2097152 ~ ~ -scoreboard players remove @e[tag=b7s:_marker,score_b7s:x_min=2097152] b7s:x 2097152 -tp @e[tag=b7s:_marker,score_b7s:x_min=1048576] ~1048576 ~ ~ -scoreboard players remove @e[tag=b7s:_marker,score_b7s:x_min=1048576] b7s:x 1048576 -tp @e[tag=b7s:_marker,score_b7s:x_min=524288] ~524288 ~ ~ -scoreboard players remove @e[tag=b7s:_marker,score_b7s:x_min=524288] b7s:x 524288 -tp @e[tag=b7s:_marker,score_b7s:x_min=262144] ~262144 ~ ~ -scoreboard players remove @e[tag=b7s:_marker,score_b7s:x_min=262144] b7s:x 262144 -tp @e[tag=b7s:_marker,score_b7s:x_min=131072] ~131072 ~ ~ -scoreboard players remove @e[tag=b7s:_marker,score_b7s:x_min=131072] b7s:x 131072 -tp @e[tag=b7s:_marker,score_b7s:x_min=65536] ~65536 ~ ~ -scoreboard players remove @e[tag=b7s:_marker,score_b7s:x_min=65536] b7s:x 65536 -tp @e[tag=b7s:_marker,score_b7s:x_min=32768] ~32768 ~ ~ -scoreboard players remove @e[tag=b7s:_marker,score_b7s:x_min=32768] b7s:x 32768 -tp @e[tag=b7s:_marker,score_b7s:x_min=16384] ~16384 ~ ~ -scoreboard players remove @e[tag=b7s:_marker,score_b7s:x_min=16384] b7s:x 16384 -tp @e[tag=b7s:_marker,score_b7s:x_min=8192] ~8192 ~ ~ -scoreboard players remove @e[tag=b7s:_marker,score_b7s:x_min=8192] b7s:x 8192 -tp @e[tag=b7s:_marker,score_b7s:x_min=4096] ~4096 ~ ~ -scoreboard players remove @e[tag=b7s:_marker,score_b7s:x_min=4096] b7s:x 4096 -tp @e[tag=b7s:_marker,score_b7s:x_min=2048] ~2048 ~ ~ -scoreboard players remove @e[tag=b7s:_marker,score_b7s:x_min=2048] b7s:x 2048 -tp @e[tag=b7s:_marker,score_b7s:x_min=1024] ~1024 ~ ~ -scoreboard players remove @e[tag=b7s:_marker,score_b7s:x_min=1024] b7s:x 1024 -tp @e[tag=b7s:_marker,score_b7s:x_min=512] ~512 ~ ~ -scoreboard players remove @e[tag=b7s:_marker,score_b7s:x_min=512] b7s:x 512 -tp @e[tag=b7s:_marker,score_b7s:x_min=256] ~256 ~ ~ -scoreboard players remove @e[tag=b7s:_marker,score_b7s:x_min=256] b7s:x 256 -tp @e[tag=b7s:_marker,score_b7s:x_min=128] ~128 ~ ~ -scoreboard players remove @e[tag=b7s:_marker,score_b7s:x_min=128] b7s:x 128 -tp @e[tag=b7s:_marker,score_b7s:x_min=64] ~64 ~ ~ -scoreboard players remove @e[tag=b7s:_marker,score_b7s:x_min=64] b7s:x 64 -tp @e[tag=b7s:_marker,score_b7s:x_min=32] ~32 ~ ~ -scoreboard players remove @e[tag=b7s:_marker,score_b7s:x_min=32] b7s:x 32 -tp @e[tag=b7s:_marker,score_b7s:x_min=16] ~16 ~ ~ -scoreboard players remove @e[tag=b7s:_marker,score_b7s:x_min=16] b7s:x 16 -tp @e[tag=b7s:_marker,score_b7s:x_min=8] ~8 ~ ~ -scoreboard players remove @e[tag=b7s:_marker,score_b7s:x_min=8] b7s:x 8 -tp @e[tag=b7s:_marker,score_b7s:x_min=4] ~4 ~ ~ -scoreboard players remove @e[tag=b7s:_marker,score_b7s:x_min=4] b7s:x 4 -tp @e[tag=b7s:_marker,score_b7s:x_min=2] ~2 ~ ~ -scoreboard players remove @e[tag=b7s:_marker,score_b7s:x_min=2] b7s:x 2 -tp @e[tag=b7s:_marker,score_b7s:x_min=1] ~1 ~ ~ - -tp @e[tag=b7s:_marker,score_b7s:y_min=8192] ~ ~8192 ~ -scoreboard players remove @e[tag=b7s:_marker,score_b7s:y_min=8192] b7s:y 8192 -tp @e[tag=b7s:_marker,score_b7s:y_min=4096] ~ ~4096 ~ -scoreboard players remove @e[tag=b7s:_marker,score_b7s:y_min=4096] b7s:y 4096 -tp @e[tag=b7s:_marker,score_b7s:y_min=2048] ~ ~2048 ~ -scoreboard players remove @e[tag=b7s:_marker,score_b7s:y_min=2048] b7s:y 2048 -tp @e[tag=b7s:_marker,score_b7s:y_min=1024] ~ ~1024 ~ -scoreboard players remove @e[tag=b7s:_marker,score_b7s:y_min=1024] b7s:y 1024 -tp @e[tag=b7s:_marker,score_b7s:y_min=512] ~ ~512 ~ -scoreboard players remove @e[tag=b7s:_marker,score_b7s:y_min=512] b7s:y 512 -tp @e[tag=b7s:_marker,score_b7s:y_min=256] ~ ~256 ~ -scoreboard players remove @e[tag=b7s:_marker,score_b7s:y_min=256] b7s:y 256 -tp @e[tag=b7s:_marker,score_b7s:y_min=128] ~ ~128 ~ -scoreboard players remove @e[tag=b7s:_marker,score_b7s:y_min=128] b7s:y 128 -tp @e[tag=b7s:_marker,score_b7s:y_min=64] ~ ~64 ~ -scoreboard players remove @e[tag=b7s:_marker,score_b7s:y_min=64] b7s:y 64 -tp @e[tag=b7s:_marker,score_b7s:y_min=32] ~ ~32 ~ -scoreboard players remove @e[tag=b7s:_marker,score_b7s:y_min=32] b7s:y 32 -tp @e[tag=b7s:_marker,score_b7s:y_min=16] ~ ~16 ~ -scoreboard players remove @e[tag=b7s:_marker,score_b7s:y_min=16] b7s:y 16 -tp @e[tag=b7s:_marker,score_b7s:y_min=8] ~ ~8 ~ -scoreboard players remove @e[tag=b7s:_marker,score_b7s:y_min=8] b7s:y 8 -tp @e[tag=b7s:_marker,score_b7s:y_min=4] ~ ~4 ~ -scoreboard players remove @e[tag=b7s:_marker,score_b7s:y_min=4] b7s:y 4 -tp @e[tag=b7s:_marker,score_b7s:y_min=2] ~ ~2 ~ -scoreboard players remove @e[tag=b7s:_marker,score_b7s:y_min=2] b7s:y 2 -tp @e[tag=b7s:_marker,score_b7s:y_min=1] ~ ~1 ~ - -tp @e[tag=b7s:_marker,score_b7s:z_min=33554432] ~ ~ ~33554432 -scoreboard players remove @e[tag=b7s:_marker,score_b7s:z_min=33554432] b7s:z 33554432 -tp @e[tag=b7s:_marker,score_b7s:z_min=16777216] ~ ~ ~16777216 -scoreboard players remove @e[tag=b7s:_marker,score_b7s:z_min=16777216] b7s:z 16777216 -tp @e[tag=b7s:_marker,score_b7s:z_min=8388608] ~ ~ ~8388608 -scoreboard players remove @e[tag=b7s:_marker,score_b7s:z_min=8388608] b7s:z 8388608 -tp @e[tag=b7s:_marker,score_b7s:z_min=4194304] ~ ~ ~4194304 -scoreboard players remove @e[tag=b7s:_marker,score_b7s:z_min=4194304] b7s:z 4194304 -tp @e[tag=b7s:_marker,score_b7s:z_min=2097152] ~ ~ ~2097152 -scoreboard players remove @e[tag=b7s:_marker,score_b7s:z_min=2097152] b7s:z 2097152 -tp @e[tag=b7s:_marker,score_b7s:z_min=1048576] ~ ~ ~1048576 -scoreboard players remove @e[tag=b7s:_marker,score_b7s:z_min=1048576] b7s:z 1048576 -tp @e[tag=b7s:_marker,score_b7s:z_min=524288] ~ ~ ~524288 -scoreboard players remove @e[tag=b7s:_marker,score_b7s:z_min=524288] b7s:z 524288 -tp @e[tag=b7s:_marker,score_b7s:z_min=262144] ~ ~ ~262144 -scoreboard players remove @e[tag=b7s:_marker,score_b7s:z_min=262144] b7s:z 262144 -tp @e[tag=b7s:_marker,score_b7s:z_min=131072] ~ ~ ~131072 -scoreboard players remove @e[tag=b7s:_marker,score_b7s:z_min=131072] b7s:z 131072 -tp @e[tag=b7s:_marker,score_b7s:z_min=65536] ~ ~ ~65536 -scoreboard players remove @e[tag=b7s:_marker,score_b7s:z_min=65536] b7s:z 65536 -tp @e[tag=b7s:_marker,score_b7s:z_min=32768] ~ ~ ~32768 -scoreboard players remove @e[tag=b7s:_marker,score_b7s:z_min=32768] b7s:z 32768 -tp @e[tag=b7s:_marker,score_b7s:z_min=16384] ~ ~ ~16384 -scoreboard players remove @e[tag=b7s:_marker,score_b7s:z_min=16384] b7s:z 16384 -tp @e[tag=b7s:_marker,score_b7s:z_min=8192] ~ ~ ~8192 -scoreboard players remove @e[tag=b7s:_marker,score_b7s:z_min=8192] b7s:z 8192 -tp @e[tag=b7s:_marker,score_b7s:z_min=4096] ~ ~ ~4096 -scoreboard players remove @e[tag=b7s:_marker,score_b7s:z_min=4096] b7s:z 4096 -tp @e[tag=b7s:_marker,score_b7s:z_min=2048] ~ ~ ~2048 -scoreboard players remove @e[tag=b7s:_marker,score_b7s:z_min=2048] b7s:z 2048 -tp @e[tag=b7s:_marker,score_b7s:z_min=1024] ~ ~ ~1024 -scoreboard players remove @e[tag=b7s:_marker,score_b7s:z_min=1024] b7s:z 1024 -tp @e[tag=b7s:_marker,score_b7s:z_min=512] ~ ~ ~512 -scoreboard players remove @e[tag=b7s:_marker,score_b7s:z_min=512] b7s:z 512 -tp @e[tag=b7s:_marker,score_b7s:z_min=256] ~ ~ ~256 -scoreboard players remove @e[tag=b7s:_marker,score_b7s:z_min=256] b7s:z 256 -tp @e[tag=b7s:_marker,score_b7s:z_min=128] ~ ~ ~128 -scoreboard players remove @e[tag=b7s:_marker,score_b7s:z_min=128] b7s:z 128 -tp @e[tag=b7s:_marker,score_b7s:z_min=64] ~ ~ ~64 -scoreboard players remove @e[tag=b7s:_marker,score_b7s:z_min=64] b7s:z 64 -tp @e[tag=b7s:_marker,score_b7s:z_min=32] ~ ~ ~32 -scoreboard players remove @e[tag=b7s:_marker,score_b7s:z_min=32] b7s:z 32 -tp @e[tag=b7s:_marker,score_b7s:z_min=16] ~ ~ ~16 -scoreboard players remove @e[tag=b7s:_marker,score_b7s:z_min=16] b7s:z 16 -tp @e[tag=b7s:_marker,score_b7s:z_min=8] ~ ~ ~8 -scoreboard players remove @e[tag=b7s:_marker,score_b7s:z_min=8] b7s:z 8 -tp @e[tag=b7s:_marker,score_b7s:z_min=4] ~ ~ ~4 -scoreboard players remove @e[tag=b7s:_marker,score_b7s:z_min=4] b7s:z 4 -tp @e[tag=b7s:_marker,score_b7s:z_min=2] ~ ~ ~2 -scoreboard players remove @e[tag=b7s:_marker,score_b7s:z_min=2] b7s:z 2 -tp @e[tag=b7s:_marker,score_b7s:z_min=1] ~ ~ ~1 - -tp @s @e[tag=b7s:_marker] -kill @e[tag=b7s:_marker] diff --git a/data/b7s/functions/entity/tp_pos.mcfunction.py b/data/b7s/functions/entity/tp_pos.mcfunction.py deleted file mode 100644 index bafca70..0000000 --- a/data/b7s/functions/entity/tp_pos.mcfunction.py +++ /dev/null @@ -1,53 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -print('# This Source Code Form is subject to the terms of the Mozilla Public') -print('# License, v. 2.0. If a copy of the MPL was not distributed with this') -print('# file, You can obtain one at http://mozilla.org/MPL/2.0/.') -print() -print('# Teleports a player or entity to a given position.') -print('#') -print('# Scores required:') -print('# b7s:x — the new x coordinate for the entity') -print('# b7s:y — the new y coordinate for the entity') -print('# b7s:z — the new z coordinate for the entity') -print('#') -print('# Usage:') -print('# /scoreboard players set b7s:x ') -print('# /scoreboard players set b7s:y ') -print('# /scoreboard players set b7s:z ') -print('# /execute ~ ~ ~ function b7s:entity/tp_pos') -print() -print('summon minecraft:area_effect_cloud ~ ~ ~ {Tags:["b7s:_marker"]}') -print('tp @e[tag=b7s:_marker] @s') -print('tp @e[tag=b7s:_marker] -30000000 -4096 -30000000') -print() -print('scoreboard players operation @e[tag=b7s:_marker] b7s:x = @s b7s:x') -print('scoreboard players add @e[tag=b7s:_marker] b7s:x 30000000') -print('scoreboard players operation @e[tag=b7s:_marker] b7s:y = @s b7s:y') -print('scoreboard players add @e[tag=b7s:_marker] b7s:y 4096') -print('scoreboard players operation @e[tag=b7s:_marker] b7s:z = @s b7s:z') -print('scoreboard players add @e[tag=b7s:_marker] b7s:z 30000000') - -print() -for exponent in range(25, -1, -1): - print('tp @e[tag=b7s:_marker,score_b7s:x_min={0}] ~{0} ~ ~'.format(2 ** exponent)) - if exponent != 0: - print('scoreboard players remove @e[tag=b7s:_marker,score_b7s:x_min={0}] b7s:x {0}'.format(2 ** exponent)) - -print() -for exponent in range(13, -1, -1): - print('tp @e[tag=b7s:_marker,score_b7s:y_min={0}] ~ ~{0} ~'.format(2 ** exponent)) - if exponent != 0: - print('scoreboard players remove @e[tag=b7s:_marker,score_b7s:y_min={0}] b7s:y {0}'.format(2 ** exponent)) - -print() -for exponent in range(25, -1, -1): - print('tp @e[tag=b7s:_marker,score_b7s:z_min={0}] ~ ~ ~{0}'.format(2 ** exponent)) - if exponent != 0: - print('scoreboard players remove @e[tag=b7s:_marker,score_b7s:z_min={0}] b7s:z {0}'.format(2 ** exponent)) - -print() -print('tp @s @e[tag=b7s:_marker]') -print('kill @e[tag=b7s:_marker]') diff --git a/data/b7s/functions/entity/tp_rot.mcfunction b/data/b7s/functions/entity/tp_rot.mcfunction deleted file mode 100644 index bbb5cfe..0000000 --- a/data/b7s/functions/entity/tp_rot.mcfunction +++ /dev/null @@ -1,557 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -# Teleports a player or entity to a given rotation. -# -# Scores required: -# b7s:rot_x — the new x rotation for the entity. -# b7s:rot_y — the new y rotation for the entity. -# -# Usage: -# /scoreboard players set b7s:rot_x -# /scoreboard players set b7s:rot_y -# /execute ~ ~ ~ function b7s:entity/tp_rot - -tp @s[score_b7s:rot_x_min=-90,score_b7s:rot_x=-90] ~ ~ ~ ~ -90 -tp @s[score_b7s:rot_x_min=-89,score_b7s:rot_x=-89] ~ ~ ~ ~ -89 -tp @s[score_b7s:rot_x_min=-88,score_b7s:rot_x=-88] ~ ~ ~ ~ -88 -tp @s[score_b7s:rot_x_min=-87,score_b7s:rot_x=-87] ~ ~ ~ ~ -87 -tp @s[score_b7s:rot_x_min=-86,score_b7s:rot_x=-86] ~ ~ ~ ~ -86 -tp @s[score_b7s:rot_x_min=-85,score_b7s:rot_x=-85] ~ ~ ~ ~ -85 -tp @s[score_b7s:rot_x_min=-84,score_b7s:rot_x=-84] ~ ~ ~ ~ -84 -tp @s[score_b7s:rot_x_min=-83,score_b7s:rot_x=-83] ~ ~ ~ ~ -83 -tp @s[score_b7s:rot_x_min=-82,score_b7s:rot_x=-82] ~ ~ ~ ~ -82 -tp @s[score_b7s:rot_x_min=-81,score_b7s:rot_x=-81] ~ ~ ~ ~ -81 -tp @s[score_b7s:rot_x_min=-80,score_b7s:rot_x=-80] ~ ~ ~ ~ -80 -tp @s[score_b7s:rot_x_min=-79,score_b7s:rot_x=-79] ~ ~ ~ ~ -79 -tp @s[score_b7s:rot_x_min=-78,score_b7s:rot_x=-78] ~ ~ ~ ~ -78 -tp @s[score_b7s:rot_x_min=-77,score_b7s:rot_x=-77] ~ ~ ~ ~ -77 -tp @s[score_b7s:rot_x_min=-76,score_b7s:rot_x=-76] ~ ~ ~ ~ -76 -tp @s[score_b7s:rot_x_min=-75,score_b7s:rot_x=-75] ~ ~ ~ ~ -75 -tp @s[score_b7s:rot_x_min=-74,score_b7s:rot_x=-74] ~ ~ ~ ~ -74 -tp @s[score_b7s:rot_x_min=-73,score_b7s:rot_x=-73] ~ ~ ~ ~ -73 -tp @s[score_b7s:rot_x_min=-72,score_b7s:rot_x=-72] ~ ~ ~ ~ -72 -tp @s[score_b7s:rot_x_min=-71,score_b7s:rot_x=-71] ~ ~ ~ ~ -71 -tp @s[score_b7s:rot_x_min=-70,score_b7s:rot_x=-70] ~ ~ ~ ~ -70 -tp @s[score_b7s:rot_x_min=-69,score_b7s:rot_x=-69] ~ ~ ~ ~ -69 -tp @s[score_b7s:rot_x_min=-68,score_b7s:rot_x=-68] ~ ~ ~ ~ -68 -tp @s[score_b7s:rot_x_min=-67,score_b7s:rot_x=-67] ~ ~ ~ ~ -67 -tp @s[score_b7s:rot_x_min=-66,score_b7s:rot_x=-66] ~ ~ ~ ~ -66 -tp @s[score_b7s:rot_x_min=-65,score_b7s:rot_x=-65] ~ ~ ~ ~ -65 -tp @s[score_b7s:rot_x_min=-64,score_b7s:rot_x=-64] ~ ~ ~ ~ -64 -tp @s[score_b7s:rot_x_min=-63,score_b7s:rot_x=-63] ~ ~ ~ ~ -63 -tp @s[score_b7s:rot_x_min=-62,score_b7s:rot_x=-62] ~ ~ ~ ~ -62 -tp @s[score_b7s:rot_x_min=-61,score_b7s:rot_x=-61] ~ ~ ~ ~ -61 -tp @s[score_b7s:rot_x_min=-60,score_b7s:rot_x=-60] ~ ~ ~ ~ -60 -tp @s[score_b7s:rot_x_min=-59,score_b7s:rot_x=-59] ~ ~ ~ ~ -59 -tp @s[score_b7s:rot_x_min=-58,score_b7s:rot_x=-58] ~ ~ ~ ~ -58 -tp @s[score_b7s:rot_x_min=-57,score_b7s:rot_x=-57] ~ ~ ~ ~ -57 -tp @s[score_b7s:rot_x_min=-56,score_b7s:rot_x=-56] ~ ~ ~ ~ -56 -tp @s[score_b7s:rot_x_min=-55,score_b7s:rot_x=-55] ~ ~ ~ ~ -55 -tp @s[score_b7s:rot_x_min=-54,score_b7s:rot_x=-54] ~ ~ ~ ~ -54 -tp @s[score_b7s:rot_x_min=-53,score_b7s:rot_x=-53] ~ ~ ~ ~ -53 -tp @s[score_b7s:rot_x_min=-52,score_b7s:rot_x=-52] ~ ~ ~ ~ -52 -tp @s[score_b7s:rot_x_min=-51,score_b7s:rot_x=-51] ~ ~ ~ ~ -51 -tp @s[score_b7s:rot_x_min=-50,score_b7s:rot_x=-50] ~ ~ ~ ~ -50 -tp @s[score_b7s:rot_x_min=-49,score_b7s:rot_x=-49] ~ ~ ~ ~ -49 -tp @s[score_b7s:rot_x_min=-48,score_b7s:rot_x=-48] ~ ~ ~ ~ -48 -tp @s[score_b7s:rot_x_min=-47,score_b7s:rot_x=-47] ~ ~ ~ ~ -47 -tp @s[score_b7s:rot_x_min=-46,score_b7s:rot_x=-46] ~ ~ ~ ~ -46 -tp @s[score_b7s:rot_x_min=-45,score_b7s:rot_x=-45] ~ ~ ~ ~ -45 -tp @s[score_b7s:rot_x_min=-44,score_b7s:rot_x=-44] ~ ~ ~ ~ -44 -tp @s[score_b7s:rot_x_min=-43,score_b7s:rot_x=-43] ~ ~ ~ ~ -43 -tp @s[score_b7s:rot_x_min=-42,score_b7s:rot_x=-42] ~ ~ ~ ~ -42 -tp @s[score_b7s:rot_x_min=-41,score_b7s:rot_x=-41] ~ ~ ~ ~ -41 -tp @s[score_b7s:rot_x_min=-40,score_b7s:rot_x=-40] ~ ~ ~ ~ -40 -tp @s[score_b7s:rot_x_min=-39,score_b7s:rot_x=-39] ~ ~ ~ ~ -39 -tp @s[score_b7s:rot_x_min=-38,score_b7s:rot_x=-38] ~ ~ ~ ~ -38 -tp @s[score_b7s:rot_x_min=-37,score_b7s:rot_x=-37] ~ ~ ~ ~ -37 -tp @s[score_b7s:rot_x_min=-36,score_b7s:rot_x=-36] ~ ~ ~ ~ -36 -tp @s[score_b7s:rot_x_min=-35,score_b7s:rot_x=-35] ~ ~ ~ ~ -35 -tp @s[score_b7s:rot_x_min=-34,score_b7s:rot_x=-34] ~ ~ ~ ~ -34 -tp @s[score_b7s:rot_x_min=-33,score_b7s:rot_x=-33] ~ ~ ~ ~ -33 -tp @s[score_b7s:rot_x_min=-32,score_b7s:rot_x=-32] ~ ~ ~ ~ -32 -tp @s[score_b7s:rot_x_min=-31,score_b7s:rot_x=-31] ~ ~ ~ ~ -31 -tp @s[score_b7s:rot_x_min=-30,score_b7s:rot_x=-30] ~ ~ ~ ~ -30 -tp @s[score_b7s:rot_x_min=-29,score_b7s:rot_x=-29] ~ ~ ~ ~ -29 -tp @s[score_b7s:rot_x_min=-28,score_b7s:rot_x=-28] ~ ~ ~ ~ -28 -tp @s[score_b7s:rot_x_min=-27,score_b7s:rot_x=-27] ~ ~ ~ ~ -27 -tp @s[score_b7s:rot_x_min=-26,score_b7s:rot_x=-26] ~ ~ ~ ~ -26 -tp @s[score_b7s:rot_x_min=-25,score_b7s:rot_x=-25] ~ ~ ~ ~ -25 -tp @s[score_b7s:rot_x_min=-24,score_b7s:rot_x=-24] ~ ~ ~ ~ -24 -tp @s[score_b7s:rot_x_min=-23,score_b7s:rot_x=-23] ~ ~ ~ ~ -23 -tp @s[score_b7s:rot_x_min=-22,score_b7s:rot_x=-22] ~ ~ ~ ~ -22 -tp @s[score_b7s:rot_x_min=-21,score_b7s:rot_x=-21] ~ ~ ~ ~ -21 -tp @s[score_b7s:rot_x_min=-20,score_b7s:rot_x=-20] ~ ~ ~ ~ -20 -tp @s[score_b7s:rot_x_min=-19,score_b7s:rot_x=-19] ~ ~ ~ ~ -19 -tp @s[score_b7s:rot_x_min=-18,score_b7s:rot_x=-18] ~ ~ ~ ~ -18 -tp @s[score_b7s:rot_x_min=-17,score_b7s:rot_x=-17] ~ ~ ~ ~ -17 -tp @s[score_b7s:rot_x_min=-16,score_b7s:rot_x=-16] ~ ~ ~ ~ -16 -tp @s[score_b7s:rot_x_min=-15,score_b7s:rot_x=-15] ~ ~ ~ ~ -15 -tp @s[score_b7s:rot_x_min=-14,score_b7s:rot_x=-14] ~ ~ ~ ~ -14 -tp @s[score_b7s:rot_x_min=-13,score_b7s:rot_x=-13] ~ ~ ~ ~ -13 -tp @s[score_b7s:rot_x_min=-12,score_b7s:rot_x=-12] ~ ~ ~ ~ -12 -tp @s[score_b7s:rot_x_min=-11,score_b7s:rot_x=-11] ~ ~ ~ ~ -11 -tp @s[score_b7s:rot_x_min=-10,score_b7s:rot_x=-10] ~ ~ ~ ~ -10 -tp @s[score_b7s:rot_x_min=-9,score_b7s:rot_x=-9] ~ ~ ~ ~ -9 -tp @s[score_b7s:rot_x_min=-8,score_b7s:rot_x=-8] ~ ~ ~ ~ -8 -tp @s[score_b7s:rot_x_min=-7,score_b7s:rot_x=-7] ~ ~ ~ ~ -7 -tp @s[score_b7s:rot_x_min=-6,score_b7s:rot_x=-6] ~ ~ ~ ~ -6 -tp @s[score_b7s:rot_x_min=-5,score_b7s:rot_x=-5] ~ ~ ~ ~ -5 -tp @s[score_b7s:rot_x_min=-4,score_b7s:rot_x=-4] ~ ~ ~ ~ -4 -tp @s[score_b7s:rot_x_min=-3,score_b7s:rot_x=-3] ~ ~ ~ ~ -3 -tp @s[score_b7s:rot_x_min=-2,score_b7s:rot_x=-2] ~ ~ ~ ~ -2 -tp @s[score_b7s:rot_x_min=-1,score_b7s:rot_x=-1] ~ ~ ~ ~ -1 -tp @s[score_b7s:rot_x_min=0,score_b7s:rot_x=0] ~ ~ ~ ~ 0 -tp @s[score_b7s:rot_x_min=1,score_b7s:rot_x=1] ~ ~ ~ ~ 1 -tp @s[score_b7s:rot_x_min=2,score_b7s:rot_x=2] ~ ~ ~ ~ 2 -tp @s[score_b7s:rot_x_min=3,score_b7s:rot_x=3] ~ ~ ~ ~ 3 -tp @s[score_b7s:rot_x_min=4,score_b7s:rot_x=4] ~ ~ ~ ~ 4 -tp @s[score_b7s:rot_x_min=5,score_b7s:rot_x=5] ~ ~ ~ ~ 5 -tp @s[score_b7s:rot_x_min=6,score_b7s:rot_x=6] ~ ~ ~ ~ 6 -tp @s[score_b7s:rot_x_min=7,score_b7s:rot_x=7] ~ ~ ~ ~ 7 -tp @s[score_b7s:rot_x_min=8,score_b7s:rot_x=8] ~ ~ ~ ~ 8 -tp @s[score_b7s:rot_x_min=9,score_b7s:rot_x=9] ~ ~ ~ ~ 9 -tp @s[score_b7s:rot_x_min=10,score_b7s:rot_x=10] ~ ~ ~ ~ 10 -tp @s[score_b7s:rot_x_min=11,score_b7s:rot_x=11] ~ ~ ~ ~ 11 -tp @s[score_b7s:rot_x_min=12,score_b7s:rot_x=12] ~ ~ ~ ~ 12 -tp @s[score_b7s:rot_x_min=13,score_b7s:rot_x=13] ~ ~ ~ ~ 13 -tp @s[score_b7s:rot_x_min=14,score_b7s:rot_x=14] ~ ~ ~ ~ 14 -tp @s[score_b7s:rot_x_min=15,score_b7s:rot_x=15] ~ ~ ~ ~ 15 -tp @s[score_b7s:rot_x_min=16,score_b7s:rot_x=16] ~ ~ ~ ~ 16 -tp @s[score_b7s:rot_x_min=17,score_b7s:rot_x=17] ~ ~ ~ ~ 17 -tp @s[score_b7s:rot_x_min=18,score_b7s:rot_x=18] ~ ~ ~ ~ 18 -tp @s[score_b7s:rot_x_min=19,score_b7s:rot_x=19] ~ ~ ~ ~ 19 -tp @s[score_b7s:rot_x_min=20,score_b7s:rot_x=20] ~ ~ ~ ~ 20 -tp @s[score_b7s:rot_x_min=21,score_b7s:rot_x=21] ~ ~ ~ ~ 21 -tp @s[score_b7s:rot_x_min=22,score_b7s:rot_x=22] ~ ~ ~ ~ 22 -tp @s[score_b7s:rot_x_min=23,score_b7s:rot_x=23] ~ ~ ~ ~ 23 -tp @s[score_b7s:rot_x_min=24,score_b7s:rot_x=24] ~ ~ ~ ~ 24 -tp @s[score_b7s:rot_x_min=25,score_b7s:rot_x=25] ~ ~ ~ ~ 25 -tp @s[score_b7s:rot_x_min=26,score_b7s:rot_x=26] ~ ~ ~ ~ 26 -tp @s[score_b7s:rot_x_min=27,score_b7s:rot_x=27] ~ ~ ~ ~ 27 -tp @s[score_b7s:rot_x_min=28,score_b7s:rot_x=28] ~ ~ ~ ~ 28 -tp @s[score_b7s:rot_x_min=29,score_b7s:rot_x=29] ~ ~ ~ ~ 29 -tp @s[score_b7s:rot_x_min=30,score_b7s:rot_x=30] ~ ~ ~ ~ 30 -tp @s[score_b7s:rot_x_min=31,score_b7s:rot_x=31] ~ ~ ~ ~ 31 -tp @s[score_b7s:rot_x_min=32,score_b7s:rot_x=32] ~ ~ ~ ~ 32 -tp @s[score_b7s:rot_x_min=33,score_b7s:rot_x=33] ~ ~ ~ ~ 33 -tp @s[score_b7s:rot_x_min=34,score_b7s:rot_x=34] ~ ~ ~ ~ 34 -tp @s[score_b7s:rot_x_min=35,score_b7s:rot_x=35] ~ ~ ~ ~ 35 -tp @s[score_b7s:rot_x_min=36,score_b7s:rot_x=36] ~ ~ ~ ~ 36 -tp @s[score_b7s:rot_x_min=37,score_b7s:rot_x=37] ~ ~ ~ ~ 37 -tp @s[score_b7s:rot_x_min=38,score_b7s:rot_x=38] ~ ~ ~ ~ 38 -tp @s[score_b7s:rot_x_min=39,score_b7s:rot_x=39] ~ ~ ~ ~ 39 -tp @s[score_b7s:rot_x_min=40,score_b7s:rot_x=40] ~ ~ ~ ~ 40 -tp @s[score_b7s:rot_x_min=41,score_b7s:rot_x=41] ~ ~ ~ ~ 41 -tp @s[score_b7s:rot_x_min=42,score_b7s:rot_x=42] ~ ~ ~ ~ 42 -tp @s[score_b7s:rot_x_min=43,score_b7s:rot_x=43] ~ ~ ~ ~ 43 -tp @s[score_b7s:rot_x_min=44,score_b7s:rot_x=44] ~ ~ ~ ~ 44 -tp @s[score_b7s:rot_x_min=45,score_b7s:rot_x=45] ~ ~ ~ ~ 45 -tp @s[score_b7s:rot_x_min=46,score_b7s:rot_x=46] ~ ~ ~ ~ 46 -tp @s[score_b7s:rot_x_min=47,score_b7s:rot_x=47] ~ ~ ~ ~ 47 -tp @s[score_b7s:rot_x_min=48,score_b7s:rot_x=48] ~ ~ ~ ~ 48 -tp @s[score_b7s:rot_x_min=49,score_b7s:rot_x=49] ~ ~ ~ ~ 49 -tp @s[score_b7s:rot_x_min=50,score_b7s:rot_x=50] ~ ~ ~ ~ 50 -tp @s[score_b7s:rot_x_min=51,score_b7s:rot_x=51] ~ ~ ~ ~ 51 -tp @s[score_b7s:rot_x_min=52,score_b7s:rot_x=52] ~ ~ ~ ~ 52 -tp @s[score_b7s:rot_x_min=53,score_b7s:rot_x=53] ~ ~ ~ ~ 53 -tp @s[score_b7s:rot_x_min=54,score_b7s:rot_x=54] ~ ~ ~ ~ 54 -tp @s[score_b7s:rot_x_min=55,score_b7s:rot_x=55] ~ ~ ~ ~ 55 -tp @s[score_b7s:rot_x_min=56,score_b7s:rot_x=56] ~ ~ ~ ~ 56 -tp @s[score_b7s:rot_x_min=57,score_b7s:rot_x=57] ~ ~ ~ ~ 57 -tp @s[score_b7s:rot_x_min=58,score_b7s:rot_x=58] ~ ~ ~ ~ 58 -tp @s[score_b7s:rot_x_min=59,score_b7s:rot_x=59] ~ ~ ~ ~ 59 -tp @s[score_b7s:rot_x_min=60,score_b7s:rot_x=60] ~ ~ ~ ~ 60 -tp @s[score_b7s:rot_x_min=61,score_b7s:rot_x=61] ~ ~ ~ ~ 61 -tp @s[score_b7s:rot_x_min=62,score_b7s:rot_x=62] ~ ~ ~ ~ 62 -tp @s[score_b7s:rot_x_min=63,score_b7s:rot_x=63] ~ ~ ~ ~ 63 -tp @s[score_b7s:rot_x_min=64,score_b7s:rot_x=64] ~ ~ ~ ~ 64 -tp @s[score_b7s:rot_x_min=65,score_b7s:rot_x=65] ~ ~ ~ ~ 65 -tp @s[score_b7s:rot_x_min=66,score_b7s:rot_x=66] ~ ~ ~ ~ 66 -tp @s[score_b7s:rot_x_min=67,score_b7s:rot_x=67] ~ ~ ~ ~ 67 -tp @s[score_b7s:rot_x_min=68,score_b7s:rot_x=68] ~ ~ ~ ~ 68 -tp @s[score_b7s:rot_x_min=69,score_b7s:rot_x=69] ~ ~ ~ ~ 69 -tp @s[score_b7s:rot_x_min=70,score_b7s:rot_x=70] ~ ~ ~ ~ 70 -tp @s[score_b7s:rot_x_min=71,score_b7s:rot_x=71] ~ ~ ~ ~ 71 -tp @s[score_b7s:rot_x_min=72,score_b7s:rot_x=72] ~ ~ ~ ~ 72 -tp @s[score_b7s:rot_x_min=73,score_b7s:rot_x=73] ~ ~ ~ ~ 73 -tp @s[score_b7s:rot_x_min=74,score_b7s:rot_x=74] ~ ~ ~ ~ 74 -tp @s[score_b7s:rot_x_min=75,score_b7s:rot_x=75] ~ ~ ~ ~ 75 -tp @s[score_b7s:rot_x_min=76,score_b7s:rot_x=76] ~ ~ ~ ~ 76 -tp @s[score_b7s:rot_x_min=77,score_b7s:rot_x=77] ~ ~ ~ ~ 77 -tp @s[score_b7s:rot_x_min=78,score_b7s:rot_x=78] ~ ~ ~ ~ 78 -tp @s[score_b7s:rot_x_min=79,score_b7s:rot_x=79] ~ ~ ~ ~ 79 -tp @s[score_b7s:rot_x_min=80,score_b7s:rot_x=80] ~ ~ ~ ~ 80 -tp @s[score_b7s:rot_x_min=81,score_b7s:rot_x=81] ~ ~ ~ ~ 81 -tp @s[score_b7s:rot_x_min=82,score_b7s:rot_x=82] ~ ~ ~ ~ 82 -tp @s[score_b7s:rot_x_min=83,score_b7s:rot_x=83] ~ ~ ~ ~ 83 -tp @s[score_b7s:rot_x_min=84,score_b7s:rot_x=84] ~ ~ ~ ~ 84 -tp @s[score_b7s:rot_x_min=85,score_b7s:rot_x=85] ~ ~ ~ ~ 85 -tp @s[score_b7s:rot_x_min=86,score_b7s:rot_x=86] ~ ~ ~ ~ 86 -tp @s[score_b7s:rot_x_min=87,score_b7s:rot_x=87] ~ ~ ~ ~ 87 -tp @s[score_b7s:rot_x_min=88,score_b7s:rot_x=88] ~ ~ ~ ~ 88 -tp @s[score_b7s:rot_x_min=89,score_b7s:rot_x=89] ~ ~ ~ ~ 89 -tp @s[score_b7s:rot_x_min=90,score_b7s:rot_x=90] ~ ~ ~ ~ 90 - -tp @s[score_b7s:rot_y_min=-180,score_b7s:rot_y=-180] ~ ~ ~ -180 ~ -tp @s[score_b7s:rot_y_min=-179,score_b7s:rot_y=-179] ~ ~ ~ -179 ~ -tp @s[score_b7s:rot_y_min=-178,score_b7s:rot_y=-178] ~ ~ ~ -178 ~ -tp @s[score_b7s:rot_y_min=-177,score_b7s:rot_y=-177] ~ ~ ~ -177 ~ -tp @s[score_b7s:rot_y_min=-176,score_b7s:rot_y=-176] ~ ~ ~ -176 ~ -tp @s[score_b7s:rot_y_min=-175,score_b7s:rot_y=-175] ~ ~ ~ -175 ~ -tp @s[score_b7s:rot_y_min=-174,score_b7s:rot_y=-174] ~ ~ ~ -174 ~ -tp @s[score_b7s:rot_y_min=-173,score_b7s:rot_y=-173] ~ ~ ~ -173 ~ -tp @s[score_b7s:rot_y_min=-172,score_b7s:rot_y=-172] ~ ~ ~ -172 ~ -tp @s[score_b7s:rot_y_min=-171,score_b7s:rot_y=-171] ~ ~ ~ -171 ~ -tp @s[score_b7s:rot_y_min=-170,score_b7s:rot_y=-170] ~ ~ ~ -170 ~ -tp @s[score_b7s:rot_y_min=-169,score_b7s:rot_y=-169] ~ ~ ~ -169 ~ -tp @s[score_b7s:rot_y_min=-168,score_b7s:rot_y=-168] ~ ~ ~ -168 ~ -tp @s[score_b7s:rot_y_min=-167,score_b7s:rot_y=-167] ~ ~ ~ -167 ~ -tp @s[score_b7s:rot_y_min=-166,score_b7s:rot_y=-166] ~ ~ ~ -166 ~ -tp @s[score_b7s:rot_y_min=-165,score_b7s:rot_y=-165] ~ ~ ~ -165 ~ -tp @s[score_b7s:rot_y_min=-164,score_b7s:rot_y=-164] ~ ~ ~ -164 ~ -tp @s[score_b7s:rot_y_min=-163,score_b7s:rot_y=-163] ~ ~ ~ -163 ~ -tp @s[score_b7s:rot_y_min=-162,score_b7s:rot_y=-162] ~ ~ ~ -162 ~ -tp @s[score_b7s:rot_y_min=-161,score_b7s:rot_y=-161] ~ ~ ~ -161 ~ -tp @s[score_b7s:rot_y_min=-160,score_b7s:rot_y=-160] ~ ~ ~ -160 ~ -tp @s[score_b7s:rot_y_min=-159,score_b7s:rot_y=-159] ~ ~ ~ -159 ~ -tp @s[score_b7s:rot_y_min=-158,score_b7s:rot_y=-158] ~ ~ ~ -158 ~ -tp @s[score_b7s:rot_y_min=-157,score_b7s:rot_y=-157] ~ ~ ~ -157 ~ -tp @s[score_b7s:rot_y_min=-156,score_b7s:rot_y=-156] ~ ~ ~ -156 ~ -tp @s[score_b7s:rot_y_min=-155,score_b7s:rot_y=-155] ~ ~ ~ -155 ~ -tp @s[score_b7s:rot_y_min=-154,score_b7s:rot_y=-154] ~ ~ ~ -154 ~ -tp @s[score_b7s:rot_y_min=-153,score_b7s:rot_y=-153] ~ ~ ~ -153 ~ -tp @s[score_b7s:rot_y_min=-152,score_b7s:rot_y=-152] ~ ~ ~ -152 ~ -tp @s[score_b7s:rot_y_min=-151,score_b7s:rot_y=-151] ~ ~ ~ -151 ~ -tp @s[score_b7s:rot_y_min=-150,score_b7s:rot_y=-150] ~ ~ ~ -150 ~ -tp @s[score_b7s:rot_y_min=-149,score_b7s:rot_y=-149] ~ ~ ~ -149 ~ -tp @s[score_b7s:rot_y_min=-148,score_b7s:rot_y=-148] ~ ~ ~ -148 ~ -tp @s[score_b7s:rot_y_min=-147,score_b7s:rot_y=-147] ~ ~ ~ -147 ~ -tp @s[score_b7s:rot_y_min=-146,score_b7s:rot_y=-146] ~ ~ ~ -146 ~ -tp @s[score_b7s:rot_y_min=-145,score_b7s:rot_y=-145] ~ ~ ~ -145 ~ -tp @s[score_b7s:rot_y_min=-144,score_b7s:rot_y=-144] ~ ~ ~ -144 ~ -tp @s[score_b7s:rot_y_min=-143,score_b7s:rot_y=-143] ~ ~ ~ -143 ~ -tp @s[score_b7s:rot_y_min=-142,score_b7s:rot_y=-142] ~ ~ ~ -142 ~ -tp @s[score_b7s:rot_y_min=-141,score_b7s:rot_y=-141] ~ ~ ~ -141 ~ -tp @s[score_b7s:rot_y_min=-140,score_b7s:rot_y=-140] ~ ~ ~ -140 ~ -tp @s[score_b7s:rot_y_min=-139,score_b7s:rot_y=-139] ~ ~ ~ -139 ~ -tp @s[score_b7s:rot_y_min=-138,score_b7s:rot_y=-138] ~ ~ ~ -138 ~ -tp @s[score_b7s:rot_y_min=-137,score_b7s:rot_y=-137] ~ ~ ~ -137 ~ -tp @s[score_b7s:rot_y_min=-136,score_b7s:rot_y=-136] ~ ~ ~ -136 ~ -tp @s[score_b7s:rot_y_min=-135,score_b7s:rot_y=-135] ~ ~ ~ -135 ~ -tp @s[score_b7s:rot_y_min=-134,score_b7s:rot_y=-134] ~ ~ ~ -134 ~ -tp @s[score_b7s:rot_y_min=-133,score_b7s:rot_y=-133] ~ ~ ~ -133 ~ -tp @s[score_b7s:rot_y_min=-132,score_b7s:rot_y=-132] ~ ~ ~ -132 ~ -tp @s[score_b7s:rot_y_min=-131,score_b7s:rot_y=-131] ~ ~ ~ -131 ~ -tp @s[score_b7s:rot_y_min=-130,score_b7s:rot_y=-130] ~ ~ ~ -130 ~ -tp @s[score_b7s:rot_y_min=-129,score_b7s:rot_y=-129] ~ ~ ~ -129 ~ -tp @s[score_b7s:rot_y_min=-128,score_b7s:rot_y=-128] ~ ~ ~ -128 ~ -tp @s[score_b7s:rot_y_min=-127,score_b7s:rot_y=-127] ~ ~ ~ -127 ~ -tp @s[score_b7s:rot_y_min=-126,score_b7s:rot_y=-126] ~ ~ ~ -126 ~ -tp @s[score_b7s:rot_y_min=-125,score_b7s:rot_y=-125] ~ ~ ~ -125 ~ -tp @s[score_b7s:rot_y_min=-124,score_b7s:rot_y=-124] ~ ~ ~ -124 ~ -tp @s[score_b7s:rot_y_min=-123,score_b7s:rot_y=-123] ~ ~ ~ -123 ~ -tp @s[score_b7s:rot_y_min=-122,score_b7s:rot_y=-122] ~ ~ ~ -122 ~ -tp @s[score_b7s:rot_y_min=-121,score_b7s:rot_y=-121] ~ ~ ~ -121 ~ -tp @s[score_b7s:rot_y_min=-120,score_b7s:rot_y=-120] ~ ~ ~ -120 ~ -tp @s[score_b7s:rot_y_min=-119,score_b7s:rot_y=-119] ~ ~ ~ -119 ~ -tp @s[score_b7s:rot_y_min=-118,score_b7s:rot_y=-118] ~ ~ ~ -118 ~ -tp @s[score_b7s:rot_y_min=-117,score_b7s:rot_y=-117] ~ ~ ~ -117 ~ -tp @s[score_b7s:rot_y_min=-116,score_b7s:rot_y=-116] ~ ~ ~ -116 ~ -tp @s[score_b7s:rot_y_min=-115,score_b7s:rot_y=-115] ~ ~ ~ -115 ~ -tp @s[score_b7s:rot_y_min=-114,score_b7s:rot_y=-114] ~ ~ ~ -114 ~ -tp @s[score_b7s:rot_y_min=-113,score_b7s:rot_y=-113] ~ ~ ~ -113 ~ -tp @s[score_b7s:rot_y_min=-112,score_b7s:rot_y=-112] ~ ~ ~ -112 ~ -tp @s[score_b7s:rot_y_min=-111,score_b7s:rot_y=-111] ~ ~ ~ -111 ~ -tp @s[score_b7s:rot_y_min=-110,score_b7s:rot_y=-110] ~ ~ ~ -110 ~ -tp @s[score_b7s:rot_y_min=-109,score_b7s:rot_y=-109] ~ ~ ~ -109 ~ -tp @s[score_b7s:rot_y_min=-108,score_b7s:rot_y=-108] ~ ~ ~ -108 ~ -tp @s[score_b7s:rot_y_min=-107,score_b7s:rot_y=-107] ~ ~ ~ -107 ~ -tp @s[score_b7s:rot_y_min=-106,score_b7s:rot_y=-106] ~ ~ ~ -106 ~ -tp @s[score_b7s:rot_y_min=-105,score_b7s:rot_y=-105] ~ ~ ~ -105 ~ -tp @s[score_b7s:rot_y_min=-104,score_b7s:rot_y=-104] ~ ~ ~ -104 ~ -tp @s[score_b7s:rot_y_min=-103,score_b7s:rot_y=-103] ~ ~ ~ -103 ~ -tp @s[score_b7s:rot_y_min=-102,score_b7s:rot_y=-102] ~ ~ ~ -102 ~ -tp @s[score_b7s:rot_y_min=-101,score_b7s:rot_y=-101] ~ ~ ~ -101 ~ -tp @s[score_b7s:rot_y_min=-100,score_b7s:rot_y=-100] ~ ~ ~ -100 ~ -tp @s[score_b7s:rot_y_min=-99,score_b7s:rot_y=-99] ~ ~ ~ -99 ~ -tp @s[score_b7s:rot_y_min=-98,score_b7s:rot_y=-98] ~ ~ ~ -98 ~ -tp @s[score_b7s:rot_y_min=-97,score_b7s:rot_y=-97] ~ ~ ~ -97 ~ -tp @s[score_b7s:rot_y_min=-96,score_b7s:rot_y=-96] ~ ~ ~ -96 ~ -tp @s[score_b7s:rot_y_min=-95,score_b7s:rot_y=-95] ~ ~ ~ -95 ~ -tp @s[score_b7s:rot_y_min=-94,score_b7s:rot_y=-94] ~ ~ ~ -94 ~ -tp @s[score_b7s:rot_y_min=-93,score_b7s:rot_y=-93] ~ ~ ~ -93 ~ -tp @s[score_b7s:rot_y_min=-92,score_b7s:rot_y=-92] ~ ~ ~ -92 ~ -tp @s[score_b7s:rot_y_min=-91,score_b7s:rot_y=-91] ~ ~ ~ -91 ~ -tp @s[score_b7s:rot_y_min=-90,score_b7s:rot_y=-90] ~ ~ ~ -90 ~ -tp @s[score_b7s:rot_y_min=-89,score_b7s:rot_y=-89] ~ ~ ~ -89 ~ -tp @s[score_b7s:rot_y_min=-88,score_b7s:rot_y=-88] ~ ~ ~ -88 ~ -tp @s[score_b7s:rot_y_min=-87,score_b7s:rot_y=-87] ~ ~ ~ -87 ~ -tp @s[score_b7s:rot_y_min=-86,score_b7s:rot_y=-86] ~ ~ ~ -86 ~ -tp @s[score_b7s:rot_y_min=-85,score_b7s:rot_y=-85] ~ ~ ~ -85 ~ -tp @s[score_b7s:rot_y_min=-84,score_b7s:rot_y=-84] ~ ~ ~ -84 ~ -tp @s[score_b7s:rot_y_min=-83,score_b7s:rot_y=-83] ~ ~ ~ -83 ~ -tp @s[score_b7s:rot_y_min=-82,score_b7s:rot_y=-82] ~ ~ ~ -82 ~ -tp @s[score_b7s:rot_y_min=-81,score_b7s:rot_y=-81] ~ ~ ~ -81 ~ -tp @s[score_b7s:rot_y_min=-80,score_b7s:rot_y=-80] ~ ~ ~ -80 ~ -tp @s[score_b7s:rot_y_min=-79,score_b7s:rot_y=-79] ~ ~ ~ -79 ~ -tp @s[score_b7s:rot_y_min=-78,score_b7s:rot_y=-78] ~ ~ ~ -78 ~ -tp @s[score_b7s:rot_y_min=-77,score_b7s:rot_y=-77] ~ ~ ~ -77 ~ -tp @s[score_b7s:rot_y_min=-76,score_b7s:rot_y=-76] ~ ~ ~ -76 ~ -tp @s[score_b7s:rot_y_min=-75,score_b7s:rot_y=-75] ~ ~ ~ -75 ~ -tp @s[score_b7s:rot_y_min=-74,score_b7s:rot_y=-74] ~ ~ ~ -74 ~ -tp @s[score_b7s:rot_y_min=-73,score_b7s:rot_y=-73] ~ ~ ~ -73 ~ -tp @s[score_b7s:rot_y_min=-72,score_b7s:rot_y=-72] ~ ~ ~ -72 ~ -tp @s[score_b7s:rot_y_min=-71,score_b7s:rot_y=-71] ~ ~ ~ -71 ~ -tp @s[score_b7s:rot_y_min=-70,score_b7s:rot_y=-70] ~ ~ ~ -70 ~ -tp @s[score_b7s:rot_y_min=-69,score_b7s:rot_y=-69] ~ ~ ~ -69 ~ -tp @s[score_b7s:rot_y_min=-68,score_b7s:rot_y=-68] ~ ~ ~ -68 ~ -tp @s[score_b7s:rot_y_min=-67,score_b7s:rot_y=-67] ~ ~ ~ -67 ~ -tp @s[score_b7s:rot_y_min=-66,score_b7s:rot_y=-66] ~ ~ ~ -66 ~ -tp @s[score_b7s:rot_y_min=-65,score_b7s:rot_y=-65] ~ ~ ~ -65 ~ -tp @s[score_b7s:rot_y_min=-64,score_b7s:rot_y=-64] ~ ~ ~ -64 ~ -tp @s[score_b7s:rot_y_min=-63,score_b7s:rot_y=-63] ~ ~ ~ -63 ~ -tp @s[score_b7s:rot_y_min=-62,score_b7s:rot_y=-62] ~ ~ ~ -62 ~ -tp @s[score_b7s:rot_y_min=-61,score_b7s:rot_y=-61] ~ ~ ~ -61 ~ -tp @s[score_b7s:rot_y_min=-60,score_b7s:rot_y=-60] ~ ~ ~ -60 ~ -tp @s[score_b7s:rot_y_min=-59,score_b7s:rot_y=-59] ~ ~ ~ -59 ~ -tp @s[score_b7s:rot_y_min=-58,score_b7s:rot_y=-58] ~ ~ ~ -58 ~ -tp @s[score_b7s:rot_y_min=-57,score_b7s:rot_y=-57] ~ ~ ~ -57 ~ -tp @s[score_b7s:rot_y_min=-56,score_b7s:rot_y=-56] ~ ~ ~ -56 ~ -tp @s[score_b7s:rot_y_min=-55,score_b7s:rot_y=-55] ~ ~ ~ -55 ~ -tp @s[score_b7s:rot_y_min=-54,score_b7s:rot_y=-54] ~ ~ ~ -54 ~ -tp @s[score_b7s:rot_y_min=-53,score_b7s:rot_y=-53] ~ ~ ~ -53 ~ -tp @s[score_b7s:rot_y_min=-52,score_b7s:rot_y=-52] ~ ~ ~ -52 ~ -tp @s[score_b7s:rot_y_min=-51,score_b7s:rot_y=-51] ~ ~ ~ -51 ~ -tp @s[score_b7s:rot_y_min=-50,score_b7s:rot_y=-50] ~ ~ ~ -50 ~ -tp @s[score_b7s:rot_y_min=-49,score_b7s:rot_y=-49] ~ ~ ~ -49 ~ -tp @s[score_b7s:rot_y_min=-48,score_b7s:rot_y=-48] ~ ~ ~ -48 ~ -tp @s[score_b7s:rot_y_min=-47,score_b7s:rot_y=-47] ~ ~ ~ -47 ~ -tp @s[score_b7s:rot_y_min=-46,score_b7s:rot_y=-46] ~ ~ ~ -46 ~ -tp @s[score_b7s:rot_y_min=-45,score_b7s:rot_y=-45] ~ ~ ~ -45 ~ -tp @s[score_b7s:rot_y_min=-44,score_b7s:rot_y=-44] ~ ~ ~ -44 ~ -tp @s[score_b7s:rot_y_min=-43,score_b7s:rot_y=-43] ~ ~ ~ -43 ~ -tp @s[score_b7s:rot_y_min=-42,score_b7s:rot_y=-42] ~ ~ ~ -42 ~ -tp @s[score_b7s:rot_y_min=-41,score_b7s:rot_y=-41] ~ ~ ~ -41 ~ -tp @s[score_b7s:rot_y_min=-40,score_b7s:rot_y=-40] ~ ~ ~ -40 ~ -tp @s[score_b7s:rot_y_min=-39,score_b7s:rot_y=-39] ~ ~ ~ -39 ~ -tp @s[score_b7s:rot_y_min=-38,score_b7s:rot_y=-38] ~ ~ ~ -38 ~ -tp @s[score_b7s:rot_y_min=-37,score_b7s:rot_y=-37] ~ ~ ~ -37 ~ -tp @s[score_b7s:rot_y_min=-36,score_b7s:rot_y=-36] ~ ~ ~ -36 ~ -tp @s[score_b7s:rot_y_min=-35,score_b7s:rot_y=-35] ~ ~ ~ -35 ~ -tp @s[score_b7s:rot_y_min=-34,score_b7s:rot_y=-34] ~ ~ ~ -34 ~ -tp @s[score_b7s:rot_y_min=-33,score_b7s:rot_y=-33] ~ ~ ~ -33 ~ -tp @s[score_b7s:rot_y_min=-32,score_b7s:rot_y=-32] ~ ~ ~ -32 ~ -tp @s[score_b7s:rot_y_min=-31,score_b7s:rot_y=-31] ~ ~ ~ -31 ~ -tp @s[score_b7s:rot_y_min=-30,score_b7s:rot_y=-30] ~ ~ ~ -30 ~ -tp @s[score_b7s:rot_y_min=-29,score_b7s:rot_y=-29] ~ ~ ~ -29 ~ -tp @s[score_b7s:rot_y_min=-28,score_b7s:rot_y=-28] ~ ~ ~ -28 ~ -tp @s[score_b7s:rot_y_min=-27,score_b7s:rot_y=-27] ~ ~ ~ -27 ~ -tp @s[score_b7s:rot_y_min=-26,score_b7s:rot_y=-26] ~ ~ ~ -26 ~ -tp @s[score_b7s:rot_y_min=-25,score_b7s:rot_y=-25] ~ ~ ~ -25 ~ -tp @s[score_b7s:rot_y_min=-24,score_b7s:rot_y=-24] ~ ~ ~ -24 ~ -tp @s[score_b7s:rot_y_min=-23,score_b7s:rot_y=-23] ~ ~ ~ -23 ~ -tp @s[score_b7s:rot_y_min=-22,score_b7s:rot_y=-22] ~ ~ ~ -22 ~ -tp @s[score_b7s:rot_y_min=-21,score_b7s:rot_y=-21] ~ ~ ~ -21 ~ -tp @s[score_b7s:rot_y_min=-20,score_b7s:rot_y=-20] ~ ~ ~ -20 ~ -tp @s[score_b7s:rot_y_min=-19,score_b7s:rot_y=-19] ~ ~ ~ -19 ~ -tp @s[score_b7s:rot_y_min=-18,score_b7s:rot_y=-18] ~ ~ ~ -18 ~ -tp @s[score_b7s:rot_y_min=-17,score_b7s:rot_y=-17] ~ ~ ~ -17 ~ -tp @s[score_b7s:rot_y_min=-16,score_b7s:rot_y=-16] ~ ~ ~ -16 ~ -tp @s[score_b7s:rot_y_min=-15,score_b7s:rot_y=-15] ~ ~ ~ -15 ~ -tp @s[score_b7s:rot_y_min=-14,score_b7s:rot_y=-14] ~ ~ ~ -14 ~ -tp @s[score_b7s:rot_y_min=-13,score_b7s:rot_y=-13] ~ ~ ~ -13 ~ -tp @s[score_b7s:rot_y_min=-12,score_b7s:rot_y=-12] ~ ~ ~ -12 ~ -tp @s[score_b7s:rot_y_min=-11,score_b7s:rot_y=-11] ~ ~ ~ -11 ~ -tp @s[score_b7s:rot_y_min=-10,score_b7s:rot_y=-10] ~ ~ ~ -10 ~ -tp @s[score_b7s:rot_y_min=-9,score_b7s:rot_y=-9] ~ ~ ~ -9 ~ -tp @s[score_b7s:rot_y_min=-8,score_b7s:rot_y=-8] ~ ~ ~ -8 ~ -tp @s[score_b7s:rot_y_min=-7,score_b7s:rot_y=-7] ~ ~ ~ -7 ~ -tp @s[score_b7s:rot_y_min=-6,score_b7s:rot_y=-6] ~ ~ ~ -6 ~ -tp @s[score_b7s:rot_y_min=-5,score_b7s:rot_y=-5] ~ ~ ~ -5 ~ -tp @s[score_b7s:rot_y_min=-4,score_b7s:rot_y=-4] ~ ~ ~ -4 ~ -tp @s[score_b7s:rot_y_min=-3,score_b7s:rot_y=-3] ~ ~ ~ -3 ~ -tp @s[score_b7s:rot_y_min=-2,score_b7s:rot_y=-2] ~ ~ ~ -2 ~ -tp @s[score_b7s:rot_y_min=-1,score_b7s:rot_y=-1] ~ ~ ~ -1 ~ -tp @s[score_b7s:rot_y_min=0,score_b7s:rot_y=0] ~ ~ ~ 0 ~ -tp @s[score_b7s:rot_y_min=1,score_b7s:rot_y=1] ~ ~ ~ 1 ~ -tp @s[score_b7s:rot_y_min=2,score_b7s:rot_y=2] ~ ~ ~ 2 ~ -tp @s[score_b7s:rot_y_min=3,score_b7s:rot_y=3] ~ ~ ~ 3 ~ -tp @s[score_b7s:rot_y_min=4,score_b7s:rot_y=4] ~ ~ ~ 4 ~ -tp @s[score_b7s:rot_y_min=5,score_b7s:rot_y=5] ~ ~ ~ 5 ~ -tp @s[score_b7s:rot_y_min=6,score_b7s:rot_y=6] ~ ~ ~ 6 ~ -tp @s[score_b7s:rot_y_min=7,score_b7s:rot_y=7] ~ ~ ~ 7 ~ -tp @s[score_b7s:rot_y_min=8,score_b7s:rot_y=8] ~ ~ ~ 8 ~ -tp @s[score_b7s:rot_y_min=9,score_b7s:rot_y=9] ~ ~ ~ 9 ~ -tp @s[score_b7s:rot_y_min=10,score_b7s:rot_y=10] ~ ~ ~ 10 ~ -tp @s[score_b7s:rot_y_min=11,score_b7s:rot_y=11] ~ ~ ~ 11 ~ -tp @s[score_b7s:rot_y_min=12,score_b7s:rot_y=12] ~ ~ ~ 12 ~ -tp @s[score_b7s:rot_y_min=13,score_b7s:rot_y=13] ~ ~ ~ 13 ~ -tp @s[score_b7s:rot_y_min=14,score_b7s:rot_y=14] ~ ~ ~ 14 ~ -tp @s[score_b7s:rot_y_min=15,score_b7s:rot_y=15] ~ ~ ~ 15 ~ -tp @s[score_b7s:rot_y_min=16,score_b7s:rot_y=16] ~ ~ ~ 16 ~ -tp @s[score_b7s:rot_y_min=17,score_b7s:rot_y=17] ~ ~ ~ 17 ~ -tp @s[score_b7s:rot_y_min=18,score_b7s:rot_y=18] ~ ~ ~ 18 ~ -tp @s[score_b7s:rot_y_min=19,score_b7s:rot_y=19] ~ ~ ~ 19 ~ -tp @s[score_b7s:rot_y_min=20,score_b7s:rot_y=20] ~ ~ ~ 20 ~ -tp @s[score_b7s:rot_y_min=21,score_b7s:rot_y=21] ~ ~ ~ 21 ~ -tp @s[score_b7s:rot_y_min=22,score_b7s:rot_y=22] ~ ~ ~ 22 ~ -tp @s[score_b7s:rot_y_min=23,score_b7s:rot_y=23] ~ ~ ~ 23 ~ -tp @s[score_b7s:rot_y_min=24,score_b7s:rot_y=24] ~ ~ ~ 24 ~ -tp @s[score_b7s:rot_y_min=25,score_b7s:rot_y=25] ~ ~ ~ 25 ~ -tp @s[score_b7s:rot_y_min=26,score_b7s:rot_y=26] ~ ~ ~ 26 ~ -tp @s[score_b7s:rot_y_min=27,score_b7s:rot_y=27] ~ ~ ~ 27 ~ -tp @s[score_b7s:rot_y_min=28,score_b7s:rot_y=28] ~ ~ ~ 28 ~ -tp @s[score_b7s:rot_y_min=29,score_b7s:rot_y=29] ~ ~ ~ 29 ~ -tp @s[score_b7s:rot_y_min=30,score_b7s:rot_y=30] ~ ~ ~ 30 ~ -tp @s[score_b7s:rot_y_min=31,score_b7s:rot_y=31] ~ ~ ~ 31 ~ -tp @s[score_b7s:rot_y_min=32,score_b7s:rot_y=32] ~ ~ ~ 32 ~ -tp @s[score_b7s:rot_y_min=33,score_b7s:rot_y=33] ~ ~ ~ 33 ~ -tp @s[score_b7s:rot_y_min=34,score_b7s:rot_y=34] ~ ~ ~ 34 ~ -tp @s[score_b7s:rot_y_min=35,score_b7s:rot_y=35] ~ ~ ~ 35 ~ -tp @s[score_b7s:rot_y_min=36,score_b7s:rot_y=36] ~ ~ ~ 36 ~ -tp @s[score_b7s:rot_y_min=37,score_b7s:rot_y=37] ~ ~ ~ 37 ~ -tp @s[score_b7s:rot_y_min=38,score_b7s:rot_y=38] ~ ~ ~ 38 ~ -tp @s[score_b7s:rot_y_min=39,score_b7s:rot_y=39] ~ ~ ~ 39 ~ -tp @s[score_b7s:rot_y_min=40,score_b7s:rot_y=40] ~ ~ ~ 40 ~ -tp @s[score_b7s:rot_y_min=41,score_b7s:rot_y=41] ~ ~ ~ 41 ~ -tp @s[score_b7s:rot_y_min=42,score_b7s:rot_y=42] ~ ~ ~ 42 ~ -tp @s[score_b7s:rot_y_min=43,score_b7s:rot_y=43] ~ ~ ~ 43 ~ -tp @s[score_b7s:rot_y_min=44,score_b7s:rot_y=44] ~ ~ ~ 44 ~ -tp @s[score_b7s:rot_y_min=45,score_b7s:rot_y=45] ~ ~ ~ 45 ~ -tp @s[score_b7s:rot_y_min=46,score_b7s:rot_y=46] ~ ~ ~ 46 ~ -tp @s[score_b7s:rot_y_min=47,score_b7s:rot_y=47] ~ ~ ~ 47 ~ -tp @s[score_b7s:rot_y_min=48,score_b7s:rot_y=48] ~ ~ ~ 48 ~ -tp @s[score_b7s:rot_y_min=49,score_b7s:rot_y=49] ~ ~ ~ 49 ~ -tp @s[score_b7s:rot_y_min=50,score_b7s:rot_y=50] ~ ~ ~ 50 ~ -tp @s[score_b7s:rot_y_min=51,score_b7s:rot_y=51] ~ ~ ~ 51 ~ -tp @s[score_b7s:rot_y_min=52,score_b7s:rot_y=52] ~ ~ ~ 52 ~ -tp @s[score_b7s:rot_y_min=53,score_b7s:rot_y=53] ~ ~ ~ 53 ~ -tp @s[score_b7s:rot_y_min=54,score_b7s:rot_y=54] ~ ~ ~ 54 ~ -tp @s[score_b7s:rot_y_min=55,score_b7s:rot_y=55] ~ ~ ~ 55 ~ -tp @s[score_b7s:rot_y_min=56,score_b7s:rot_y=56] ~ ~ ~ 56 ~ -tp @s[score_b7s:rot_y_min=57,score_b7s:rot_y=57] ~ ~ ~ 57 ~ -tp @s[score_b7s:rot_y_min=58,score_b7s:rot_y=58] ~ ~ ~ 58 ~ -tp @s[score_b7s:rot_y_min=59,score_b7s:rot_y=59] ~ ~ ~ 59 ~ -tp @s[score_b7s:rot_y_min=60,score_b7s:rot_y=60] ~ ~ ~ 60 ~ -tp @s[score_b7s:rot_y_min=61,score_b7s:rot_y=61] ~ ~ ~ 61 ~ -tp @s[score_b7s:rot_y_min=62,score_b7s:rot_y=62] ~ ~ ~ 62 ~ -tp @s[score_b7s:rot_y_min=63,score_b7s:rot_y=63] ~ ~ ~ 63 ~ -tp @s[score_b7s:rot_y_min=64,score_b7s:rot_y=64] ~ ~ ~ 64 ~ -tp @s[score_b7s:rot_y_min=65,score_b7s:rot_y=65] ~ ~ ~ 65 ~ -tp @s[score_b7s:rot_y_min=66,score_b7s:rot_y=66] ~ ~ ~ 66 ~ -tp @s[score_b7s:rot_y_min=67,score_b7s:rot_y=67] ~ ~ ~ 67 ~ -tp @s[score_b7s:rot_y_min=68,score_b7s:rot_y=68] ~ ~ ~ 68 ~ -tp @s[score_b7s:rot_y_min=69,score_b7s:rot_y=69] ~ ~ ~ 69 ~ -tp @s[score_b7s:rot_y_min=70,score_b7s:rot_y=70] ~ ~ ~ 70 ~ -tp @s[score_b7s:rot_y_min=71,score_b7s:rot_y=71] ~ ~ ~ 71 ~ -tp @s[score_b7s:rot_y_min=72,score_b7s:rot_y=72] ~ ~ ~ 72 ~ -tp @s[score_b7s:rot_y_min=73,score_b7s:rot_y=73] ~ ~ ~ 73 ~ -tp @s[score_b7s:rot_y_min=74,score_b7s:rot_y=74] ~ ~ ~ 74 ~ -tp @s[score_b7s:rot_y_min=75,score_b7s:rot_y=75] ~ ~ ~ 75 ~ -tp @s[score_b7s:rot_y_min=76,score_b7s:rot_y=76] ~ ~ ~ 76 ~ -tp @s[score_b7s:rot_y_min=77,score_b7s:rot_y=77] ~ ~ ~ 77 ~ -tp @s[score_b7s:rot_y_min=78,score_b7s:rot_y=78] ~ ~ ~ 78 ~ -tp @s[score_b7s:rot_y_min=79,score_b7s:rot_y=79] ~ ~ ~ 79 ~ -tp @s[score_b7s:rot_y_min=80,score_b7s:rot_y=80] ~ ~ ~ 80 ~ -tp @s[score_b7s:rot_y_min=81,score_b7s:rot_y=81] ~ ~ ~ 81 ~ -tp @s[score_b7s:rot_y_min=82,score_b7s:rot_y=82] ~ ~ ~ 82 ~ -tp @s[score_b7s:rot_y_min=83,score_b7s:rot_y=83] ~ ~ ~ 83 ~ -tp @s[score_b7s:rot_y_min=84,score_b7s:rot_y=84] ~ ~ ~ 84 ~ -tp @s[score_b7s:rot_y_min=85,score_b7s:rot_y=85] ~ ~ ~ 85 ~ -tp @s[score_b7s:rot_y_min=86,score_b7s:rot_y=86] ~ ~ ~ 86 ~ -tp @s[score_b7s:rot_y_min=87,score_b7s:rot_y=87] ~ ~ ~ 87 ~ -tp @s[score_b7s:rot_y_min=88,score_b7s:rot_y=88] ~ ~ ~ 88 ~ -tp @s[score_b7s:rot_y_min=89,score_b7s:rot_y=89] ~ ~ ~ 89 ~ -tp @s[score_b7s:rot_y_min=90,score_b7s:rot_y=90] ~ ~ ~ 90 ~ -tp @s[score_b7s:rot_y_min=91,score_b7s:rot_y=91] ~ ~ ~ 91 ~ -tp @s[score_b7s:rot_y_min=92,score_b7s:rot_y=92] ~ ~ ~ 92 ~ -tp @s[score_b7s:rot_y_min=93,score_b7s:rot_y=93] ~ ~ ~ 93 ~ -tp @s[score_b7s:rot_y_min=94,score_b7s:rot_y=94] ~ ~ ~ 94 ~ -tp @s[score_b7s:rot_y_min=95,score_b7s:rot_y=95] ~ ~ ~ 95 ~ -tp @s[score_b7s:rot_y_min=96,score_b7s:rot_y=96] ~ ~ ~ 96 ~ -tp @s[score_b7s:rot_y_min=97,score_b7s:rot_y=97] ~ ~ ~ 97 ~ -tp @s[score_b7s:rot_y_min=98,score_b7s:rot_y=98] ~ ~ ~ 98 ~ -tp @s[score_b7s:rot_y_min=99,score_b7s:rot_y=99] ~ ~ ~ 99 ~ -tp @s[score_b7s:rot_y_min=100,score_b7s:rot_y=100] ~ ~ ~ 100 ~ -tp @s[score_b7s:rot_y_min=101,score_b7s:rot_y=101] ~ ~ ~ 101 ~ -tp @s[score_b7s:rot_y_min=102,score_b7s:rot_y=102] ~ ~ ~ 102 ~ -tp @s[score_b7s:rot_y_min=103,score_b7s:rot_y=103] ~ ~ ~ 103 ~ -tp @s[score_b7s:rot_y_min=104,score_b7s:rot_y=104] ~ ~ ~ 104 ~ -tp @s[score_b7s:rot_y_min=105,score_b7s:rot_y=105] ~ ~ ~ 105 ~ -tp @s[score_b7s:rot_y_min=106,score_b7s:rot_y=106] ~ ~ ~ 106 ~ -tp @s[score_b7s:rot_y_min=107,score_b7s:rot_y=107] ~ ~ ~ 107 ~ -tp @s[score_b7s:rot_y_min=108,score_b7s:rot_y=108] ~ ~ ~ 108 ~ -tp @s[score_b7s:rot_y_min=109,score_b7s:rot_y=109] ~ ~ ~ 109 ~ -tp @s[score_b7s:rot_y_min=110,score_b7s:rot_y=110] ~ ~ ~ 110 ~ -tp @s[score_b7s:rot_y_min=111,score_b7s:rot_y=111] ~ ~ ~ 111 ~ -tp @s[score_b7s:rot_y_min=112,score_b7s:rot_y=112] ~ ~ ~ 112 ~ -tp @s[score_b7s:rot_y_min=113,score_b7s:rot_y=113] ~ ~ ~ 113 ~ -tp @s[score_b7s:rot_y_min=114,score_b7s:rot_y=114] ~ ~ ~ 114 ~ -tp @s[score_b7s:rot_y_min=115,score_b7s:rot_y=115] ~ ~ ~ 115 ~ -tp @s[score_b7s:rot_y_min=116,score_b7s:rot_y=116] ~ ~ ~ 116 ~ -tp @s[score_b7s:rot_y_min=117,score_b7s:rot_y=117] ~ ~ ~ 117 ~ -tp @s[score_b7s:rot_y_min=118,score_b7s:rot_y=118] ~ ~ ~ 118 ~ -tp @s[score_b7s:rot_y_min=119,score_b7s:rot_y=119] ~ ~ ~ 119 ~ -tp @s[score_b7s:rot_y_min=120,score_b7s:rot_y=120] ~ ~ ~ 120 ~ -tp @s[score_b7s:rot_y_min=121,score_b7s:rot_y=121] ~ ~ ~ 121 ~ -tp @s[score_b7s:rot_y_min=122,score_b7s:rot_y=122] ~ ~ ~ 122 ~ -tp @s[score_b7s:rot_y_min=123,score_b7s:rot_y=123] ~ ~ ~ 123 ~ -tp @s[score_b7s:rot_y_min=124,score_b7s:rot_y=124] ~ ~ ~ 124 ~ -tp @s[score_b7s:rot_y_min=125,score_b7s:rot_y=125] ~ ~ ~ 125 ~ -tp @s[score_b7s:rot_y_min=126,score_b7s:rot_y=126] ~ ~ ~ 126 ~ -tp @s[score_b7s:rot_y_min=127,score_b7s:rot_y=127] ~ ~ ~ 127 ~ -tp @s[score_b7s:rot_y_min=128,score_b7s:rot_y=128] ~ ~ ~ 128 ~ -tp @s[score_b7s:rot_y_min=129,score_b7s:rot_y=129] ~ ~ ~ 129 ~ -tp @s[score_b7s:rot_y_min=130,score_b7s:rot_y=130] ~ ~ ~ 130 ~ -tp @s[score_b7s:rot_y_min=131,score_b7s:rot_y=131] ~ ~ ~ 131 ~ -tp @s[score_b7s:rot_y_min=132,score_b7s:rot_y=132] ~ ~ ~ 132 ~ -tp @s[score_b7s:rot_y_min=133,score_b7s:rot_y=133] ~ ~ ~ 133 ~ -tp @s[score_b7s:rot_y_min=134,score_b7s:rot_y=134] ~ ~ ~ 134 ~ -tp @s[score_b7s:rot_y_min=135,score_b7s:rot_y=135] ~ ~ ~ 135 ~ -tp @s[score_b7s:rot_y_min=136,score_b7s:rot_y=136] ~ ~ ~ 136 ~ -tp @s[score_b7s:rot_y_min=137,score_b7s:rot_y=137] ~ ~ ~ 137 ~ -tp @s[score_b7s:rot_y_min=138,score_b7s:rot_y=138] ~ ~ ~ 138 ~ -tp @s[score_b7s:rot_y_min=139,score_b7s:rot_y=139] ~ ~ ~ 139 ~ -tp @s[score_b7s:rot_y_min=140,score_b7s:rot_y=140] ~ ~ ~ 140 ~ -tp @s[score_b7s:rot_y_min=141,score_b7s:rot_y=141] ~ ~ ~ 141 ~ -tp @s[score_b7s:rot_y_min=142,score_b7s:rot_y=142] ~ ~ ~ 142 ~ -tp @s[score_b7s:rot_y_min=143,score_b7s:rot_y=143] ~ ~ ~ 143 ~ -tp @s[score_b7s:rot_y_min=144,score_b7s:rot_y=144] ~ ~ ~ 144 ~ -tp @s[score_b7s:rot_y_min=145,score_b7s:rot_y=145] ~ ~ ~ 145 ~ -tp @s[score_b7s:rot_y_min=146,score_b7s:rot_y=146] ~ ~ ~ 146 ~ -tp @s[score_b7s:rot_y_min=147,score_b7s:rot_y=147] ~ ~ ~ 147 ~ -tp @s[score_b7s:rot_y_min=148,score_b7s:rot_y=148] ~ ~ ~ 148 ~ -tp @s[score_b7s:rot_y_min=149,score_b7s:rot_y=149] ~ ~ ~ 149 ~ -tp @s[score_b7s:rot_y_min=150,score_b7s:rot_y=150] ~ ~ ~ 150 ~ -tp @s[score_b7s:rot_y_min=151,score_b7s:rot_y=151] ~ ~ ~ 151 ~ -tp @s[score_b7s:rot_y_min=152,score_b7s:rot_y=152] ~ ~ ~ 152 ~ -tp @s[score_b7s:rot_y_min=153,score_b7s:rot_y=153] ~ ~ ~ 153 ~ -tp @s[score_b7s:rot_y_min=154,score_b7s:rot_y=154] ~ ~ ~ 154 ~ -tp @s[score_b7s:rot_y_min=155,score_b7s:rot_y=155] ~ ~ ~ 155 ~ -tp @s[score_b7s:rot_y_min=156,score_b7s:rot_y=156] ~ ~ ~ 156 ~ -tp @s[score_b7s:rot_y_min=157,score_b7s:rot_y=157] ~ ~ ~ 157 ~ -tp @s[score_b7s:rot_y_min=158,score_b7s:rot_y=158] ~ ~ ~ 158 ~ -tp @s[score_b7s:rot_y_min=159,score_b7s:rot_y=159] ~ ~ ~ 159 ~ -tp @s[score_b7s:rot_y_min=160,score_b7s:rot_y=160] ~ ~ ~ 160 ~ -tp @s[score_b7s:rot_y_min=161,score_b7s:rot_y=161] ~ ~ ~ 161 ~ -tp @s[score_b7s:rot_y_min=162,score_b7s:rot_y=162] ~ ~ ~ 162 ~ -tp @s[score_b7s:rot_y_min=163,score_b7s:rot_y=163] ~ ~ ~ 163 ~ -tp @s[score_b7s:rot_y_min=164,score_b7s:rot_y=164] ~ ~ ~ 164 ~ -tp @s[score_b7s:rot_y_min=165,score_b7s:rot_y=165] ~ ~ ~ 165 ~ -tp @s[score_b7s:rot_y_min=166,score_b7s:rot_y=166] ~ ~ ~ 166 ~ -tp @s[score_b7s:rot_y_min=167,score_b7s:rot_y=167] ~ ~ ~ 167 ~ -tp @s[score_b7s:rot_y_min=168,score_b7s:rot_y=168] ~ ~ ~ 168 ~ -tp @s[score_b7s:rot_y_min=169,score_b7s:rot_y=169] ~ ~ ~ 169 ~ -tp @s[score_b7s:rot_y_min=170,score_b7s:rot_y=170] ~ ~ ~ 170 ~ -tp @s[score_b7s:rot_y_min=171,score_b7s:rot_y=171] ~ ~ ~ 171 ~ -tp @s[score_b7s:rot_y_min=172,score_b7s:rot_y=172] ~ ~ ~ 172 ~ -tp @s[score_b7s:rot_y_min=173,score_b7s:rot_y=173] ~ ~ ~ 173 ~ -tp @s[score_b7s:rot_y_min=174,score_b7s:rot_y=174] ~ ~ ~ 174 ~ -tp @s[score_b7s:rot_y_min=175,score_b7s:rot_y=175] ~ ~ ~ 175 ~ -tp @s[score_b7s:rot_y_min=176,score_b7s:rot_y=176] ~ ~ ~ 176 ~ -tp @s[score_b7s:rot_y_min=177,score_b7s:rot_y=177] ~ ~ ~ 177 ~ -tp @s[score_b7s:rot_y_min=178,score_b7s:rot_y=178] ~ ~ ~ 178 ~ -tp @s[score_b7s:rot_y_min=179,score_b7s:rot_y=179] ~ ~ ~ 179 ~ diff --git a/data/b7s/functions/entity/tp_rot.mcfunction.py b/data/b7s/functions/entity/tp_rot.mcfunction.py deleted file mode 100644 index b5b4338..0000000 --- a/data/b7s/functions/entity/tp_rot.mcfunction.py +++ /dev/null @@ -1,26 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -print('# This Source Code Form is subject to the terms of the Mozilla Public') -print('# License, v. 2.0. If a copy of the MPL was not distributed with this') -print('# file, You can obtain one at http://mozilla.org/MPL/2.0/.') -print() -print('# Teleports a player or entity to a given rotation.') -print('#') -print('# Scores required:') -print('# b7s:rot_x — the new x rotation for the entity.') -print('# b7s:rot_y — the new y rotation for the entity.') -print('#') -print('# Usage:') -print('# /scoreboard players set b7s:rot_x ') -print('# /scoreboard players set b7s:rot_y ') -print('# /execute ~ ~ ~ function b7s:entity/tp_rot') - -print() -for i in range(-90, 91): - print('tp @s[score_b7s:rot_x_min={0},score_b7s:rot_x={0}] ~ ~ ~ ~ {0}'.format(i)) - -print() -for i in range(-180, 180): - print('tp @s[score_b7s:rot_y_min={0},score_b7s:rot_y={0}] ~ ~ ~ {0} ~'.format(i)) diff --git a/data/b7s/functions/entity/track_aff_blocks.mcfunction b/data/b7s/functions/entity/track_aff_blocks.mcfunction deleted file mode 100644 index c8a65ad..0000000 --- a/data/b7s/functions/entity/track_aff_blocks.mcfunction +++ /dev/null @@ -1,13 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -# Tracks the AffectedBlocks stat of an entity. Result is stored in the -# entity's `b7s:aff_blocks` score. Players are tracked by default, so you -# don't need to call this function on them. -# -# Usage: -# /execute ~ ~ ~ function b7s:entity/track_aff_blocks - -scoreboard players set @s b7s:aff_blocks 0 -stats entity @s set AffectedBlocks @s b7s:aff_blocks diff --git a/data/b7s/functions/entity/track_aff_entities.mcfunction b/data/b7s/functions/entity/track_aff_entities.mcfunction deleted file mode 100644 index 6d24cfa..0000000 --- a/data/b7s/functions/entity/track_aff_entities.mcfunction +++ /dev/null @@ -1,13 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -# Tracks the AffectedEntities stat of an entity. Result is stored in the -# entity's `b7s:aff_entities` score. Players are tracked by default, so you -# don't need to call this function on them. -# -# Usage: -# /execute ~ ~ ~ function b7s:entity/track_aff_entities - -scoreboard players set @s b7s:aff_entities 0 -stats entity @s set AffectedEntities @s b7s:aff_entities diff --git a/data/b7s/functions/entity/track_aff_items.mcfunction b/data/b7s/functions/entity/track_aff_items.mcfunction deleted file mode 100644 index a185caf..0000000 --- a/data/b7s/functions/entity/track_aff_items.mcfunction +++ /dev/null @@ -1,13 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -# Tracks the AffectedItems stat of an entity. Result is stored in the entity's -# `b7s:aff_items` score. Players are tracked by default, so you don't need to -# call this function on them. -# -# Usage: -# /execute ~ ~ ~ function b7s:entity/track_aff_items - -scoreboard players set @s b7s:aff_items 0 -stats entity @s set AffectedItems @s b7s:aff_items diff --git a/data/b7s/functions/entity/track_query_result.mcfunction b/data/b7s/functions/entity/track_query_result.mcfunction deleted file mode 100644 index 14a69a9..0000000 --- a/data/b7s/functions/entity/track_query_result.mcfunction +++ /dev/null @@ -1,13 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -# Tracks the QueryResult stat of an entity. Result is stored in the entity's -# `b7s:query_result` score. Players are tracked by default, so you don't need -# to call this function on them. -# -# Usage: -# /execute ~ ~ ~ function b7s:entity/track_query_result - -scoreboard players set @s b7s:query_result 0 -stats entity @s set QueryResult @s b7s:query_result diff --git a/data/b7s/functions/entity/track_success_cnt.mcfunction b/data/b7s/functions/entity/track_success_cnt.mcfunction deleted file mode 100644 index b018ed2..0000000 --- a/data/b7s/functions/entity/track_success_cnt.mcfunction +++ /dev/null @@ -1,13 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -# Tracks the SuccessCount stat of an entity. Result is stored in the entity's -# `b7s:success_cnt` score. Players are tracked by default, so you don't need to -# call this function on them. -# -# Usage: -# /execute ~ ~ ~ function b7s:entity/track_success_cnt - -scoreboard players set @s b7s:success_cnt 0 -stats entity @s set SuccessCount @s b7s:success_cnt diff --git a/data/b7s/functions/install.mcfunction b/data/b7s/functions/install.mcfunction deleted file mode 100644 index 54abcb6..0000000 --- a/data/b7s/functions/install.mcfunction +++ /dev/null @@ -1,13 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -# Installs BareBones. To be used before using any other BareBones function for -# the first time. -# -# Usage: -# /function b7s:install - -summon minecraft:area_effect_cloud ~ ~ ~ {Tags:["b7s:_installer"]} -execute @e[tag=b7s:_installer] ~ ~ ~ function b7s:install/_as_installer -kill @e[tag=b7s:_installer] diff --git a/data/b7s/functions/install/_as_installer.mcfunction b/data/b7s/functions/install/_as_installer.mcfunction deleted file mode 100644 index e443375..0000000 --- a/data/b7s/functions/install/_as_installer.mcfunction +++ /dev/null @@ -1,77 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -gamerule commandBlockOutput false -gamerule logAdminCommands false - -scoreboard objectives add b7s:aff_blocks dummy -scoreboard objectives add b7s:aff_entities dummy -scoreboard objectives add b7s:aff_items dummy -scoreboard objectives add b7s:query_result dummy -scoreboard objectives add b7s:success_cnt dummy - -function b7s:entity/track_success_cnt - -scoreboard objectives add b7s:spawn_x dummy -scoreboard objectives add b7s:spawn_y dummy -scoreboard objectives add b7s:spawn_z dummy -scoreboard objectives add b7s:spawn_rot_x dummy -scoreboard objectives add b7s:spawn_rot_y dummy - -scoreboard objectives add b7s:home_as_tags dummy -scoreboard players test #b7s:config b7s:home_as_tags * -execute @s[score_b7s:success_cnt=0] ~ ~ ~ scoreboard players set #b7s:config b7s:home_as_tags 1 - -scoreboard objectives add b7s:back_as_tags dummy -scoreboard players test #b7s:config b7s:back_as_tags * -execute @s[score_b7s:success_cnt=0] ~ ~ ~ scoreboard players set #b7s:config b7s:back_as_tags 0 - -scoreboard objectives add b7s:persist_back dummy -scoreboard players test #b7s:config b7s:persist_back * -execute @s[score_b7s:success_cnt=0] ~ ~ ~ scoreboard players set #b7s:config b7s:persist_back 0 - -scoreboard objectives add b7s:_tmp dummy -scoreboard objectives add b7s:_left stat.leaveGame - -scoreboard objectives add b7s:id dummy -scoreboard objectives add b7s:biome dummy -scoreboard objectives add b7s:req_from dummy - -scoreboard objectives add b7s:dim dummy -scoreboard objectives add b7s:x dummy -scoreboard objectives add b7s:y dummy -scoreboard objectives add b7s:z dummy -scoreboard objectives add b7s:rot_x dummy -scoreboard objectives add b7s:rot_y dummy - -scoreboard objectives add b7s:x_in_chunk dummy -scoreboard objectives add b7s:y_in_chunk dummy -scoreboard objectives add b7s:z_in_chunk dummy - -scoreboard objectives add b7s:block_id dummy -scoreboard objectives add b7s:block_dv dummy - -scoreboard objectives add b7s:home_dim dummy -scoreboard objectives add b7s:home_x dummy -scoreboard objectives add b7s:home_y dummy -scoreboard objectives add b7s:home_z dummy -scoreboard objectives add b7s:home_rot_x dummy -scoreboard objectives add b7s:home_rot_y dummy - -scoreboard objectives add b7s:back_dim dummy -scoreboard objectives add b7s:back_x dummy -scoreboard objectives add b7s:back_y dummy -scoreboard objectives add b7s:back_z dummy -scoreboard objectives add b7s:back_rot_x dummy -scoreboard objectives add b7s:back_rot_y dummy - -scoreboard objectives add b7s:info trigger -scoreboard objectives add b7s:sethome trigger -scoreboard objectives add b7s:tpspawn trigger -scoreboard objectives add b7s:tphome trigger -scoreboard objectives add b7s:tpback trigger -scoreboard objectives add b7s:tpreq trigger -scoreboard objectives add b7s:tpaccept trigger - -scoreboard objectives setdisplay list b7s:id diff --git a/data/b7s/functions/tick.mcfunction b/data/b7s/functions/tick.mcfunction new file mode 100644 index 0000000..269c6d8 --- /dev/null +++ b/data/b7s/functions/tick.mcfunction @@ -0,0 +1,8 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. + +scoreboard objectives add b7s.val dummy +execute unless score #b7s._version b7s.val matches 10000.. run function b7s:tick/_unless_v10000_installed + +execute as @e[type=minecraft:player] run function b7s:tick/_as_player diff --git a/data/b7s/functions/tick/_as_player.mcfunction b/data/b7s/functions/tick/_as_player.mcfunction new file mode 100644 index 0000000..3d959f7 --- /dev/null +++ b/data/b7s/functions/tick/_as_player.mcfunction @@ -0,0 +1,35 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. + +execute unless score @s b7s.id matches -2147483648.. run function b7s:tick/_as_player_unless_id_set + +execute if score @s b7s._left matches -2147483648.. run function b7s:tick/_as_player_if_left + +scoreboard players enable @s b7s.getinfo +execute unless score @s b7s.getinfo matches 0 run function b7s:command/getinfo +execute unless score @s b7s.getinfo matches 0 run scoreboard players reset @s b7s.getinfo + +scoreboard players enable @s b7s.tpspawn +execute unless score @s b7s.tpspawn matches 0 run function b7s:command/tpspawn +execute unless score @s b7s.tpspawn matches 0 run scoreboard players reset @s b7s.tpspawn + +scoreboard players enable @s b7s.sethome +execute unless score @s b7s.sethome matches 0 run function b7s:command/sethome +execute unless score @s b7s.sethome matches 0 run scoreboard players reset @s b7s.sethome + +scoreboard players enable @s b7s.tphome +execute unless score @s b7s.tphome matches 0 run function b7s:command/tphome +execute unless score @s b7s.tphome matches 0 run scoreboard players reset @s b7s.tphome + +scoreboard players enable @s b7s.tpreq +execute unless score @s b7s.tpreq matches 0 run function b7s:command/tpreq +execute unless score @s b7s.tpreq matches 0 run scoreboard players reset @s b7s.tpreq + +scoreboard players enable @s b7s.tpaccept +execute unless score @s b7s.tpaccept matches 0 run function b7s:command/tpaccept +execute unless score @s b7s.tpaccept matches 0 run scoreboard players reset @s b7s.tpaccept + +scoreboard players enable @s b7s.tpback +execute unless score @s b7s.tpback matches 0 run function b7s:command/tpback +execute unless score @s b7s.tpback matches 0 run scoreboard players reset @s b7s.tpback diff --git a/data/b7s/functions/tick/_as_player_if_left.mcfunction b/data/b7s/functions/tick/_as_player_if_left.mcfunction new file mode 100644 index 0000000..0f9d531 --- /dev/null +++ b/data/b7s/functions/tick/_as_player_if_left.mcfunction @@ -0,0 +1,15 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. + +scoreboard players operation @s b7s._val = @s b7s.val + +function b7s:config/tp_req/get_persist +scoreboard players reset @s[scores={b7s.val=0}] b7s.tp_req_from + +function b7s:config/back/get_persist +execute if score @s b7s.val matches 0 run function b7s:entity/back/unset_loc + +scoreboard players operation @s b7s.val = @s b7s.val + +scoreboard players reset @s b7s._left diff --git a/data/b7s/functions/advancement/_biome_any.mcfunction b/data/b7s/functions/tick/_as_player_unless_id_set.mcfunction similarity index 64% rename from data/b7s/functions/advancement/_biome_any.mcfunction rename to data/b7s/functions/tick/_as_player_unless_id_set.mcfunction index 2fd9290..31336d4 100644 --- a/data/b7s/functions/advancement/_biome_any.mcfunction +++ b/data/b7s/functions/tick/_as_player_unless_id_set.mcfunction @@ -2,5 +2,5 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. -function b7s:entity/player/update -advancement revoke @s only b7s:_biome_any +scoreboard players add #b7s._last_id b7s.val 1 +scoreboard players operation @s b7s.id = #b7s._last_id b7s.val diff --git a/data/b7s/functions/tick/_unless_v10000_installed.mcfunction b/data/b7s/functions/tick/_unless_v10000_installed.mcfunction new file mode 100644 index 0000000..0b072c5 --- /dev/null +++ b/data/b7s/functions/tick/_unless_v10000_installed.mcfunction @@ -0,0 +1,55 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. + +scoreboard objectives add b7s.id dummy +scoreboard objectives setdisplay list b7s.id + +scoreboard objectives add b7s.dim dummy +scoreboard objectives add b7s.x dummy +scoreboard objectives add b7s.y dummy +scoreboard objectives add b7s.z dummy +scoreboard objectives add b7s.rot_x dummy +scoreboard objectives add b7s.rot_y dummy + +scoreboard objectives add b7s.home_dim dummy +scoreboard objectives add b7s.home_x dummy +scoreboard objectives add b7s.home_y dummy +scoreboard objectives add b7s.home_z dummy +scoreboard objectives add b7s.home_rot_x dummy +scoreboard objectives add b7s.home_rot_y dummy + +scoreboard objectives add b7s.back_dim dummy +scoreboard objectives add b7s.back_x dummy +scoreboard objectives add b7s.back_y dummy +scoreboard objectives add b7s.back_z dummy +scoreboard objectives add b7s.back_rot_x dummy +scoreboard objectives add b7s.back_rot_y dummy + +scoreboard objectives add b7s.tp_req_from dummy + +scoreboard objectives add b7s.val dummy + +scoreboard objectives add b7s._val dummy + +scoreboard objectives add b7s._tmp_1 dummy +scoreboard objectives add b7s._tmp_2 dummy +scoreboard objectives add b7s._tmp_3 dummy + +scoreboard objectives add b7s._left minecraft.custom:minecraft.leave_game + +scoreboard objectives add b7s.getinfo trigger +scoreboard objectives add b7s.tpspawn trigger +scoreboard objectives add b7s.sethome trigger +scoreboard objectives add b7s.tphome trigger +scoreboard objectives add b7s.tpreq trigger +scoreboard objectives add b7s.tpaccept trigger +scoreboard objectives add b7s.tpback trigger + +scoreboard players set #b7s.save_home_as_tags b7s.val 1 +scoreboard players set #b7s.save_tp_req_as_tags b7s.val 0 +scoreboard players set #b7s.persist_tp_req b7s.val 0 +scoreboard players set #b7s.save_back_as_tags b7s.val 0 +scoreboard players set #b7s.persist_back b7s.val 0 + +scoreboard players set #b7s._version b7s.val 10000 diff --git a/data/minecraft/tags/functions/tick.json b/data/minecraft/tags/functions/tick.json new file mode 100644 index 0000000..8615db7 --- /dev/null +++ b/data/minecraft/tags/functions/tick.json @@ -0,0 +1,5 @@ +{ + "values": [ + "b7s:tick" + ] +} diff --git a/pack.mcmeta b/pack.mcmeta index 3210719..6577f3d 100644 --- a/pack.mcmeta +++ b/pack.mcmeta @@ -1,6 +1,6 @@ { "pack": { - "pack_format": 3, - "description": "BareBones" + "pack_format": 4, + "description": "Essential functionality for vanilla Minecraft servers and Realms" } } diff --git a/readme.md b/readme.md index ed72595..0705ca4 100644 --- a/readme.md +++ b/readme.md @@ -1,45 +1,24 @@ -# BareBones -BareBones is a data pack that provides essential functionality for vanilla +# Barebones +Barebones is a data pack that provides essential functionality for vanilla Minecraft servers. The pack is aimed both at players and server administrators: it enables players to use additional commands through the use of triggers and contains a useful function API which can be used to further extend the server's functionality. ## Installation -### For Minecraft 1.13+ -1. Download the latest BareBones release from - [here](https://github.com/xMamo/Minecraft-BareBones/releases/latest); +1. Download the latest Barebones release from + [here](https://github.com/xMamo/minecraft-barebones/releases/latest); 2. Move the downloaded archive into your world's `datapacks` folder; -3. Log into your server and execute the following commands: - ``` - /reload - /function b7s:install - ``` -4. Enjoy! - -### For Minecraft 1.12 -1. Download the BareBones zip from - [here](https://github.com/xMamo/Minecraft-BareBones/releases/tag/v0.3-mc1.12) - and extract it; -2. Move the `functions` folder from the extracted directory into the `data` - folder of the server's world; -3. Move the `advancements` folder from the extracted directory into the `data` - folder of the server's world; -4. Log into your server and execute the following commands: - ``` - /reload - /function b7s:install - ``` -6. Enjoy! +3. Enjoy! ## Commands -BareBones installs a series of custom commands, accessible through triggers. +Barebones installs a series of custom commands, accessible through triggers. Below are all the available commands as of the current version. -### `/trigger b7s:info set 1` -Displays basic information about the BareBones data pack. +### `/trigger b7s.getinfo` +Displays basic information about the Barebones data pack. -### `/trigger b7s:tpspawn set 1` +### `/trigger b7s.tpspawn` Teleports you to the server's spawn location. Each dimension may have a different spawn location.\ Administrators can set the spawn location for a specific dimension to their @@ -49,24 +28,24 @@ current location by executing the following commands: /function b7s:config/spawn/set_loc ``` -### `/trigger b7s:sethome set 1` +### `/trigger b7s.sethome` Sets your home location. You can teleport back to it using -`/trigger b7s:tphome set 1` +`/trigger b7s.tphome set 1` -### `/trigger b7s:tphome set 1` +### `/trigger b7s.tphome` Teleports to your home location, if set. -### `/trigger b7s:tpback set 1` +### `/trigger b7s.tpback` After teleporting home, it might be useful to teleport back to where you were before. To do that, you can use this command. -### `/trigger b7s:tpreq set ` +### `/trigger b7s.tpreq set ` Sends a teleportation request to the player with ID `id` (you can view the IDs of players by pressing the Tab key). If the other player accepts the request, you will be teleported to that player. ## Functions -BareBones provides a useful function API which you can use to add further +Barebones provides a useful function API which you can use to add further functionality to your server. Just navigate to the functions folder of your server and open up the function you're interested in. @@ -75,15 +54,15 @@ underscore (`_`) are for internal use only. Don't rely on such functionality. Most other functions are documented and loosely coupled in order to make their use as simple as possible. You are free to use them as you wish. -Please avoid extending BareBones' functionality by simply putting new +Please avoid extending Barebones' functionality by simply putting new functions or advancements in the `functions/b7s` or `advancements/b7s` folders. Instead, create your own separate folder. If you think this might be a kind of general functionality which other players could use too, please issue a pull request or submit a ticket. In general, avoid modifying the -BareBones data pack by itself or setting, unsetting, adding or removing scores -or tags which are undocumented, as future releases of BareBones might break +Barebones data pack by itself or setting, unsetting, adding or removing scores +or tags which are undocumented, as future releases of Barebones might break your current setup. ## License -BareBones is licensed under the Mozilla Public License Version 2.0. Please +Barebones is licensed under the Mozilla Public License Version 2.0. Please check out [license.txt](license.txt) for more information. diff --git a/render.py b/render.py index 6c2c85b..8775ef5 100644 --- a/render.py +++ b/render.py @@ -3,11 +3,12 @@ import sys from pathlib import Path -file = Path(os.path.realpath(__file__)) -for script in file.parent.glob('**/*.py'): - if script != file and script.suffixes == ['.mcfunction', '.py']: - mcfunction = script.with_suffix('') - print('Rendering {}...'.format(str(mcfunction)), end = '') - with mcfunction.open('w') as f: - subprocess.run([sys.executable, str(script)], stdout = f) - print(' DONE') +if __name__ == '__main__': + file = Path(os.path.realpath(__file__)) + for script in file.parent.glob('**/*.py'): + if script != file and script.suffixes == ['.mcfunction', '.py']: + mcfunction = script.with_suffix('') + print('Rendering {}...'.format(str(mcfunction)), end = '') + with mcfunction.open('w') as f: + subprocess.run([sys.executable, str(script)], stdout = f) + print(' DONE')