From 12b1e6c9b44517c83d472b2b96ba88cdc1e218b4 Mon Sep 17 00:00:00 2001 From: SBDeveloper Date: Sun, 7 Apr 2024 12:45:01 +0200 Subject: [PATCH] Moved tutorial to docs --- Resource Packs/Tutorial/1.12-1.13/README.md | 4 - Resource Packs/Tutorial/1.14+/README.md | 74 ------------------ .../minecraft/models/item/leather_boots.json | 8 -- .../models/item/leather_chestplate.json | 8 -- .../minecraft/models/item/leather_helmet.json | 8 -- Resource Packs/Tutorial/README.md | 7 +- .../assets/minecraft/models/item/Thumbs.db | Bin .../minecraft/models/item/leather_boots.json | 9 +++ .../models/item/leather_chestplate.json | 9 +++ .../minecraft/models/item/leather_helmet.json | 9 +++ .../{1.14+ => }/assets/minecraft/sounds.json | 0 .../assets/vp/sounds/vehicles/accelerate.ogg | Bin .../assets/vp/sounds/vehicles/driving.ogg | Bin .../assets/vp/sounds/vehicles/idle.ogg | Bin .../assets/vp/sounds/vehicles/slowingdown.ogg | Bin .../assets/vp/sounds/vehicles/start.ogg | Bin .../Tutorial/{1.14+ => }/pack.mcmeta | 0 17 files changed, 30 insertions(+), 106 deletions(-) delete mode 100644 Resource Packs/Tutorial/1.12-1.13/README.md delete mode 100644 Resource Packs/Tutorial/1.14+/README.md delete mode 100644 Resource Packs/Tutorial/1.14+/assets/minecraft/models/item/leather_boots.json delete mode 100644 Resource Packs/Tutorial/1.14+/assets/minecraft/models/item/leather_chestplate.json delete mode 100644 Resource Packs/Tutorial/1.14+/assets/minecraft/models/item/leather_helmet.json rename Resource Packs/Tutorial/{1.14+ => }/assets/minecraft/models/item/Thumbs.db (100%) create mode 100644 Resource Packs/Tutorial/assets/minecraft/models/item/leather_boots.json create mode 100644 Resource Packs/Tutorial/assets/minecraft/models/item/leather_chestplate.json create mode 100644 Resource Packs/Tutorial/assets/minecraft/models/item/leather_helmet.json rename Resource Packs/Tutorial/{1.14+ => }/assets/minecraft/sounds.json (100%) rename Resource Packs/Tutorial/{1.14+ => }/assets/vp/sounds/vehicles/accelerate.ogg (100%) rename Resource Packs/Tutorial/{1.14+ => }/assets/vp/sounds/vehicles/driving.ogg (100%) rename Resource Packs/Tutorial/{1.14+ => }/assets/vp/sounds/vehicles/idle.ogg (100%) rename Resource Packs/Tutorial/{1.14+ => }/assets/vp/sounds/vehicles/slowingdown.ogg (100%) rename Resource Packs/Tutorial/{1.14+ => }/assets/vp/sounds/vehicles/start.ogg (100%) rename Resource Packs/Tutorial/{1.14+ => }/pack.mcmeta (100%) diff --git a/Resource Packs/Tutorial/1.12-1.13/README.md b/Resource Packs/Tutorial/1.12-1.13/README.md deleted file mode 100644 index 2881e08..0000000 --- a/Resource Packs/Tutorial/1.12-1.13/README.md +++ /dev/null @@ -1,4 +0,0 @@ -# VehiclesPlus Tutorial Pack 1.12 - 1.13 -> By default, this resourcepack supports `1.13 - 1.13.2` - -> #SOON diff --git a/Resource Packs/Tutorial/1.14+/README.md b/Resource Packs/Tutorial/1.14+/README.md deleted file mode 100644 index 062b5f3..0000000 --- a/Resource Packs/Tutorial/1.14+/README.md +++ /dev/null @@ -1,74 +0,0 @@ -# VehiclesPlus v2 Tutorial Pack 1.14+ -> By default, this resourcepack supports `1.20.2 - 1.20.4`. - -## YouTube video -[![IMAGE ALT TEXT HERE](https://img.youtube.com/vi/fx2Z5ZD_Rbo/0.jpg)](https://www.youtube.com/watch?v=YOUTUBE_VIDEO_ID_HERE) - -## Steps to take -Below you can find the steps to take to add your own models to the pack. - -### Step 1: Purchase your models -The first step is to achieve the models you want to use. Make sure the models are delivered in a Minecraft-compatible `.json` file. This makes it super easy to install! - -You can easily find VehiclesPlus-compatible models [on Polymart](https://vehicles.polymart.org/). - -### Step 2: Changing the supported version -Open the `pack.mcmeta` file in the root folder. Change the `pack_format` to the correct number according to the table below. Then change the `game_version` to the default (latest) version you want to support. - -| **Version:** | **`pack_format:`** | -|-----------------|--------------------| -| 1.12 - 1.12.2 | `3` | -| 1.13 - 1.14.4 | `4` | -| 1.15 - 1.16.1 | `5` | -| 1.16.2 - 1.16.5 | `6` | -| 1.17 - 1.17.1 | `7` | -| 1.18 - 1.18.2 | `8` | -| 1.19 - 1.19.2 | `9` | -| 1.19.3 | `12` | -| 1.19.4 | `13` | -| 1.20 - 1.20.1 | `15` | -| 1.20.2 | `18` | -| 1.20.3 - 1.20.4 | `22` | - -### Step 3: Install the model files -Now its time to install the model's files inside the resourcepack. Most of the time, a `.json` file is included with your model. You can direclty put this file in the `assets/vp/models/item` folder. - -If any textures files are included (most of the time, this is not the case), insert them into the `assets/vp/textures/item` folder. - -### Step 4: Add the models to the correct item -VehiclesPlus uses an item to make the models visible. You can choose any item you want, by default the plugin uses the `leather_boots` for models. - -Under the `overrides` section, add a line like this: - -```json -"overrides": [ - { "predicate": {"custom_model_data":1}, "model": "vp:item/YOURMODEL"} -] -``` - -Replace `YOURMODEL` by the name of the `.json` file (excluding the extension!). Replace the `1` by the data number you want to assign. This must be unique for the `leather_boots` file. Remember this number for step 5. - -### Step 5: Create a configuration file -Now go to your Minecraft server's files. - -Copy the example configuration file from the VehiclesPlus plugin folder for the type of vehicle you want to add. If you don't have the original files in your plugin folder anymore, you can [find them here](https://git.sbdevelopment.tech/SBDevelopment/VehiclesPlus/src/branch/master/Vehicle%20Models). - -Rename the copied file to the name of your file. Then also change the name inside the file, like `name: MyCoolCar` - -Now go to the skin section, and replace the meta section by this: - -```yaml -list0: - className: me.legofreak107.vehiclesplus.vehicles.vehicles.objects.addons.skins.Skin - skin: - ==: org.bukkit.inventory.ItemStack - v: 3337 - # ONLY change the section below! - # Change the type to the correct item. Probably you used the LEATHER_BOOTS. - type: LEATHER_BOOTS - meta: - ==: ItemMeta - meta-type: UNSPECIFIC - # Set the custom model data you chose in step 4. - custom-model-data: 1 -``` \ No newline at end of file diff --git a/Resource Packs/Tutorial/1.14+/assets/minecraft/models/item/leather_boots.json b/Resource Packs/Tutorial/1.14+/assets/minecraft/models/item/leather_boots.json deleted file mode 100644 index 9f2e062..0000000 --- a/Resource Packs/Tutorial/1.14+/assets/minecraft/models/item/leather_boots.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "parent": "item/handheld", - "textures": { - "layer0": "item/leather_boots" - }, - "overrides": [ - ] -} \ No newline at end of file diff --git a/Resource Packs/Tutorial/1.14+/assets/minecraft/models/item/leather_chestplate.json b/Resource Packs/Tutorial/1.14+/assets/minecraft/models/item/leather_chestplate.json deleted file mode 100644 index 8579b70..0000000 --- a/Resource Packs/Tutorial/1.14+/assets/minecraft/models/item/leather_chestplate.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "parent": "item/handheld", - "textures": { - "layer0": "item/leather_chestplate" - }, - "overrides": [ - ] -} \ No newline at end of file diff --git a/Resource Packs/Tutorial/1.14+/assets/minecraft/models/item/leather_helmet.json b/Resource Packs/Tutorial/1.14+/assets/minecraft/models/item/leather_helmet.json deleted file mode 100644 index 13a3e31..0000000 --- a/Resource Packs/Tutorial/1.14+/assets/minecraft/models/item/leather_helmet.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "parent": "item/handheld", - "textures": { - "layer0": "item/leather_helmet" - }, - "overrides": [ - ] -} \ No newline at end of file diff --git a/Resource Packs/Tutorial/README.md b/Resource Packs/Tutorial/README.md index 4b37e0c..57d121a 100644 --- a/Resource Packs/Tutorial/README.md +++ b/Resource Packs/Tutorial/README.md @@ -1,5 +1,4 @@ -# VehiclesPlus Tutorial Resourcepack -This is an empty resourcepack, specifically designed for use with VehiclesPlus v2. +# VehiclesPlus v2 Tutorial Pack 1.14+ +> By default, this resourcepack supports `1.20.2 - 1.20.4`. It does **NOT** work for 1.12-1.13. Please contact us in our Discord if you need help with that version. -## Choose your version! -Please select the correct version for your server. If your server **runs on 1.14 or higher**, choose the `1.14+` folder. +You can find [the full tutorial here](https://docs.sbdevelopment.tech/en/vehiclesplus/configuration/vehicles). diff --git a/Resource Packs/Tutorial/1.14+/assets/minecraft/models/item/Thumbs.db b/Resource Packs/Tutorial/assets/minecraft/models/item/Thumbs.db similarity index 100% rename from Resource Packs/Tutorial/1.14+/assets/minecraft/models/item/Thumbs.db rename to Resource Packs/Tutorial/assets/minecraft/models/item/Thumbs.db diff --git a/Resource Packs/Tutorial/assets/minecraft/models/item/leather_boots.json b/Resource Packs/Tutorial/assets/minecraft/models/item/leather_boots.json new file mode 100644 index 0000000..8a5c54d --- /dev/null +++ b/Resource Packs/Tutorial/assets/minecraft/models/item/leather_boots.json @@ -0,0 +1,9 @@ +{ + "parent": "item/handheld", + "textures": { + "layer0": "item/leather_boots", + "layer1": "item/leather_boots_overlay" + }, + "overrides": [ + ] +} \ No newline at end of file diff --git a/Resource Packs/Tutorial/assets/minecraft/models/item/leather_chestplate.json b/Resource Packs/Tutorial/assets/minecraft/models/item/leather_chestplate.json new file mode 100644 index 0000000..8c39b68 --- /dev/null +++ b/Resource Packs/Tutorial/assets/minecraft/models/item/leather_chestplate.json @@ -0,0 +1,9 @@ +{ + "parent": "item/handheld", + "textures": { + "layer0": "item/leather_chestplate", + "layer1": "item/leather_chestplate_overlay" + }, + "overrides": [ + ] +} \ No newline at end of file diff --git a/Resource Packs/Tutorial/assets/minecraft/models/item/leather_helmet.json b/Resource Packs/Tutorial/assets/minecraft/models/item/leather_helmet.json new file mode 100644 index 0000000..a992cff --- /dev/null +++ b/Resource Packs/Tutorial/assets/minecraft/models/item/leather_helmet.json @@ -0,0 +1,9 @@ +{ + "parent": "item/handheld", + "textures": { + "layer0": "item/leather_helmet", + "layer1": "item/leather_helmet_overlay" + }, + "overrides": [ + ] +} \ No newline at end of file diff --git a/Resource Packs/Tutorial/1.14+/assets/minecraft/sounds.json b/Resource Packs/Tutorial/assets/minecraft/sounds.json similarity index 100% rename from Resource Packs/Tutorial/1.14+/assets/minecraft/sounds.json rename to Resource Packs/Tutorial/assets/minecraft/sounds.json diff --git a/Resource Packs/Tutorial/1.14+/assets/vp/sounds/vehicles/accelerate.ogg b/Resource Packs/Tutorial/assets/vp/sounds/vehicles/accelerate.ogg similarity index 100% rename from Resource Packs/Tutorial/1.14+/assets/vp/sounds/vehicles/accelerate.ogg rename to Resource Packs/Tutorial/assets/vp/sounds/vehicles/accelerate.ogg diff --git a/Resource Packs/Tutorial/1.14+/assets/vp/sounds/vehicles/driving.ogg b/Resource Packs/Tutorial/assets/vp/sounds/vehicles/driving.ogg similarity index 100% rename from Resource Packs/Tutorial/1.14+/assets/vp/sounds/vehicles/driving.ogg rename to Resource Packs/Tutorial/assets/vp/sounds/vehicles/driving.ogg diff --git a/Resource Packs/Tutorial/1.14+/assets/vp/sounds/vehicles/idle.ogg b/Resource Packs/Tutorial/assets/vp/sounds/vehicles/idle.ogg similarity index 100% rename from Resource Packs/Tutorial/1.14+/assets/vp/sounds/vehicles/idle.ogg rename to Resource Packs/Tutorial/assets/vp/sounds/vehicles/idle.ogg diff --git a/Resource Packs/Tutorial/1.14+/assets/vp/sounds/vehicles/slowingdown.ogg b/Resource Packs/Tutorial/assets/vp/sounds/vehicles/slowingdown.ogg similarity index 100% rename from Resource Packs/Tutorial/1.14+/assets/vp/sounds/vehicles/slowingdown.ogg rename to Resource Packs/Tutorial/assets/vp/sounds/vehicles/slowingdown.ogg diff --git a/Resource Packs/Tutorial/1.14+/assets/vp/sounds/vehicles/start.ogg b/Resource Packs/Tutorial/assets/vp/sounds/vehicles/start.ogg similarity index 100% rename from Resource Packs/Tutorial/1.14+/assets/vp/sounds/vehicles/start.ogg rename to Resource Packs/Tutorial/assets/vp/sounds/vehicles/start.ogg diff --git a/Resource Packs/Tutorial/1.14+/pack.mcmeta b/Resource Packs/Tutorial/pack.mcmeta similarity index 100% rename from Resource Packs/Tutorial/1.14+/pack.mcmeta rename to Resource Packs/Tutorial/pack.mcmeta