It took me AGES (3 hours) to figure out how to code this, and at the end i gave up and used the easy method. By the way if anyone wants to know how this works tell me in the comments. Also i used lists (my favourite) to cast that block and i`m gonna add more blocks! Here`s next version: v1.0 engine v1.0.1 added moss and grass v1.0.2 added more colors v1.0.3 added diamond, iron and gold ores and blocks plus stone and deepslate v1.0.4 added redstone and emerald ores and blocks not done: v1.0.5 added trees and leaves and sand
all by me but hex code generator from @6312158551