Updated Custom Potato Cannon Projectile Types (markdown)

PepperCode1 2021-10-24 13:00:12 -07:00
parent 264880449b
commit d9f6ba39cb

@ -1,6 +1,6 @@
## Summary
*(For Create 0.3.2e)*
*(For Create 0.3.2e & f)*
Custom potato cannon projectile types can be added via a datapack. Before 0.3.2e, types could only be added through code, but now a datapack can also be used. At this time, adding a type through code allows more customizability and control, however.
@ -8,8 +8,6 @@ Custom potato cannon projectile types can be added via a datapack. Before 0.3.2e
Adding a custom type is quite simple - just set up a basic datapack (more information [here](https://minecraft.fandom.com/wiki/Data_pack)) and add some files under the `data/[namespace]/potato_cannon_projectile_types` directory. Files must end in `.json` but can be located in any sub-directory, as long as the full path does not violate Minecraft's ResourceLocation path check. The full specification for these JSON files can be found in the table below.
Note: Custom types cannot define block or entity interactions or have a render mode other than billboard. However, this functionality will be added eventually.
## JSON Specification
|Key|Value Type|Default Value|Description|
@ -25,9 +23,15 @@ Note: Custom types cannot define block or entity interactions or have a render m
|`sound_pitch`|float|`1`|The pitch of the firing sound.|
|`sticky`|boolean|`false`|If the projectile sticks to an entity after hitting it.|
## Other Information
Custom types will always override builtin types (types added through code) but behavior is undefined if multiple custom types define the same item. In the future, custom types defining the same item will override each other in alphabetical order.
Custom types cannot define block or entity interactions or have a render mode other than billboard. However, this functionality will be added eventually.
## Examples
`data/example/potato_cannon_projectile_type/fish.json`
`data/example/potato_cannon_projectile_types/fish.json`
```json
{
"items": [
@ -41,7 +45,7 @@ Note: Custom types cannot define block or entity interactions or have a render m
}
```
`data/example/potato_cannon_projectile_type/material_blocks.json`
`data/example/potato_cannon_projectile_types/material_blocks.json`
```json
{
"items": [