Skip to content

jarekt/mc-book-publisher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mc Book Publisher

jsDelivr hits (GitHub) jsDelivr hits (GitHub) GitHub license GitHub issues Join discord Casual Maintenance Intended

Mc Book Publisher creates an interactive visualisation of minecraft books on the web using javascript.

Usage

  1. Extract the books from your minecraft world using Neurochitin's minecraft data miner
  2. Include JS & CSS (put this in the head of your html file)
    <link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/gh/jarekt/mc-book-publisher@latest/src/bookPublisher.min.css">
    <script src="https://cdn.jsdelivr.net/gh/jarekt/mc-book-publisher@latest/src/bookPublisher.min.js"></script>
  1. Initialize the script
<script>
    new McBookPublisher({
        id: "BookView1", //each instance must have a unique id
        source: "booksFinal.txt", //point to the file you generated with mc-world-miner
    }).init();
</script>

Demo

Demo page

https://jarekt.github.io/mc-book-publisher/

Desktop vid

desktop.mp4

Mobile vid

mobile.mp4

License

This work is licensed under the MIT license with the exception of the graphical assets - i.e. mainly the contents of the imgs and fonts folders.

2DO

  • add & display book locations
  • add demo
  • add a parser for Neurochitin's mc-world-miner

Known Issues

  • bad line wrapping that occours from time to time (is this even possible to fix? this arises directly from how fonts are rendered differently in the web browser than in minecraft)
  • font appearing blurry when margin: auto is used at certain resolutions (this cannot be fixed unless we use some sort of crazy js hack that would center the div less precisely than css does) + it's not even particularly noticable (fixed in 1.0.3)

About

Converts book databases generated by mc-world-miner into flippable books

Resources

License

Stars

Watchers

Forks

Packages

No packages published