Advertisement
DuneSciFye

Untitled

Jun 3rd, 2023
36
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.40 KB | None | 0 0
  1.  
  2.  
  3. How to gain more strength the more leaves/logs there are around the mob
  4. DuneSciFye
  5. OP
  6. β€” 04/21/2023 7:45 PM
  7. As title states
  8. 🌌MythicCraft
  9. BOT
  10. β€” 04/21/2023 7:45 PM
  11. Hi! Before we can help you, please read the following...
  12. If you have a question about whether something works or not, please try it and see (TIAS) before asking. Then, if you still have problems, provide your example.
  13.  
  14. Please provide links to separate, individual https://pastebin.com/ pastes per file with the following information / files:
  15. β€’ The entirety of each relevant config (.yml) file (mob, skill, randomspawner, etc.)
  16. β€’ An unedited server latest.log file from server start to you logging in and reproducing the behavior or error at issue
  17. β€’ A snippet from a log file with any errors and debugging output you've obtained.
  18. β€’ You must specify what you intend to happen, what happens instead, and why you think it's not working.
  19.  
  20. Also, don't forget to try and help others in your free time if you notice they have a similar issue! Thank you!
  21.  
  22. [ @DuneSciFye ]
  23. Lxlo (MM Tutor) Price = D': β€” 04/22/2023 7:38 PM
  24. Make use of condition:
  25. https://git.mythiccraft.io/mythiccraft/MythicMobs/-/wikis/skills/conditions/blocktype
  26.  
  27. And targeters:
  28. https://git.mythiccraft.io/mythiccraft/MythicMobs/-/wikis/Skills/Targeters
  29.  
  30. https://i.gyazo.com/7fd7ab36c198f8d05f9ed92cca06e674.png
  31. GitLab
  32. blocktype Β· Wiki Β· MythicCraft / MythicMobs
  33. Plugin for making thicc mobs
  34. Image
  35. GitLab
  36. Targeters Β· Wiki Β· MythicCraft / MythicMobs
  37. Plugin for making thicc mobs
  38. Image
  39. Image
  40. Good luck! Sounds like a fun skill πŸ™‚
  41. DuneSciFye
  42. OP
  43. β€” 04/25/2023 6:38 AM
  44. @DuneSciFye
  45. DuneSciFye
  46. OP
  47. β€” 05/13/2023 2:15 PM
  48. I don't think I would use the targeter in condition, since I want it to be like a variable I can use within a Skill. How would I be able to use it to make the mob gain more strength the more of that block there is around it?
  49. Buguser β€” 05/13/2023 3:32 PM
  50. You will need the tageters and conditions that Dante sent above. For each leaves or log block you can increase the value of a variable and use that as a basis for further skills (e.g. in the damage mechanic).
  51. DuneSciFye
  52. OP
  53. β€” Yesterday at 2:44 PM
  54. Which mechanic would you use to target each block individually?
  55. Or how would you be able to target each block individually? Would you need to have a line for each coordinate in a radius around the mob?
  56. noknoknok β€” Yesterday at 5:15 PM
  57. likely - variableadd{} @ blocktargeter with blocktype check conditions
  58. and then do the things u want with variable check conditions
  59. DuneSciFye
  60. OP
  61. β€” Yesterday at 7:28 PM
  62. ok so currently I have this:
  63. Gain_Strength_From_Crops:
  64. Skills:
  65. - setvariable{var=caster.strength;value="0";type=INTEGER} @self
  66. - message{m="<caster.var.strength>"} @PlayersInRadius{r=40}
  67. - skill{s=Check_Nearby_Crops} @BlocksNearOrigin{radius=10;radiusy=5;shape=cube}
  68. Check_Nearby_Crops:
  69. TargetConditions:
  70. - blocktype{type=wheat} true
  71. Skills:
  72. - variableAdd{var=caster.strength;amount=1} @self
  73. - message{m="<caster.var.strength>"} @PlayersInRadius{r=40}
  74.  
  75. you said to use @blocktargeter, but using something like @BlocksNearOrigin{radius=10;radiusy=5;shape=cube} gives me 0 for both messages, but using @self gives 0 for the first and 1 for the second message
  76. Actually, interestingly, it only sends the number message twice, meaning that the second skill isn't being run for each crop
  77. noknoknok β€” Yesterday at 9:24 PM
  78. mob.yml
  79. n0a:
  80. Skills:
  81. - signal{s=dirt} @parent ~onSpawn
  82. - remove{delay=5} @self ~onSpawn
  83.  
  84. n1:
  85. Skills:
  86. - skill{s=Gain_Strength_From_Crops} ~onSpawn
  87. - skill{s=Check_Nearby_Crops} @BlocksinRadius{radius=10;radiusy=3;shape=cube} ~onDamaged
  88. - variableAdd{var=caster.strength;amount=1} @self ~onSignal:dirt
  89.  
  90.  
  91. skill.yml
  92. Gain_Strength_From_Crops:
  93. Skills:
  94. - setvariable{var=caster.strength;value="0";type=INTEGER} @self
  95. - delay 10
  96. - message{m="<caster.var.strength>"} @PlayersInRadius{r=40}
  97. Check_Nearby_Crops:
  98. TargetConditions:
  99. - blocktype{type=dirt} true
  100. Skills:
  101. - summon{type=n0a}
  102. - delay 10
  103. - message{m="<caster.var.strength>"} @PlayersInRadius{r=40}
  104. something like this
  105. i guess
  106. DuneSciFye
  107. OP
  108. β€” Yesterday at 11:56 PM
  109. I see, very interesting way of doing so. But couldnt you do it simpler with variableAdd and the amount being the number of targets there are? I tried - variableAdd{var=caster.strength;amount=<skill.targets> but I don't know which target to use, if I do @BlocksNearOrigin{radius=10;radiusy=5;shape=cube} it doesnt work, and if I do @self or @caster it gives 1.
  110. noknoknok β€” Today at 12:55 AM
  111. seem to work only with entity
  112. the <skill.targets>
  113. when I use @ EIR{r=10} it returns correct value
  114. but not with blocksinradius
  115. DuneSciFye
  116. OP
  117. β€” Today at 12:27 PM
  118. dang, alright, thank you. Really bought the premium for nothing πŸ˜‚
  119. noknoknok β€” Today at 12:36 PM
  120. maybe ask the staff, see if they would consider adding that feature to BIR
  121. DuneSciFye
  122. OP
  123. β€” Today at 12:37 PM
  124. I just tried your thing with the signal, it only sends a message of 1
  125. # For more information, check out the plugin manual or join us on Discord:
  126. # http://www.mythicmobs.net
  127. #
  128.  
  129. Evil_Farmer_Signal:
  130. Type: SILVERFISH
  131. Health: 1
  132. Damage: 0
  133. AITargetSelectors:
  134. - clear
  135. Skills:
  136. - signal{s=wheat} @parent ~onSpawn
  137. - remove{delay=5} @self ~onSpawn
  138. Evil_Farmer:
  139. Type: ZOMBIE
  140. Display: '&aEvil Farmer'
  141. Health: 40
  142. Damage: 8
  143. BossBar:
  144. Enabled: true
  145. Title: '&2Terra Titan'
  146. Range: 50
  147. Color: GREEN
  148. Style: SOLID
  149. CreateFog: true
  150. DarkenSky: true
  151. PlayMusic: true
  152. AITargetSelectors:
  153. - players
  154. Drops:
  155. - GOLD_NUGGET{display="Gold Coin"} 1to2 0.5
  156. Options:
  157. AlwaysShowName: true
  158. DigOutOfGround: true
  159. PreventItemPickup: true
  160. PreventOtherDrops: true
  161. PreventRenaming: true
  162. PreventRandomEquipment: true
  163. PreventSunburn: true
  164. Skills:
  165. - skill{s=Gain_Strength_From_Crops} ~onSpawn
  166. - speak{m="Who dares summon me!"} @PlayersInRadius{r=40} @self ~onSpawn
  167. #- skill{skill=Decrease_Crops} @BlocksNearOrigin{radius=10;radiusy=5;noise=3;shape=cube;onlyair=false;noair=true} ~onTimer:60
  168. - skill{s=Check_Nearby_Crops} @BlocksinRadius{radius=10;radiusy=3;shape=cube} ~onDamaged
  169. - skill{s=Dirt_Platform} @self ~onTimer:20
  170. - variableAdd{var=caster.strength;amount=1} @self ~onSignal:wheat
  171. Gain_Strength_From_Crops:
  172. Skills:
  173. - setvariable{var=caster.strength;value=0;type=INTEGER} @self
  174. - delay 10
  175. - message{m="<caster.var.strength>"} @PlayersInRadius{r=40}
  176. Check_Nearby_Crops:
  177. TargetConditions:
  178. - blocktype{type=wheat} true
  179. Skills:
  180. Skills:
  181. - summon{type=Evil_Farmer_Signal}
  182. - delay 10
  183. - message{m="<caster.var.strength>"} @PlayersInRadius{r=40}
  184. and I do see multiple siverfish spawn
  185. noknoknok β€” Today at 4:22 PM
  186. Weird. Did you change any part? Coz mine works. When I triggered it on full dirt floor, it got 1000s in a single run. When on a platform to count accurately, it also works pretty much.
  187. Like 10 dirts around it, it sometimes return 2, 3 less. But definitely received multiple signal.
  188. Btw, it runs on 1.19.2 with latest free version.
  189. DuneSciFye
  190. OP
  191. β€” Today at 5:14 PM
  192. hmmm
  193. DuneSciFye
  194. OP
  195. β€” Today at 5:26 PM
  196. ok I copied your exactly, and it doesnt return the correct amount of blocks around it
  197. DuneSciFye
  198. OP
  199. β€” Today at 5:26 PM
  200. The issue you stated here. Any solution to that?
  201. noknoknok β€” Today at 6:41 PM
  202. n0a:
  203. Type: zombie
  204. Health: 20000
  205. Damage: 100
  206. # Armor: 10
  207. Display: '&4&lζ²™εŒ…'
  208. BossBar:
  209. Enabled: true
  210. Title: '&4&o&lζ²™εŒ… &E<caster.hp>/<caster.mhp>'
  211. Range: 100
  212. Color: RED
  213. Style: SOLID
  214. Modules:
  215. ThreatTable: true
  216. Options:
  217. MovementSpeed: 0.01
  218. PreventSunburn: true
  219. # KnockbackResistance: 1
  220. FollowRange: 10000
  221. PreventOtherDrops: true
  222. # NoAI: true
  223. DamageModifiers:
  224. - BLOCK_EXPLOSION 0
  225. - CONTACT 0
  226. - CRAMMING 0
  227. - CUSTOM 0
  228. - DRAGON_BREATH 0
  229. - DROWNING 0
  230. - DRYOUT 0
  231. - ENTITY_ATTACK 0
  232. - ENTITY_EXPLOSION 0
  233. - ENTITY_SWEEP_ATTACK 0
  234. - FALL 0
  235. - FALLING_BLOCK 0
  236. - FIRE 0
  237. - FIRE_TICK 0
  238. - FLY_INTO_WALL 0
  239. - FREEZE 0
  240. - HOT_FLOOR 0
  241. - LAVA 0
  242. - LIGHTNING 0
  243. - MAGIC 0
  244. - MELTING 0
  245. - POISON 0
  246. - PROJECTILE 0
  247. - SONIC_BOOM 0
  248. - STARVATION 0
  249. - SUFFOCATION 0
  250. - SUICIDE 0
  251. - THORNS 0
  252. - VOID 0
  253. - WITHER 0
  254. Skills:
  255. - signal{s=dirt} @parent ~onSpawn
  256. - remove{delay=5} @self ~onSpawn
  257.  
  258. n1:
  259. Type: zombie #vindicator
  260. Health: 20000
  261. Damage: 0
  262. #Armor: 30
  263. Display: '&4&l測試哑'
  264. Faction: 測試哑
  265. Equipment:
  266. # - air:0
  267. Modules:
  268. ThreatTable: true
  269. # Mount: Dun_D3_FMEMEBoss2A_minion1
  270. Options:
  271. MovementSpeed: 0.2
  272. PreventSunburn: true
  273. KnockbackResistance: 1
  274. FollowRange: 10000
  275. PreventOtherDrops: true
  276. # NoAI: true
  277. # NoGravity: true
  278. AIGoalSelectors:
  279. # - 0 clear
  280. # - 1 randomstroll
  281. # - 1 gotolocation -520,65,135
  282. # - 1 patrol 75,102,-2472;120,105,-2471
  283. # - 1 fleeplayers
  284. # AITargetSelectors:
  285. # - clear
  286. # - OtherFactionMonsters
  287. # - players
  288. Modules:
  289. ImmunityTable: false
  290. ThreatTable: true
  291. Drops:
  292. # - GemDropTable_level1 1
  293. Skills:
  294. - potion{type=SLOW;duration=9999999;level=10} @self ~onSpawn
  295. - skill{s=Gain_Strength_From_Crops} ~onSpawn
  296. - skill{s=Check_Nearby_Crops} @BlocksinRadius{radius=10;radiusy=3;shape=cube} ~onDamaged
  297. - variableAdd{var=caster.strength;amount=1} @self ~onSignal:dirt
  298. # - skill{s=force_mount} ~onAttack
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement