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