Commit Graph

1073 Commits

Author SHA1 Message Date
Ethan
2fb3d69307 null checks 2021-03-24 07:35:26 -04:00
Adam
0b4afabcdd Potential fix for unbreakingLevel NPE 2021-03-22 03:52:01 -04:00
Adam
daf1e15680 Broken weapons no longer do damage 2021-03-20 20:03:04 -04:00
Ethan
ee0bd71403 adds back durability to unbreakable items with a custom durability set 2021-03-20 11:56:51 -04:00
HexedHero
ae175089df !Format fixes 2021-03-20 06:53:34 +00:00
Adam
f3a40b926e Only items with durability can be broken 2021-03-19 14:41:56 -04:00
Gunging
f27b9162d9 Gemstone Data more resilient to types being missing. 2021-03-18 12:14:25 -05:00
Adam
65e3ddb87f Prevent untargeted weapons from firing when broken 2021-03-17 03:44:05 -04:00
Adam
59b2592fb3 Don't let player equip armor that they can't use 2021-03-17 02:55:02 -04:00
Ethan
81eafa4605 update item updater to support components 2021-03-17 01:48:35 -04:00
Gunging
eb92fd0bc1 PermanentEffects now correctly provides its clear stat data.
Fixes ticket #mmoitems-1211
2021-03-17 00:32:57 -05:00
Ethan
05acf3573a !durability listener shelved for the time being 2021-03-11 17:59:04 -05:00
Ethan
a0b29dc8d2 durability checks for custom before applying vanilla damage. 2021-03-11 04:26:17 -05:00
Gunging
c6c4241804 Okay, you MUST make sure you use capital letters in HEX code. Also never use &f code its mega buggy.
Correct:
```
   name-suffix: ' <#CEEE70>&l+#lvl#'
```
2021-03-10 15:28:33 -06:00
Gunging
e791286598 I am once again fixing upgrade suffix duplicating in obscure scenarios. This time if the color code you use is the same that the name of the item you are upgrading ends with.
**You know what? Dont use vanilla color codes, just go to https://htmlcolorcodes.com/color-picker/ and pick a color for it**

```
    name-suffix: ' <#CEEE70>+#lvl#'
```
2021-03-10 13:49:39 -06:00
Ethan
7421089678 Disable death drop now schedules the items to be given back 10 ticks later. 2021-03-10 12:33:14 -05:00
Gunging
45d98f8682 Fixed upgrading levels to over +10 bugging out the name. 2021-03-09 22:51:32 -06:00
Adam
f06380fcac Fixes issue #373, mmoitems.bypass.soulbound now works as expected. Also adds a 'Disable Drop On Death' stat to items 2021-03-09 21:54:28 -05:00
Ethan
19a6e7a4d6 !disable death drop stat. 2021-03-09 21:50:55 -05:00
Ethan
a2a01bfb42 item similarity fix 2021-03-09 05:03:18 -05:00
Adam
821f6dbb5a Fixed error when firing bows on versions below Minecraft 1.16 2021-03-09 04:01:51 -05:00
Adam Lower
e07eafbf71 Updated blunt sound effect to not be as loud and as high pitched 2021-03-09 01:10:31 -05:00
Ethan
16d3157b51 Unidentified items should have the correct formatting now. 2021-03-09 00:33:50 -05:00
Ethan
44bc86fa8a Elements now have placeholders.
Format:
%mmoitems_stat_elements_[element]_[damage/defense]%
2021-03-09 00:21:14 -05:00
Ethan
b3478393f9 Fix custom blocks not regenerating with mmocore. 2021-03-08 23:28:50 -05:00
Ethan
a7bdf4f210 Fixes issue #365 from gitlab. Swords should now take damage when using unbreakable stat and custom durability together. 2021-03-08 22:56:26 -05:00
Ethan
038d03aa84 Fixes issue #371 from gitlab. Item Throw ability should no longer throw the incorrect item. 2021-03-08 22:26:26 -05:00
Ethan
5394ec8d0d !config item change 2021-03-06 13:21:57 -05:00
Gunging
b4d1d78b14 Important: go to your config and change the value
```yml
item-upgrading:
    name-suffix: '&f &e(+#lvl#)'
```
to
```yml
item-upgrading:
    name-suffix: ' &e(+#lvl#)'
```
(remove that `&f`, literally the cause of the upgrade suffix stacking bug)

Also removed the spammy debug messages that I accidentally left
2021-03-05 14:50:55 -06:00
Ethan
77fefa235c fix hex colors not showing in crafting station display names. 2021-03-05 11:44:40 -05:00
Gunging
f5523dccdd Actually fixed upgrade level adding up.
Upgrading should really not stack the (+1) (+2) (+3) anymore and should attempt to fix items that suffered this.
2021-03-05 09:53:51 -06:00
Ethan
2e81136c00 additional crafting station lore fixes 2021-03-04 23:26:17 -05:00
Ethan
4e1106f724 fix config items not showing the set name 2021-03-04 23:20:25 -05:00
Ethan
f73785395c Attempts to fix issues with colors in crafting station lore. 2021-03-04 15:23:37 -05:00
Gunging
0b377cffac Should fix level requirements adding together instead of choosing the highest one.
If you actually liked them adding over, you may
se the config boolean `stat-merging.additive-levels` as true.
2021-03-04 09:35:30 -06:00
Ethan
01a06dfb5f Color fixing requires latest mythiclib. 2021-03-03 11:32:16 -05:00
HexedHero
0cc68230c3 Fix "Cannot measure distance between x and x" error 2021-02-28 22:26:11 +00:00
Gunging
ed55898a8c Fixed compatiblity of the Item Updater with items enchanted in previous versions of MMOItems 2021-02-25 19:57:04 -06:00
Gunging
17a8ef46f0 Upgrading now actually compatible with Item Stat MAX_DURABILITY
(In the process, it was made that items fully repair when upgraded, does anyone mind?)

Fixes upgrade consumables saying "You would not be able to use this item" if the upgrade template has this stat, and it had no max durability originally.
2021-02-25 10:25:14 -06:00
Ethan
98ffcc5775 Fixes attack speed issue.
Revert "Unstable Build: Removes mmodecoy."

This reverts commit fb25284e
2021-02-25 09:59:21 -05:00
Gunging
ae5d45b04a Made Item Updating work **much** better, and much more transparent on what it is actually doing.
+ Upgrade level of items may be kept, with its bonuses
+ Gem Stones are now perfectly kept, with all their stats
+ Enchantments may be kept (more details in-game)
+ Soulbound (was already working) may be kept.
+ Item Name may be kept (already kinda working)
+ Lore may be kept (more detail in-game)

Add to your config:
```yml
item-revision:
  keep-data:
    display-name: true
    lore: true
    enchantments: true
    upgrades: true
    gemstones: true
    soulbound: true
 ```

 *Requires MMOLib update*
2021-02-24 23:23:57 -06:00
Gunging
12f9e30ea7 Added cancellable events for item damage.
New stat 'Amphibian' which makes items only work underwater, or under lava, or such.

Currently, this stat and the Biome Requirement only actually prevent you from equipping items in other places, but equipping the item and not changing your laodout allows you to use them elsewhere... I'll be working on a more dynamic check of requirements. This is not a problem for Gem Stones and Consumables though :o
2021-02-23 23:49:30 -06:00
Gunging
1d83b9e5ab New *Required Biome* stat that makes items only work in certain biomes. Case and space insensitive
Adding 'mountains' will make this work on every biome variant that has 'mountains' in its name (Like modified_gravelly_mountains).

Use the '!' prefix to blacklist biomes instead. '!forest' will make the item not work in any forest variant.
2021-02-22 18:56:09 -06:00
Gunging
3cc3c966cb The old Effects format can now be read again (and its supposed to attempt to update it)
Enchantments are now supported in Upgrading Templates. Solves #23
2021-02-22 18:09:32 -06:00
Ethan
b177766e74 Merge remote-tracking branch 'origin/master' 2021-02-22 17:01:49 -05:00
Ethan
fb25284e14 Unstable Build: Removes mmodecoy. 2021-02-22 17:01:41 -05:00
Gunging
b383993f6a Merge remote-tracking branch 'origin/master' 2021-02-20 21:51:08 -06:00
Gunging
5144ff566a Fixed a typo in the config, as well as added a couple new options. 2021-02-20 21:50:52 -06:00
Ethan
a56665c298 Requires latest MythicLib
Fixed issue with item colors being affected by vanilla behavior.

Fixed blank display names not parsing lore.
2021-02-20 22:50:26 -05:00
Gunging
9474dcddf3 Can now choose if a GemStone's stats are affected by Upgrading the item it is put onto. 2021-02-20 21:43:42 -06:00