Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- INIT:/gamerule commandBlockOutput false
- INIT:/gamerule logAdminCommands false
- INIT:/scoreboard objectives add growNumerator dummy
- INIT:/scoreboard objectives add growDenominator dummy
- INIT:/scoreboard objectives add plantId dummy
- INIT:/scoreboard objectives add farmlandValue dummy
- INIT:/scoreboard objectives add selectorVar dummy
- INIT:/scoreboard objectives add calcVar dummy
- INIT:/scoreboard players set #2 calcVar 2
- INIT:/scoreboard players set #4 calcVar 4
- INIT:/scoreboard players set #100 calcVar 100
- INIT:/scoreboard players set #2500 calcVar 2500
- INIT:/scoreboard objectives add calcVar2 dummy
- #
- INIT:/scoreboard objectives add userTrigger trigger
- INIT:/scoreboard players set @a userTrigger 2
- #
- /scoreboard players tag @a[tag=growthRunOnce] remove growthRun
- /scoreboard players tag @a[tag=growthRunOnce] remove growthRunOnce
- #
- /tellraw @a[score_userTrigger_min=1,score_userTrigger=2] ["",{"text":"Growth chance calculator","bold":true},{"text":"\n• Author: ","extra":[{"text":"Marcono1234","underlined":true,"color":"blue","clickEvent":{"action":"open_url","value":"https://reddit.com/u/Marcono1234"},"extra":[{"text":"⬀","underlined":false}]}]},{"text":"\n• Changed gamerules:","extra":["",{"text":"\n • commandBlockOutput = ","extra":[{"text":"false","color":"red"}]},{"text":"\n • logAdminCommands = ","extra":[{"text":"false","color":"red"}]}]},{"text":"\n• Added scoreboard objectives:","extra":["",{"text":"\n • growNumerator (","extra":["",{"text":"dummy","color":"dark_gray"},")"]},{"text":"\n • growDenominator (","extra":["",{"text":"dummy","color":"dark_gray"},")"]},{"text":"\n • plantId (","extra":["",{"text":"dummy","color":"dark_gray"},")"]},{"text":"\n • farmlandValue (","extra":["",{"text":"dummy","color":"dark_gray"},")"]},{"text":"\n • selectorVar (","extra":["",{"text":"dummy","color":"dark_gray"},")"]},{"text":"\n • calcVar (","extra":["",{"text":"dummy","color":"dark_gray"},")"]},{"text":"\n • calcVar2 (","extra":["",{"text":"dummy","color":"dark_gray"},")"]},{"text":"\n • userTrigger (","extra":["",{"text":"trigger","color":"gray"},")"]}]},{"text":"\n• Scoreboard constants:","extra":["",{"text":"\n • #2 (","extra":["",{"text":"calcVar","color":"dark_gray"},") = 2"]},{"text":"\n • #4 (","extra":["",{"text":"calcVar","color":"dark_gray"},") = 4"]},{"text":"\n • #100 (","extra":["",{"text":"calcVar","color":"dark_gray"},") = 100"]},{"text":"\n • #2500 (","extra":["",{"text":"calcVar","color":"dark_gray"},") = 2500"]}]},{"text":"\n• Important trigger commands:","extra":["\n • Print this overview: ",{"text":"/trigger userTrigger set 1","color":"gold","clickEvent":{"action":"run_command","value":"/trigger userTrigger set 1"}},"\n • Give usage book: ",{"text":"/trigger userTrigger set 3","color":"gold","clickEvent":{"action":"run_command","value":"/trigger userTrigger set 3"}},"\n • Both of the above: ",{"text":"/trigger userTrigger set 2","color":"gold","clickEvent":{"action":"run_command","value":"/trigger userTrigger set 2"}}]}]
- /give @a[score_userTrigger_min=2,score_userTrigger=3] written_book 1 0 {title:"§2Growth chance calculator",author:"Marcono1234",pages:["[\"\",{\"text\":\"Index\",\"bold\":true},{\"text\":\"\n1. \",\"extra\":[{\"text\":\"Actions\",\"color\":\"blue\",\"underlined\":true,\"clickEvent\":{\"action\":\"change_page\",\"value\":2}}]},{\"text\":\"\n2. \",\"extra\":[{\"text\":\"Growth chance\",\"color\":\"blue\",\"underlined\":true,\"clickEvent\":{\"action\":\"change_page\",\"value\":3}}]},{\"text\":\"\n3. \",\"extra\":[{\"text\":\"Things to note\",\"color\":\"blue\",\"underlined\":true,\"clickEvent\":{\"action\":\"change_page\",\"value\":5}}]},{\"text\":\"\n4. \",\"extra\":[{\"text\":\"Color coding\",\"color\":\"blue\",\"underlined\":true,\"clickEvent\":{\"action\":\"change_page\",\"value\":8}}]},{\"text\":\"\n5. \",\"extra\":[{\"text\":\"Trigger commands\",\"color\":\"blue\",\"underlined\":true,\"clickEvent\":{\"action\":\"change_page\",\"value\":9}}]}]","[\"\",{\"text\":\"1. Actions\",\"bold\":true},{\"text\":\"\n• Run once:\",\"extra\":[\"\n • \",{\"text\":\"[Run]\",\"color\":\"green\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger userTrigger set 10\"}}]},{\"text\":\"\n\n• Run always:\",\"extra\":[\"\n • \",{\"text\":\"[Start]\",\"color\":\"green\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger userTrigger set 11\"}},\"\n • \",{\"text\":\"[Stop]\",\"color\":\"red\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger userTrigger set 12\"}}]},{\"text\":\"\n\n• Print output:\",\"extra\":[\"\",{\"text\":\"\n Can select multiple\",\"color\":\"gray\",\"italic\":true},\"\n • \",{\"text\":\"[Chat]\",\"color\":\"gold\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger userTrigger set 101\"}},\"\n • \",{\"text\":\"[Actionbar]\",\"color\":\"gold\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger userTrigger set 102\"}},\"\n • \",{\"text\":\"[Clear]\",\"color\":\"red\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger userTrigger set 100\"}}]}]","[\"\",{\"text\":\"2. Growth chance\",\"bold\":true},\"\nThe growth chance is based on how many farmland blocks are around a plant, the moisture value of the farmland and what other plants are around. You can read more about that in this \",{\"text\":\"Minecraft Wiki article\",\"underlined\":true,\"color\":\"blue\",\"clickEvent\":{\"action\":\"open_url\",\"value\":\"http://minecraft.gamepedia.com/Tutorials/Crop_farming#Growth_rate\"},\"extra\":[{\"text\":\"⬀\",\"underlined\":false}]},\".\"]","[\"For pumpkin and melon plants the position for a pumpkin or melon to grow is chosen randomly. This means the more positions are occupied, the lower is the chance for the pumpkin or melon to grow.\"]","[\"\",{\"text\":\"3. Things to note\",\"bold\":true},{\"text\":\"\n• This calculates only\n the chance for\n plants which need\n farmland. Currently\n included plants:\",\"extra\":[\"\",\"\n • wheat\",\"\n • carrots\",\"\n • potatoes\",\"\n • beetroots\",\"\n • pumpkin_stem\",\"\n • melon_stem\"]}]","[\"• The y position of the\n player is offset by\n +0.5\",\"\n• If a plant is at the\n position of the\n player, the plant\n type is considered\n in the calculation\",\"\n• Plants require a light\n level of 9 or more\n above them to grow.\n The calculator \",{\"text\":\"does\n not\",\"color\":\"red\"},\" consider that\"]","[\"• The printed fraction\n should be the same\n the game calculates,\n however the\n percentage might be\n rounded\"]","[\"\",{\"text\":\"4. Color coding\",\"bold\":true},{\"text\":\"\n inclusive - exclusive\",\"color\":\"gray\",\"italic\":true},\"\n• \",{\"text\":\"0% - 6%\",\"color\":\"dark_red\"},\"\n• \",{\"text\":\"6% - 12%\",\"color\":\"red\"},\"\n• \",{\"text\":\"12% - 18%\",\"color\":\"gold\"},\"\n• \",{\"text\":\"18% - 24%\",\"color\":\"yellow\"},{\"text\":\" 18% - 24%\",\"color\":\"gray\",\"italic\":true},\"\n• \",{\"text\":\"24% - 29%\",\"color\":\"green\"},\"\n• \",{\"text\":\"29% - 34%\",\"color\":\"dark_green\"}]","[\"\",{\"text\":\"5. Trigger\n commands\",\"bold\":true},\"\n• Print overview:\n \",{\"text\":\"/trigger\n userTrigger set 1\",\"color\":\"gold\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger userTrigger set 1\"}},\"\n• Give usage book:\n \",{\"text\":\"/trigger\n userTrigger set 3\",\"color\":\"gold\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger userTrigger set 3\"}},\"\n• Both of the above:\n \",{\"text\":\"/trigger\n userTrigger set 2\",\"color\":\"gold\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger userTrigger set 2\"}}]"]}
- #
- /scoreboard players tag @a[score_userTrigger_min=10,score_userTrigger=10] add growthRunOnce
- /scoreboard players tag @a[score_userTrigger_min=10,score_userTrigger=10] add growthRun
- /scoreboard players tag @a[score_userTrigger_min=11,score_userTrigger=11] add growthRun
- /scoreboard players tag @a[score_userTrigger_min=12,score_userTrigger=12] remove growthRun
- #
- /scoreboard players tag @a[score_userTrigger_min=100,score_userTrigger=100] remove growthPrintChat
- /scoreboard players tag @a[score_userTrigger_min=100,score_userTrigger=100] remove growthPrintActionbar
- /scoreboard players tag @a[score_userTrigger_min=101,score_userTrigger=101] add growthPrintChat
- /scoreboard players tag @a[score_userTrigger_min=102,score_userTrigger=102] add growthPrintActionbar
- #
- #
- #
- /execute @a[tag=growthRun] ~ ~ ~ /summon armor_stand ~ ~0.5 ~ {Marker:1b,NoGravity:1b,Invisible:1b,Tags:["cropCenterMarker","cropMarker","getPlantId", "getFarmlandValue"]}
- /execute @e[tag=cropCenterMarker] ~ ~ ~ /summon armor_stand ~1 ~ ~ {Marker:1b,NoGravity:1b,Invisible:1b,Tags:["cropMarker","cropSideMarker","getPlantId","getFarmlandValue","X"]}
- /execute @e[tag=cropCenterMarker] ~ ~ ~ /summon armor_stand ~1 ~ ~1 {Marker:1b,NoGravity:1b,Invisible:1b,Tags:["cropMarker","cropSideMarker","getPlantId","getFarmlandValue","diagonal"]}
- /execute @e[tag=cropCenterMarker] ~ ~ ~ /summon armor_stand ~ ~ ~1 {Marker:1b,NoGravity:1b,Invisible:1b,Tags:["cropMarker","cropSideMarker","getPlantId", "getFarmlandValue","Z"]}
- /execute @e[tag=cropCenterMarker] ~ ~ ~ /summon armor_stand ~-1 ~ ~ {Marker:1b,NoGravity:1b,Invisible:1b,Tags:["cropMarker","cropSideMarker","getPlantId","getFarmlandValue","X"]}
- /execute @e[tag=cropCenterMarker] ~ ~ ~ /summon armor_stand ~-1 ~ ~-1 {Marker:1b,NoGravity:1b,Invisible:1b,Tags:["cropMarker","cropSideMarker","getPlantId","getFarmlandValue","diagonal"]}
- /execute @e[tag=cropCenterMarker] ~ ~ ~ /summon armor_stand ~ ~ ~-1 {Marker:1b,NoGravity:1b,Invisible:1b,Tags:["cropMarker","cropSideMarker","getPlantId","getFarmlandValue","Z"]}
- /execute @e[tag=cropCenterMarker] ~ ~ ~ /summon armor_stand ~1 ~ ~-1 {Marker:1b,NoGravity:1b,Invisible:1b,Tags:["cropMarker","cropSideMarker","getPlantId","getFarmlandValue","diagonal"]}
- /execute @e[tag=cropCenterMarker] ~ ~ ~ /summon armor_stand ~-1 ~ ~1 {Marker:1b,NoGravity:1b,Invisible:1b,Tags:["cropMarker","cropSideMarker","getPlantId","getFarmlandValue","diagonal"]}
- #
- /scoreboard players set @e[tag=getPlantId] plantId 0
- /execute @e[tag=getPlantId] ~ ~ ~ detect ~ ~ ~ wheat * /scoreboard players set @e[c=1,r=0] plantId 1
- /execute @e[tag=getPlantId] ~ ~ ~ detect ~ ~ ~ carrots * /scoreboard players set @e[c=1,r=0] plantId 2
- /execute @e[tag=getPlantId] ~ ~ ~ detect ~ ~ ~ potatoes * /scoreboard players set @e[c=1,r=0] plantId 3
- /execute @e[tag=getPlantId] ~ ~ ~ detect ~ ~ ~ beetroots * /scoreboard players set @e[c=1,r=0] plantId 4
- /execute @e[tag=getPlantId] ~ ~ ~ detect ~ ~ ~ pumpkin_stem * /scoreboard players set @e[c=1,r=0] plantId 5
- /execute @e[tag=getPlantId] ~ ~ ~ detect ~ ~ ~ melon_stem * /scoreboard players set @e[c=1,r=0] plantId 6
- /scoreboard players tag @e[tag=getPlantId] remove getPlantId
- #
- # Calculates the farmland value * 100
- /execute @e[tag=getFarmlandValue] ~ ~ ~ detect ~ ~-1 ~ farmland * /scoreboard players set @e[c=1,r=0] farmlandValue 300
- /execute @e[tag=getFarmlandValue] ~ ~ ~ detect ~ ~-1 ~ farmland moisture=0 /scoreboard players set @e[c=1,r=0] farmlandValue 100
- /scoreboard players reset @e selectorVar
- /scoreboard players set @e[tag=getFarmlandValue] selectorVar 0 {Tags:["cropSideMarker"]}
- /execute @e[score_selectorVar=0] ~ ~ ~ /scoreboard players operation @e[c=1,r=0] farmlandValue /= #4 calcVar
- /scoreboard players tag @e[tag=getFarmlandValue] remove getFarmlandValue
- #
- # cropCenterMarker adds its own farmland score and the ones of the side markers together (+1 start value)
- /scoreboard players set @e[tag=cropCenterMarker] calcVar 100
- /execute @e[tag=cropCenterMarker] ~ ~ ~ /scoreboard players operation @e[c=1,r=0] calcVar += @e[c=1,r=0] farmlandValue
- /execute @e[tag=cropSideMarker] ~ ~ ~ /scoreboard players operation @e[tag=cropCenterMarker,c=1] calcVar += @e[c=1,r=0] farmlandValue
- #
- # Determines if the same plant is offset in X and Z (+ or -) or if the same plant if offset diagonally
- /execute @e[tag=cropSideMarker] ~ ~ ~ /scoreboard players operation @e[c=1,r=0] calcVar = @e[c=1,r=0] plantId
- /execute @e[tag=cropSideMarker] ~ ~ ~ /scoreboard players operation @e[c=1,r=0] calcVar -= @e[tag=cropCenterMarker,c=1] plantId
- /scoreboard players reset @e selectorVar
- /scoreboard players set @e[tag=cropSideMarker,score_plantId_min=1,score_calcVar=0,score_calcVar_min=0] selectorVar 0
- /scoreboard players set @e[score_selectorVar=0,tag=X] calcVar2 1
- /scoreboard players set @e[score_selectorVar=0,tag=Z] calcVar2 1
- /scoreboard players set @e[tag=cropCenterMarker] calcVar2 2
- /execute @e[tag=cropCenterMarker] ~ ~ ~ /scoreboard players operation @e[c=1,r=0] calcVar2 -= @e[score_selectorVar=0,tag=X,c=1,r=2] calcVar2
- /execute @e[tag=cropCenterMarker] ~ ~ ~ /scoreboard players operation @e[c=1,r=0] calcVar2 -= @e[score_selectorVar=0,tag=Z,c=1,r=2] calcVar2
- /execute @e[score_selectorVar=0,tag=diagonal] ~ ~ ~ /scoreboard players set @e[tag=cropCenterMarker,c=1] calcVar2 0
- #
- # Sets up division. *= 2 is used instead of dividing the farmland value sum by 2
- /execute @e[tag=cropCenterMarker] ~ ~ ~ /scoreboard players operation @e[c=1,r=0] growDenominator = #2500 calcVar
- /execute @e[tag=cropCenterMarker,score_calcVar2=0] ~ ~ ~ /scoreboard players operation @e[c=1,r=0] growDenominator *= #2 calcVar
- #
- # Code calculation: (int)(25 / f) + 1
- /execute @e[tag=cropCenterMarker] ~ ~ ~ /scoreboard players operation @e[c=1,r=0] growDenominator /= @e[c=1,r=0] calcVar
- /scoreboard players add @e[tag=cropCenterMarker] growDenominator 1
- #
- /scoreboard players set @e[tag=cropCenterMarker] growNumerator 1
- #
- # Special condition for pumpkins and melons, less free position around the plant lower the chance
- /scoreboard players set @e[tag=cropCenterMarker,score_plantId_min=5] calcVar 0
- /execute @e[tag=cropCenterMarker,score_plantId_min=5] ~ ~ ~ detect ~1 ~ ~ air * /scoreboard players add @e[c=1,r=0] calcVar 1
- /execute @e[tag=cropCenterMarker,score_plantId_min=5] ~ ~ ~ detect ~-1 ~ ~ air * /scoreboard players add @e[c=1,r=0] calcVar 1
- /execute @e[tag=cropCenterMarker,score_plantId_min=5] ~ ~ ~ detect ~ ~ ~1 air * /scoreboard players add @e[c=1,r=0] calcVar 1
- /execute @e[tag=cropCenterMarker,score_plantId_min=5] ~ ~ ~ detect ~ ~ ~-1 air * /scoreboard players add @e[c=1,r=0] calcVar 1
- /execute @e[tag=cropCenterMarker,score_plantId_min=5] ~ ~ ~ /scoreboard players operation @e[c=1,r=0] growNumerator *= @e[c=1,r=0] calcVar
- /execute @e[tag=cropCenterMarker,score_plantId_min=5] ~ ~ ~ /scoreboard players operation @e[c=1,r=0] growDenominator *= #4 calcVar
- #
- # Calculates percent value from fraction
- /execute @e[tag=cropCenterMarker] ~ ~ ~ /scoreboard players operation @e[c=1,r=0] calcVar = #100 calcVar
- /execute @e[tag=cropCenterMarker] ~ ~ ~ /scoreboard players operation @e[c=1,r=0] calcVar /= @e[c=1,r=0] growDenominator
- /execute @e[tag=cropCenterMarker] ~ ~ ~ /scoreboard players operation @e[c=1,r=0] calcVar *= @e[c=1,r=0] growNumerator
- #
- # Print growth chance
- /execute @e[tag=cropCenterMarker,score_calcVar_min=0,score_calcVar=5] ~ ~ ~ /title @p[r=1,tag=growthPrintActionbar] actionbar [{"text":"","color":"dark_red"},{"score":{"name":"@e[tag=cropCenterMarker,c=1]","objective":"growNumerator"}},"/",{"score":{"name":"@e[tag=cropCenterMarker,c=1]","objective":"growDenominator"}}," (≈",{"score":{"name":"@e[tag=cropCenterMarker,c=1]","objective":"calcVar"}},"%)"]
- /execute @e[tag=cropCenterMarker,score_calcVar_min=6,score_calcVar=11] ~ ~ ~ /title @p[r=1,tag=growthPrintActionbar] actionbar [{"text":"","color":"red"},{"score":{"name":"@e[tag=cropCenterMarker,c=1]","objective":"growNumerator"}},"/",{"score":{"name":"@e[tag=cropCenterMarker,c=1]","objective":"growDenominator"}}," (≈",{"score":{"name":"@e[tag=cropCenterMarker,c=1]","objective":"calcVar"}},"%)"]
- /execute @e[tag=cropCenterMarker,score_calcVar_min=12,score_calcVar=17] ~ ~ ~ /title @p[r=1,tag=growthPrintActionbar] actionbar [{"text":"","color":"gold"},{"score":{"name":"@e[tag=cropCenterMarker,c=1]","objective":"growNumerator"}},"/",{"score":{"name":"@e[tag=cropCenterMarker,c=1]","objective":"growDenominator"}}," (≈",{"score":{"name":"@e[tag=cropCenterMarker,c=1]","objective":"calcVar"}},"%)"]
- /execute @e[tag=cropCenterMarker,score_calcVar_min=18,score_calcVar=23] ~ ~ ~ /title @p[r=1,tag=growthPrintActionbar] actionbar [{"text":"","color":"yellow"},{"score":{"name":"@e[tag=cropCenterMarker,c=1]","objective":"growNumerator"}},"/",{"score":{"name":"@e[tag=cropCenterMarker,c=1]","objective":"growDenominator"}}," (≈",{"score":{"name":"@e[tag=cropCenterMarker,c=1]","objective":"calcVar"}},"%)"]
- /execute @e[tag=cropCenterMarker,score_calcVar_min=24,score_calcVar=29] ~ ~ ~ /title @p[r=1,tag=growthPrintActionbar] actionbar [{"text":"","color":"green"},{"score":{"name":"@e[tag=cropCenterMarker,c=1]","objective":"growNumerator"}},"/",{"score":{"name":"@e[tag=cropCenterMarker,c=1]","objective":"growDenominator"}}," (≈",{"score":{"name":"@e[tag=cropCenterMarker,c=1]","objective":"calcVar"}},"%)"]
- /execute @e[tag=cropCenterMarker,score_calcVar_min=29,score_calcVar=33] ~ ~ ~ /title @p[r=1,tag=growthPrintActionbar] actionbar [{"text":"","color":"dark_green"},{"score":{"name":"@e[tag=cropCenterMarker,c=1]","objective":"growNumerator"}},"/",{"score":{"name":"@e[tag=cropCenterMarker,c=1]","objective":"growDenominator"}}," (≈",{"score":{"name":"@e[tag=cropCenterMarker,c=1]","objective":"calcVar"}},"%)"]
- #
- /execute @e[tag=cropCenterMarker,score_calcVar_min=0,score_calcVar=5] ~ ~ ~ /tellraw @p[r=1,tag=growthPrintChat] [{"text":"","color":"dark_red"},{"score":{"name":"@e[tag=cropCenterMarker,c=1]","objective":"growNumerator"}},"/",{"score":{"name":"@e[tag=cropCenterMarker,c=1]","objective":"growDenominator"}}," (≈",{"score":{"name":"@e[tag=cropCenterMarker,c=1]","objective":"calcVar"}},"%)"]
- /execute @e[tag=cropCenterMarker,score_calcVar_min=6,score_calcVar=11] ~ ~ ~ /tellraw @p[r=1,tag=growthPrintChat] [{"text":"","color":"red"},{"score":{"name":"@e[tag=cropCenterMarker,c=1]","objective":"growNumerator"}},"/",{"score":{"name":"@e[tag=cropCenterMarker,c=1]","objective":"growDenominator"}}," (≈",{"score":{"name":"@e[tag=cropCenterMarker,c=1]","objective":"calcVar"}},"%)"]
- /execute @e[tag=cropCenterMarker,score_calcVar_min=12,score_calcVar=17] ~ ~ ~ /tellraw @p[r=1,tag=growthPrintChat] [{"text":"","color":"gold"},{"score":{"name":"@e[tag=cropCenterMarker,c=1]","objective":"growNumerator"}},"/",{"score":{"name":"@e[tag=cropCenterMarker,c=1]","objective":"growDenominator"}}," (≈",{"score":{"name":"@e[tag=cropCenterMarker,c=1]","objective":"calcVar"}},"%)"]
- /execute @e[tag=cropCenterMarker,score_calcVar_min=18,score_calcVar=23] ~ ~ ~ /tellraw @p[r=1,tag=growthPrintChat] [{"text":"","color":"yellow"},{"score":{"name":"@e[tag=cropCenterMarker,c=1]","objective":"growNumerator"}},"/",{"score":{"name":"@e[tag=cropCenterMarker,c=1]","objective":"growDenominator"}}," (≈",{"score":{"name":"@e[tag=cropCenterMarker,c=1]","objective":"calcVar"}},"%)"]
- /execute @e[tag=cropCenterMarker,score_calcVar_min=24,score_calcVar=29] ~ ~ ~ /tellraw @p[r=1,tag=growthPrintChat] [{"text":"","color":"green"},{"score":{"name":"@e[tag=cropCenterMarker,c=1]","objective":"growNumerator"}},"/",{"score":{"name":"@e[tag=cropCenterMarker,c=1]","objective":"growDenominator"}}," (≈",{"score":{"name":"@e[tag=cropCenterMarker,c=1]","objective":"calcVar"}},"%)"]
- /execute @e[tag=cropCenterMarker,score_calcVar_min=29,score_calcVar=33] ~ ~ ~ /tellraw @p[r=1,tag=growthPrintChat] [{"text":"","color":"dark_green"},{"score":{"name":"@e[tag=cropCenterMarker,c=1]","objective":"growNumerator"}},"/",{"score":{"name":"@e[tag=cropCenterMarker,c=1]","objective":"growDenominator"}}," (≈",{"score":{"name":"@e[tag=cropCenterMarker,c=1]","objective":"calcVar"}},"%)"]
- #
- /kill @e[tag=cropMarker]
- #
- #
- /scoreboard players reset @a userTrigger
- /scoreboard players enable @a userTrigger
Add Comment
Please, Sign In to add comment