Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- "TETRIS for BDFD
- - Game by Rajat#1004
- - API by reset#8278
- Variable 1
- --------------------------------------------------------------------------------
- Name : tetris
- Value : {blank}
- Code 1
- --------------------------------------------------------------------------------
- Trigger : ?tetris
- Language : BDScript 2
- Code :
- "
- $nomention
- $description[
- **Score : **0
- ⬜$repeatMessage[10;⬛]⬜
- ⬜$repeatMessage[10;⬛]⬜
- ⬜$repeatMessage[10;⬛]⬜
- ⬜$repeatMessage[10;⬛]⬜
- ⬜$repeatMessage[10;⬛]⬜
- ⬜$repeatMessage[10;⬛]⬜
- ⬜$repeatMessage[10;⬛]⬜
- ⬜$repeatMessage[10;⬛]⬜
- ⬜$repeatMessage[10;⬛]⬜
- ⬜$repeatMessage[10;⬛]⬜
- ⬜$repeatMessage[10;⬛]⬜
- ⬜$repeatMessage[10;⬛]⬜
- ⬜$repeatMessage[10;⬛]⬜
- ⬜$repeatMessage[10;⬛]⬜
- ⬜$repeatMessage[10;⬛]⬜
- ⬜$repeatMessage[10;⬜]⬜]
- $color[ff8888]
- $title[Tetris]
- $footer[$username is playing]
- $addButton[no;$authorIDtetrisstart;Start;primary;no;]
- "
- Code 2
- --------------------------------------------------------------------------------
- Trigger : $onInteraction
- Language : BDScript 2
- Code :
- "
- $nomention
- $if[$checkContains[$customID;tetris]==true]
- $var[S;https://cdn.discordapp.com/attachments/837219640874631197/984092775962279966/unknown.png]
- $var[Z;https://cdn.discordapp.com/attachments/837219640874631197/984092615643385886/unknown.png]
- $var[L;https://cdn.discordapp.com/attachments/837219640874631197/984092585394053210/unknown.png]
- $var[T;https://cdn.discordapp.com/attachments/837219640874631197/984092789212078110/unknown.png]
- $var[O;https://cdn.discordapp.com/attachments/837219640874631197/984092577106116638/unknown.png]
- $var[I;https://cdn.discordapp.com/attachments/837219640874631197/984092603769298944/unknown.png]
- $var[J;https://cdn.discordapp.com/attachments/837219640874631197/984092594151768124/unknown.png]
- $if[$checkContains[$customID;$authorID]==true]
- $if[$checkContains[$customID;$authorIDtetrisstart]==true]
- $httpPost[https://api.resetxd.xyz/game/tetris/create;{}]
- $setUserVar[tetris;$httpResult[game_id]@tet@$messageID;$authorID]
- $description[
- **Score : **$httpResult[score]
- ⬜$replaceText[$replaceText[$replaceText[$httpResult[board];⬛;🔲;-1];⬜;⬛;-1];$c[‼️‼️‼️‼️ Delete all the spaces after this comment if any ‼️‼️ 1/3]
- ;⬜
- ⬜;-1]⬜
- ⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜]
- $color[ff8888]
- $title[Tetris]
- $thumbnail[$var[$httpResult[next]]]
- $footer[$username is playing.]
- $removeButtons
- $addButton[no;$authorIDtetrisleft;;secondary;no;⏪]
- $addButton[no;$authorIDtetrishard_drop;;primary;no;⏬]
- $addButton[no;$authorIDtetrisright;;secondary;no;⏩]
- $addButton[no;$authorIDtetrisrotate;;danger;no;🔁]
- $addButton[no;$authorIDtetrissoft_drop;;secondary;no;🔽]
- $addButton[yes;$authorIDtetrisswap;;secondary;no;🔀]
- $addButton[no;$authorIDtetrishold;;secondary;no;⏸️]
- $else
- $textSplit[$getUserVar[tetris;$authorID];@tet@]
- $if[$splitText[2]==$messageID]
- $httpPost[https://api.resetxd.xyz/game/tetris/action;{
- "game_id": "$splitText[1]",
- "action": "$replaceText[$customID;$authorIDtetris;;1]"}]
- $if[$httpResult[win]==False]
- $thumbnail[$var[$httpResult[next]]]
- $description[
- **Score : **$round[$httpResult[score];0]
- ⬜$replaceText[$replaceText[$replaceText[$httpResult[board];⬛;🔲;-1];⬜;⬛;-1];$c[‼️‼️‼️‼️ Delete all the spaces after this comment if any ‼️‼️ 2/3]
- ;⬜
- ⬜;-1]⬜
- ⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜]
- $color[ff8888]
- $title[Tetris]
- $footer[$username, Game ended.]
- $sendMessage[‼️ Game ended, your score was $round[$httpResult[score];0]]
- $removeButtons
- $addButton[no;$authorIDtetrisstart;Play Again;primary;no;]
- $else
- $thumbnail[$var[$httpResult[next]]]
- $description[
- **Score : **$round[$httpResult[score];0]
- ⬜$replaceText[$replaceText[$replaceText[$httpResult[board];⬛;🔲;-1];⬜;⬛;-1];$c[‼️‼️‼️‼️ Delete all the spaces after this comment if any ‼️‼️ 3/3]
- ;⬜
- ⬜;-1]⬜
- ⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜]
- $color[ff8888]
- $title[Tetris]
- $footer[$username is playing.]
- $endif
- $else
- $removeButtons
- $ephemeral
- ⏰ This game is **Expired**!
- $endif
- $endif
- $else
- $removeButtons
- $ephemeral
- ‼️ This not your game!
- $endif
- $endif
Add Comment
Please, Sign In to add comment