Giter Club home page Giter Club logo

randgenmc's Introduction

An app for making (semi-) random text generators in Minecraft. This is mainly for instructions on how to create generators, so there's some other info in the Planet Minecraft post.

Generators can be created as plain text files written in a simple language (inspired by RandomGen). This example shows everything that the language can do:

$color
red
purple
blue

$thing
balloon
cake
shirt

$statement
My favorite color is [color].
I have a [color] [thing].
  • A generator consists of one or more lists.
  • To make a list, write the list's name with a dollar sign in front of it, and then write one list item on each line following the name.
  • When the generator is run, it will give you a random item from the final list in the generator file.
  • Within a list item, you can insert a random item from another list by enclosing that list's name in square brackets -- for example, [thing] gives you a random item from the list named "thing".

In that example generator, there are three lists - "color", "thing", and "statement". The generator will produce items from the "statement" list, which will be things like "My favorite color is purple." and "I have a blue shirt."

The only other thing you might need to know is the you can prefix any character with a backslash to make that character appear as written; for example \[brackets\] will appear as "[brackets]" in the generator output. Another notable place where this is useful is when you want to put a space at the beginning or end of a list item.

Generator files can be converted to .mcfunction files for Minecraft 1.12 using this page: https://arctenik.github.io/randgenmc/

The converter can provide generators as either tellraw messages or as give commands for written books; be careful with the books, though, because you have to open the book before generating anything else in order for it to work.

To use the generator, take the folder with the name you had in the converter's "Namespace" input and put in in your world's "functions" folder. Then you can open the world and use the command /function <function name> (the converter will tell you what the <function name> is).

randgenmc's People

Contributors

zatnik avatar

Watchers

James Cloos avatar  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.