Create

Create

86M Downloads

[Suggestion] Compatibility with Chisels & Bits

GeoTerra opened this issue ยท 3 comments

commented

Apologies if this is an inquiry better sent to the dev(s) of Chisels and Bits, but what are the chances of Chisels and Bits tiles being able to be moved by Create contraptions?

In my Enigmatica 6 for MC 1.16.5 world, I am attempting to build a moving door for my base but would like it to be more decorative using C&B. Unfortunately, I found out today that this doesn't work and it would appear that the block container that C&B uses to store its data is tagged as unmovable at the pack level so as to prevent crashes. Which is reasonable but a bummer for the end user.

If this is better fielded by the C&B devs or is already in the works somehow, please let me know. I figured that I'd ask the devs of the mod doing the transformation.

commented

This issue has been marked as stale because it has been inactive for 3 weeks. It will be closed if it remains inactive for another 3 weeks.

commented

This issue has been closed since it has been inactive for 3 weeks since it was marked as stale.

commented

I too would love to be able to use chiseled blocks in contraptions! I actually found this issue by searching Google for any possible answers after spending far too long designing decorative blocks for a steam locomotive only to discover that was going to be a resounding negatory on the locomotion part. ๐Ÿ˜‚

I'm interested in seeing if I can hack up a solution to this, maybe it wouldn't be too complicated? However I'm not sure if it's something that needs to or even can be fixed on Create's side. I did discover one very simple change to the Chisels & Bits code that actually gets you partway there:

--- a/Common/src/main/java/mod/chiselsandbits/block/ChiseledBlock.java
+++ b/Common/src/main/java/mod/chiselsandbits/block/ChiseledBlock.java
@@ -306,7 +306,7 @@ public class ChiseledBlock extends Block implements IMultiStateBlock, SimpleWate
     @Override
     public PushReaction getPistonPushReaction(@NotNull final BlockState state)
     {
-        return PushReaction.BLOCK;
+        return PushReaction.NORMAL;
     }

     @Override

Basically just a "what's the silliest thing that could possibly work" type patch. With this change to C&B, I can actually create a contraption that contains a chiseled block, move it around, and when the contraption "deconstructs" back into blocks, the chiseled block has been moved accordingly. Just a few catastrophic showstoppers minor cosmetic issues:

  • The chiseled block is totally invisible while it's part of the contraption
  • Its collision volume is just a full block while part of the contraption, no matter how much had been chiseled out
  • When the contraption reverts back into blocks, the chiseled block is now in the correct place, but is still in its original orientation, regardless of what rotations the contraption performed.
  • Vanilla pistons still can't push chiseled blocks for some reason.

Presumably there would be more work needed on the Chisels & Bits side to make chiseled blocks capable of rendering while in a contraption, and ensuring that the block ends up rotated the right way, which I'm guessing is made a bit non-trivial by the internal complexity of chiseled blocks. They don't seem to be rotation-aware in the way that stairs are, for example.

Anyway, I plan to continue poking at this to see what I can discover. I'm not very familiar with Minecraft modding though and my attention span is fickle, so progress may not be rapid. If anyone knows of previous discussions related to this issue, that would be super helpful too.