Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- How to gain more strength the more leaves/logs there are around the mob
- DuneSciFye
- OP
- β 04/21/2023 7:45 PM
- As title states
- πMythicCraft
- BOT
- β 04/21/2023 7:45 PM
- Hi! Before we can help you, please read the following...
- 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.
- Please provide links to separate, individual https://pastebin.com/ pastes per file with the following information / files:
- β’ The entirety of each relevant config (.yml) file (mob, skill, randomspawner, etc.)
- β’ An unedited server latest.log file from server start to you logging in and reproducing the behavior or error at issue
- β’ A snippet from a log file with any errors and debugging output you've obtained.
- β’ You must specify what you intend to happen, what happens instead, and why you think it's not working.
- Also, don't forget to try and help others in your free time if you notice they have a similar issue! Thank you!
- [ @DuneSciFye ]
- Lxlo (MM Tutor) Price = D': β 04/22/2023 7:38 PM
- Make use of condition:
- https://git.mythiccraft.io/mythiccraft/MythicMobs/-/wikis/skills/conditions/blocktype
- And targeters:
- https://git.mythiccraft.io/mythiccraft/MythicMobs/-/wikis/Skills/Targeters
- https://i.gyazo.com/7fd7ab36c198f8d05f9ed92cca06e674.png
- GitLab
- blocktype Β· Wiki Β· MythicCraft / MythicMobs
- Plugin for making thicc mobs
- Image
- GitLab
- Targeters Β· Wiki Β· MythicCraft / MythicMobs
- Plugin for making thicc mobs
- Image
- Image
- Good luck! Sounds like a fun skill π
- DuneSciFye
- OP
- β 04/25/2023 6:38 AM
- @DuneSciFye
- DuneSciFye
- OP
- β 05/13/2023 2:15 PM
- 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?
- Buguser β 05/13/2023 3:32 PM
- 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).
- DuneSciFye
- OP
- β Yesterday at 2:44 PM
- Which mechanic would you use to target each block individually?
- 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?
- noknoknok β Yesterday at 5:15 PM
- likely - variableadd{} @ blocktargeter with blocktype check conditions
- and then do the things u want with variable check conditions
- DuneSciFye
- OP
- β Yesterday at 7:28 PM
- ok so currently I have this:
- Gain_Strength_From_Crops:
- Skills:
- - setvariable{var=caster.strength;value="0";type=INTEGER} @self
- - message{m="<caster.var.strength>"} @PlayersInRadius{r=40}
- - skill{s=Check_Nearby_Crops} @BlocksNearOrigin{radius=10;radiusy=5;shape=cube}
- Check_Nearby_Crops:
- TargetConditions:
- - blocktype{type=wheat} true
- Skills:
- - variableAdd{var=caster.strength;amount=1} @self
- - message{m="<caster.var.strength>"} @PlayersInRadius{r=40}
- 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
- Actually, interestingly, it only sends the number message twice, meaning that the second skill isn't being run for each crop
- noknoknok β Yesterday at 9:24 PM
- mob.yml
- n0a:
- Skills:
- - signal{s=dirt} @parent ~onSpawn
- - remove{delay=5} @self ~onSpawn
- n1:
- Skills:
- - skill{s=Gain_Strength_From_Crops} ~onSpawn
- - skill{s=Check_Nearby_Crops} @BlocksinRadius{radius=10;radiusy=3;shape=cube} ~onDamaged
- - variableAdd{var=caster.strength;amount=1} @self ~onSignal:dirt
- skill.yml
- Gain_Strength_From_Crops:
- Skills:
- - setvariable{var=caster.strength;value="0";type=INTEGER} @self
- - delay 10
- - message{m="<caster.var.strength>"} @PlayersInRadius{r=40}
- Check_Nearby_Crops:
- TargetConditions:
- - blocktype{type=dirt} true
- Skills:
- - summon{type=n0a}
- - delay 10
- - message{m="<caster.var.strength>"} @PlayersInRadius{r=40}
- something like this
- i guess
- DuneSciFye
- OP
- β Yesterday at 11:56 PM
- 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.
- noknoknok β Today at 12:55 AM
- seem to work only with entity
- the <skill.targets>
- when I use @ EIR{r=10} it returns correct value
- but not with blocksinradius
- DuneSciFye
- OP
- β Today at 12:27 PM
- dang, alright, thank you. Really bought the premium for nothing π
- noknoknok β Today at 12:36 PM
- maybe ask the staff, see if they would consider adding that feature to BIR
- DuneSciFye
- OP
- β Today at 12:37 PM
- I just tried your thing with the signal, it only sends a message of 1
- # For more information, check out the plugin manual or join us on Discord:
- # http://www.mythicmobs.net
- #
- Evil_Farmer_Signal:
- Type: SILVERFISH
- Health: 1
- Damage: 0
- AITargetSelectors:
- - clear
- Skills:
- - signal{s=wheat} @parent ~onSpawn
- - remove{delay=5} @self ~onSpawn
- Evil_Farmer:
- Type: ZOMBIE
- Display: '&aEvil Farmer'
- Health: 40
- Damage: 8
- BossBar:
- Enabled: true
- Title: '&2Terra Titan'
- Range: 50
- Color: GREEN
- Style: SOLID
- CreateFog: true
- DarkenSky: true
- PlayMusic: true
- AITargetSelectors:
- - players
- Drops:
- - GOLD_NUGGET{display="Gold Coin"} 1to2 0.5
- Options:
- AlwaysShowName: true
- DigOutOfGround: true
- PreventItemPickup: true
- PreventOtherDrops: true
- PreventRenaming: true
- PreventRandomEquipment: true
- PreventSunburn: true
- Skills:
- - skill{s=Gain_Strength_From_Crops} ~onSpawn
- - speak{m="Who dares summon me!"} @PlayersInRadius{r=40} @self ~onSpawn
- #- skill{skill=Decrease_Crops} @BlocksNearOrigin{radius=10;radiusy=5;noise=3;shape=cube;onlyair=false;noair=true} ~onTimer:60
- - skill{s=Check_Nearby_Crops} @BlocksinRadius{radius=10;radiusy=3;shape=cube} ~onDamaged
- - skill{s=Dirt_Platform} @self ~onTimer:20
- - variableAdd{var=caster.strength;amount=1} @self ~onSignal:wheat
- Gain_Strength_From_Crops:
- Skills:
- - setvariable{var=caster.strength;value=0;type=INTEGER} @self
- - delay 10
- - message{m="<caster.var.strength>"} @PlayersInRadius{r=40}
- Check_Nearby_Crops:
- TargetConditions:
- - blocktype{type=wheat} true
- Skills:
- Skills:
- - summon{type=Evil_Farmer_Signal}
- - delay 10
- - message{m="<caster.var.strength>"} @PlayersInRadius{r=40}
- and I do see multiple siverfish spawn
- noknoknok β Today at 4:22 PM
- 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.
- Like 10 dirts around it, it sometimes return 2, 3 less. But definitely received multiple signal.
- Btw, it runs on 1.19.2 with latest free version.
- DuneSciFye
- OP
- β Today at 5:14 PM
- hmmm
- DuneSciFye
- OP
- β Today at 5:26 PM
- ok I copied your exactly, and it doesnt return the correct amount of blocks around it
- DuneSciFye
- OP
- β Today at 5:26 PM
- The issue you stated here. Any solution to that?
- noknoknok β Today at 6:41 PM
- n0a:
- Type: zombie
- Health: 20000
- Damage: 100
- # Armor: 10
- Display: '&4&lζ²ε '
- BossBar:
- Enabled: true
- Title: '&4&o&lζ²ε &E<caster.hp>/<caster.mhp>'
- Range: 100
- Color: RED
- Style: SOLID
- Modules:
- ThreatTable: true
- Options:
- MovementSpeed: 0.01
- PreventSunburn: true
- # KnockbackResistance: 1
- FollowRange: 10000
- PreventOtherDrops: true
- # NoAI: true
- DamageModifiers:
- - BLOCK_EXPLOSION 0
- - CONTACT 0
- - CRAMMING 0
- - CUSTOM 0
- - DRAGON_BREATH 0
- - DROWNING 0
- - DRYOUT 0
- - ENTITY_ATTACK 0
- - ENTITY_EXPLOSION 0
- - ENTITY_SWEEP_ATTACK 0
- - FALL 0
- - FALLING_BLOCK 0
- - FIRE 0
- - FIRE_TICK 0
- - FLY_INTO_WALL 0
- - FREEZE 0
- - HOT_FLOOR 0
- - LAVA 0
- - LIGHTNING 0
- - MAGIC 0
- - MELTING 0
- - POISON 0
- - PROJECTILE 0
- - SONIC_BOOM 0
- - STARVATION 0
- - SUFFOCATION 0
- - SUICIDE 0
- - THORNS 0
- - VOID 0
- - WITHER 0
- Skills:
- - signal{s=dirt} @parent ~onSpawn
- - remove{delay=5} @self ~onSpawn
- n1:
- Type: zombie #vindicator
- Health: 20000
- Damage: 0
- #Armor: 30
- Display: '&4&l測試ε‘'
- Faction: 測試ε‘
- Equipment:
- # - air:0
- Modules:
- ThreatTable: true
- # Mount: Dun_D3_FMEMEBoss2A_minion1
- Options:
- MovementSpeed: 0.2
- PreventSunburn: true
- KnockbackResistance: 1
- FollowRange: 10000
- PreventOtherDrops: true
- # NoAI: true
- # NoGravity: true
- AIGoalSelectors:
- # - 0 clear
- # - 1 randomstroll
- # - 1 gotolocation -520,65,135
- # - 1 patrol 75,102,-2472;120,105,-2471
- # - 1 fleeplayers
- # AITargetSelectors:
- # - clear
- # - OtherFactionMonsters
- # - players
- Modules:
- ImmunityTable: false
- ThreatTable: true
- Drops:
- # - GemDropTable_level1 1
- Skills:
- - potion{type=SLOW;duration=9999999;level=10} @self ~onSpawn
- - skill{s=Gain_Strength_From_Crops} ~onSpawn
- - skill{s=Check_Nearby_Crops} @BlocksinRadius{radius=10;radiusy=3;shape=cube} ~onDamaged
- - variableAdd{var=caster.strength;amount=1} @self ~onSignal:dirt
- # - skill{s=force_mount} ~onAttack
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement