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
  • #503

Closed
Open
Created Aug 09, 2021 by Tristan Vick@zestym3m3s

Setblock mechanic not working when looking at the (-) X,Y, and Z sides of the blocks. Only on the positive sides.

Heyo! I found something weird when I was working on a wand that destroys blocks with hitscans.

Basically, only 3/6 sides of the blocks are targetable. I'm not sure exactly what the problem is, but since it works for 3/6 of the sides consistently I'm gonna assume that theres a problem with the way something was coded.

Only when facing towards +Z, +X, and +Y will the block be broken. Otherwise it doesn't work.

ObbyBreakerWand:
  Id: Stick
  Display: '&d&kX&8&lObby &7&lBreaker&d&kX'
  Enchantments:
  - ARROW_DAMAGE:5
  Skills:
  - skill{s=ObbyBreaker1;cooldown=0} @TargetLocation ~onUse
ObbyBreaker1:
  Skills:
  - raytrace{
        entitySkill=[
          - Skill{s=ObbyBreaker2}
        ];
        locationSkill=[
          - Skill{s=ObbyBreaker2}        
          - particles{p=glow_squid_ink;a=6;s=0.2;hS=0.1;vS=0.1}
        ]} @BlocksInRadius{radius=1} #was @Target
ObbyBreaker2:
  TargetConditions:
  - blocktype{type=OBSIDIAN} true
  Skills:
  - setblock{m=AIR;md=0}

This is my config.

https://pastebin.com/9Txb4jqM this what it shows when it works

https://pastebin.com/sak24MGJ this is what it shows when it doesnt

Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking