X-Ray/Changing Opacity of block via procedure

Started by yolocastkirk on

Topic category: Help with Minecraft modding (Java Edition)

Active 4 years ago
Joined Feb 2015
Points:
739

User statistics:

  • Modifications: 0
  • Forum topics: 4
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 2
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