#is there a way to make a geo block not turn the grass block underneath it to dirt?
1 messages · Page 1 of 1 (latest)
You can use a ticking event with the execute command to check for dirt blocks beneath your block. If it is a dirt block/ farmland then you can run a setblock command to switch it back to grass
The dirt has it's own event that is doing that, but it must be checking for certain block types or tags, because not all blocks turn it. Like water or leaves or planted sapling or sweet berry bush. So I would start there. There must be something about those blocks, see the block tags for starters.
unless they have some kind of hardcoded logic that cannot be duplicated.
pretty sure it's hard coded behavior, there's no known tag or components that can disable it.
I vaguely remember that the breathability component used to be abled to, but that component's gotten removed
the method to just use commands to replace dirt below with grass or farmland can work but you need each of your block to save what block was there before and then revert back from dirt to the respective block.
which has it's downsides but should work on a small scale
@runic mango
So basically random ticking and and event /execute if block ~ ~-1 ~ dirt run setblock ~ ~-1 ~ grass