Commit Graph

1152 Commits

Author SHA1 Message Date
Gunging
4c14423b0f Reworked the backend on how consumables are consumed to allow more reliable API.
Added `ConsumableConsumedEvent` to intercept a consumable being consumed, and ItemStats may now implement `SelfConsumable` to run a method when the food item is being eaten by a player.
2021-05-18 15:43:22 -04:00
Gunging
0a41192838 Upgrade Ranges in crafting stations now supported. Also works in the workbench (when using latest MythicLib).
```yml
    crafting:
      shaped:
        '1':
        - m MATERIAL WEAPON_POWDER 1|m MATERIAL WEAPON_POWDER 1|m MATERIAL WEAPON_POWDER 1
        - m MATERIAL WEAPON_POWDER 1|m SWORD PLATINUM_SWORD{level=2..5} 1|m MATERIAL WEAPON_POWDER 1
        - m MATERIAL WEAPON_POWDER 1|m MATERIAL WEAPON_POWDER 1|m MATERIAL WEAPON_POWDER 1
 ```
2021-05-18 03:42:06 -04:00
Gunging
96e09c07ed Since Unidentified Items have been dropping with their item custom model data, they can be identified with the use of a resourcepack... which is not fun. You may now (optionally) add to your item-types.yml a **material** and **model** options to force Unidentified items of that type to display (and thus not show the actual item information).
For example:
```yml
SWORD:
    display: DIAMOND_SWORD
    name: 'Sword'
    unident-item:
        name: '<#cb94ff>&l¿ <#b363ff>Unidentified<#bcff85>&l Sword <#cb94ff>&l?'
        material: CLAY_BALL
        model: 1
        lore:
        - ''
        - '<#bee89b>This item is unidentified. Will have to'
        - '<#bee89b>purchase a <#e099f0>Scroll of Identification'
        - '<#bee89b>for &a$10<#bee89b> at the &b/warp market<#bee89b>.'
```
2021-05-15 02:14:07 -04:00
Gunging
a4d7723d16 More Polishing of the item Revision Updating System.
Ability 'ShadowVeil' now has a 'Deception' parameter, the times a player can hit something else without it being removed.
2021-05-14 18:40:18 -04:00
HexedHero
99648381e8 Fix NPE with Shadow Veil ability 2021-05-14 13:39:36 -07:00
Ethan
c4228d62a9 %player% issue is no more 2021-05-13 22:41:26 -04:00
Ethan
2447957d15 Attempts to fix %player% command issue. 2021-05-11 15:44:42 -04:00
Gunging
2319b56221 Crafting stations that require an item be upgraded to a specific level now display which level they expect. 2021-05-11 11:55:55 -04:00
Gunging
2766870937 GemStones now display their upgrade level (if they are set to scale with upgrades)
Bugfixes and polishing.
2021-05-10 00:12:55 -04:00
Gunging
ac278179a9 Updated config.yml 2021-05-07 01:10:27 -04:00
Gunging
370c2f8746 Modifiers now work with RevID increases. 2021-05-07 00:31:09 -04:00
Ethan
685431bec8 permissions now transfer from gemstones 2021-05-05 21:56:24 -04:00
BuildTools
5e78b9e8dc Fix for rpginv formatting? 2021-05-01 14:10:27 -05:00
BuildTools
dc03aaffaf Updated the repairpercent chat message. 2021-05-01 12:22:27 -05:00
BuildTools
03b8599f6d Fixing div by 0 error 2021-05-01 12:17:27 -05:00
BuildTools
8dd889a6c5 Logic error in repairpercent 2021-05-01 12:01:55 -05:00
BuildTools
46ae7171b9 Added new Repair Percent Stat for consumables. Put in a number between 0 and 1, and this is the percentage it will repair.
UNTESTED!!!!!!!!!!

Also tweaked RepairItemEvent to support this
2021-05-01 11:57:40 -05:00
Gunging
b13c285d85 #1 Fixes being able to use abilities of items even when they are two-handed and you are carrying two in each hand.
If you wanted them to work this way, feel free to add to your config:
```yml
# Abilities can be used even when
# the player is encumbered by the
# items that give them
abilities-bypass-encumbering: true
```

Also added `RefreshInventoryEvent` that allows API check of which items are getting equipped, and thus allows to modify them somewhat.
2021-04-26 00:57:16 -05:00
Adam
402fcfe26c Lute custom particles now work will all lute attack effects 2021-04-24 10:43:10 -04:00
Dancull47
dbb0c0de04 Added a Placeholder Condition for MMOItem Crafting Stations.
Here's an example of using it `- 'placeholder{placeholder=%ac_Stat_Weight%~>~1}'`

This means "Placholder ac_Stat_Weight is greater than 1" then use you use it with `hide-when-locked: true` to prevent the item from showing, or however you want to use it.

`placeholder{placeholder=<Placeholder>~<Comparator>~<Number>}`

It's simple, but a bit odd. You first declare the placeholder "%ac_Stat_Weight%", then chose the comparator ">" and finally the number to compare it to "1" all split up using the "~".

You can also compare the placeholder with Text/String when using the `equals` comparator

More info on the Wiki https://git.lumine.io/mythiccraft/mmoitems/-/wikis/Recipe-Conditions
2021-04-23 21:44:18 -04:00
Gunging
cdeb16825a Prevents B717 2021-04-23 12:10:48 -05:00
Dancull47
20d7b809b8 Added a silent argument to the /mi give command.
This is an example of how to use it
`/mi give ACCESSORY BOOK_OF_STAMPS MonzterSlayer 1 0 100 0 silent`
You need to specify the unidentify-chance, drop-chance, and soulbound-chance, to then add silent.

If you use "s" or "silent" where I did, the message of "You received ITEM NAME" will not be sent to the Player. This does not affect any previous usages of the command, but if you want to use it, just add the "silent" argument!
2021-04-20 02:07:34 -04:00
Gunging
16c1aada3e The ItemUpdater now updates Abilities, ticked #1527 2021-04-16 00:25:35 -05:00
Gunging
be470bd923 Item Modifications now saved into Stat History - Fixes #1513 2021-04-16 00:13:02 -05:00
Gunging
9b09ec1d10 Revision of items where gemstones are lost now supports giving those gems back to the player.
Suppose the latest item has less gem slots / different colored gem slots, or you set keep-gems to FALSE. In all these scenarios, gems are 'lost' so that this config option (**true** by default!) gives them back to the player.

Enable in your config:
```
# Options for the Item Revision System
item-revision:

    # If an item is updated, and the new version does not
    # keep its gems, this will give the gems back to the
    # player so that they don't get lost forever.
    drop-extra-gems: true
```
2021-04-15 21:40:44 -05:00
Gunging
53a3b8671d Another 6 hours into polishing the RevID Updater o.O 2021-04-15 19:31:03 -05:00
Gunging
4f6042c3d8 Gemstones with NEVER scaling fixed. 2021-04-15 01:50:09 -05:00
Dancull47
b0f442f9be You can now use <tier-color-cleaned> as a substitute of <tier-color>.
`<tier-color-cleaned>` will NOT include Bold, Italic, Underline, Strike, and Magic from your tier.
This can be used if you want your Tier to be Bold, but only want your Item Name to match the color and not the Boldness for example.

https://git.mythiccraft.io/mythiccraft/mmoitems/-/wikis/Display-Name-Placeholders
2021-04-14 21:29:51 -04:00
Ethan
47a2fe0fbc !add todo 2021-04-12 06:28:04 -04:00
Gunging
dc980ffcd5 Small bugfixes:
Crafting recipes being visually constrained by additive RNG even when multiplicative is selected.

A pair of variables from the config not being read but until the first `/mmoitems reload`.
2021-04-11 12:43:15 -05:00
Gunging
46b17a7f5a Crafting stations now display the items in 'preview mode' (With ranges of RNG in the form X-X instead of a random number), as suggested in #385
Also removed that strange empty slot when crafting stations display ingredients of amount divisible by 64

Implemented suggestion of ticket #403, you may add and edit the following quantities to your config.yml:
```yml
stats-displaying:

    # This will be a prefix to numeric stats,
    # changing their color when they are undesirable.
    color-positive: '&b'
    color-negative: '&9'
    range-dash: '§f§l⎓'
 ```
 https://git.lumine.io/mythiccraft/mmoitems/-/issues/403
2021-04-11 01:28:12 -05:00
Gunging
b29ddd96d4 Fixes Upgrade Consumable / Gemstone Remover confusion 2021-04-11 00:38:05 -05:00
Gunging
fde1cdce5e Significantly polished the Item Updater, and the way StatHistory saves and loads data from Gem Stones.
Gemstones now removable (via this *Unsocket* stat available for consumables)
2021-04-10 19:07:05 -05:00
Gunging
5eeaba43c7 Fixes 1405, though that error should only happen if you fire something insanely far away from the spawn or idk (Causing some X co-ordinate to be infinity) 2021-04-09 01:52:59 -05:00
Gunging
cdda1b6179 Fixes ticket 1393 2021-04-09 01:35:56 -05:00
Gunging
3bde9b1b32 Oh thats why (but hopefully this one will actually build) 2021-04-09 01:19:47 -05:00
Gunging
0974a6f6d8 Oh thats why 2021-04-08 00:02:12 -05:00
Gunging
098b1c1e6c Oh thats why 2021-04-08 00:01:18 -05:00
Gunging
5ca2d75b93 Once again toughening recipes, how many places can possibly break by someone using non-alphanumeric characters in ItemIDs GOD 2021-04-07 23:37:32 -05:00
Gunging
00c5ea0ff3 Even tougher recipe error detection based on new data (that was previously thought impossible HMMM) 2021-04-07 23:15:25 -05:00
Gunging
ef8045885b Tougher recipe registration system complement, from MMOItems' side. 2021-04-07 22:52:16 -05:00
Adam
954fbf988f You can now change the particle and particle color for lute attacks.
A stat called "Projectile Particles" has been added for this purpose.
```
You may use any particle provided by Spigot. A list of available particles can be found here: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Particle.html

In addition to being able to change the particle, you can also change the color of certain particles. REDSTONE, SPELL_MOB, SPELL_MOB_AMBIENT, and NOTE can all change colors.

REDSTONE, SPELL_MOB, and SPELL_MOB_AMBIENT can use any RGB color. If selecting one of these particles, you must also provide a color. For example:
SPELL_MOB 255 255 0

NOTE particles are unique and instead require a single value between 1 and 24 for their color. For example:
NOTE 16
```

This functionality may be extended to other weapons such as muskets and whips in the future.
2021-04-07 18:07:13 -04:00
Adam
ee43a26ae3 Merge branch 'particles' into 'master'
Particles

See merge request mythiccraft/mmoitems!6
2021-04-07 14:49:42 -07:00
Adam
560529a6c2 !Finish implementation of Projectile Particles for Lute 2021-04-07 17:47:54 -04:00
Adam
fc611b15bc !Add Projectile Particles attribute. Allows users to change the projectile particle and particle color for Lute, Whip, and Musket. Only Lute is currently implemented. 2021-04-07 05:12:17 -04:00
HexedHero
241e172eea Fixed some Corrupted Fangs bugs
- Fixed the ability always doing 6 extra damage
- Fixed the ability damaging players when ability-player-damage config
setting is false
2021-04-05 23:51:23 +01:00
HexedHero
ed32317419 Add fang amount to the Corrupted Fangs ability 2021-04-05 23:48:35 +01:00
HexedHero
5543cedbc9 Don't spawn chickens from the Chicken Wraith ability 2021-04-05 23:37:37 +01:00
Gunging
fa1ff355d1 Fixed #mmoitems-1407 ticket about duplicate recipes causing MMOItems to not load 2021-04-05 11:16:04 -05:00
Gunging
eef0414a35 Multiple recipes of the same thing no longer possible.
Fixes #mmoitems-1407
2021-04-05 10:47:48 -05:00