Block
Last updated
Last updated
This is an example block (remember to change myitems
namespace to the one you want).
For example I created a file which will contain all my custom blocks:
In this file (blocks.yml
) I start creating a simple block called red_block
It's very important to use a non placeable vanilla material. For example PAPER. If you use a block (like STONE or DIRT) it will result a bit glitchy when placed.
Now the fun part, let's set the textures!
To do that you have to put the .png
textures file inside the correct folder.
In this case your namespace is myitems
so you have to put them here:
Now open blocks.yml
file again and add the resource
part as I did.
As you can see I set generate: true
and I set the textures for the item.
This tells the plugin to generate the 3D model automatically using your texture.
Important: keep the correct cardinal directions order as shown in the example.
You have to add the specific_properties
attribute, like in this example:
Click on the bottom link if you want to specify tools which can break the block, add hardness and other attributes.
Now you just need to tell the plugin to load your just added block.
run /iazip
.
Don't forget to upload the new generated .zip file on your hosting (Dropbox)! 1. Get it from this folder:
2. Upload it to your hosting (Dropbox)
3. Open config.yml
of ItemsAdder and update the external-host
url with your new link.
If you have more questions read the full external-host tutorial here:
📦DropBoxRun /iaget red_block
to get the item.