Community listing page, reviews here may not be monitored by the author.
Web Development
No reviews yet
Fabric Mod for Minecraft that utilizes sockets to make direct TCP connections and serve HTML websites straight from the game.
Fabric is a mod loader for versions 1.14+ of Minecraft, particularly popular for client side and optimization mods.
Community voices
Reviews
Filters
Click once to include, again to exclude, again to clear
No reviews yet. Be the first to review this project!
Get it on
Available Platforms
About
Project Details
For authors
Embed Badge
If you're the author of this project, you can embed a live badge anywhere that supports HTML or Markdown. It updates automatically whenever ratings change.
Use HTML for any page that supports it, or Markdown for README files and Markdown-based descriptions.
Identifiers
Platform IDs
Resources
External Links
About
Description
A Fabric Mod that enables in-game TCP networking and web hosting
This mod leverages low-level socket programming to establish direct TCP connections from within the Minecraft game environment. It allows players or server administrators to serve custom HTML-based websites directly from the game itself—without needing any external web server. More than just a networking tool, it acts as a visual and interactive proof of concept—designed to help you understand the fundamentals of web development by rendering HTML elements like divs and spans as physical blocks within the game world.
Key features include:
- Direct TCP socket communication using Java's networking libraries
- Lightweight built-in HTTP server to serve static HTML/CSS content
- Full integration with Minecraft's command system for managing connections and hosting
How to use:
- Create a rectangular platform on the ground no larger than 32x32. This platform must be made using only 1 block type (eg. Oak Planks). This will be your outline block
- Place a different key block on top of a corner of the platform. This block will be the denote the orientation of the structure. It designates the top left corner (the website will be read left-to-right, top-to-bottom).
- Start placing blocks! Each block that you place will be the start of a new
div. Use signs or lecterns to add text inside thedivs. (Transparent blocks representspans while everything else representdivs) - Use the command
/webhost [x y z], wherex,y,zare the coordinates of yourkeyblock. - Enter your server's IP in your browser and see the results. (Use localhost:80 for singleplayer worlds)
Nesting:
In order to nest divs and text, you need only stack blocks on top of each other. For example, a sign placed on top of block1 will result in sign's text inside of block1's div. Block2 placed on top of block1 will result in a block2 div inside of a block1 div. divs will automatically be closed when the stack reaches an air block or the build limit, but they can also be manually be closed using the outline block type (whatever block you made the platform out of).
How to use styles/CSS:
The key block used placed in the top left corner is also your style block. When a style block is detected in a stack of blocks, the stack will enter Style Mode until 1) another style block is found in the stack, 2) an air block is found in the stack, or 3) the build limit is found in the stack.
Style Mode:
Style Mode allows you to assign styles to a given block type, applying CSS to all future divs made from them. After entering Style Mode using a style block, the next block in the stack is deemed the block to stylize. All blocks beyond that point (until Style Mode is exited) is used to assign styles to that block. There are two ways to denote styles to be added to a block:
- Use signs to note the proper CSS. For example, to set the font color to red and the background color to green, you'd write a sign saying "
color: red; background-color: green;". - Use other blocks to copy their styles.
Screenshots
Gallery
Versions
Files
Relations
Project Relations
More like this
Similar Mods
Suggestions use data such as tags, dependencies, dependents, descriptions, titles, and more to rank how much they overlap with this mod.
On ModDex
Community snapshot
By the numbers
Statistics
Want to reach Minecraft players?
We're looking for a server hosting partner to feature here and other parts of the site. Interested? Send us a message!
Get in touchGet it on
Available Platforms
On ModDex
Community snapshot
By the numbers
Statistics
Resources