Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/krunchshoot/libtrimarmor
LibTrimArmor is a virion for implementation of Armor Trim from Tale & Trails Update
https://github.com/krunchshoot/libtrimarmor
Last synced: 19 days ago
JSON representation
LibTrimArmor is a virion for implementation of Armor Trim from Tale & Trails Update
- Host: GitHub
- URL: https://github.com/krunchshoot/libtrimarmor
- Owner: KRUNCHSHooT
- License: gpl-3.0
- Created: 2023-06-19T11:00:04.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-07-07T13:13:47.000Z (4 months ago)
- Last Synced: 2024-10-10T23:24:23.792Z (about 1 month ago)
- Language: PHP
- Size: 22.5 KB
- Stars: 4
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# LibTrimArmor
LibTrimArmor is a virion for implementation of Armor Trim from Tale & Trails Update
## Usage
### Implement an armor item
`LibTrimArmor::create()` add your item an nbt value for the Armor Trim that you want
```php
LibTrimArmor::create($item, $material, $pattern);
```
`Armor $item` is your own item that you want to turn it to Armor Trim
`string $material` is a material that you want to use (You can see the constant in \KRUNCHSHooT\LibTrimArmor\MaterialType)
`string $pattern` is a pattern/template you want to use (You can see The constant in \KRUNCHSHooT\LibTrimArmor\PatternType)### Implement more that one armor items
`LibTrimArmor::creates()` add your items an nbt value for the Armor Trim that you want
```php
LibTrimArmor::creates($items, $material, $pattern);
```
`Armor[] $items` is your own items that you want to turn it to Armor Trim
`string $material` is a material that you want to use (You can see the constant in \KRUNCHSHooT\LibTrimArmor\MaterialType)
`string $pattern` is a pattern/template you want to use (You can see The constant in \KRUNCHSHooT\LibTrimArmor\PatternType)## Example
see [SilenceArmor](https://github.com/KRUNCHSHooT/SilenceArmor)