Mc Book Publisher creates an interactive visualisation of minecraft books on the web using javascript.
- Extract the books from your minecraft world using Neurochitin's minecraft data miner
- 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>
- 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>
https://jarekt.github.io/mc-book-publisher/
desktop.mp4
mobile.mp4
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.
- add & display book locations
- add demo
- add a parser for Neurochitin's mc-world-miner
- 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(fixed in 1.0.3)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