Code Monkey home page Code Monkey logo

game-of-life-datapack's Introduction

Game of Life datapack

Conway's Game of Life simulated in Minecraft

Supported Versions: 1.13+

Installation

  • Download the datapack
  • Unzip the archive and open the folder generated
  • Move the gameOfLife folder to the datapacks folder of your Minecraft world
  • In game, type /datapack enable "file/gameOfLife"
  • In game, type /reload to load the datapack and receive the eggs

Interacting with the simulation

The game of life can be controlled with five eggs

Start/Stop simulation

This egg, when used, halts or resumes the simulation. The current state of the simulation can be seen on the actionbar

Set cell

This egg will place a new alive cell on the block where the egg is used. Make sure the simulation is halted because else the cell might die immediately.

NB: Placing two cells at the same block won't do anything.

Speed up

This egg, when used, speeds up the rate of update of the simulation by one tick. Maximum value is one update every game ticks (every 50 ms)

WARNING: You shouldn't set the update speed top low or else the TPS of the server and your FPS may significantly slow down

Slow down

This egg, when used, slows down the rate of update of the simulation by one tick. Minimum value is one update every 30 game ticks (every 1.5 seconds)

Kill all cells

Destroys all alive cells in the loaded chunks of the world

License

This project is licensed under the MIT License.

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.