diff --git a/functions/b7s/command/info.mcfunction b/functions/b7s/command/info.mcfunction new file mode 100644 index 0000000..c9bdbb0 --- /dev/null +++ b/functions/b7s/command/info.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":"www.mcbarebones.com","clickEvent":{"action":"open_url","value":"http://www.mcbarebones.com/"},"hoverEvent":{"action":"show_text","value":"Click here to visit BareBones' website"}}] diff --git a/functions/b7s/entity/get_pos.mcfunction b/functions/b7s/entity/get_pos.mcfunction index 87e4d28..26ce3ac 100644 --- a/functions/b7s/entity/get_pos.mcfunction +++ b/functions/b7s/entity/get_pos.mcfunction @@ -12,213 +12,143 @@ # Usage: # /execute ~ ~ ~ function b7s:entity/get_pos -scoreboard players tag @s add b7s:_self - -summon minecraft:area_effect_cloud ~ ~ ~ {Tags:["b7s:_marker_1"]} -summon minecraft:area_effect_cloud ~ ~ ~ {Tags:["b7s:_marker_2"]} - scoreboard players set @s b7s:x -30000000 scoreboard players set @s b7s:y -4096 scoreboard players set @s b7s:z -30000000 -tp @e[tag=b7s:_marker_1] ~-33554432 ~ ~ -execute @e[tag=b7s:_marker_1] ~ ~ ~ execute @e[tag=b7s:_marker_2,rm=0] ~ ~ ~ scoreboard players add @e[tag=b7s:_self] b7s:x 33554432 -tp @e[tag=b7s:_marker_2] @e[tag=b7s:_marker_1] -tp @e[tag=b7s:_marker_1] ~-16777216 ~ ~ -execute @e[tag=b7s:_marker_1] ~ ~ ~ execute @e[tag=b7s:_marker_2,rm=0] ~ ~ ~ scoreboard players add @e[tag=b7s:_self] b7s:x 16777216 -tp @e[tag=b7s:_marker_2] @e[tag=b7s:_marker_1] -tp @e[tag=b7s:_marker_1] ~-8388608 ~ ~ -execute @e[tag=b7s:_marker_1] ~ ~ ~ execute @e[tag=b7s:_marker_2,rm=0] ~ ~ ~ scoreboard players add @e[tag=b7s:_self] b7s:x 8388608 -tp @e[tag=b7s:_marker_2] @e[tag=b7s:_marker_1] -tp @e[tag=b7s:_marker_1] ~-4194304 ~ ~ -execute @e[tag=b7s:_marker_1] ~ ~ ~ execute @e[tag=b7s:_marker_2,rm=0] ~ ~ ~ scoreboard players add @e[tag=b7s:_self] b7s:x 4194304 -tp @e[tag=b7s:_marker_2] @e[tag=b7s:_marker_1] -tp @e[tag=b7s:_marker_1] ~-2097152 ~ ~ -execute @e[tag=b7s:_marker_1] ~ ~ ~ execute @e[tag=b7s:_marker_2,rm=0] ~ ~ ~ scoreboard players add @e[tag=b7s:_self] b7s:x 2097152 -tp @e[tag=b7s:_marker_2] @e[tag=b7s:_marker_1] -tp @e[tag=b7s:_marker_1] ~-1048576 ~ ~ -execute @e[tag=b7s:_marker_1] ~ ~ ~ execute @e[tag=b7s:_marker_2,rm=0] ~ ~ ~ scoreboard players add @e[tag=b7s:_self] b7s:x 1048576 -tp @e[tag=b7s:_marker_2] @e[tag=b7s:_marker_1] -tp @e[tag=b7s:_marker_1] ~-524288 ~ ~ -execute @e[tag=b7s:_marker_1] ~ ~ ~ execute @e[tag=b7s:_marker_2,rm=0] ~ ~ ~ scoreboard players add @e[tag=b7s:_self] b7s:x 524288 -tp @e[tag=b7s:_marker_2] @e[tag=b7s:_marker_1] -tp @e[tag=b7s:_marker_1] ~-262144 ~ ~ -execute @e[tag=b7s:_marker_1] ~ ~ ~ execute @e[tag=b7s:_marker_2,rm=0] ~ ~ ~ scoreboard players add @e[tag=b7s:_self] b7s:x 262144 -tp @e[tag=b7s:_marker_2] @e[tag=b7s:_marker_1] -tp @e[tag=b7s:_marker_1] ~-131072 ~ ~ -execute @e[tag=b7s:_marker_1] ~ ~ ~ execute @e[tag=b7s:_marker_2,rm=0] ~ ~ ~ scoreboard players add @e[tag=b7s:_self] b7s:x 131072 -tp @e[tag=b7s:_marker_2] @e[tag=b7s:_marker_1] -tp @e[tag=b7s:_marker_1] ~-65536 ~ ~ -execute @e[tag=b7s:_marker_1] ~ ~ ~ execute @e[tag=b7s:_marker_2,rm=0] ~ ~ ~ scoreboard players add @e[tag=b7s:_self] b7s:x 65536 -tp @e[tag=b7s:_marker_2] @e[tag=b7s:_marker_1] -tp @e[tag=b7s:_marker_1] ~-32768 ~ ~ -execute @e[tag=b7s:_marker_1] ~ ~ ~ execute @e[tag=b7s:_marker_2,rm=0] ~ ~ ~ scoreboard players add @e[tag=b7s:_self] b7s:x 32768 -tp @e[tag=b7s:_marker_2] @e[tag=b7s:_marker_1] -tp @e[tag=b7s:_marker_1] ~-16384 ~ ~ -execute @e[tag=b7s:_marker_1] ~ ~ ~ execute @e[tag=b7s:_marker_2,rm=0] ~ ~ ~ scoreboard players add @e[tag=b7s:_self] b7s:x 16384 -tp @e[tag=b7s:_marker_2] @e[tag=b7s:_marker_1] -tp @e[tag=b7s:_marker_1] ~-8192 ~ ~ -execute @e[tag=b7s:_marker_1] ~ ~ ~ execute @e[tag=b7s:_marker_2,rm=0] ~ ~ ~ scoreboard players add @e[tag=b7s:_self] b7s:x 8192 -tp @e[tag=b7s:_marker_2] @e[tag=b7s:_marker_1] -tp @e[tag=b7s:_marker_1] ~-4096 ~ ~ -execute @e[tag=b7s:_marker_1] ~ ~ ~ execute @e[tag=b7s:_marker_2,rm=0] ~ ~ ~ scoreboard players add @e[tag=b7s:_self] b7s:x 4096 -tp @e[tag=b7s:_marker_2] @e[tag=b7s:_marker_1] -tp @e[tag=b7s:_marker_1] ~-2048 ~ ~ -execute @e[tag=b7s:_marker_1] ~ ~ ~ execute @e[tag=b7s:_marker_2,rm=0] ~ ~ ~ scoreboard players add @e[tag=b7s:_self] b7s:x 2048 -tp @e[tag=b7s:_marker_2] @e[tag=b7s:_marker_1] -tp @e[tag=b7s:_marker_1] ~-1024 ~ ~ -execute @e[tag=b7s:_marker_1] ~ ~ ~ execute @e[tag=b7s:_marker_2,rm=0] ~ ~ ~ scoreboard players add @e[tag=b7s:_self] b7s:x 1024 -tp @e[tag=b7s:_marker_2] @e[tag=b7s:_marker_1] -tp @e[tag=b7s:_marker_1] ~-512 ~ ~ -execute @e[tag=b7s:_marker_1] ~ ~ ~ execute @e[tag=b7s:_marker_2,rm=0] ~ ~ ~ scoreboard players add @e[tag=b7s:_self] b7s:x 512 -tp @e[tag=b7s:_marker_2] @e[tag=b7s:_marker_1] -tp @e[tag=b7s:_marker_1] ~-256 ~ ~ -execute @e[tag=b7s:_marker_1] ~ ~ ~ execute @e[tag=b7s:_marker_2,rm=0] ~ ~ ~ scoreboard players add @e[tag=b7s:_self] b7s:x 256 -tp @e[tag=b7s:_marker_2] @e[tag=b7s:_marker_1] -tp @e[tag=b7s:_marker_1] ~-128 ~ ~ -execute @e[tag=b7s:_marker_1] ~ ~ ~ execute @e[tag=b7s:_marker_2,rm=0] ~ ~ ~ scoreboard players add @e[tag=b7s:_self] b7s:x 128 -tp @e[tag=b7s:_marker_2] @e[tag=b7s:_marker_1] -tp @e[tag=b7s:_marker_1] ~-64 ~ ~ -execute @e[tag=b7s:_marker_1] ~ ~ ~ execute @e[tag=b7s:_marker_2,rm=0] ~ ~ ~ scoreboard players add @e[tag=b7s:_self] b7s:x 64 -tp @e[tag=b7s:_marker_2] @e[tag=b7s:_marker_1] -tp @e[tag=b7s:_marker_1] ~-32 ~ ~ -execute @e[tag=b7s:_marker_1] ~ ~ ~ execute @e[tag=b7s:_marker_2,rm=0] ~ ~ ~ scoreboard players add @e[tag=b7s:_self] b7s:x 32 -tp @e[tag=b7s:_marker_2] @e[tag=b7s:_marker_1] -tp @e[tag=b7s:_marker_1] ~-16 ~ ~ -execute @e[tag=b7s:_marker_1] ~ ~ ~ execute @e[tag=b7s:_marker_2,rm=0] ~ ~ ~ scoreboard players add @e[tag=b7s:_self] b7s:x 16 -tp @e[tag=b7s:_marker_2] @e[tag=b7s:_marker_1] -tp @e[tag=b7s:_marker_1] ~-8 ~ ~ -execute @e[tag=b7s:_marker_1] ~ ~ ~ execute @e[tag=b7s:_marker_2,rm=0] ~ ~ ~ scoreboard players add @e[tag=b7s:_self] b7s:x 8 -tp @e[tag=b7s:_marker_2] @e[tag=b7s:_marker_1] -tp @e[tag=b7s:_marker_1] ~-4 ~ ~ -execute @e[tag=b7s:_marker_1] ~ ~ ~ execute @e[tag=b7s:_marker_2,rm=0] ~ ~ ~ scoreboard players add @e[tag=b7s:_self] b7s:x 4 -tp @e[tag=b7s:_marker_2] @e[tag=b7s:_marker_1] -tp @e[tag=b7s:_marker_1] ~-2 ~ ~ -execute @e[tag=b7s:_marker_1] ~ ~ ~ execute @e[tag=b7s:_marker_2,rm=0] ~ ~ ~ scoreboard players add @e[tag=b7s:_self] b7s:x 2 -tp @e[tag=b7s:_marker_2] @e[tag=b7s:_marker_1] -tp @e[tag=b7s:_marker_1] ~-1 ~ ~ -execute @e[tag=b7s:_marker_1] ~ ~ ~ execute @e[tag=b7s:_marker_2,rm=0] ~ ~ ~ scoreboard players add @e[tag=b7s:_self] b7s:x 1 -tp @e[tag=b7s:_marker_2] @e[tag=b7s:_marker_1] +summon minecraft:area_effect_cloud ~ ~ ~ {Tags:["b7s:_marker"]} -tp @e[tag=b7s:_marker_1] ~ ~-4096 ~ -execute @e[tag=b7s:_marker_1] ~ ~ ~ execute @e[tag=b7s:_marker_2,rm=0] ~ ~ ~ scoreboard players add @e[tag=b7s:_self] b7s:y 4096 -tp @e[tag=b7s:_marker_2] @e[tag=b7s:_marker_1] -tp @e[tag=b7s:_marker_1] ~ ~-2048 ~ -execute @e[tag=b7s:_marker_1] ~ ~ ~ execute @e[tag=b7s:_marker_2,rm=0] ~ ~ ~ scoreboard players add @e[tag=b7s:_self] b7s:y 2048 -tp @e[tag=b7s:_marker_2] @e[tag=b7s:_marker_1] -tp @e[tag=b7s:_marker_1] ~ ~-1024 ~ -execute @e[tag=b7s:_marker_1] ~ ~ ~ execute @e[tag=b7s:_marker_2,rm=0] ~ ~ ~ scoreboard players add @e[tag=b7s:_self] b7s:y 1024 -tp @e[tag=b7s:_marker_2] @e[tag=b7s:_marker_1] -tp @e[tag=b7s:_marker_1] ~ ~-512 ~ -execute @e[tag=b7s:_marker_1] ~ ~ ~ execute @e[tag=b7s:_marker_2,rm=0] ~ ~ ~ scoreboard players add @e[tag=b7s:_self] b7s:y 512 -tp @e[tag=b7s:_marker_2] @e[tag=b7s:_marker_1] -tp @e[tag=b7s:_marker_1] ~ ~-256 ~ -execute @e[tag=b7s:_marker_1] ~ ~ ~ execute @e[tag=b7s:_marker_2,rm=0] ~ ~ ~ scoreboard players add @e[tag=b7s:_self] b7s:y 256 -tp @e[tag=b7s:_marker_2] @e[tag=b7s:_marker_1] -tp @e[tag=b7s:_marker_1] ~ ~-128 ~ -execute @e[tag=b7s:_marker_1] ~ ~ ~ execute @e[tag=b7s:_marker_2,rm=0] ~ ~ ~ scoreboard players add @e[tag=b7s:_self] b7s:y 128 -tp @e[tag=b7s:_marker_2] @e[tag=b7s:_marker_1] -tp @e[tag=b7s:_marker_1] ~ ~-64 ~ -execute @e[tag=b7s:_marker_1] ~ ~ ~ execute @e[tag=b7s:_marker_2,rm=0] ~ ~ ~ scoreboard players add @e[tag=b7s:_self] b7s:y 64 -tp @e[tag=b7s:_marker_2] @e[tag=b7s:_marker_1] -tp @e[tag=b7s:_marker_1] ~ ~-32 ~ -execute @e[tag=b7s:_marker_1] ~ ~ ~ execute @e[tag=b7s:_marker_2,rm=0] ~ ~ ~ scoreboard players add @e[tag=b7s:_self] b7s:y 32 -tp @e[tag=b7s:_marker_2] @e[tag=b7s:_marker_1] -tp @e[tag=b7s:_marker_1] ~ ~-16 ~ -execute @e[tag=b7s:_marker_1] ~ ~ ~ execute @e[tag=b7s:_marker_2,rm=0] ~ ~ ~ scoreboard players add @e[tag=b7s:_self] b7s:y 16 -tp @e[tag=b7s:_marker_2] @e[tag=b7s:_marker_1] -tp @e[tag=b7s:_marker_1] ~ ~-8 ~ -execute @e[tag=b7s:_marker_1] ~ ~ ~ execute @e[tag=b7s:_marker_2,rm=0] ~ ~ ~ scoreboard players add @e[tag=b7s:_self] b7s:y 8 -tp @e[tag=b7s:_marker_2] @e[tag=b7s:_marker_1] -tp @e[tag=b7s:_marker_1] ~ ~-4 ~ -execute @e[tag=b7s:_marker_1] ~ ~ ~ execute @e[tag=b7s:_marker_2,rm=0] ~ ~ ~ scoreboard players add @e[tag=b7s:_self] b7s:y 4 -tp @e[tag=b7s:_marker_2] @e[tag=b7s:_marker_1] -tp @e[tag=b7s:_marker_1] ~ ~-2 ~ -execute @e[tag=b7s:_marker_1] ~ ~ ~ execute @e[tag=b7s:_marker_2,rm=0] ~ ~ ~ scoreboard players add @e[tag=b7s:_self] b7s:y 2 -tp @e[tag=b7s:_marker_2] @e[tag=b7s:_marker_1] -tp @e[tag=b7s:_marker_1] ~ ~-1 ~ -execute @e[tag=b7s:_marker_1] ~ ~ ~ execute @e[tag=b7s:_marker_2,rm=0] ~ ~ ~ scoreboard players add @e[tag=b7s:_self] b7s:y 1 -tp @e[tag=b7s:_marker_2] @e[tag=b7s:_marker_1] +tp @e[tag=b7s:_marker] ~-33554432 ~ ~ +scoreboard players add @s[score_b7s:success_cnt_min=1] b7s:x 33554432 +tp @e[tag=b7s:_marker] ~-16777216 ~ ~ +scoreboard players add @s[score_b7s:success_cnt_min=1] b7s:x 16777216 +tp @e[tag=b7s:_marker] ~-8388608 ~ ~ +scoreboard players add @s[score_b7s:success_cnt_min=1] b7s:x 8388608 +tp @e[tag=b7s:_marker] ~-4194304 ~ ~ +scoreboard players add @s[score_b7s:success_cnt_min=1] b7s:x 4194304 +tp @e[tag=b7s:_marker] ~-2097152 ~ ~ +scoreboard players add @s[score_b7s:success_cnt_min=1] b7s:x 2097152 +tp @e[tag=b7s:_marker] ~-1048576 ~ ~ +scoreboard players add @s[score_b7s:success_cnt_min=1] b7s:x 1048576 +tp @e[tag=b7s:_marker] ~-524288 ~ ~ +scoreboard players add @s[score_b7s:success_cnt_min=1] b7s:x 524288 +tp @e[tag=b7s:_marker] ~-262144 ~ ~ +scoreboard players add @s[score_b7s:success_cnt_min=1] b7s:x 262144 +tp @e[tag=b7s:_marker] ~-131072 ~ ~ +scoreboard players add @s[score_b7s:success_cnt_min=1] b7s:x 131072 +tp @e[tag=b7s:_marker] ~-65536 ~ ~ +scoreboard players add @s[score_b7s:success_cnt_min=1] b7s:x 65536 +tp @e[tag=b7s:_marker] ~-32768 ~ ~ +scoreboard players add @s[score_b7s:success_cnt_min=1] b7s:x 32768 +tp @e[tag=b7s:_marker] ~-16384 ~ ~ +scoreboard players add @s[score_b7s:success_cnt_min=1] b7s:x 16384 +tp @e[tag=b7s:_marker] ~-8192 ~ ~ +scoreboard players add @s[score_b7s:success_cnt_min=1] b7s:x 8192 +tp @e[tag=b7s:_marker] ~-4096 ~ ~ +scoreboard players add @s[score_b7s:success_cnt_min=1] b7s:x 4096 +tp @e[tag=b7s:_marker] ~-2048 ~ ~ +scoreboard players add @s[score_b7s:success_cnt_min=1] b7s:x 2048 +tp @e[tag=b7s:_marker] ~-1024 ~ ~ +scoreboard players add @s[score_b7s:success_cnt_min=1] b7s:x 1024 +tp @e[tag=b7s:_marker] ~-512 ~ ~ +scoreboard players add @s[score_b7s:success_cnt_min=1] b7s:x 512 +tp @e[tag=b7s:_marker] ~-256 ~ ~ +scoreboard players add @s[score_b7s:success_cnt_min=1] b7s:x 256 +tp @e[tag=b7s:_marker] ~-128 ~ ~ +scoreboard players add @s[score_b7s:success_cnt_min=1] b7s:x 128 +tp @e[tag=b7s:_marker] ~-64 ~ ~ +scoreboard players add @s[score_b7s:success_cnt_min=1] b7s:x 64 +tp @e[tag=b7s:_marker] ~-32 ~ ~ +scoreboard players add @s[score_b7s:success_cnt_min=1] b7s:x 32 +tp @e[tag=b7s:_marker] ~-16 ~ ~ +scoreboard players add @s[score_b7s:success_cnt_min=1] b7s:x 16 +tp @e[tag=b7s:_marker] ~-8 ~ ~ +scoreboard players add @s[score_b7s:success_cnt_min=1] b7s:x 8 +tp @e[tag=b7s:_marker] ~-4 ~ ~ +scoreboard players add @s[score_b7s:success_cnt_min=1] b7s:x 4 +tp @e[tag=b7s:_marker] ~-2 ~ ~ +scoreboard players add @s[score_b7s:success_cnt_min=1] b7s:x 2 +tp @e[tag=b7s:_marker] ~-1 ~ ~ +scoreboard players add @s[score_b7s:success_cnt_min=1] b7s:x 1 -tp @e[tag=b7s:_marker_1] ~ ~ ~-33554432 -execute @e[tag=b7s:_marker_1] ~ ~ ~ execute @e[tag=b7s:_marker_2,rm=0] ~ ~ ~ scoreboard players add @e[tag=b7s:_self] b7s:z 33554432 -tp @e[tag=b7s:_marker_2] @e[tag=b7s:_marker_1] -tp @e[tag=b7s:_marker_1] ~ ~ ~-16777216 -execute @e[tag=b7s:_marker_1] ~ ~ ~ execute @e[tag=b7s:_marker_2,rm=0] ~ ~ ~ scoreboard players add @e[tag=b7s:_self] b7s:z 16777216 -tp @e[tag=b7s:_marker_2] @e[tag=b7s:_marker_1] -tp @e[tag=b7s:_marker_1] ~ ~ ~-8388608 -execute @e[tag=b7s:_marker_1] ~ ~ ~ execute @e[tag=b7s:_marker_2,rm=0] ~ ~ ~ scoreboard players add @e[tag=b7s:_self] b7s:z 8388608 -tp @e[tag=b7s:_marker_2] @e[tag=b7s:_marker_1] -tp @e[tag=b7s:_marker_1] ~ ~ ~-4194304 -execute @e[tag=b7s:_marker_1] ~ ~ ~ execute @e[tag=b7s:_marker_2,rm=0] ~ ~ ~ scoreboard players add @e[tag=b7s:_self] b7s:z 4194304 -tp @e[tag=b7s:_marker_2] @e[tag=b7s:_marker_1] -tp @e[tag=b7s:_marker_1] ~ ~ ~-2097152 -execute @e[tag=b7s:_marker_1] ~ ~ ~ execute @e[tag=b7s:_marker_2,rm=0] ~ ~ ~ scoreboard players add @e[tag=b7s:_self] b7s:z 2097152 -tp @e[tag=b7s:_marker_2] @e[tag=b7s:_marker_1] -tp @e[tag=b7s:_marker_1] ~ ~ ~-1048576 -execute @e[tag=b7s:_marker_1] ~ ~ ~ execute @e[tag=b7s:_marker_2,rm=0] ~ ~ ~ scoreboard players add @e[tag=b7s:_self] b7s:z 1048576 -tp @e[tag=b7s:_marker_2] @e[tag=b7s:_marker_1] -tp @e[tag=b7s:_marker_1] ~ ~ ~-524288 -execute @e[tag=b7s:_marker_1] ~ ~ ~ execute @e[tag=b7s:_marker_2,rm=0] ~ ~ ~ scoreboard players add @e[tag=b7s:_self] b7s:z 524288 -tp @e[tag=b7s:_marker_2] @e[tag=b7s:_marker_1] -tp @e[tag=b7s:_marker_1] ~ ~ ~-262144 -execute @e[tag=b7s:_marker_1] ~ ~ ~ execute @e[tag=b7s:_marker_2,rm=0] ~ ~ ~ scoreboard players add @e[tag=b7s:_self] b7s:z 262144 -tp @e[tag=b7s:_marker_2] @e[tag=b7s:_marker_1] -tp @e[tag=b7s:_marker_1] ~ ~ ~-131072 -execute @e[tag=b7s:_marker_1] ~ ~ ~ execute @e[tag=b7s:_marker_2,rm=0] ~ ~ ~ scoreboard players add @e[tag=b7s:_self] b7s:z 131072 -tp @e[tag=b7s:_marker_2] @e[tag=b7s:_marker_1] -tp @e[tag=b7s:_marker_1] ~ ~ ~-65536 -execute @e[tag=b7s:_marker_1] ~ ~ ~ execute @e[tag=b7s:_marker_2,rm=0] ~ ~ ~ scoreboard players add @e[tag=b7s:_self] b7s:z 65536 -tp @e[tag=b7s:_marker_2] @e[tag=b7s:_marker_1] -tp @e[tag=b7s:_marker_1] ~ ~ ~-32768 -execute @e[tag=b7s:_marker_1] ~ ~ ~ execute @e[tag=b7s:_marker_2,rm=0] ~ ~ ~ scoreboard players add @e[tag=b7s:_self] b7s:z 32768 -tp @e[tag=b7s:_marker_2] @e[tag=b7s:_marker_1] -tp @e[tag=b7s:_marker_1] ~ ~ ~-16384 -execute @e[tag=b7s:_marker_1] ~ ~ ~ execute @e[tag=b7s:_marker_2,rm=0] ~ ~ ~ scoreboard players add @e[tag=b7s:_self] b7s:z 16384 -tp @e[tag=b7s:_marker_2] @e[tag=b7s:_marker_1] -tp @e[tag=b7s:_marker_1] ~ ~ ~-8192 -execute @e[tag=b7s:_marker_1] ~ ~ ~ execute @e[tag=b7s:_marker_2,rm=0] ~ ~ ~ scoreboard players add @e[tag=b7s:_self] b7s:z 8192 -tp @e[tag=b7s:_marker_2] @e[tag=b7s:_marker_1] -tp @e[tag=b7s:_marker_1] ~ ~ ~-4096 -execute @e[tag=b7s:_marker_1] ~ ~ ~ execute @e[tag=b7s:_marker_2,rm=0] ~ ~ ~ scoreboard players add @e[tag=b7s:_self] b7s:z 4096 -tp @e[tag=b7s:_marker_2] @e[tag=b7s:_marker_1] -tp @e[tag=b7s:_marker_1] ~ ~ ~-2048 -execute @e[tag=b7s:_marker_1] ~ ~ ~ execute @e[tag=b7s:_marker_2,rm=0] ~ ~ ~ scoreboard players add @e[tag=b7s:_self] b7s:z 2048 -tp @e[tag=b7s:_marker_2] @e[tag=b7s:_marker_1] -tp @e[tag=b7s:_marker_1] ~ ~ ~-1024 -execute @e[tag=b7s:_marker_1] ~ ~ ~ execute @e[tag=b7s:_marker_2,rm=0] ~ ~ ~ scoreboard players add @e[tag=b7s:_self] b7s:z 1024 -tp @e[tag=b7s:_marker_2] @e[tag=b7s:_marker_1] -tp @e[tag=b7s:_marker_1] ~ ~ ~-512 -execute @e[tag=b7s:_marker_1] ~ ~ ~ execute @e[tag=b7s:_marker_2,rm=0] ~ ~ ~ scoreboard players add @e[tag=b7s:_self] b7s:z 512 -tp @e[tag=b7s:_marker_2] @e[tag=b7s:_marker_1] -tp @e[tag=b7s:_marker_1] ~ ~ ~-256 -execute @e[tag=b7s:_marker_1] ~ ~ ~ execute @e[tag=b7s:_marker_2,rm=0] ~ ~ ~ scoreboard players add @e[tag=b7s:_self] b7s:z 256 -tp @e[tag=b7s:_marker_2] @e[tag=b7s:_marker_1] -tp @e[tag=b7s:_marker_1] ~ ~ ~-128 -execute @e[tag=b7s:_marker_1] ~ ~ ~ execute @e[tag=b7s:_marker_2,rm=0] ~ ~ ~ scoreboard players add @e[tag=b7s:_self] b7s:z 128 -tp @e[tag=b7s:_marker_2] @e[tag=b7s:_marker_1] -tp @e[tag=b7s:_marker_1] ~ ~ ~-64 -execute @e[tag=b7s:_marker_1] ~ ~ ~ execute @e[tag=b7s:_marker_2,rm=0] ~ ~ ~ scoreboard players add @e[tag=b7s:_self] b7s:z 64 -tp @e[tag=b7s:_marker_2] @e[tag=b7s:_marker_1] -tp @e[tag=b7s:_marker_1] ~ ~ ~-32 -execute @e[tag=b7s:_marker_1] ~ ~ ~ execute @e[tag=b7s:_marker_2,rm=0] ~ ~ ~ scoreboard players add @e[tag=b7s:_self] b7s:z 32 -tp @e[tag=b7s:_marker_2] @e[tag=b7s:_marker_1] -tp @e[tag=b7s:_marker_1] ~ ~ ~-16 -execute @e[tag=b7s:_marker_1] ~ ~ ~ execute @e[tag=b7s:_marker_2,rm=0] ~ ~ ~ scoreboard players add @e[tag=b7s:_self] b7s:z 16 -tp @e[tag=b7s:_marker_2] @e[tag=b7s:_marker_1] -tp @e[tag=b7s:_marker_1] ~ ~ ~-8 -execute @e[tag=b7s:_marker_1] ~ ~ ~ execute @e[tag=b7s:_marker_2,rm=0] ~ ~ ~ scoreboard players add @e[tag=b7s:_self] b7s:z 8 -tp @e[tag=b7s:_marker_2] @e[tag=b7s:_marker_1] -tp @e[tag=b7s:_marker_1] ~ ~ ~-4 -execute @e[tag=b7s:_marker_1] ~ ~ ~ execute @e[tag=b7s:_marker_2,rm=0] ~ ~ ~ scoreboard players add @e[tag=b7s:_self] b7s:z 4 -tp @e[tag=b7s:_marker_2] @e[tag=b7s:_marker_1] -tp @e[tag=b7s:_marker_1] ~ ~ ~-2 -execute @e[tag=b7s:_marker_1] ~ ~ ~ execute @e[tag=b7s:_marker_2,rm=0] ~ ~ ~ scoreboard players add @e[tag=b7s:_self] b7s:z 2 -tp @e[tag=b7s:_marker_2] @e[tag=b7s:_marker_1] -tp @e[tag=b7s:_marker_1] ~ ~ ~-1 -execute @e[tag=b7s:_marker_1] ~ ~ ~ execute @e[tag=b7s:_marker_2,rm=0] ~ ~ ~ scoreboard players add @e[tag=b7s:_self] b7s:z 1 +tp @e[tag=b7s:_marker] ~ ~-4096 ~ +scoreboard players add @s[score_b7s:success_cnt_min=1] b7s:y 4096 +tp @e[tag=b7s:_marker] ~ ~-2048 ~ +scoreboard players add @s[score_b7s:success_cnt_min=1] b7s:y 2048 +tp @e[tag=b7s:_marker] ~ ~-1024 ~ +scoreboard players add @s[score_b7s:success_cnt_min=1] b7s:y 1024 +tp @e[tag=b7s:_marker] ~ ~-512 ~ +scoreboard players add @s[score_b7s:success_cnt_min=1] b7s:y 512 +tp @e[tag=b7s:_marker] ~ ~-256 ~ +scoreboard players add @s[score_b7s:success_cnt_min=1] b7s:y 256 +tp @e[tag=b7s:_marker] ~ ~-128 ~ +scoreboard players add @s[score_b7s:success_cnt_min=1] b7s:y 128 +tp @e[tag=b7s:_marker] ~ ~-64 ~ +scoreboard players add @s[score_b7s:success_cnt_min=1] b7s:y 64 +tp @e[tag=b7s:_marker] ~ ~-32 ~ +scoreboard players add @s[score_b7s:success_cnt_min=1] b7s:y 32 +tp @e[tag=b7s:_marker] ~ ~-16 ~ +scoreboard players add @s[score_b7s:success_cnt_min=1] b7s:y 16 +tp @e[tag=b7s:_marker] ~ ~-8 ~ +scoreboard players add @s[score_b7s:success_cnt_min=1] b7s:y 8 +tp @e[tag=b7s:_marker] ~ ~-4 ~ +scoreboard players add @s[score_b7s:success_cnt_min=1] b7s:y 4 +tp @e[tag=b7s:_marker] ~ ~-2 ~ +scoreboard players add @s[score_b7s:success_cnt_min=1] b7s:y 2 +tp @e[tag=b7s:_marker] ~ ~-1 ~ +scoreboard players add @s[score_b7s:success_cnt_min=1] b7s:y 1 -kill @e[tag=b7s:_marker_1] -kill @e[tag=b7s:_marker_2] +tp @e[tag=b7s:_marker] ~ ~ ~-33554432 +scoreboard players add @s[score_b7s:success_cnt_min=1] b7s:z 33554432 +tp @e[tag=b7s:_marker] ~ ~ ~-16777216 +scoreboard players add @s[score_b7s:success_cnt_min=1] b7s:z 16777216 +tp @e[tag=b7s:_marker] ~ ~ ~-8388608 +scoreboard players add @s[score_b7s:success_cnt_min=1] b7s:z 8388608 +tp @e[tag=b7s:_marker] ~ ~ ~-4194304 +scoreboard players add @s[score_b7s:success_cnt_min=1] b7s:z 4194304 +tp @e[tag=b7s:_marker] ~ ~ ~-2097152 +scoreboard players add @s[score_b7s:success_cnt_min=1] b7s:z 2097152 +tp @e[tag=b7s:_marker] ~ ~ ~-1048576 +scoreboard players add @s[score_b7s:success_cnt_min=1] b7s:z 1048576 +tp @e[tag=b7s:_marker] ~ ~ ~-524288 +scoreboard players add @s[score_b7s:success_cnt_min=1] b7s:z 524288 +tp @e[tag=b7s:_marker] ~ ~ ~-262144 +scoreboard players add @s[score_b7s:success_cnt_min=1] b7s:z 262144 +tp @e[tag=b7s:_marker] ~ ~ ~-131072 +scoreboard players add @s[score_b7s:success_cnt_min=1] b7s:z 131072 +tp @e[tag=b7s:_marker] ~ ~ ~-65536 +scoreboard players add @s[score_b7s:success_cnt_min=1] b7s:z 65536 +tp @e[tag=b7s:_marker] ~ ~ ~-32768 +scoreboard players add @s[score_b7s:success_cnt_min=1] b7s:z 32768 +tp @e[tag=b7s:_marker] ~ ~ ~-16384 +scoreboard players add @s[score_b7s:success_cnt_min=1] b7s:z 16384 +tp @e[tag=b7s:_marker] ~ ~ ~-8192 +scoreboard players add @s[score_b7s:success_cnt_min=1] b7s:z 8192 +tp @e[tag=b7s:_marker] ~ ~ ~-4096 +scoreboard players add @s[score_b7s:success_cnt_min=1] b7s:z 4096 +tp @e[tag=b7s:_marker] ~ ~ ~-2048 +scoreboard players add @s[score_b7s:success_cnt_min=1] b7s:z 2048 +tp @e[tag=b7s:_marker] ~ ~ ~-1024 +scoreboard players add @s[score_b7s:success_cnt_min=1] b7s:z 1024 +tp @e[tag=b7s:_marker] ~ ~ ~-512 +scoreboard players add @s[score_b7s:success_cnt_min=1] b7s:z 512 +tp @e[tag=b7s:_marker] ~ ~ ~-256 +scoreboard players add @s[score_b7s:success_cnt_min=1] b7s:z 256 +tp @e[tag=b7s:_marker] ~ ~ ~-128 +scoreboard players add @s[score_b7s:success_cnt_min=1] b7s:z 128 +tp @e[tag=b7s:_marker] ~ ~ ~-64 +scoreboard players add @s[score_b7s:success_cnt_min=1] b7s:z 64 +tp @e[tag=b7s:_marker] ~ ~ ~-32 +scoreboard players add @s[score_b7s:success_cnt_min=1] b7s:z 32 +tp @e[tag=b7s:_marker] ~ ~ ~-16 +scoreboard players add @s[score_b7s:success_cnt_min=1] b7s:z 16 +tp @e[tag=b7s:_marker] ~ ~ ~-8 +scoreboard players add @s[score_b7s:success_cnt_min=1] b7s:z 8 +tp @e[tag=b7s:_marker] ~ ~ ~-4 +scoreboard players add @s[score_b7s:success_cnt_min=1] b7s:z 4 +tp @e[tag=b7s:_marker] ~ ~ ~-2 +scoreboard players add @s[score_b7s:success_cnt_min=1] b7s:z 2 +tp @e[tag=b7s:_marker] ~ ~ ~-1 +scoreboard players add @s[score_b7s:success_cnt_min=1] b7s:z 1 -scoreboard players tag @s remove b7s:_self +kill @e[tag=b7s:_marker] diff --git a/functions/b7s/entity/get_pos.py b/functions/b7s/entity/get_pos.py index a9027df..f4c025c 100644 --- a/functions/b7s/entity/get_pos.py +++ b/functions/b7s/entity/get_pos.py @@ -16,36 +16,26 @@ print('# Usage:') print('# /execute ~ ~ ~ function b7s:entity/get_pos') print() -print('scoreboard players tag @s add b7s:_self') -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() -print('summon minecraft:area_effect_cloud ~ ~ ~ {Tags:["b7s:_marker_1"]}') -print('summon minecraft:area_effect_cloud ~ ~ ~ {Tags:["b7s:_marker_2"]}') +print('summon minecraft:area_effect_cloud ~ ~ ~ {Tags:["b7s:_marker"]}') print() for exponent in range(25, -1, -1): - print('tp @e[tag=b7s:_marker_1] ~{} ~ ~'.format(-2 ** exponent)) - print('execute @e[tag=b7s:_marker_1] ~ ~ ~ execute @e[tag=b7s:_marker_2,rm=0] ~ ~ ~ scoreboard players add @e[tag=b7s:_self] b7s:x {}'.format(2 ** exponent)) - print('tp @e[tag=b7s:_marker_2] @e[tag=b7s:_marker_1]') + print('tp @e[tag=b7s:_marker] ~{} ~ ~'.format(-2 ** exponent)) + print('scoreboard players add @s[score_b7s:success_cnt_min=1] b7s:x {}'.format(2 ** exponent)) print() for exponent in range(12, -1, -1): - print('tp @e[tag=b7s:_marker_1] ~ ~{} ~'.format(-2 ** exponent)) - print('execute @e[tag=b7s:_marker_1] ~ ~ ~ execute @e[tag=b7s:_marker_2,rm=0] ~ ~ ~ scoreboard players add @e[tag=b7s:_self] b7s:y {}'.format(2 ** exponent)) - print('tp @e[tag=b7s:_marker_2] @e[tag=b7s:_marker_1]') + print('tp @e[tag=b7s:_marker] ~ ~{} ~'.format(-2 ** exponent)) + print('scoreboard players add @s[score_b7s:success_cnt_min=1] b7s:y {}'.format(2 ** exponent)) print() for exponent in range(25, -1, -1): - print('tp @e[tag=b7s:_marker_1] ~ ~ ~{}'.format(-2 ** exponent)) - print('execute @e[tag=b7s:_marker_1] ~ ~ ~ execute @e[tag=b7s:_marker_2,rm=0] ~ ~ ~ scoreboard players add @e[tag=b7s:_self] b7s:z {}'.format(2 ** exponent)) - if exponent != 0: - print('tp @e[tag=b7s:_marker_2] @e[tag=b7s:_marker_1]') + print('tp @e[tag=b7s:_marker] ~ ~ ~{}'.format(-2 ** exponent)) + print('scoreboard players add @s[score_b7s:success_cnt_min=1] b7s:z {}'.format(2 ** exponent)) print() -print('kill @e[tag=b7s:_marker_1]') -print('kill @e[tag=b7s:_marker_2]') -print() -print('scoreboard players tag @s remove b7s:_self') +print('kill @e[tag=b7s:_marker]') diff --git a/functions/b7s/entity/player/update.mcfunction b/functions/b7s/entity/player/update.mcfunction index 160ce70..8ad241b 100644 --- a/functions/b7s/entity/player/update.mcfunction +++ b/functions/b7s/entity/player/update.mcfunction @@ -10,6 +10,12 @@ function b7sp:entity/player/pre_update scoreboard players reset @s[score_b7s:_left_min=1] b7s:req_from scoreboard players reset @s[score_b7s:_left_min=1] b7s:_left +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 @@ -17,28 +23,32 @@ 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[tag=b7s:initialized] b7s:tpspawn -execute @s[tag=b7s:initialized,score_b7s:tpspawn_min=1] ~ ~ ~ function b7s:command/tpspawn -scoreboard players set @s[tag=b7s:initialized,score_b7s:tpspawn_min=1] b7s:tpspawn 0 +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[tag=b7s:initialized] b7s:sethome -execute @s[tag=b7s:initialized,score_b7s:sethome_min=1] ~ ~ ~ function b7s:command/sethome -scoreboard players set @s[tag=b7s:initialized,score_b7s:sethome_min=1] b7s:sethome 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[tag=b7s:initialized] b7s:tphome -execute @s[tag=b7s:initialized,score_b7s:tphome_min=1] ~ ~ ~ function b7s:command/tphome -scoreboard players set @s[tag=b7s:initialized,score_b7s:tphome_min=1] b7s:tphome 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[tag=b7s:initialized] b7s:tpback -execute @s[tag=b7s:initialized,score_b7s:tpback_min=1] ~ ~ ~ function b7s:command/tpback -scoreboard players set @s[tag=b7s:initialized,score_b7s:tpback_min=1] b7s:tpback 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[tag=b7s:initialized] b7s:tpreq -execute @s[tag=b7s:initialized,score_b7s:tpreq_min=1] ~ ~ ~ function b7s:command/tpreq -scoreboard players set @s[tag=b7s:initialized,score_b7s:tpreq_min=1] b7s:tpreq 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[tag=b7s:initialized] b7s:tpaccept -execute @s[tag=b7s:initialized,score_b7s:tpaccept_min=1] ~ ~ ~ function b7s:command/tpaccept -scoreboard players set @s[tag=b7s:initialized,score_b7s:tpaccept_min=1] b7s:tpaccept 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/functions/b7s/entity/pulse.mcfunction b/functions/b7s/entity/pulse.mcfunction index b23c3f1..0835da9 100644 --- a/functions/b7s/entity/pulse.mcfunction +++ b/functions/b7s/entity/pulse.mcfunction @@ -9,5 +9,6 @@ # Usage: # execute ~ ~ ~ function b7s:entity/pulse +function b7s:entity/track_success_cnt fill ~ ~ ~ ~ ~ ~ minecraft:redstone_block 0 replace minecraft:air -fill ~ ~ ~ ~ ~ ~ minecraft:air 0 replace minecraft:redstone_block +execute @s[score_b7s:success_cnt_min=1] ~ ~ ~ setblock ~ ~ ~ minecraft:air diff --git a/functions/b7s/entity/track_aff_blocks.mcfunction b/functions/b7s/entity/track_aff_blocks.mcfunction new file mode 100644 index 0000000..c8a65ad --- /dev/null +++ b/functions/b7s/entity/track_aff_blocks.mcfunction @@ -0,0 +1,13 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.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/functions/b7s/entity/track_aff_entities.mcfunction b/functions/b7s/entity/track_aff_entities.mcfunction new file mode 100644 index 0000000..6d24cfa --- /dev/null +++ b/functions/b7s/entity/track_aff_entities.mcfunction @@ -0,0 +1,13 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.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/functions/b7s/entity/track_aff_items.mcfunction b/functions/b7s/entity/track_aff_items.mcfunction new file mode 100644 index 0000000..a185caf --- /dev/null +++ b/functions/b7s/entity/track_aff_items.mcfunction @@ -0,0 +1,13 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.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/functions/b7s/entity/track_query_result.mcfunction b/functions/b7s/entity/track_query_result.mcfunction new file mode 100644 index 0000000..14a69a9 --- /dev/null +++ b/functions/b7s/entity/track_query_result.mcfunction @@ -0,0 +1,13 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.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/functions/b7s/entity/track_success_cnt.mcfunction b/functions/b7s/entity/track_success_cnt.mcfunction new file mode 100644 index 0000000..b018ed2 --- /dev/null +++ b/functions/b7s/entity/track_success_cnt.mcfunction @@ -0,0 +1,13 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.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/functions/b7s/install.mcfunction b/functions/b7s/install.mcfunction index 59aeb3a..c85b60c 100644 --- a/functions/b7s/install.mcfunction +++ b/functions/b7s/install.mcfunction @@ -12,13 +12,16 @@ gamerule commandBlockOutput false gamerule logAdminCommands false scoreboard objectives add b7s:_tmp dummy - scoreboard objectives add b7s:_left stat.leaveGame -scoreboard objectives add b7s:id dummy +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 +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 @@ -28,6 +31,7 @@ scoreboard objectives add b7s:z dummy scoreboard objectives add b7s:rot_x dummy scoreboard objectives add b7s:rot_y dummy +scoreboard objectives add b7s:info trigger scoreboard objectives add b7s:sethome trigger scoreboard objectives add b7s:tphome trigger scoreboard objectives add b7s:tpback trigger diff --git a/readme.md b/readme.md index 9ed9c79..f7b45ff 100644 --- a/readme.md +++ b/readme.md @@ -22,6 +22,9 @@ extend the server's functionality. BareBones installs a series of custom commands, accessible through triggers. Below are all commands accessible as of the current version. +### `/trigger b7s:info set 1` +Displays basic information about the BareBones data pack. + ### `/trigger b7s:sethome set 1` Sets your home location. You can teleport back to it using `/trigger b7s:tphome set 1`