Pyramid Construction Using Blueprints

Yes, your problem here is that you’re always spawning a cube. You need to break the range into 3 parts and make a decision.