Started by
BancingDare
on
Topic category: Help with Minecraft modding (Java Edition)
Hello, I'm trying to tweak fire aspect so it lights tnt on fire when hit. I'm using the "player left clicks block" trigger to check if the blockstate is TNT, and then using raytacing to remove the block and spawn the TNT. The problem I'm having is that the raytracing when used in this way is inconsistent and can cause duplication of TNT spawns, so I'm trying to find a way to log the XYZ of the provided blockstate to use that as the spawn location for the TNT instead.
TLDR: How do I find the XYZ of a provided blockstate?
Did you figure out how to do that?
Bad news: you can't. Location information is not stored in blockstates. Doesn't the trigger provide the blockpos?