I am working on a custom command pack inspired by TTB, and I want to know how I can summon in armorstands for a short period of time for custom blocks to generate around it randomly.
I am using the following commands to spawn the blocks:
I=Independent from the previous chain whilst still being in the same system)
What I want to happen is the armorstand (with the customname "MarbleGen") spawns in for every 10 pigmen outside of a radius of 20 blocks from the player and inside a radius of 50 from the player.
Then this armorstand, for 15-30 gameticks, continuously spawns in silverfish with the customname of MarbleOre
After those 15-30 ticks, that armorstand is killed, and the chain of commands activates about 20 gameticks after (letting the silverfish spread randomly) spawning in the blocks. And this should only happen in the nether.
Now, my issue is... How do I do this? Would someone be so kind as to help me?
Sidenote: Is a commandblock being always active a blockdata tag or a block value (it it like {AlwaysActive:1} or is it command_block 4 or whatever value)? Because currently you cannot stack these custom blocks on top of eachother and it always deletes the block on top of it. Or is there another way that I can place the blocks in survival?
I am working on a custom command pack inspired by TTB, and I want to know how I can summon in armorstands for a short period of time for custom blocks to generate around it randomly.
I am using the following commands to spawn the blocks:
R-U: Testfor @e[type=Silverfish,name=MarbleOre]
C-U: execute @e[type=Silverfish,name=MarbleOre] ~ ~ ~ summon armor_stand ~ ~ ~ {CustomName:"MarbleOre",Invisible:1,NoGravity:1,Small:1}
C-C: kill @e[type=Silverfish,name=MarbleOre]
C-C: execute @e[type=Armor_stand,name=MarbleOre] ~ ~ ~ setblock ~ ~ ~ minecraft:command_block
C-U: execute @e[type=Armor_stand,name=MarbleOre] ~ ~ ~ blockdata ~ ~ ~ {Command:"setblock ~ ~ ~ minecraft:mob_spawner 0 replace {SpawnData:{id:minecraft:armor_stand,ArmorItems:[{},{},{},{id:minecraft:leather_boots,Count:1,Damage:10,tag:{Unbreakable:1,display:{color:11084065}}}],HandItems:[{id:minecraft:leather_boots,Count:1,Damage:23,tag:{Unbreakable:1,display:{color:15263976}}},{id:minecraft:leather_boots,Count:1,Damage:37,tag:{Unbreakable:1,display:{color:11084065}}}],Pose:{RightArm:[30f,0f,0f],LeftArm:[30f,0f,0f]}},RequiredPlayerRange:0,MaxNearbyEntities:0}"}
C-U: execute @e[type=Armor_stand,name=MarbleOre] ~ ~ ~ setblock ~ ~1 ~ redstone_block
C-U: execute @e[type=Armor_stand,name=MarbleOre] ~ ~ ~ setblock ~ ~1 ~ air
R-U-I= execute @e[type=Armor_stand,name=MarbleOre] ~ ~ ~ detect ~ ~ ~ air 0 /give @p spawn_egg 1 0 {Display:{Name:"MarbleOre"},EntityTag:{id:"minecraft:silverfish",CustomName:"MarbleOre",CustomNameVisible:1,PersistenceRequired:0b}}
C-U: execute @e[type=Armor_stand,name=MarbleOre] ~ ~ ~ detect ~ ~ ~ air 0 /kill @e[dx=0]
(key:
r=Repeating
I=Impulse
C=Chain
C=Conditional
U=Unconditional
I=Independent from the previous chain whilst still being in the same system)
What I want to happen is the armorstand (with the customname "MarbleGen") spawns in for every 10 pigmen outside of a radius of 20 blocks from the player and inside a radius of 50 from the player.
Then this armorstand, for 15-30 gameticks, continuously spawns in silverfish with the customname of MarbleOre
After those 15-30 ticks, that armorstand is killed, and the chain of commands activates about 20 gameticks after (letting the silverfish spread randomly) spawning in the blocks. And this should only happen in the nether.
Now, my issue is... How do I do this? Would someone be so kind as to help me?
Sidenote: Is a commandblock being always active a blockdata tag or a block value (it it like {AlwaysActive:1} or is it command_block 4 or whatever value)? Because currently you cannot stack these custom blocks on top of eachother and it always deletes the block on top of it. Or is there another way that I can place the blocks in survival?
My Name Is Bhexion and I make datapacks.
Find me on PlanetMinecraft and Youtube.