Hey guys! After watching Vechz' test world about halo shields and scrolling through the comments and noticed quite a few things that could be added.
Video:
Basically, "shields" as I am calling it, is a level of absorption that affects a player. Level 0 absorption gives 2 hearts, Level 1 absorption gives 4 hearts, and so on.
Features:
Anyways, so! Onto the features I have managed to add:
1. Shields take 20 seconds to recharge.
2. Recharge time resets whenever you take damage.
3. Shields can be upgraded.
4. Map makers can turn off the shields in certain areas.
5. Shields don't regenerate instantly when they start regenerating. (It takes about 16 ticks I think).
6. Health no longer regenerates!!!! (Sorry for this if you didn't want it. If enough people complain i will make a second version that removes this. Although it isn't that hard to find the command block.)
Technical Stuff:
(Mapmakers uses and commands)
This is a schematic of a small bedrock box with four labelled command blocks outside of it. Place the bedrock box in the spawn chunks and the box should be able to work (If not, please reply and explain as best as you can). The box does not need any activation or anything, it will start working as soon as it is placed. The four command blocks outside are the box. They should look like this.
Move these command blocks to where you want the player to receive their upgrade. This could be at the end of a dungeon or level or whatever. The important thing is to work them, you have to send a redstone pulse to them. how that happens is up to you.
Also, to make a certain area where shields are deactivated like if you are trying to make it seem like the armor battery is dying or something, you have to use this command in a command block. "/scoreboard players set @a areaShields 1". This locks the shield regeneration system and clears the absorption effect. To re-enable it do the same command, except change the 1 to a 0. "/scoreboard players set @a areaShields 0"
By the way, (this piece of advice is for everyone) golden apples can fully heal the absorption hearts no matter what the level. I have tested this with the max amount of hearts absorption can give (255) and one golden apple will fully renew the golden hearts.
Make a potion effect that will get rid of shields for a certain time period. (Does not work in multiplayer without having to identify every player playing)
(Placeholder for if I think of something else. )
Bugs:
Unknown if it works on multiplayer. (Although it should. I made it with that in mind, I just don't have a server to test it with. :/)
Shield Regeneration does not completely work. Shields slowly regenerate the first time the effect is applied, so it will only work after getting an upgrade of two levels or higher or leaving an area that deactivates shields.
So, you are using a health objective to detect damage? I tried this, but the problem is if the player takes damage and raises their shield (or gets healed in some other way) within the same clock cycle, and the healing amount is equal or more than the damage, then the machine will not detect the damage and the shield gets stuck off until they take damage again. I eventually gave up and decided this was practically impossible to do. But if anybody has ideas, I'd like to hear them.
So, you are using a health objective to detect damage? I tried this, but the problem is if the player takes damage and raises their shield (or gets healed in some other way) within the same clock cycle, and the healing amount is equal or more than the damage, then the machine will not detect the damage and the shield gets stuck off until they take damage again. I eventually gave up and decided this was practically impossible to do. But if anybody has ideas, I'd like to hear them.
If I am understanding you correctly, then the only way to beat this would be to have a clock running that detects a players' health change every game tick. Since a player cannot be simultaneously hurt and healed (I think), there must be a certain time frame that would allow a circuit like this to detect it.
Damn man, I was just going to build something pretty much identical to this Guess you beat me to it
Haha. I did this rather quickly, so I doubt my system is the most efficient, it is just the way I chose to do it. Lol. If you got other ways to accomplish this, do it. Because the techniques that are used in your version might eventually be able to be reused for something else.
Hey, you commented on my video that mine was too large, and I had an idea for a really compact one, hoping to one-up you :P. What are the dimensions of yours?
My design is 12 x 16 x 10, that is 12 high, 16 wide and 10 long. This includes the bedrock cover surrounding it, and room inside of it for a person to fly around and be able to view all the redstone without destroying anything other than the bedrock.
Hey guys! After watching Vechz' test world about halo shields and scrolling through the comments and noticed quite a few things that could be added.
Video:
Basically, "shields" as I am calling it, is a level of absorption that affects a player. Level 0 absorption gives 2 hearts, Level 1 absorption gives 4 hearts, and so on.
Features:
Anyways, so! Onto the features I have managed to add:
1. Shields take 20 seconds to recharge.
2. Recharge time resets whenever you take damage.
3. Shields can be upgraded.
4. Map makers can turn off the shields in certain areas.
5. Shields don't regenerate instantly when they start regenerating. (It takes about 16 ticks I think).
6. Health no longer regenerates!!!! (Sorry for this if you didn't want it. If enough people complain i will make a second version that removes this. Although it isn't that hard to find the command block.)
Technical Stuff:
(Mapmakers uses and commands)
This is a schematic of a small bedrock box with four labelled command blocks outside of it. Place the bedrock box in the spawn chunks and the box should be able to work (If not, please reply and explain as best as you can). The box does not need any activation or anything, it will start working as soon as it is placed. The four command blocks outside are the box. They should look like this.
Also, to make a certain area where shields are deactivated like if you are trying to make it seem like the armor battery is dying or something, you have to use this command in a command block. "/scoreboard players set @a areaShields 1". This locks the shield regeneration system and clears the absorption effect. To re-enable it do the same command, except change the 1 to a 0. "/scoreboard players set @a areaShields 0"
By the way, (this piece of advice is for everyone) golden apples can fully heal the absorption hearts no matter what the level. I have tested this with the max amount of hearts absorption can give (255) and one golden apple will fully renew the golden hearts.
Download Schematic:
http://www.mediafire...d_Box.schematic
Now for a picture of the inside of the box.
Wishlist/To Do List
If I am understanding you correctly, then the only way to beat this would be to have a clock running that detects a players' health change every game tick. Since a player cannot be simultaneously hurt and healed (I think), there must be a certain time frame that would allow a circuit like this to detect it.
Haha. I did this rather quickly, so I doubt my system is the most efficient, it is just the way I chose to do it. Lol. If you got other ways to accomplish this, do it. Because the techniques that are used in your version might eventually be able to be reused for something else.