09-06-2014, 10:53 PM
Oh I get it. I shall give it a try as well after I'm done with the tools. Right clicking is working for the cases I mentioned on the previous page, now doing rotations click. I underestimated how much work this would be. Take these blocks that are dependent on their surrounding blocks:
There's a whole range of different checks for different components:
So there isn't one system that works for all of them. I also don't want to hard-code these kinds of things, because I want the XML files to have all control. The plan I'm going to go with is just checking for isBlockNormalCube and ignoring all edge cases (mostly aesthetic anyway). If a user wants to have these cases, I'll let him just select the id and data they want.
There's a whole range of different checks for different components:
- Torches check for isBlockNormalCubeDefault at the sides and doesBlockHaveSolidTopSurface with added cases for fences, glass and walls.
- Trapdoors can stick to anything that is opaque and renders as normal block, or glowstone, slabs or stairs.
- Buttons are the most sane ones which only check for isBlockNormalCube.
- Levers on the other hand can be placed on doesBlockHaveSolidTopSurface as well.
So there isn't one system that works for all of them. I also don't want to hard-code these kinds of things, because I want the XML files to have all control. The plan I'm going to go with is just checking for isBlockNormalCube and ignoring all edge cases (mostly aesthetic anyway). If a user wants to have these cases, I'll let him just select the id and data they want.