Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

item lookup and give_item #44

Merged
merged 1 commit into from
Feb 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 12 additions & 9 deletions docs/all-plugins/the-item-lookup-system.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,20 +48,23 @@ Items can have modifiers applied to them in the key. For example, lets say you'r
- **Unbreakable:** You can make an item unbreakable by having the word `unbreakable` in the flags
- **Custom Model Data:** You can specify custom model data with `custom-model-data:<id>`
- **Armor Trims:** You can specify armor trims with `trim:<material>:<pattern>`, e.g. `trim:emerald:snout`
- **Spawner Entity:** You can specify the spawner entity with `entity:<id>`

So, lets say you have an EcoMobs mob, and you want it to drop a rare custom weapon with extra modifiers already applied. Without the Item Lookup system, this wouldn't be possible, but thanks to it, you can just do this: `ecoitems:enlightened_blade razor:4 unbreaking:3 criticals:2 fire_aspect:2 reforge:mighty unbreakable hide_attributes custom-model-data:2`

## Using items from my other plugins
You can use items from my other plugins anywhere using The Item Lookup system.
- **EcoItems:** `ecoitems:<id>`
- **Talismans:** `talismans:<id>`
- **EcoMobs:** `ecomobs:<id>_spawn_egg`
- **EcoPets:** `ecopets:<id>_spawn_egg`
- **StatTrackers:** `stattrackers:<id>`
- **EcoCrates:** `ecocrates:<crate>_key`
- **Reforges:** `reforges:stone_<id>`
- **EcoArmor:** `ecoarmor:set_<set>_<slot>` (Optional: `_advanced`)
`ecoarmor:shard_<set>` `ecoarmor:upgrade_crystal_<id>`

| Plugin | Item Lookup Key |
|------------------|---------------------------------------------------------------------------------------------------------------------|
| **EcoItems** | `ecoitems:<id>` |
| **Talismans** | `talismans:<id>` |
| **EcoMobs** | `ecomobs:<id>_spawn_egg` |
| **EcoPets** | `ecopets:<id>_spawn_egg` |
| **StatTrackers** | `stattrackers:<id>` |
| **EcoCrates** | `ecocrates:<crate>_key` |
| **Reforges** | `reforges:stone_<id>` |
| **EcoArmor** | `ecoarmor:set_<set>_<slot>` (Optional: `_advanced`) <br/>`ecoarmor:shard_<set>`<br/>`ecoarmor:upgrade_crystal_<id>` |

## Using items in ShopGUIPlus
If you want to use a lookup item in ShopGUIPlus, just do it like this:
Expand Down
3 changes: 3 additions & 0 deletions docs/effects/all-effects/give_item.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ Gives a player an item
- id: give_item
args:
item: "diamond_sword razor:5" # The item to give
items: # You can also specify a list of items
- "ecoitems:enchanted_diamond 1"
- "diamond_pickaxe 1 unbreaking:2"
slot: hand # (Optional) The slot to give in, can be any numeric slot, hand, or 'any' (Defaults to any)
...other config (eg triggers, filters, mutators, etc)
```
Loading