TNT Coin is a Minecraft BE/PE add-on designed to make it easy for players to set up and run the Minecraft TNT Challenge. This challenge, popularized on TikTok live streams, involves players trying to fill a structure with blocks while viewers send virtual gifts that spawn TNT, causing chaos and destruction.
- π Core Features
- Adding Custom Sounds
- Adding Images or Gifts
- TikTok Gifts Emoji
- Download
- Bridging TikTok Live and Minecraft with TikTokLiveMCBE
- Contributing
- License
- Simply open your inventory, navigate to the Items tab, and search for "TNT Coin", and right click to open the GUI.
- Players can select the base and side block types for the structure.
- The width and height of the structure can be customized.
The Gift Goal System in TNT Coin allows you to set specific gift targets for your live stream.
- Choose from available gifts with emojis, set the desired target count, and toggle the display on or off as needed.
- To enable live tracking of gift goals, connect your Minecraft world to TikTokLiveMCBE, a WebSocket server. This connection ensures that as viewers send gifts during your TikTok live stream, the progress towards the goal is updated on the action bar.
- The game listens for specific script events (e.g.,
tntcoin:join
) received from the WebSocket server. - Players can enable or disable specific event actions.
Players can assign custom actions (e.g., Summon, Fill, Clear Blocks, Play Sound, Screen Title, Screen Subtitle) to specific events, such as receiving a gift or a follow.
- When the structure is completely filled, a countdown begins. The countdown determines if the player wins the round.
- During the countdown, the playerβs camera can be configured to rotate around the structure.
- Players can also configure the starting point of the countdown. Once the countdown ends, the player wins the round.
- Players can start, stop, and restart at any time.
- Players can configure the timerβs duration.
- If you run out of time, you will LOSE!
- The timer can be displayed on the action bar.
- Summon any entities within the structure.
- Summon TNT
- Enable/Disable Barriers in settings.
- Players can specify which block type should be used for filling in settings.
- Players can start and stop the block filling process at any time.
- Players can modify the speed of filling process in settings.
- This feature allows players to place a random block from a predefined list whenever they use a specific item in the game.
- Update the
RANDOM_BLOCK_ITEM
to the desired item ID. - Modify the
BLOCKS
array fromscripts/config/config.js
file to include any block IDs you want to be randomly selected when the specifiedRANDOM_BLOCK_ITEM
is used.
/**
Β * The item that will be used to place random block.
Β */
export const RANDOM_BLOCK_ITEM = 'minecraft:amethyst_block';
/**
* List of possible blocks when placing random blocks.
*/
export const BLOCKS = [
"minecraft:pink_wool",
"minecraft:magenta_wool",
"minecraft:orange_wool",
"minecraft:lime_wool",
"minecraft:yellow_wool",
// ... add more blocks here`
];
To add custom sounds, ensure your files are in .ogg
format and place them in your resource pack in your desired directory (e.g., sounds/meme/
). Then, define them in the sounds/sound_definitions.json
file.
Below is an example of how to structure your custom sounds:
{
"vine_boom": {
"category": "meme",
"sounds": ["sounds/meme/vine_boom"]
},
"your_custom_sound": {
"sounds": ["path/to/your/sound"]
}
}
To add new images or gifts to your screen, place your image files (e.g., gift-new.png
, 360px x 360px
) in the textures/tnt-coin/gifts/
folder.
After adding your images, reference them in the gifts.json
file located in the ui/
folder. This file controls how the images are displayed on the screen.
Each gift occupies 10%
of the total width, allowing a maximum of 10 gifts to be displayed horizontally at once.
{
"namespace": "gifts",
"stack_panel": {
"type": "stack_panel",
"orientation": "horizontal",
"size": ["100%", "100%"],
"controls": [
{
"gift_1@gifts.template": {
"texture": "textures/tnt-coin/gifts/gift-rose.png"
}
},
{
"MY_GIFT@gifts.template": {
"texture": "textures/tnt-coin/gifts/MY-GIFT.png"
}
}
]
},
"template": {
"type": "image",
"size": ["10%", "100%"],
"layer": 1,
"texture": ""
}
}
Below are some of the TikTok gifts that have emoji. Each gift comes with its own emoji and coin value.
Gift Name | Emoji | Coins |
---|---|---|
Gimme The Vote | ξ | 1 |
Community Fest | ξ | 1 |
Music Play | ξ | 1 |
GG | ξ | 1 |
Ice Cream Cone | ξ | 1 |
Rose | ξ | 1 |
TikTok | ξ | 1 |
Thumbs Up | ξ | 1 |
Heart | ξ | 1 |
Cake Slice | ξ | 1 |
Love you | ξ | 1 |
Football | ξ | 1 |
Rainbow | ξ | 1 |
Flame heart | ξ | 1 |
Birthday Cake | ξ | 1 |
Heart Puff | ξ | 1 |
Heart Me | ξ | 1 |
Team Bracelet | ξ | 2 |
Finger Heart | ξ€ | 5 |
Potato | ξ | 5 |
Smart | ξ‘ | 5 |
Ladybug | ξ’ | 5 |
Tofu | ξ£ | 5 |
Applause | ξ° | 9 |
Cheer You Up | ξ± | 9 |
Friendship Necklace | ξ | 10 |
Rosa | ξ | 10 |
Tiny Diny | ξ | 10 |
ASMR Time | ξ | 10 |
Horseshoe | ξ | 10 |
Cherry Blossom Bunny | ξ | 10 |
Perfume | ξ | 20 |
Doughnut | ξ | 30 |
Sign language love | ξ | 49 |
Butterfly | ξ | 88 |
Family | ξ | 90 |
Sending strength | ξ | 90 |
Fist bump | ξ | 90 |
Paper Crane | ξ | 99 |
Little Crown | ξ‘ | 99 |
Cap | ξ’ | 99 |
Hat and Mustache | ξ£ | 99 |
Honorable Person | ξ€ | 99 |
Breakthrough Star | ξ₯ | 99 |
Kiss your Heart | ξ¦ | 99 |
Hot Shot | ξ§ | 99 |
Guitar | ξ¨ | 99 |
Like-Pop | ξ© | 99 |
Birthday Crown | ξͺ | 99 |
Self care mask | ξ | 99 |
Community Crown | ξ« | 99 |
Star | ξ¬ | 99 |
Confetti | ξ° | 100 |
Hand Hearts | ξ± | 100 |
Hand Heart | ξ² | 100 |
Bear love | ξ³ | 100 |
Marvelous Confetti | ξ΄ | 100 |
Socks and Sandals | 150 | |
Sunglasses | ξ | 199 |
Hearts | ξ | 199 |
Lock and Key | ξ | 199 |
Garland Headpiece | ξ | 199 |
Love You | ξ | 199 |
Cheer For You | ξ | 199 |
Jungle Hat | ξ | 199 |
Goalkeeper Save | ξ | 199 |
Sending positivity | ξ | 199 |
Meerkat | ξ | 199 |
Birthday Glasses | ξ | 199 |
Stinging Bee | ξ | 199 |
Massage for You | ξ | 199 |
Pinch Face | ξ | 249 |
Boxing Gloves | ξ | 299 |
Duck | ξ | 299 |
Corgi | ξ | 299 |
Dash | ξ | 299 |
Superpower | ξ | 299 |
Elephant trunk | ξ | 299 |
TikTok Crown | ξ | 299 |
Fruit Friends | ξ | 299 |
Play for you | ξ | 299 |
Important
Requirement: Enable "Beta APIs" in your world settings for this add-on to function correctly.
Version: This add-on is designed for Minecraft BE/PE version 1.21.22+. Ensure your game is updated to this version or later for the best experience.
Show your support by giving it a β!
Note: After importing the TNT Coin Resource Pack and Behavior Pack into Minecraft, move them from the
resource_packs
andbehavior_packs
folders to thedevelopment_resource_packs
anddevelopment_behavior_packs
folders inside thecom.mojang
directory. This step ensures that any changes or modifications you make to the TNT Coin packs are applied globally.
If you want to connect your TikTok live stream to Minecraft and trigger in-game actions like automatically dropping TNT when someone sends a gift you'll need to set up a WebSocket server.
See here: TikTokLiveMCBE
Feel free to contribute by submitting issues or pull requests. Any improvements or new features are welcome!
This project is licensed under the terms of the MIT License.