This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
KingofGamesYami's profile picture

Flag Displayer

Started by KingofGamesYami, 31 May 2016 - 06:48 PM
KingofGamesYami #1
Posted 31 May 2016 - 08:48 PM
This is a simple program to display a flag behind a player using particles.
pastebin get FSzi7xKP flag
There is a bit of setup involved. The program requires to APIs, commandsPlus and partTerm. In addition to those two, it reqiures a 49 x 13 image named '.flag' - I have an American Flag (cKBWFrTW).
When you start the program, be sure to stand within 10 blocks of the command computer, so that it may recognize you as the player activating the program. If other players are within that radius, ask them to leave or the program may be confused. Alternatively, edit the program at this line:

local player = commandsPlus.getNearbyPlayers( "10 " )[1]
And add your name, eg:

local player = "KingofGamesYami"
Thanks a ton to BB for his wonderful API partTerm and the assistance he has provided for me in using it.
screenshotUnfortunately, the nature of this program does not allow very good screenshots. This is the best I could do.
Edited on 31 May 2016 - 07:10 PM
Bomb Bloke #2
Posted 01 June 2016 - 03:06 PM
Thanks a ton to BB for his wonderful API partTerm and the assistance he has provided for me in using it.

Aw, and here I thought you were writing "capture the flag"… :P/>
KingofGamesYami #3
Posted 01 June 2016 - 03:43 PM
Aw, and here I thought you were writing "capture the flag"… :P/>

Now there's an idea…