Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
MythicMobs MythicMobs
  • Project overview
    • Project overview
    • Details
    • Activity
  • Issues 132
    • Issues 132
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Operations
    • Operations
    • Incidents
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • MythicCraft
  • MythicMobsMythicMobs
  • Issues
  • #1658

Closed
Open
Created Jul 12, 2024 by Jasper Ruiz@JasperRuiz96

target deviation at higher coordinates and viewing direction W/E/S/N

Summary

Describe the bug encountered in detail.

I observed a deviation in the targets of skills such as projectile, shoot,..., etc. These target deviations are revealed at higher coordinates. This deviation is a bit strange, while mobs facing the East direction exhibit perfect shooting, this deviation occurs when looking in other directions. So it is absurd that it works towards the East direction and deviates towards other directions.

Provide a full set of steps used to reproduce the bug, including links to SEPARATE Pastebin pastes for each relevant configuration file.

ZOMBIE_2:
  Type: ZOMBIE
  Display: '&8[&fLvl | <caster.level>&8] &a&lAtıcı Zombi &8(&f<caster.hp{round=1}>&c<&heart>&8)'
  Health: 15
  Damage: 12
  Faction: Normal
  Equipment:
  - CLAY_BALL HAND
  Options:
    Silent: false
  LevelModifiers:
    Health: 4
    Damage: 4
    KnockbackResistance: 0.01

  Skills:
  - setname{name=<caster.name>;delay=-1} @self ~onDamaged
  - setname{name=<caster.name>;delay=-1} @self ~onDeath
  - setname{name=<caster.name>;delay=-1} @self ~onCombat

  - skill{s=aticizombi} @Self ~onTimer:100




aticizombi:
  TargetConditions:
  - distance{d=<15}
  Cooldown: 0
  Skills:
  - projectile{bulletType=ITEM;material=CLAY_BALL;onTick=aticizombi-Tick;onHit=aticizombi-Hit;onEnd=aticizombi-End;i=1;v=15;mr=20;} @Forward{f=15;uel=true}
  - sound{s=entity.arrow.shoot;v=2} @Self

aticizombi-Tick:
  Conditions:
  Cooldown:
  Skills:
  - effect:particles{particle=reddust;color=#FFFFFF;a=5;hs=0.02;vs=0.02} @origin
aticizombi-Hit:
  Conditions:
  Cooldown:
  Skills:
  - damage{a=7;pkb=true;ia=true} 
aticizombi-End:
  Conditions:
  Cooldown:
  Skills:
  - effect:particles{particle=cloud;a=3;hs=0.3;vs=0.3;s=0.1} @origin
  - sound{s=block.basalt.hit;p=1.5}

Describe what happens currently, while the bug is affecting your server.

The error is that skills such as shoot, projectile, etc., written on defualt mobs like skeleton, miss their targets and become ridiculous.

Describe what you think should happen instead of the bug.

If deviations appear in higher coordinates. It can take the location of the mob itself, such as x = 0, z = 0, and run it properly as if it were at the center of the world.

Provide a link to a Pastebin paste with a copy of your server's latest.log file from startup to "Done!" AND includes a player connecting.

https://pastebin.com/X9wdvavE

Provide a link to a Pastebin paste with an excerpt of your latest.log file that includes debug output where you trigger the bugged behavior.

Describe what you think the issue or any potential fixes may be.

This error deals with target deviation at high coordinates. It works perfectly only when facing East in high coordinates. In other directions, it shows target deviation. There is a problem that it cannot find the target in the other 3 directions and high coordinates.

(1 month for gif) https://ibb.co/47ydQ2p

image

Edited Jul 22, 2024 by Jasper Ruiz
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking