Git Product home page Git Product logo

bad-apple-minecraft-bookshelves's Introduction

Bad Apple played using Minecraft Chiselled Bookshelves

Video of it working

How to use the datapack

If you just want to use the datapack in your own world, you can download it from the releases tab.

Use Minecraft snapshot 22w46a or higher.

I had to assign 20gb of ram to the game to get it to load my save with this datapack.

To play the animation run /function bad-apple:frames/frame-0. It'll play at 0, -60, 0, so it's best viewed on a superflat world.

Instructions for running

If you just want the datapack, go to the releases tab.

Note - I'm currently doing some work on this, so the output is currently so large it's not possible to load the world. Until then, I suggest you use the old pre-generated datapack.

Make sure that the bad apple video is in the root folder (you have to download it yourself) and is named bad-apple-original.mp4.

Install opencv-python:

pip install opencv-python

Run process_video.py. You'll now have the video data in a JSON file called output.data. It's an array of frames. Each frame is a 2D array of pixels. The value 0 means that a pixel is black, 1 means that a pixel is white, 2 means that a pixel is grey..

Run generate_function.py. This will generate the frame files in the datapack template. Once it's done, copy the datapack into the datapacks folder of a Minecraft java edition world save.

Make sure you're running on Minecraft snapshot 22w46a or higher. I had to assign 20gb of ram to the game to get it to load with the datapack enabled, so be careful.

To play the animation run /function bad-apple:_play (you can also use /function bad-apple:_stop to stop the animation). It'll play at 0, -60, 0, so it's best viewed on a superflat world.

bad-apple-minecraft-bookshelves's People

Contributors

zadeviggers avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.