Data Pack Generators for Minecraft Java Edition
This project uses Preact and Vite.
npm run dev
- Open the browser in
localhost:3000
.
misode.github.io supports multiple languages. If you'd like to help us translate this project to your language, it would be really appreciated! If your language is not on this list, please create an issue for it.
- Go to the Spyglassmc localization website (hosted by SPGoding).
- Register by linking your GitHub account (recommended), or using your email.
- Note that the username and email will be shown in the repository's git commit log.
- See the components of misode.github.io here.
- Start translating!
This website contains a few non-vanilla generators. It is possible to contribute additional generators. If instead you are interested in making custom generators but don't want them part of the main website, see the forking section below.
- Create a new file
public/mcdoc/<your_project>.mcdoc
. This will contain the definitions of the - Create a new generator entry in the
src/app/config.json
file for each generator page that you want to add. Set itsdependency
field to the name of the mcdoc file you created. - Add translation key for each generator in
src/locales/en.json
, namedgenerator.<id>
, and a translation key namedpartner.<dependency>
. - The final step will be to write the generator definitions in the mcdoc file. Apart from the technical specification, there is no documentation for the mcdoc format. It is a custom language describing JSON and NBT structures in the game. I recommend taking a look at how the other modded generators have their types. You can also look at the vanilla mcdoc definitions.
- Feel free to open a PR even when you are not ready with the types, or if you want help with writing them.
You are allowed to fork this repository and use its base as a way to publish your own generator site, but I ask to make a few changes before publishing.
- Change links to this repo to your own repo. This can be done at the top of
Utils.ts
by changingexport const SOURCE_REPO_URL = ...
. - Remove or replace the Google Analytics tracking code in the root
index.html
file. To avoid breaking the rest of the website, you can replace everything between the<!-- Global site tag (gtag.js) - Google Analytics -->
markers with this:
<script>
function gtag() {}
</script>
- Disable the ads, first by remove two lines in
index.html
:
<script async src="https://media.ethicalads.io/media/client/ethicalads.min.js"></script>
...
<div data-ea-publisher="misode-github-io" data-ea-manual="true" id="ad-placeholder"></div>
- Secondly, you can remove the ad component, for example by returning
<></>
inAd.tsx
, or by removing the{!gen.tags?.includes('partners') && <Ad id="data-pack-generator" type="text" />}
line inSchemaGenerator.tsx
. - Remove the contributors and giscus comment section on the homepage. You can do this easily by removing
<Contributors />
and<Giscus />
inHome.tsx
. - Make some other changes to the home page. This will depend on what you need, but you might want to remove stuff like
<WhatsNew />
and/or<Tools />
. - Edit the
Footer.tsx
component. You can remove the donation link, but I would appreciate if you still kept a note that your fork is based on my work, for example by linking to my github profile or this repository. - Change some of the translations in
src/locales/en.json
. Particularly you might want to change thetitle.home
key.