4rmy
Members-
Posts
6 -
Joined
-
Last visited
4rmy's Achievements
Tree Puncher (2/8)
0
Reputation
-
Thank you for your help! I was originally using chatGPT3 to try and find a method but it fell into a hole. If there is no way then I will try to find a different goal to achieve.
-
If you have seen an x-ray mod like the one in Meteor client, I am trying to do the same effect, but I am only doing it to certain blocks. See image:
-
I have an item that, when right clicked on a vanilla block, should turn the block invisible. I am not trying to add a new block, but rather change the existing block.
-
The mod isn't exactly what I am looking for. That mod outlines the blocks. I want to turn the block invisible.
-
I am writing a simple security mod where only the player who placed the block can see it
-
4rmy joined the community
-
I am writing a mod that requires that a block be set as invisible on the client side. My code currently has: BlockPos pos = new BlockPos(x, y, z); BlockState blockState = Minecraft.instance().level.getBlockState(pos); Block block = blockState.getBlock(); but I cannot find a method to make the block invisible. My event listener is: @SubscribeEvent public void onRenderWorld(RenderLevelStageEvent event) I cannot use Minecraft.instance().level.setBlock(block, Blocks.AIR.defaultProperties, 3); as that did not work. The block has to be visible to other players.