Page 1 of 1

[Mod] Coloured Nametags [coloured_nametags]

PostPosted: Tue May 19, 2015 21:14
by Amaz
This is a mod that allows players to set their nametag to a colour of their choice, so long as it is on of the 8 colours (9 if you count white, the default)! (I am hoping to expand this at a later date.)

It uses an api function (Is that the right word?) added on the 15th of May, so a (recent) dev build is necessary.
It has no point in singleplayer, as your nametag can't be viewed there, so this is a purely multiplayer mod!

Using this mod is simple:
The player types in the command /nametag and is presented with this formspec:
Image
Then, it is as simple as it looks! The player presses a button, and his nametag is set to that colour!
This is a video showing the mod in action (I'm cycling through the colours on another (off-screen) client! Also, it doesn't have orange, and black, because I added those after I made the video...): https://imgrush.com/H1Tv2EryC1Wz

I still need to find a way of saving the colours when the player leaves, as now, the player has to chose the colour every time s/he joins.

Download: https://github.com/Amaz1/coloured_namet ... master.zip
Github link (Can be clicked on or cloned): https://github.com/Amaz1/coloured_nametag.git

ToDo:
    Make the nametag colours preserve over reboot.
    Make the mod more customisable.
    Maybe make the formspec a little more colourful.
    Maybe make a second page of colours?

License: MIT

Re: [Mod] Coloured Nametags [coloured_nametags]

PostPosted: Tue May 19, 2015 21:25
by ExeterDad
Thanks for the demo. I was pretty excited when I saw the devs were working on this. It could be useful for identifying server admins or moderators.

Or in pvp. Red for low health, yellow for moderate, green for full health.
It will be interesting to see what ideas pop up in the future.

Re: [Mod] Coloured Nametags [coloured_nametags]

PostPosted: Tue May 19, 2015 21:28
by Niebieski
Thanks for the contribution Amaz.
Sure it will be of a good use.

Re: [Mod] Coloured Nametags [coloured_nametags]

PostPosted: Tue May 19, 2015 21:52
by Don
Nice. I think a lot of players will like these.

Re: [Mod] Coloured Nametags [coloured_nametags]

PostPosted: Wed May 20, 2015 13:37
by Amaz
Thanks all!
ExeterDad, I really liked your pvp idea, so, I went ahead and made it!
https://gist.github.com/Amaz1/e98c2e5810ce4c05f307 (Should I make a github repo and a separate topic for it?)

Re: [Mod] Coloured Nametags [coloured_nametags]

PostPosted: Wed May 20, 2015 17:42
by ExeterDad
Amaz wrote:I really liked your pvp idea, so, I went ahead and made it!
https://gist.github.com/Amaz1/e98c2e5810ce4c05f307 (Should I make a github repo and a separate topic for it?)

Absolutely! It would be a shame for your code to get lost in the forum topics. Making it a mod for those wanting a quick solution is sensible to me. And those that want to use the code for more advanced mod ideas will know where to find a example.

Re: [Mod] Coloured Nametags [coloured_nametags]

PostPosted: Wed May 20, 2015 18:13
by Don
ExeterDad wrote:
Amaz wrote:I really liked your pvp idea, so, I went ahead and made it!
https://gist.github.com/Amaz1/e98c2e5810ce4c05f307 (Should I make a github repo and a separate topic for it?)

Absolutely! It would be a shame for your code to get lost in the forum topics. Making it a mod for those wanting a quick solution is sensible to me. And those that want to use the code for more advanced mod ideas will know where to find a example.

I totally agree. This is something people will want. The only issue I can see is confusing between the different colored nametags mods.
Can I suggest that you have a separate repo but add it to the first post of this thread. That way people can see both at the same time. Then they can decide which one they want.