Everything posted by Ideki
-
Create a 3x3x3 Block
Ok. But then how come some mods can create big machines that are 2x2x2 or 3x3x3? Are they actually placing 3x3x3 = 27 blocks with connected texture? Because those machines really look, and act, like 1 block. I do not mind having to place 27 blocks as long as I can do it automatically. Any idea/lead on how I can do that?
-
Create a 3x3x3 Block
Ok, so I am almost there. I can see the block boundaries with the thin lines. But the texture seems to be applied in the wrong position on the X & Z axis. The Y axis I am guessing is because of the model. But is I change the elements from/to to be 0 - 48 then MC complains that it is out of the boundaries. If I change the from/to back to -16 - 32 then it's not complaining, but it looks wrong. Also I can walk through the block. I thought the getRenderBoundingBox would prevent that. I guess I was wrong on how it works. This is what I see now when I place the block: This is my block model: { "credit": "Made with Blockbench", "texture_size": [48, 48], "textures": { "0": "testmod:blocks/rune_block", "particle": "testmod:blocks/rune_block" }, "elements": [ { "from": [-16, -16, -16], "to": [32, 32, 32], "faces": { "north": {"uv": [0, 0, 16, 16], "texture": "#0"}, "east": {"uv": [0, 0, 16, 16], "texture": "#0"}, "south": {"uv": [0, 0, 16, 16], "texture": "#0"}, "west": {"uv": [0, 0, 16, 16], "texture": "#0"}, "up": {"uv": [0, 0, 16, 16], "texture": "#0"}, "down": {"uv": [0, 0, 16, 16], "texture": "#0"} } } ], "display": { "thirdperson_righthand": { "scale": [0.1, 0.1, 0.1] }, "thirdperson_lefthand": { "scale": [0.1, 0.1, 0.1] }, "firstperson_righthand": { "scale": [0.1, 0.1, 0.1] }, "firstperson_lefthand": { "scale": [0.1, 0.1, 0.1] }, "ground": { "translation": [0, 1.25, 0], "scale": [0.2, 0.2, 0.2] }, "gui": { "rotation": [20, -30, 0], "scale": [0.2, 0.2, 0.2] }, "head": { "translation": [0, 9, 0], "scale": [0.3, 0.3, 0.3] }, "fixed": { "scale": [0.3, 0.3, 0.3] } } }
-
Create a 3x3x3 Block
I defined my boundaries like this: @Override public AABB getRenderBoundingBox() { return new AABB( worldPosition.getX(), worldPosition.getY(), worldPosition.getZ(), worldPosition.getX() + 3, worldPosition.getY() + 3, worldPosition.getZ() + 3); }
-
Create a 3x3x3 Block
Thanks. So I have been looking at a couple of 1.18 mods that implement multiblock blocks (ex: Waystones). And they are using net.minecraft.world.level.block.state.properties.DoubleBlockHalf to define half 'structures' with that enum. But that does not meet my need for a 3x3x3 since I am using more than DoubleBlockHalf. I would somehow need a 'TripleBlockThird' 🤨
-
Create a 3x3x3 Block
What is AABB ? I saw it in some tutorials I read. But it was not explained what it was. So adapting it makes it difficult without understanding the underlying concept.
-
Create a 3x3x3 Block
Hum, not according to CurseForge. Ok, so in this case, is it possible to use a BlockEntityRenderer to render a 3x3x3 ? I would be fine with that I would just need to find how to make a 3x3x3 model because BlockBench kinda limit the model to -16 - +32 And I need the full 48 above 0.
-
Create a 3x3x3 Block
Then how do you explain things like the Digital Miner in Mekanism which is 3x3x2 ? It I have to treat the Block as something else to get the 3x3x3 I am ok with it. I tried to follow the logic/code of the Digital Miner but it is still in 1.16. So much has changed in MC/Forge since then that I am struggling to find replacement functions. Or, if making a 3x3x3 (in any ways) is really impossible, is it possible then to place the 27 blocks (3x3x3 = 27) automatically when I use the block item on a location?
-
Create a 3x3x3 Block
Hi, For my mod I would like to be able to create a 3x3x3 block. But I cannot find anywhere how to do this. Even the bed and the door are 2x1x1 at most. I tried with a BlockBench model, but positive coordinates only support 3x3x2. If I want to do the full 3x3x3, then I have to use negative coordinates in BlockBench. Which I think would make the model appearing partly under the floor. Is it something possible, and if so, can someone show me a tutorial on how to do it? It is a simple block, not a machine nor container. Nothing fancy. But I have been struggling for the past few days trying to figure out how to do it.
IPS spam blocked by CleanTalk.