The Meaning of Life, the Universe, and Everything.
Join Date:
5/30/2014
Posts:
48
Member Details
Hey guys! Recently I'm doing something that involves PrimedTnt. I've set these commands to do the job:
Command runs once when certain player input is done
/scoreboard players set @e[type=ArmorStand] meow 1 {CustomName:"Place a redstone block on top of me :3"}
On a 20 t/s clock
/scoreboard players set @e[type=ArmorStand,score_meow_min=3,score_meow=3] meow 0
/scoreboard players add @e[type=ArmorStand,score_meow_min=1,score_meow=2] meow 1
The command below is run by 10 command blocks on the same clock
/execute @e[type=ArmorStand,score_meow_min=2,score_meow=2] ~ ~ ~ summon PrimedTnt -667 55 -1966 {Fuse:127}
The 1st and 3rd command works fine, but the 4th command doesn't work because I didn't see any PrimedTnt. But even more astonishing is the 2nd command because not only does it not work, but it does in a very peculiar way. The score stops incrementing at 12, but it doesn't go back to 0. And from my knowledge, that's impossible given the commands above. I thought that my laptop (A 2010 Macbook Pro) is just too slow and can't cope with the very fast ticks (Which is still weird because it executed other per-tick commands on the same world fairly well), so I set the ticks longer:
Command runs once when certain player input is done
/scoreboard players set @e[type=ArmorStand] meow 1 {CustomName:"Place a redstone block on top of me :3"}
On a 20 t/s clock
/scoreboard players set @e[type=ArmorStand,score_meow_min=12,score_meow=12] meow 0
/scoreboard players add @e[type=ArmorStand,score_meow_min=1,score_meow=11] meow 1
The command below is run by 10 command blocks on the same clock
/execute @e[type=ArmorStand,score_meow_min=8,score_meow=8] ~ ~ ~ summon PrimedTnt -667 55 -1966 {Fuse:127}
The 2nd command now works but I still don't see any PrimedTnt. Can anyone help me?
(Sorry for long post)
The Meaning of Life, the Universe, and Everything.
Join Date:
5/30/2014
Posts:
48
Member Details
The reason I set it to 11 is because the scoreboard looks at the parameter like this:
"Ok, the score is 11, which is the limit. So we add this by 1 and we're done."
Not like this:
"Ok, the score is 11, which is the limit. We won't add any score anymore."
The 2nd command works correctly when I made the ticks longer, so there's no reason to correct it. Also, I think it should because it should activate in the 8th tick, not the 11th nor 12th.
Have you done anything to the TnT? Something like so it wont destroy anything. Because you might not see it because the TnT goes invisible after around 5 second.
Yes. The place where the tnt should be summoned is surrounded by a 3x3 bedrock floor followed by a 5x5 water periphery. I'm sure that no Tnt exploded because I tried trapping mobs there with breakable blocks but the mob didn't die nor did the blocks trapping the mob break
because when the score changes from 7 to 8, the Tnt summon command has already executed, making it unable to summon tnt in time. It could fix the problem because the score goes from 6 to 7 then the Tnt doesnt summon, then when it goes from 7 to 8, its still in the range of the needed score, allowing the PrimedTnt to summon
I tried this and it still didn't work. To make sure that the commands did run in the first place I temporarily replaced the command to the ArmorStand executing a "say hi" command; the ArmorStand didn't say hi. I'm pretty sure that it should run because I've successfully ran per-tick commands before, often times several of them in one world. but I guess the ultimate solution would be to switch to a slower clock. Thank you so much for your help, though
The 1st and 3rd command works fine, but the 4th command doesn't work because I didn't see any PrimedTnt. But even more astonishing is the 2nd command because not only does it not work, but it does in a very peculiar way. The score stops incrementing at 12, but it doesn't go back to 0. And from my knowledge, that's impossible given the commands above. I thought that my laptop (A 2010 Macbook Pro) is just too slow and can't cope with the very fast ticks (Which is still weird because it executed other per-tick commands on the same world fairly well), so I set the ticks longer:
The 2nd command now works but I still don't see any PrimedTnt. Can anyone help me?
(Sorry for long post)
"Ok, the score is 11, which is the limit. So we add this by 1 and we're done."
Not like this:
"Ok, the score is 11, which is the limit. We won't add any score anymore."
The 2nd command works correctly when I made the ticks longer, so there's no reason to correct it. Also, I think it should because it should activate in the 8th tick, not the 11th nor 12th.
Yes. The place where the tnt should be summoned is surrounded by a 3x3 bedrock floor followed by a 5x5 water periphery. I'm sure that no Tnt exploded because I tried trapping mobs there with breakable blocks but the mob didn't die nor did the blocks trapping the mob break
I tried this and it still didn't work. To make sure that the commands did run in the first place I temporarily replaced the command to the ArmorStand executing a "say hi" command; the ArmorStand didn't say hi. I'm pretty sure that it should run because I've successfully ran per-tick commands before, often times several of them in one world. but I guess the ultimate solution would be to switch to a slower clock. Thank you so much for your help, though