Skip to content

Commit

Permalink
Merge pull request #59 from Exanthiax/craft_trigger_update
Browse files Browse the repository at this point in the history
Updated Craft Trigger
  • Loading branch information
WillFP authored May 11, 2024
2 parents fe9b71f + efdd21c commit 24fba04
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 35 deletions.
6 changes: 3 additions & 3 deletions docs/all-plugins/the-item-lookup-system.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ You can use items from my other plugins anywhere using The Item Lookup system.
| EcoArmor | `ecoarmor:set_<set>_<slot>` (Optional: `_advanced`) <br/>`ecoarmor:shard_<set>`<br/>`ecoarmor:upgrade_crystal_<id>` |

## Using items in MythicMobs
If you want to use a lookup item in MythicMobs, just do it like this: `eco{type=<lookup_key>}`, e.g. `eco{(}type=ecoitems:<id>}`
If you want to use a lookup item in MythicMobs, just do it like this: `eco{type=<lookup_key>}`, e.g. `eco{type=ecoitems:<id>}`

## Using items in ShopGUIPlus
If you want to use a lookup item in ShopGUIPlus, just do it like this:
Expand All @@ -95,8 +95,8 @@ items:
display_name: '&9Custom Helmet'
```
Using this in the Item Lookup System would look like: `itemsadder:my_items__my_helmet`.
### Oxaren
To use custom items from Oxaren, you can use `oxaren:<id>`.
### Oraxen
To use custom items from Oraxen, you can use `oraxen:<id>`.
### ItemBridge
To use custom items from ItemBridge, you can use `itembridge:saved__<id>`. If it's an item from a supported plugin, it's `itembridge:<prefix>__<id>`

16 changes: 8 additions & 8 deletions docs/effects/all-triggers.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,19 @@ Triggered effects also produce a value, which can be referenced with [their plac
and are used in plugins like EcoSkills, EcoPets, EcoJobs (etc) for levelling.

| ID | Description | Value Provided |
|---------------------------------|-------------------------------------------------------------------------------------------------------------------|-----------------------------------------------|
| ------------------------------- | ----------------------------------------------------------------------------------------------------------------- | --------------------------------------------- |
| `alt_click` | Triggered when using Right Click on most items, Left Click on those that have a default right click functionality | 1 |
| `bite` | Triggered when a fish bites on your rod | 1 |
| `block_item_drop` | Triggered when a mined block drops loot | The amount of items dropped |
| `bow_attack` | Triggered when shooting an entity with a bow and arrow (or crossbow) | The damage dealt |
| `breed` | Triggered when breeding entities together | The experience received |
| `brew_ingredient` | Same as `brew`, but passes the ingredient as the item | 1 |
| `brew` | Triggered when brewing a potion in a brewing stand | 1 |
| `brew_ingredient` | Same as `brew`, but passes the ingredient as the item | 1 |
| `buy_item` | Triggered when buying an item in a shop **Requires EcoShop** | The price |
| `cast_rod` | Triggered when casting a fishing line | 1 |
| `catch_entity` | Triggered when hooking onto an entity with a fishing rod | 1 |
| `catch_fish_fail` | Triggered when failing to catch a fish | 1 |
| `catch_fish` | Triggered when catching a fish | The experience dropped |
| `catch_fish_fail` | Triggered when failing to catch a fish | 1 |
| `change_armor` | Triggered when changing armor | 1 |
| `change_world` | Triggered when changing world | 1 |
| `click_block` | Triggered when right-clicking on a block | 1 |
Expand All @@ -31,7 +31,7 @@ and are used in plugins like EcoSkills, EcoPets, EcoJobs (etc) for levelling.
| `complete_quest` | Triggered when completing a quest **Requires EcoQuests** | 1 |
| `complete_task` | Triggered when completing a task **Requires EcoQuests** | 1 |
| `consume` | Triggered on item consumption | 1 |
| `craft` | Triggered when crafting an item | 1 |
| `craft` | Triggered when crafting an item | The amount of items crafted |
| `damage_item` | Triggered when damaging an item | The damage |
| `death` | Triggered on death from any sources | 1 |
| `disable` | Triggered when an item / enchant / etc disables | 1 |
Expand All @@ -45,8 +45,8 @@ and are used in plugins like EcoSkills, EcoPets, EcoJobs (etc) for levelling.
| `entity_break_door` | Triggered when an entity breaks a door | 1 |
| `entity_catch_fire_from_block` | Triggered when an entity catches fire from a block | 1 |
| `entity_catch_fire_from_entity` | Triggered when an entity catches fire from an entity | 1 |
| `entity_damage_by_entity` | Triggered when an entity takes damage from another entity | The damage taken |
| `entity_damage` | Triggered when an entity takes damage | The damage taken |
| `entity_damage_by_entity` | Triggered when an entity takes damage from another entity | The damage taken |
| `entity_death` | Triggered when an entity dies | 1 |
| `entity_item_drop` | Triggered when a killed entity drops loot | The amount of items dropped |
| `entity_spawn` | Triggered when an entity spawns | 1 |
Expand All @@ -67,14 +67,14 @@ and are used in plugins like EcoSkills, EcoPets, EcoJobs (etc) for levelling.
| `hook_in_ground` | Triggered when a fishing rod hook hits the ground | 1 |
| `item_break` | Triggered when breaking any item in your inventory (durability) | 1 |
| `jobs_level_up` | Triggered when levelling up a job **Requires Jobs Reborn** | The new level |
| `join_job` | Triggered when joining a job **Requires EcoJobs** | The job level |
| `join` | Triggered when joining the server | 1 |
| `join_job` | Triggered when joining a job **Requires EcoJobs** | The job level |
| `jump` | Triggered when Jumping (pressing space) | 1 |
| `kill` | Triggered when a player kills a player or entity | The victim's max health |
| `leave` | Triggered when leaving the server | 1 |
| `leave_bed` | Triggered when leaving a bed | 1 |
| `leave_job` | Triggered when leaving a job **Requires EcoJobs** | The job level |
| `leave_region` | Triggered when leaving a region **Requires WorldGuard** | 1 |
| `leave` | Triggered when leaving the server | 1 |
| `left_click_npc` | Triggered when left-clicking an NPC **Requires Citizens** | 1 |
| `level_up_item` | Triggered when levelling up an item | The new item level |
| `level_up_job` | Triggered when levelling up a job **Requires EcoJobs** | The new level |
Expand All @@ -84,8 +84,8 @@ and are used in plugins like EcoSkills, EcoPets, EcoJobs (etc) for levelling.
| `lose_hunger` | Triggered when losing hunger | The hunger lost |
| `lose_potion_effect` | Triggered when losing a potion effect | 1 |
| `melee_attack` | Triggered when injuring an entity with a melee attack | The damage dealt |
| `mine_block_progress` | Triggered when damaging a block | 1 |
| `mine_block` | Triggered when mining a block | 1 |
| `mine_block_progress` | Triggered when damaging a block | 1 |
| `move` | Triggered on all movement: looking around, walking | The distance moved |
| `pick_up_item` | Triggered when picking up an item | The amount of items |
| `place_block` | Triggered when placing a block | 1 |
Expand Down
36 changes: 12 additions & 24 deletions docs/effects/points.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,31 +3,19 @@ title: "The Points System"
sidebar_position: 8
---

Points are similar to currencies, however they exist purely as a way to keep track of something in a player. For
example, lets say you want the player to have to used an item a certain amount of times in order to use another one -
you would be able to keep track of this with a point.
Points are similar to currencies, however they exist purely as a way to keep track of something in a player. For example, lets say you want the player to have to used an item a certain amount of times in order to use another one - you would be able to keep track of this with a point.

You can have as many different points as you want, the plugins will keep track of them automatically. Points are shared
between plugins, too - so if you make a point in EcoItems, then you can use it in EcoPets, EcoJobs, etc.
You can have as many different points as you want, the plugins will keep track of them automatically. Points are shared between plugins, too - so if you make a point in EcoItems, then you can use it in EcoPets, EcoJobs, etc.

A point can hold any numeric value, including negatives and decimals, but of course how you decide to use them is
completely up to you.
A point can hold any numeric value, including negatives and decimals, but of course how you decide to use them is completely up to you.
## Point Types

## Placeholders
| Point Type | Placeholder | Description |
| ------------- | ------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| Points | `%libreforge_points_<point>%` | A general point that can be used to keep track of something per-player. (e.g. times jumped, zombies killed, etc.) |
| Global Points | `%libreforge_global_points_<point>%` | A general point that keeps track of something globally/server-wide for all players. (e.g. zombies killed by all players.) |
| Item Points | `%libreforge_item_points_<point>%` | A point that is tied to a specific item and tracks data on the item. Useful for making tools with custom durability's or per-item stats (e.g zombies killed using this sword.) |
## Commands
## `/libreforge points set/give/get/take`

You can get the value of a point with the following placeholder:

`%libreforge_points_<point>%`

## Global Points

There are also global points, which belong to the server rather than to the player.

You can get the value of these with `%libreforge_global_points_<point>%`

## Item Points

Item Points exist too - instead of belonging to the player or the server, they belong to items.

You can get the value of these with `%libreforge_item_points_<point>%`

Usage: `/libreforgepoints give <player> <point> <value>`

0 comments on commit 24fba04

Please sign in to comment.