Started by
GamesOfLife
on
Topic category: Help with Minecraft modding (Java Edition)
I'm working on a mod that adds some blocks that act as tiles in a falling sand game (sand that falls down or diagonal, water that moves random, etc).
Right now I just have the sand check if the block below it is air before it falls, but I want to change it so that it checks if the "density" value of the block below it is lower than its own. So that sand can fall through water or gases and such.
How do I create, set, and use NBT tags in logic?
This is supposed to work:
If Density of Block at X Y-1 Z < Density of Block at X Y Z (Sand)
return(true)
return(false)
Yeah I mean how do I create and assign NBT tags? I don't even have a density tag to begin with.