Uploaded image for project: 'Minecraft (Bedrock codebase)'
  1. Minecraft (Bedrock codebase)
  2. MCPE-130064

[ADDONS] Damage modifier and molang are not accepted in the "minecraft:damage_sensor" component

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Incomplete
    • None
    • 1.16.221 Hotfix
    • None
    • Unconfirmed
    • Windows

      A component called "minecraft:damage_sensor" (according to bedrock.dev (Fig. 2), a trustworthy source for this sort of information) is supposed to have a sub-component called "damage_modifier." This sub-component allows us to directly add or subtract from the amount of damage an entity will take in a specific scenario. Unfortunately, it does not actually exist (Fig. 1, first error). This really sucks because while "damage_multiplier," another sub-component, does exist, it only changes the percentage of the damage taken, not the exact value. And speaking of the sub-component that does work, apparently it won't accept molang (Fig. 1, second error). Molang is a key importance in addons that a component should always be compatible with, whenever possible. Fig. 3 is the code that doesn't work because of these two issues. It is for the defense and damage reduction systems to an addon that adds Terraria content into the game, and as far as I know, there isn't another way to achieve this system, so I'm basically stuck with this broken system until these two issues get fixed (if they even get looked into ._.). If it helps, I can split this post into two different reports, one focusing on each issue, so when you guys update the resolution status, you can differentiate between the two.

        1. oof2.PNG
          oof2.PNG
          7 kB
        2. oof1.PNG
          oof1.PNG
          51 kB
        3. oof.PNG
          oof.PNG
          713 kB

            Xorkent 2 Bart Simpson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: