Bloxdhub
Loading your experience...

How to Earn Boosts

Coming Soon!

Boosts are special points you can earn by being active and helping others. They're rare and valuable, so use them wisely!

What Can You Do With Boosts?

Advertise your mods or worlds
Highlight your posts in the feed coming soon
Unlock profile themes & badges coming soon
Donate to your favorite users
Join exclusive events & drops

Earn boosts by being kind, creative, and active. Save them to promote your posts, support friends, or unlock cool features!

Welcome to Bloxdhub

The ultimate social platform for Bloxd.io players

More coming soon
I agree to the and

Themes BETA

Customize your experience

This is a beta feature and may contain bugs.

default

isnt this the og one? idk man

Icy Lake

brrr cold lake

credits to lxgenda for this

Capture the Flag

capture the flag

remember when i launched this game

House

house

credits to bloxdbuilder for this

Cinematic Sunset

cinematic sunset

optimized for performance

Rainy

rainy

optimized for performance

crimson night

dark and mysterious

electric yellow

i like cats

midnight rose

girls will pick this idk

Start typing to search

edit profile

profile preview
max 16 characters, letters, numbers, and underscores only
max 150 characters
πŸ”₯

Engagement Streak

πŸ”₯
Current
πŸ†
Best
How it works
Do any of these daily: Post, Comment or React
Last 30 Days
Loading...

Introduction to Bloxd API

5 min read Updated Dec 2025

Welcome to the Bloxd.io API documentation. This guide covers how to create custom game modes, mods, and interactive experiences using the Bloxd scripting system. You can run JavaScript that interacts with the game API.

Community Documentation

This is not official documentation. It's meant to be an additional resource to help developers. Information may occasionally be out-of-date.

Work in Progress

This documentation currently covers about 45-50% of the Bloxd API. We're actively adding more sections and examples. Any feedback or suggestions would be greatly appreciated!

Ways to Run Code

World Code

Press F8 to access. Runs when callbacks are triggered. Supports all callbacks. Limited to 16,000 characters.

Code Blocks

Found in creative menu. Runs when clicked or triggered by adjacent "press to code" board. Cannot use callbacks. 16,000 char limit each.

Code Boards

Begin text with "press to code" to run JavaScript on right-click. Limited text space - use Code Blocks for longer code.

What is World Code?

World Code is the main way to write game logic. Press F8 to open the World Code editor. Only world owners can edit it.

World Code editor popup The World Code editor popup (opened with F8)

What are Code Blocks?

Code Blocks are physical blocks you can place in your world. Find them in the creative menu. Right-click to open the code editor.

Code Block placed in world A Code Block placed in the world

When you right-click a Code Block, you'll see the code editor. Notice the "World Code" button - this is another way to access World Code!

Code Block popup with World Code button The Code Block editor - red arrows show the World Code button

Key Differences

FeatureWorld CodeCode BlocksBoards
Callbacksβœ“ Yesβœ— Noβœ— No
TriggerCallback eventsClick/adjacent boardRight-click
Char Limit16,00016,000 eachSmall
AccessF8 keyCreative menuPlace sign
myId variablenullPlayer who clickedPlayer who clicked
thisPos variablenullBlock positionBoard position

Global Variables

  • myId - Player ID of who ran the code (null in World Code)
  • thisPos - Position of the code block/board (null in World Code)
  • api - Global object with all API methods

Useful Tips

  • Use api.log() or console.log() for debugging
  • Use Date.now() or api.now() for timestamps
  • Comments work: // comment and /* comment */
  • Variables declared with var are shared across World Code, Code Blocks, and Boards

Start typing to search...