X-Ray/Changing Opacity of block via procedure

Started by yolocastkirk on

Topic category: Help with Minecraft modding (Java Edition)

Joined Feb 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
X-Ray/Changing Opacity of block via procedure

I am trying to make a potion which acts like an x-ray, revealing only ores for a couple minutes. Firstly: Does anyone know a way of doing this? Second, I've considered making a procedure which makes all blocks invisible if they are not an ore. What are the identifies for ores? Is it minecraft:ore? And how would I go about altering the opacity of all blocks?

Having to do proper programming is acceptable if needs be but a significant explanation/ example code would be useful. Thank you