Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.loadAPI( "commandsPlus" )
- os.loadAPI( "partTerm" )
- if not commandsPlus then
- error( "Must have commandsPlus installed!", 2 )
- elseif not partTerm then
- error( "Must have partTerm installed!", 2 )
- end
- local image = paintutils.loadImage( ".flag" )
- local player = commandsPlus.getNearbyPlayers( "10" )[1]
- if not player then
- error( "Please move closer to the computer and try again", 2 )
- end
- local x, y, z = commandsPlus.getPlayerPosition( player )
- local win = partTerm.createWindow( x, y + 2, z, 49, 13 )
- partTerm.setDensity( 150 )
- win.center( false )
- win.setParticle( "mobSpell" )
- local oldTerm = term.redirect( win )
- paintutils.drawImage( image, 1, 1 )
- parallel.waitForAll(
- function()
- while true do
- local x, y, z = commandsPlus.getPlayerPosition( player )
- win.reposition( x, y + 2, z )
- end
- end,
- function()
- while true do
- local a, b = commandsPlus.getPlayerRotation( player )
- win.setAngles( a + 90 )
- end
- end,
- partTerm.render
- )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement