Open jstockdi opened 3 years ago
Having troubles finding resources and clues on how to do it. Here is what I've learned so far:
Definitely need a resource pack, which will be downloaded client side to render
https://github.com/ZtechNetwork/MCJVanillaResourcePack looks like the default resource pack and is a good example.
Things about resource packs:
assets/minecraft/blockstates
contains the json configuration defining which graphics go w/ which state. See https://github.com/ZtechNetwork/MCJVanillaResourcePack/blob/master/assets/minecraft/blockstates/potatoes.json for an exampleassets/minecraft/textures/
is the root folder for the paths in the json configtextures/item
is where the graphic is defined for itemsAs far as "creating an onion" I think there is no specific onion object or class in the code. Rather, its a enum of an ItemStack(1).
Need to tell our plugin to load the resource pack:
In the plugins onEnable() method...
InputStream source = this.getResource("resource.zip");
try
{
ResourcePackManager.registerResource(this, source);
}
catch (IOException e)
{
e.printStackTrace();
}
Need to set resource-pack
in server.properties to a download URL to automagically install and download the resource pack
As a user I want an onion crop so that I can plant, harvest, and eat onions.