1

Questions for my Adventure Map

reece2004's Avatar reece20048/18/15 3:46 pm
1 emeralds 654 9
8/22/2015 9:35 am
Jmal116's Avatar Jmal116
So I have been working hard on a puzzle/parkour/adventure map type thing lately? Like it starts as parkour, than turns into adventure I guess? And during your quest in the adventure map, you get a bow called the "Endy Bow" and whenever you shoot it, it teleports you to where it landed. But for a boss battle later in the map I want the player to have to shoot the boss, but I am already running a command for every single arrow that is on the ground.
testfor @e[type=Arrow] {inGround:1b}
There is a fill clock attached to it and whenever it notices that there is an arrow on the ground it runs this command.
tp @p @e[type=Arrow]
Is there any way to prevent this from happening during the boss battle, or just it will only happen for the "Endy Bow" in general? I really need help from this.
Posted by reece2004's Avatar
reece2004
Level 35 : Artisan Pokemon
51

Create an account or sign in to comment.

9

1
08/20/2015 4:40 pm
Level 35 : Artisan Pokemon
reece2004
reece2004's Avatar
Also gg at winning at minecon for diversity, i wanna learn that speedrun but summer's ending in 4 days.
1
08/22/2015 9:35 am
Level 33 : Artisan Engineer
Jmal116
Jmal116's Avatar
Haha thanks It's actually not super difficult to learn, I bet in a week or so you could put something decent together.
1
08/19/2015 2:54 pm
Level 70 : Legendary Engineer
Bertiecrafter
Bertiecrafter's Avatar
make a scoreboard objective EndyBow
/scoreboard objectives add EndyBow dummy
Then make sure to give the player a value of 0 at the beginning of the map:
/scoreboard players set @p EndyBow 0
Then just before the bow shoots, set score to 1:
/scoreboard players set @p EndyBow 1

Tp only players with a EndyBow score of 0 to Arrow:
/tp @p[score_EndyBow=0] @e[type=Arrow]
1
08/18/2015 8:45 pm
Level 33 : Artisan Engineer
Jmal116
Jmal116's Avatar
The simplest way would probably be to just use /blockdata to get rid of the testfor command during the boss battle, and then put it back aftwerwards:blockdata x y z {Command:""}
blockdata x y z {Command:"testfor @e[type=Arrow] {inGround:1b}"}

You could probably set up something that actually detects what bow the player is holding when the arrow is fired if you really wanted to, but that would be much more difficult to do.
1
08/19/2015 2:00 am
Level 35 : Artisan Pokemon
reece2004
reece2004's Avatar
So for the "x y z" in the blockdata command would that just be where the player would fight the boss?
1
08/19/2015 9:48 am
Level 33 : Artisan Engineer
Jmal116
Jmal116's Avatar
The x y z targets where the command you're changing is (the location of the /testfor for the arrow thing). You would need to trigger it with another command (likely testfor) that detects when the boss battle starts. You can then run the second one that puts the command back when the battle is over.
1
08/19/2015 2:08 pm
Level 35 : Artisan Pokemon
reece2004
reece2004's Avatar
Oh! So when they enter the boss battle it locks the command block, wouldn't there be an easier way where we just set a redstone block right above the command block to stop it from being powered, and than just set that to air?
1
08/20/2015 10:07 am
Level 33 : Artisan Engineer
Jmal116
Jmal116's Avatar
You could do that, just make sure you have enough space and aren't hitting any other command blocks when place the redstone. But that would be a lot easier, and I didn't even think of it
1
08/18/2015 7:23 pm
Level 35 : Artisan Pokemon
reece2004
reece2004's Avatar
Please?
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome