Topic category: Help with Minecraft modding (Java Edition)
I know there's a procedure that checks if an entity is near or exist.
But is it possible to make it check to block instead of another Entity?
Currently for my titans mod, I've made them have custom spawning condition, it does work, they spawn only on day when not raining but custom spawning conditions like that bypasses mod like "no Hostile around campfire". I know how to check for a block, but is it possible to combine the two in that way they wont spawn near campifre?
Currently I use ItemFrame as an alternative to prevent titans spawning inside my walled City (It's classified as entity on Mcreator somehow, same goes for ArmorStand)
I dont mind editing the code itself if procedures dont work for it if anyone has any idea.
maybe somthing like player tick update
if does entity exist at x y z in square cube size with 48 of type camp fire
do set custom number nbt "spawning" to 0
else set custom number nbt "spawning" to 1
on a new player tick update do.
if get custom number nbt "spawning" = 1 do
then your spawning code