-
Posts
9 -
Joined
-
Last visited
Posts posted by CrashDbo
-
-
@Deprecated public boolean isOpaqueCube(IBlockState state) { return true; }
This method in the block class is deprecated.
Before I use it is there an equivalent/other way. Also, why do other methods of the block class call a deprecated.
/** * Check if the face of a block should block rendering. * * Faces which are fully opaque should return true, faces with transparency * or faces which do not span the full size of the block should return false. * * @param state The current block state * @param world The current world * @param pos Block position in world * @param face The side to check * @return True if the block is opaque on the specified side. */ public boolean doesSideBlockRendering(IBlockState state, IBlockAccess world, BlockPos pos, EnumFacing face) { return state.isOpaqueCube(); }
-
Hello I have just used Blockbench online to create a multi-textured model. It works great, until I put it adjacent to a solid block.
What causes this?
Below is my code for the model.
Spoiler{ "credit": "Made with Blockbench", "textures": { "0": "tinkertime:blocks/block_tinker_crystal", "1": "tinkertime:blocks/block_crystal_analyzer", "particle": "tinkertime:blocks/block_tinker_crystal" }, "elements": [ { "name": "Top", "from": [0, 15, 0], "to": [16, 16, 16], "faces": { "north": {"uv": [0, 0, 16, 1], "texture": "#0"}, "east": {"uv": [0, 0, 16, 1], "texture": "#0"}, "south": {"uv": [0, 0, 16, 1], "texture": "#0"}, "west": {"uv": [0, 0, 16, 1], "texture": "#0"}, "up": {"uv": [0, 0, 16, 16], "texture": "#0"}, "down": {"uv": [0, 0, 16, 16], "texture": "#0"} } }, { "name": "Bottom", "from": [0, 0, 0], "to": [16, 1, 16], "faces": { "north": {"uv": [0, 0, 16, 1], "texture": "#0"}, "east": {"uv": [0, 0, 16, 1], "texture": "#0"}, "south": {"uv": [0, 0, 16, 1], "texture": "#0"}, "west": {"uv": [0, 0, 16, 1], "texture": "#0"}, "up": {"uv": [0, 0, 16, 16], "texture": "#0"}, "down": {"uv": [0, 0, 16, 16], "texture": "#0"} } }, { "from": [1, 1, 1], "to": [2, 15, 2], "faces": { "north": {"uv": [6, 0, 7, 16], "texture": "#0"}, "east": {"uv": [6, 0, 7, 16], "texture": "#0"}, "south": {"uv": [6, 0, 7, 16], "texture": "#0"}, "west": {"uv": [6, 0, 7, 16], "texture": "#0"}, "up": {"uv": [6, 0, 7, 16], "texture": "#0"}, "down": {"uv": [6, 0, 7, 16], "texture": "#0"} } }, { "from": [14, 1, 1], "to": [15, 15, 2], "faces": { "north": {"uv": [6, 0, 7, 16], "texture": "#0"}, "east": {"uv": [6, 0, 7, 16], "texture": "#0"}, "south": {"uv": [6, 0, 7, 16], "texture": "#0"}, "west": {"uv": [6, 0, 7, 16], "texture": "#0"}, "up": {"uv": [6, 0, 7, 16], "texture": "#0"}, "down": {"uv": [6, 0, 7, 16], "texture": "#0"} } }, { "from": [14, 1, 14], "to": [15, 15, 15], "faces": { "north": {"uv": [6, 0, 7, 16], "texture": "#0"}, "east": {"uv": [6, 0, 7, 16], "texture": "#0"}, "south": {"uv": [6, 0, 7, 16], "texture": "#0"}, "west": {"uv": [6, 0, 7, 16], "texture": "#0"}, "up": {"uv": [6, 0, 7, 16], "texture": "#0"}, "down": {"uv": [6, 0, 7, 16], "texture": "#0"} } }, { "from": [1, 1, 14], "to": [2, 15, 15], "faces": { "north": {"uv": [6, 0, 7, 16], "texture": "#0"}, "east": {"uv": [6, 0, 7, 16], "texture": "#0"}, "south": {"uv": [6, 0, 7, 16], "texture": "#0"}, "west": {"uv": [6, 0, 7, 16], "texture": "#0"}, "up": {"uv": [6, 0, 7, 16], "texture": "#0"}, "down": {"uv": [6, 0, 7, 16], "texture": "#0"} } }, { "name": "CTop", "from": [7, 1, 7], "to": [9, 2, 9], "faces": { "north": {"uv": [2, 2, 15, 14], "texture": "#1"}, "east": {"uv": [2, 2, 15, 14], "texture": "#1"}, "south": {"uv": [2, 2, 15, 14], "texture": "#1"}, "west": {"uv": [2, 2, 15, 14], "texture": "#1"}, "up": {"uv": [2, 2, 15, 14], "texture": "#1"}, "down": {"uv": [2, 2, 15, 14], "texture": "#1"} } }, { "name": "CTop2", "from": [6, 13, 6], "to": [10, 14, 10], "faces": { "north": {"uv": [2, 2, 15, 14], "texture": "#1"}, "east": {"uv": [2, 2, 15, 14], "texture": "#1"}, "south": {"uv": [2, 2, 15, 14], "texture": "#1"}, "west": {"uv": [2, 2, 15, 14], "texture": "#1"}, "up": {"uv": [2, 2, 15, 14], "texture": "#1"}, "down": {"uv": [2, 2, 15, 14], "texture": "#1"} } }, { "name": "CTop3", "from": [5, 12, 5], "to": [11, 13, 11], "faces": { "north": {"uv": [2, 2, 15, 14], "texture": "#1"}, "east": {"uv": [2, 2, 15, 14], "texture": "#1"}, "south": {"uv": [2, 2, 15, 14], "texture": "#1"}, "west": {"uv": [2, 2, 15, 14], "texture": "#1"}, "up": {"uv": [2, 2, 15, 14], "texture": "#1"}, "down": {"uv": [2, 2, 15, 14], "texture": "#1"} } }, { "name": "CMiddle", "from": [4, 4, 4], "to": [12, 12, 12], "faces": { "north": {"uv": [2, 2, 15, 14], "texture": "#1"}, "east": {"uv": [2, 2, 15, 14], "texture": "#1"}, "south": {"uv": [2, 2, 15, 14], "texture": "#1"}, "west": {"uv": [2, 2, 15, 14], "texture": "#1"}, "up": {"uv": [2, 2, 15, 14], "texture": "#1"}, "down": {"uv": [2, 2, 15, 14], "texture": "#1"} } }, { "name": "CBottom3", "from": [5, 3, 5], "to": [11, 4, 11], "faces": { "north": {"uv": [2, 2, 15, 14], "texture": "#1"}, "east": {"uv": [2, 2, 15, 14], "texture": "#1"}, "south": {"uv": [2, 2, 15, 14], "texture": "#1"}, "west": {"uv": [2, 2, 15, 14], "texture": "#1"}, "up": {"uv": [2, 2, 15, 14], "texture": "#1"}, "down": {"uv": [2, 2, 15, 14], "texture": "#1"} } }, { "name": "CBottom2", "from": [6, 2, 6], "to": [10, 3, 10], "faces": { "north": {"uv": [2, 2, 15, 14], "texture": "#1"}, "east": {"uv": [2, 2, 15, 14], "texture": "#1"}, "south": {"uv": [2, 2, 15, 14], "texture": "#1"}, "west": {"uv": [2, 2, 15, 14], "texture": "#1"}, "up": {"uv": [2, 2, 15, 14], "texture": "#1"}, "down": {"uv": [2, 2, 15, 14], "texture": "#1"} } }, { "name": "CBottom", "from": [7, 14, 7], "to": [9, 15, 9], "faces": { "north": {"uv": [2, 2, 15, 14], "texture": "#1"}, "east": {"uv": [2, 2, 15, 14], "texture": "#1"}, "south": {"uv": [2, 2, 15, 14], "texture": "#1"}, "west": {"uv": [2, 2, 15, 14], "texture": "#1"}, "up": {"uv": [2, 2, 15, 14], "texture": "#1"}, "down": {"uv": [2, 2, 15, 14], "texture": "#1"} } } ], "display": { "thirdperson_righthand": { "rotation": [0, 37, 0], "translation": [1, -1.75, -3], "scale": [0.5, 0.5, 0.5] }, "thirdperson_lefthand": { "rotation": [0, 37, 0], "translation": [1, -2, -3], "scale": [0.5, 0.5, 0.5] }, "firstperson_righthand": { "rotation": [-21, 30, 5], "translation": [2.25, 0, 0], "scale": [0.32, 0.43, 0.31] }, "firstperson_lefthand": { "rotation": [-18, 22, 2], "translation": [2.75, 0, 0], "scale": [0.31, 0.29, 0.24] }, "ground": { "scale": [0.5, 0.5, 0.5] }, "fixed": { "rotation": [0, 46, 0], "translation": [0, 0, -0.5] } }, "groups": [0, 1, { "name": "Corners", "origin": [8, 8, 8], "children": [2, 3, 4, 5] }, { "name": "Crystal", "origin": [8, 8, 8], "children": [6, 7, 8, 9, 10, 11, 12] } ] }
Thank you for any advice.
-
Thanks for the Advise, I will look at both ways and see what will work best.
-
I am working on a mod that is based off finding crystals and analyzing them to get different attributes. Some will grant an effect on use some will be used in a form of crafting like the AE2 water crafting. I am having trouble finding the code in AE2 that allows the player to toss items in water and have it spawn a new item stack.
My main questions I have now are:
What should I be looking for to detect my crystal is in water?
Secondary is when you drop and item on the ground does is then spawn as an entity item?
I'm sure I will have many more questions as this develops, but for now thanks to those reading.
-
39 minutes ago, outflows said:
public void registerSOundEvents(RegistryEvent.Register<SoundEvent> event) {
I think you want registerSoundEvent, not registerSOundEvent.
-
This solved the issue. I must have misunderstood what isRemote is. Thank you for the response. Definitely need to do more research.
-
It would be a lot easier for someone to be able to help if you gave some more about your environment and how you set it up.
-
I have recently began to learn to mod using Forge. I am in the process of learning about dimension travel and I ran into a problem with the code I picked out of MCJTY's dimension tutorial.
I am having trouble finding out how to make the code I have work. There seems to be a bit of knowledge I have missed as I don't understand why I am unable to cast the player to a server instance.Any insight and on why this error and crash is is happening will help tremendously.
My two main files for the staff that has a right-click event that triggers the teleportation and the teleportation class are in my pastebin below.
ItemStaff.java
DimTeleporter.java Error on line 43
Here is the CrashLog
[1.12.2] Multi-texture model problems
in Modder Support
Posted
I see. Thank you for the explanation.