BlockyPenguin Posted September 28, 2020 Share Posted September 28, 2020 Hi! I'm trying to figure out how to make a block like crime-scene tape. In my mind, it would work similarly to a fence in that it connects to its neighbours, but also if you place a tape block above/below it, it will expand to fill the space between. My texture is easily repeatable, so this won't be a problem. This is my first time attempting a block this complex, so any and all help is much appreciated. Thanks! Quote Today (22/10/20) I reached 100 posts! I'm probably more excited than I should be for something so realistically minor... Link to comment Share on other sites More sharing options...
urbanxx001 Posted September 28, 2020 Share Posted September 28, 2020 (edited) You'll want to implement custom VoxelShapes for different blockstates in your block class. It might be helpful to extend FenceBlock if you want to use some of the logic already present there. You might first want to create the block model(s) in a program like BlockBench, and then get the model coordinates from there to put in the class. I recommend TechnoVision's tutorial on custom block models. It's also helpful to look at vanilla classes. Edited September 29, 2020 by urbanxx001 Quote Link to comment Share on other sites More sharing options...
BlockyPenguin Posted September 29, 2020 Author Share Posted September 29, 2020 Thanks! I have been looking at fences, walls and the like, so I think I have a better idea now. I'll make those models first, as you said, it might help. Thank you! Quote Today (22/10/20) I reached 100 posts! I'm probably more excited than I should be for something so realistically minor... Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.