minecraft

Topics related to minecraft:

Getting started with minecraft

This section provides an overview of what minecraft is, and why a developer might want to use it.

It should also mention any large subjects within minecraft, and link out to the related topics. Since the Documentation for minecraft is new, you may need to create initial versions of those related topics.

Installing a Spigot server

Plugin Commands

Event Listeners in Bukkit

Writing Minecraft Mods

Event Listeners in Forge

Creating a basic block with Forge

If something goes wrong and your custom block (either when placed or held) has a missing texture (black/purple) or model (default cube that's too large when held) check the log. Problems of this sort will almost always show up in the log, provided that you have registered things correctly.

The first thing that will show up is "Exception loading model for variant..." line or similar, telling you which block or item failed to load properly. After a dozen or so lines beginning with at... will be another line starting Caused by...

This "Caused By" line is the important one, it will tell you which file failed to load properly and can be one of several errors, such as:

  • Malformed JSON (your JSON file isn't valid and has a typo)
  • File Not Found (the file Minecraft is looking for is not properly named or in the right place)
  • Missing Variant Exception (your Blockstate JSON is incomplete)

You may even get more than one failing error for a single mistake! If you don't kno which block is the problem, comment out every block and item you know works, reduce the error list down to the block (or blocks) in question. You may have to do this several times.

Additionally, a mixing texture shows up as differently as a simple list all of the missing resources for a given domain (mod ID).

Creating first Spigot plugin

Creating a Basic Item with Forge

If something goes wrong and your custom item has a missing texture (black/purple) or model (default cube that's too large when held) check the log. Problems of this sort will almost always show up in the log, provided that you have registered things correctly.

The first thing that will show up is "Exception loading model for variant..." line or similar, telling you which block or item failed to load properly. After a dozen or so lines beginning with at... will be another line starting Caused by...

This "Caused By" line is the important one, it will tell you which file failed to load properly and can be one of several errors, such as:

  • Malformed JSON (your JSON file isn't valid and has a typo)
  • File Not Found (the file Minecraft is looking for is not properly named or in the right place)
  • Missing Variant Exception (your Blockstate JSON is incomplete)

You may even get more than one failing error for a single mistake! If you don't know which item is the problem, comment out every block and item you know works, reduce the error list down to the block (or blocks) in question. You may have to do this several times.

Additionally, a mixing texture shows up as differently as a simple list all of the missing resources for a given domain (mod ID).

Modding with Forge

This topic should contain most used patterns/examples and well tested code for modding the Minecraft application with forge. Maybe this can replace the official documentation one day.