Started by
Tiny
on
Topic category: Help with Minecraft modding (Java Edition)
Hello guys, I'm trying to make If the player has pickaxe ( I already did. check Screen Shoot ) and if the player looking a obsidian block then giving me print. First part is working but I'm confusing in how to make if player looking a obsidian block and then giving me print or something action etc. wanted add to the "AND" procedure
Try the 'Look X Position'/'Look Y Position'/'Look Z Position' to get the block the entity is looking at. (And use the AND function to check if the block at this position is obsidian.)
Use raycasting. If you don't know what that is watch an mcreator tutorial.