Marcono1234

Minecraft: Growth chance calculator (1.11+) (Source)

Sep 18th, 2016
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 19.57 KB | None | 0 0
  1. INIT:/gamerule commandBlockOutput false
  2. INIT:/gamerule logAdminCommands false
  3. INIT:/scoreboard objectives add growNumerator dummy
  4. INIT:/scoreboard objectives add growDenominator dummy
  5. INIT:/scoreboard objectives add plantId dummy
  6. INIT:/scoreboard objectives add farmlandValue dummy
  7. INIT:/scoreboard objectives add selectorVar dummy
  8. INIT:/scoreboard objectives add calcVar dummy
  9. INIT:/scoreboard players set #2 calcVar 2
  10. INIT:/scoreboard players set #4 calcVar 4
  11. INIT:/scoreboard players set #100 calcVar 100
  12. INIT:/scoreboard players set #2500 calcVar 2500
  13. INIT:/scoreboard objectives add calcVar2 dummy
  14. #
  15. INIT:/scoreboard objectives add userTrigger trigger
  16. INIT:/scoreboard players set @a userTrigger 2
  17. #
  18. /scoreboard players tag @a[tag=growthRunOnce] remove growthRun
  19. /scoreboard players tag @a[tag=growthRunOnce] remove growthRunOnce
  20. #
  21. /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"}}]}]
  22. /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\"}}]"]}
  23. #
  24. /scoreboard players tag @a[score_userTrigger_min=10,score_userTrigger=10] add growthRunOnce
  25. /scoreboard players tag @a[score_userTrigger_min=10,score_userTrigger=10] add growthRun
  26. /scoreboard players tag @a[score_userTrigger_min=11,score_userTrigger=11] add growthRun
  27. /scoreboard players tag @a[score_userTrigger_min=12,score_userTrigger=12] remove growthRun
  28. #
  29. /scoreboard players tag @a[score_userTrigger_min=100,score_userTrigger=100] remove growthPrintChat
  30. /scoreboard players tag @a[score_userTrigger_min=100,score_userTrigger=100] remove growthPrintActionbar
  31. /scoreboard players tag @a[score_userTrigger_min=101,score_userTrigger=101] add growthPrintChat
  32. /scoreboard players tag @a[score_userTrigger_min=102,score_userTrigger=102] add growthPrintActionbar
  33. #
  34. #
  35. #
  36. /execute @a[tag=growthRun] ~ ~ ~ /summon armor_stand ~ ~0.5 ~ {Marker:1b,NoGravity:1b,Invisible:1b,Tags:["cropCenterMarker","cropMarker","getPlantId", "getFarmlandValue"]}
  37. /execute @e[tag=cropCenterMarker] ~ ~ ~ /summon armor_stand ~1 ~ ~ {Marker:1b,NoGravity:1b,Invisible:1b,Tags:["cropMarker","cropSideMarker","getPlantId","getFarmlandValue","X"]}
  38. /execute @e[tag=cropCenterMarker] ~ ~ ~ /summon armor_stand ~1 ~ ~1 {Marker:1b,NoGravity:1b,Invisible:1b,Tags:["cropMarker","cropSideMarker","getPlantId","getFarmlandValue","diagonal"]}
  39. /execute @e[tag=cropCenterMarker] ~ ~ ~ /summon armor_stand ~ ~ ~1 {Marker:1b,NoGravity:1b,Invisible:1b,Tags:["cropMarker","cropSideMarker","getPlantId", "getFarmlandValue","Z"]}
  40. /execute @e[tag=cropCenterMarker] ~ ~ ~ /summon armor_stand ~-1 ~ ~ {Marker:1b,NoGravity:1b,Invisible:1b,Tags:["cropMarker","cropSideMarker","getPlantId","getFarmlandValue","X"]}
  41. /execute @e[tag=cropCenterMarker] ~ ~ ~ /summon armor_stand ~-1 ~ ~-1 {Marker:1b,NoGravity:1b,Invisible:1b,Tags:["cropMarker","cropSideMarker","getPlantId","getFarmlandValue","diagonal"]}
  42. /execute @e[tag=cropCenterMarker] ~ ~ ~ /summon armor_stand ~ ~ ~-1 {Marker:1b,NoGravity:1b,Invisible:1b,Tags:["cropMarker","cropSideMarker","getPlantId","getFarmlandValue","Z"]}
  43. /execute @e[tag=cropCenterMarker] ~ ~ ~ /summon armor_stand ~1 ~ ~-1 {Marker:1b,NoGravity:1b,Invisible:1b,Tags:["cropMarker","cropSideMarker","getPlantId","getFarmlandValue","diagonal"]}
  44. /execute @e[tag=cropCenterMarker] ~ ~ ~ /summon armor_stand ~-1 ~ ~1 {Marker:1b,NoGravity:1b,Invisible:1b,Tags:["cropMarker","cropSideMarker","getPlantId","getFarmlandValue","diagonal"]}
  45. #
  46. /scoreboard players set @e[tag=getPlantId] plantId 0
  47. /execute @e[tag=getPlantId] ~ ~ ~ detect ~ ~ ~ wheat * /scoreboard players set @e[c=1,r=0] plantId 1
  48. /execute @e[tag=getPlantId] ~ ~ ~ detect ~ ~ ~ carrots * /scoreboard players set @e[c=1,r=0] plantId 2
  49. /execute @e[tag=getPlantId] ~ ~ ~ detect ~ ~ ~ potatoes * /scoreboard players set @e[c=1,r=0] plantId 3
  50. /execute @e[tag=getPlantId] ~ ~ ~ detect ~ ~ ~ beetroots * /scoreboard players set @e[c=1,r=0] plantId 4
  51. /execute @e[tag=getPlantId] ~ ~ ~ detect ~ ~ ~ pumpkin_stem * /scoreboard players set @e[c=1,r=0] plantId 5
  52. /execute @e[tag=getPlantId] ~ ~ ~ detect ~ ~ ~ melon_stem * /scoreboard players set @e[c=1,r=0] plantId 6
  53. /scoreboard players tag @e[tag=getPlantId] remove getPlantId
  54. #
  55. # Calculates the farmland value * 100
  56. /execute @e[tag=getFarmlandValue] ~ ~ ~ detect ~ ~-1 ~ farmland * /scoreboard players set @e[c=1,r=0] farmlandValue 300
  57. /execute @e[tag=getFarmlandValue] ~ ~ ~ detect ~ ~-1 ~ farmland moisture=0 /scoreboard players set @e[c=1,r=0] farmlandValue 100
  58. /scoreboard players reset @e selectorVar
  59. /scoreboard players set @e[tag=getFarmlandValue] selectorVar 0 {Tags:["cropSideMarker"]}
  60. /execute @e[score_selectorVar=0] ~ ~ ~ /scoreboard players operation @e[c=1,r=0] farmlandValue /= #4 calcVar
  61. /scoreboard players tag @e[tag=getFarmlandValue] remove getFarmlandValue
  62. #
  63. # cropCenterMarker adds its own farmland score and the ones of the side markers together (+1 start value)
  64. /scoreboard players set @e[tag=cropCenterMarker] calcVar 100
  65. /execute @e[tag=cropCenterMarker] ~ ~ ~ /scoreboard players operation @e[c=1,r=0] calcVar += @e[c=1,r=0] farmlandValue
  66. /execute @e[tag=cropSideMarker] ~ ~ ~ /scoreboard players operation @e[tag=cropCenterMarker,c=1] calcVar += @e[c=1,r=0] farmlandValue
  67. #
  68. # Determines if the same plant is offset in X and Z (+ or -) or if the same plant if offset diagonally
  69. /execute @e[tag=cropSideMarker] ~ ~ ~ /scoreboard players operation @e[c=1,r=0] calcVar = @e[c=1,r=0] plantId
  70. /execute @e[tag=cropSideMarker] ~ ~ ~ /scoreboard players operation @e[c=1,r=0] calcVar -= @e[tag=cropCenterMarker,c=1] plantId
  71. /scoreboard players reset @e selectorVar
  72. /scoreboard players set @e[tag=cropSideMarker,score_plantId_min=1,score_calcVar=0,score_calcVar_min=0] selectorVar 0
  73. /scoreboard players set @e[score_selectorVar=0,tag=X] calcVar2 1
  74. /scoreboard players set @e[score_selectorVar=0,tag=Z] calcVar2 1
  75. /scoreboard players set @e[tag=cropCenterMarker] calcVar2 2
  76. /execute @e[tag=cropCenterMarker] ~ ~ ~ /scoreboard players operation @e[c=1,r=0] calcVar2 -= @e[score_selectorVar=0,tag=X,c=1,r=2] calcVar2
  77. /execute @e[tag=cropCenterMarker] ~ ~ ~ /scoreboard players operation @e[c=1,r=0] calcVar2 -= @e[score_selectorVar=0,tag=Z,c=1,r=2] calcVar2
  78. /execute @e[score_selectorVar=0,tag=diagonal] ~ ~ ~ /scoreboard players set @e[tag=cropCenterMarker,c=1] calcVar2 0
  79. #
  80. # Sets up division. *= 2 is used instead of dividing the farmland value sum by 2
  81. /execute @e[tag=cropCenterMarker] ~ ~ ~ /scoreboard players operation @e[c=1,r=0] growDenominator = #2500 calcVar
  82. /execute @e[tag=cropCenterMarker,score_calcVar2=0] ~ ~ ~ /scoreboard players operation @e[c=1,r=0] growDenominator *= #2 calcVar
  83. #
  84. # Code calculation: (int)(25 / f) + 1
  85. /execute @e[tag=cropCenterMarker] ~ ~ ~ /scoreboard players operation @e[c=1,r=0] growDenominator /= @e[c=1,r=0] calcVar
  86. /scoreboard players add @e[tag=cropCenterMarker] growDenominator 1
  87. #
  88. /scoreboard players set @e[tag=cropCenterMarker] growNumerator 1
  89. #
  90. # Special condition for pumpkins and melons, less free position around the plant lower the chance
  91. /scoreboard players set @e[tag=cropCenterMarker,score_plantId_min=5] calcVar 0
  92. /execute @e[tag=cropCenterMarker,score_plantId_min=5] ~ ~ ~ detect ~1 ~ ~ air * /scoreboard players add @e[c=1,r=0] calcVar 1
  93. /execute @e[tag=cropCenterMarker,score_plantId_min=5] ~ ~ ~ detect ~-1 ~ ~ air * /scoreboard players add @e[c=1,r=0] calcVar 1
  94. /execute @e[tag=cropCenterMarker,score_plantId_min=5] ~ ~ ~ detect ~ ~ ~1 air * /scoreboard players add @e[c=1,r=0] calcVar 1
  95. /execute @e[tag=cropCenterMarker,score_plantId_min=5] ~ ~ ~ detect ~ ~ ~-1 air * /scoreboard players add @e[c=1,r=0] calcVar 1
  96. /execute @e[tag=cropCenterMarker,score_plantId_min=5] ~ ~ ~ /scoreboard players operation @e[c=1,r=0] growNumerator *= @e[c=1,r=0] calcVar
  97. /execute @e[tag=cropCenterMarker,score_plantId_min=5] ~ ~ ~ /scoreboard players operation @e[c=1,r=0] growDenominator *= #4 calcVar
  98. #
  99. # Calculates percent value from fraction
  100. /execute @e[tag=cropCenterMarker] ~ ~ ~ /scoreboard players operation @e[c=1,r=0] calcVar = #100 calcVar
  101. /execute @e[tag=cropCenterMarker] ~ ~ ~ /scoreboard players operation @e[c=1,r=0] calcVar /= @e[c=1,r=0] growDenominator
  102. /execute @e[tag=cropCenterMarker] ~ ~ ~ /scoreboard players operation @e[c=1,r=0] calcVar *= @e[c=1,r=0] growNumerator
  103. #
  104. # Print growth chance
  105. /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"}},"%)"]
  106. /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"}},"%)"]
  107. /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"}},"%)"]
  108. /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"}},"%)"]
  109. /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"}},"%)"]
  110. /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"}},"%)"]
  111. #
  112. /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"}},"%)"]
  113. /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"}},"%)"]
  114. /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"}},"%)"]
  115. /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"}},"%)"]
  116. /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"}},"%)"]
  117. /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"}},"%)"]
  118. #
  119. /kill @e[tag=cropMarker]
  120. #
  121. #
  122. /scoreboard players reset @a userTrigger
  123. /scoreboard players enable @a userTrigger
Add Comment
Please, Sign In to add comment