Adrodoc / ApertureCraftVanilla

ApertureCraft Vanilla is a command block system that implements almost all elements of the game Portal 2 in vanilla Minecraft
Other
20 stars 3 forks source link

Portals Should have a glowing outline #8

Closed Ersatz77 closed 8 years ago

Ersatz77 commented 8 years ago

2016-02-15_10 18 04

Create a team for each portal color and set their color to their corresponding portal color.

Use the commands: /entitydata @e[name=ACV_PortalDisplay,score_ACV_COLOR_min=0,score_ACV_COLOR=0]{Glowing:1b}

/scoreboard teams join BluePortal @e[name=ACV_PortalDisplay,score_ACV_COLOR_min=0,score_ACV_COLOR=0] [make sure to swap out the teams and color scores for each portal]

All commands should be in a repeating command block chain and are not conditional

Adrodoc commented 8 years ago

Is there a reason why you wanted the team stuff? In the real portal game any player can see the portals, even through walls.

Adrodoc commented 8 years ago

Every wall portal is now glowing, there are no teams. Floor and ceiling portals are not glowing, because the glowing effect does not work well with the ArmorStands used for the portal display.

Ersatz77 commented 8 years ago

You need a team in order to change the glowing color, and also my screenshot was taken without the player on any team. I'll try to create a schematic of my commands for you.

Adrodoc commented 8 years ago

Ah I see, I was missing /scoreboard teams option ACV_Blue color blue

Ersatz77 commented 8 years ago

Btw there is a team NBT tag that could save you 4 commands if you also add it to the portal display {Team:"TEAMNAME"}

Adrodoc commented 8 years ago

@Ersatz77 Thanks for that hint, I didn't know that, I have never actually done anything with teams. Unfortunately I think I will still need to have four repeating commands like this: /scoreboard teams join ACV_Blue @a or do you know of a way to automatically do that? I wonder, if it is sufficient to only run these commands when the system is started, to get rid of one clock, but I guess that might cause problems in multiplayer when new people enter. The cleanest way is most likely going to be an extra clock for these 4 commands after all. Oh well, should be easy enough to do :D

Ersatz77 commented 8 years ago

I have all of the scoreboard joining and entitydata changes on it's own clock because mabey I want to disable it for some reason. You also can't run that command when you first run the system because teams need the entity in the world in order to add them to a team.

Also for the vertical portals, In order for the glow to be applied only to the item in the head slot, the armorstand must be a marker, but I think that might cause some issues.

Here are the commands that I use for the whole glowing system: http://www.mediafire.com/download/sc6rwm4k7uzp3r1/Portal+Glow.schematic

Adrodoc commented 8 years ago

Thanks for the schematik, it did help me. I didn't add an extra clock like you did so the glowing effect can't be turned off in ACV.

The nbt tag {Team:"TEAMNAME"} didn't work for me, are you sure about it?

Ersatz77 commented 8 years ago

It seems like that tag is only added with the scoreboard and can't be added in /summon. Or at least that was the case I tested. I checked the wiki and it was added in as a new tag.