Bug Open

Metaplaceholder breaks Equipment Set placeholders

#10165 opened by CarrotChomps 1 hour ago

CarrotChompsreported this bug

Using a meta placeholder causes the placeholder <caster.set.COPPER> (with COPPER being a defined equipment-set) to return 0. For example <caster.set.COPPER.add{amount=1} returns 0, instead of 1 + the # of pieces from that set you have equipped.

I used this command `/mm test mechanic message{m=<caster.set.COPPER.add{amount=1}>}` to test it; where expected was 5 but returned was 0;

running /mm test mechanic message{m=<caster.set.COPPER>} returns 4 as expected.

attached is the equipment set

COPPER:  Enabled: true # Will default to true if not set  Display: 'Copper Set'  Lore:    # - "&7Tier: %defaultvalue_tier-STRING-&6Copper%"    # - ''    # - '&7Item Level: %defaultvalue_libreforge_item_level_armor-INTEGER-0% &8| &7Set Level: %defaultvalue_libreforge_item_level_armor-INTEGER-0%'    # - '&7{#{ trunc{%libreforge_item_progress_armor% }} &8%defaultvalue_libreforge_item_progress_armor-INTEGER-0%% | &7XP: %defaultvalue_libreforge_item_xp_armor-INTEGER-0% / %defaultvalue_libreforge_item_xp_required_armor-INTEGER-???%'    # - ''    - '<dark_gray>@ Set Lvl. 3</dark_gray>'    - '<<caster.item.feet.nbt.set_bonus_1_color|gray>><u>(<caster.set.COPPER>/2) Lightning Resistance</u>'    - '<dark_gray>You take 20% less</dark_gray>'    - '<dark_gray>damage from lightning.</dark_gray>'    - ''    - '<dark_gray>@ Set Lvl. 6</dark_gray>'    - '<<caster.item.feet.nbt.set_bonus_2_color|gray>><u>(<caster.set.COPPER>/4) Lightning Immunity</u>'    - '<dark_gray>You are immune to</dark_gray>'    - '<dark_gray>damage from lightning.</dark_gray>'  Bonuses:  - Pieces: 2    Conditions:    - CompareValues{value1=<caster.item.feet.nbt.item_level|0>;operator=GREATER_THAN_OR_EQUALS;value2=3}    Skills:    - modifyDamage{amount=0.8;action=ADDITIVE_MULTIPLIER;sync=true} @self ~onDamaged ?~DamageCause{cause=LIGHTNING}  - Pieces: 4    Conditions:    - CompareValues{value1=<caster.item.feet.nbt.item_level|0>;operator=GREATER_THAN_OR_EQUALS;value2=6}    Skills:    - modifyDamage{amount=0;action=SETTER;sync=true} @self ~onDamaged ?~DamageCause{cause=LIGHTNING}
Sign in to join the discussion.