Started by
Ellse
on
Topic category: Help with MCreator software
I check that there are air blocks above the block, if there are 250 blocks, I do nothing, if another block is encountered, spawn a custom entity at these coordinates, check that it is in the water, if so, then despawn the entity, replace this block with air, if not in the water, despawn the entity. But it doesn't work.
Edited by Ellse on Wed, 12/13/2023 - 11:27
For the part that says if entity in water, or in dimension, does it work if you are in that dimension?
@AwesomeCoderDude Yeah, i'ts worked correctly, and I changed block OR for AND. It appears that it does not remove the water block, but rather cancels the placement of water in the world. Looks more like an MCreator bug. After that the water broke.
Keep it at or, I think the problem might be that the block that is checking if the target is in water, is checking the entity that placed the block is in water. If you do it again, but you are standing in water, it might work. If it does, let me know, and I can help you fix it.
Could you explain what you are trying to do? I might have a better way to do it.
Yeah, sure.
To begin with, I want to remove all water blocks placed in the open air.
I place a block in the world and check that there are 250 blocks of air above it, if during the check I encounter another block, I complete the check and do nothing, if there are 250 blocks of air, I spawn a custom entity at the coordinates of the placed block and check if it is in water, if yes, I check that the event occurs in a custom dimension, if yes, I replace the placed block with air and despawn the entity.
I've been trying to do this for a very long time, but no matter how I try, it doesn't work.
So you are trying to check if the is water blocks nearby and get rid of them?
This is a custom dimension that no longer contains water blocks, but their placement is not prohibited. I want water blocks to be able to be placed anywhere, but not in the open air. To do this, I check each block placed by the player and if it is a water block, I remove it.
Oh, so you want the player to not be able to place water if there is nothing below it/ it is in open air?
If there are 250 air blocks above it
This is a world with a hot surface on which it is impossible to place water
So, if there is 250 blocks of air above the water, you want to get rid of it? Sorry if I'm confused.