Jump to content

Block Face Conflict


Go to solution Solved by The Insanity God,

Recommended Posts

Posted

Hello!


game version : 1.21.5


As a disclaimer I do not know how to code at all in absolutely any way aside from finding lines and changing values. I have been using a mix of different AI and VS Code to attempt this. 

What I don't understand is when i add this model into the world it seems that there is a conflict with the center grass block below the tent model. I've tried various things like raising the model or moving the origin. its seems like there is a invisible block with out collision that causes the face to be invisible  at the top of that block and it creates a white 1x1x1 void visually. if i put farmed soil in its place the soil is not effected due to the face being lowered. I've done my best to make sure there were no invisible objects in that area. I think maybe its the selector box that you would click to destroy the tent but im at a road block because im having a hard time getting that block out of the way using the blocktypes.json. but i will also say that when that feature is not working and not existing in the game world after placing the tent i still have the same void block in the center. I also cannot place a block in this location. Any block placed to the side will have a invisible/xray type face on the sid touching the weird invisible block. I'm also not getting errors in my main logsimage.thumb.png.bbc732bdecdcc5bbd883cc29dd99c824.png

tentkit-deployed.json

  • Solution
Posted

You have this invisible face because by default the game will try to cull any faces that are not visible (because they are touching a neighboring block) and your model does not cover the faces. You'd want to change the sideopaue and probably also sidesolid in the blocktype json file:

"sidesolid": {
	"all": false
},
"sideopaque": {
	"all": false
},

As for not being able to place a block in the center position, well.. that makes sense as there already is a block there (your tent block that is). If using code you could probably use a BlockEntity or the Fluid Layer to somewhat make the space usable but it won't be easy.

Posted

Thank you. 

3 hours ago, The Insanity God said:

You have this invisible face because by default the game will try to cull any faces that are not visible (because they are touching a neighboring block) and your model does not cover the faces. You'd want to change the sideopaue and probably also sidesolid in the blocktype json file:

"sidesolid": {
	"all": false
},
"sideopaque": {
	"all": false
},

As for not being able to place a block in the center position, well.. that makes sense as there already is a block there (your tent block that is). If using code you could probably use a BlockEntity or the Fluid Layer to somewhat make the space usable but it won't be easy.

 

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.