Okay so I am working on a command block project similar to Gamemode 4 and TTB, and I want to add custom ore veins.
Description of vein: around y=16, if there is a granite vein, and it is above where the generation armor stands are, then it will summon an armor stand 16 blocks above the generation armor stands, then the granite, and ONLY granite, in a 11x11x11 cube around the second armor stand should get replaced with the ore (regular grey stone, andesite, and diorite should be left alone).
Okay so first, the commands. All these can be put into MrGaretto's command combiner.
I am using Jragon's method because it's a good one.
Okay so I am working on a command block project similar to Gamemode 4 and TTB, and I want to add custom ore veins.
Description of vein: around y=16, if there is a granite vein, and it is above where the generation armor stands are, then it will summon an armor stand 16 blocks above the generation armor stands, then the granite, and ONLY granite, in a 11x11x11 cube around the second armor stand should get replaced with the ore (regular grey stone, andesite, and diorite should be left alone).
Okay so first, the commands. All these can be put into MrGaretto's command combiner.
I am using Jragon's method because it's a good one.
/execute @a ~ ~ ~ /execute @e[name=SapphireVeinGen] ~ ~ ~ detect ~ ~ ~ bedrock 0 /fill ~ ~ ~ ~ ~ ~ obsidian 0 replace bedrock
/execute @a ~ 0 ~ /execute @e[name=SapphireVeinGen,r=80] ~ ~ ~ detect ~20 ~ ~ bedrock 0 /summon ArmorStand ~20 ~ ~ {CustomName:"SapphireVeinGen",NoGravity:1,Invulnerable:1}
/execute @a ~ ~ ~ /execute @e[name=SapphireVeinGen] ~ ~ ~ detect ~ ~ ~ bedrock 0 /fill ~ ~ ~ ~ ~ ~ obsidian 0 replace bedrock
/execute @a ~ 0 ~ /execute @e[name=SapphireVeinGen,r=80] ~ ~ ~ detect ~-20 ~ ~ bedrock 0 /summon ArmorStand ~-20 ~ ~ {CustomName:"SapphireVeinGen",NoGravity:1,Invulnerable:1}
/execute @a ~ ~ ~ /execute @e[name=SapphireVeinGen] ~ ~ ~ detect ~ ~ ~ bedrock 0 /fill ~ ~ ~ ~ ~ ~ obsidian 0 replace bedrock
/execute @a ~ 0 ~ /execute @e[name=SapphireVeinGen,r=80] ~ ~ ~ detect ~ ~ ~20 bedrock 0 /summon ArmorStand ~ ~ ~20 {CustomName:"SapphireVeinGen",NoGravity:1,Invulnerable:1}
/execute @a ~ ~ ~ /execute @e[name=SapphireVeinGen] ~ ~ ~ detect ~ ~ ~ bedrock 0 /fill ~ ~ ~ ~ ~ ~ obsidian 0 replace bedrock
/execute @a ~ 0 ~ /execute @e[name=SapphireVeinGen,r=80] ~ ~ ~ detect ~ ~ ~-20 bedrock 0 /summon ArmorStand ~ ~ ~-20 {CustomName:"SapphireVeinGen",NoGravity:1,Invulnerable:1}
/execute @a ~ ~ ~ /execute @e[name=SapphireVeinGen] ~ ~ ~ detect ~ ~ ~ bedrock 0 /fill ~ ~ ~ ~ ~ ~ obsidian 0 replace bedrock
/execute @a ~ 0 ~ /execute @e[name=SapphireVeinGen,r=80] ~ ~ ~ detect ~ ~ ~ barrier 0 /kill @e[name=SapphireVeinGen,r=0]
/execute @a ~ ~ ~ /execute @e[name=SapphireVeinGen] ~ ~ ~ /fill ~ ~ ~ ~ ~ ~ barrier 0 replace obsidian
Now the ores
/execute @e[name=SapphireVeinGen] ~ ~ ~ detect ~ 16 ~ stone 1 /summon ArmorStand ~ 16 ~ {CustomName:”SapphireVein”,NoGravity:1,Invulnerable:1}
/execute @e[name=SapphireVeinGen] ~ ~ ~ detect ~ 16 ~ stone 1 /setblock ~ 16 ~ stone 0
/execute @e[type=ArmorStand,name=SapphireVein] ~ ~ ~ fill ~-5 ~-5 ~-5 ~5 ~5 ~5 minecraft:mob_spawner 0 replace stone 1 {SpawnData:{id:minecraft:armor_stand,ArmorItems:[{},{},{},{id:minecraft:leather_boots,Count:1,Damage:13,tag:{Unbreakable:1,display:{color:8289918}}}],HandItems:[{id:minecraft:leather_boots,Count:1,Damage:31,tag:{Unbreakable:1,display:{color:1791}}},{}],Pose:{RightArm:[30f,0f,0f],LeftArm:[30f,0f,0f]}},RequiredPlayerRange:0,MaxNearbyEntities:0}
/kill @e[name=SapphireVein]
Here is the link to the command to place the block (requires a texture pack): https://goo.gl/GAJD3S
I basically need someone to confirm my syntax as I will not be able to test this myself for a while.
My Name Is Bhexion and I make datapacks.
Find me on PlanetMinecraft and Youtube.