An addition to the Minecraft Bedrock game that adds a display of damage done. The color of the displayed number changes depending on the nature of the damage, allowing players to quickly assess the strength of the attack. This improvement will help players more accurately assess their actions and make more informed decisions in game situations.
Select version for changelog:
This add-on was created for convenience not only in survival but also for other add-on creators.
The addon is convenient because it shows not only the amount of damage dealt and received, but also marks the type of damage. Such marks include lightning, fire, drowning, suffocation and frostbite, as well as for damage associated with other damage such as damage from bushes with berries or a block on the head, etc.
Different degrees of damage will be marked with a '!' sign. There are three degrees 10, 100, 1000. On each of them, after the damage, one '!' will be assigned.
And also depending on the nature of the damage, the color of the damage will change.
Ya could've at least asked first before modifying my code.
but alas, you have nothing to do with my addon, for the most part I relied on the advice of the AI bot and articles on bedrock.dev and simple mathematics.
I already saw your post when they started accusing me of theft. I actually don’t like to sit on websites and look through something, and I started using mcpedl only so that my projects could express themselves. I was inspired by Terraria to create this addon, and during the creation process the idea came up to give the damage a different color that depends on the nature of the damage.
but if you want we can talk on discord @22800, maybe we'll even do a collaboration, who knows
mine: world.getDimension(data.hurtEntity.dimension.id).spawnEntity('dmgnumbers:damage_number', { x: loc.x, y: loc.y + 0, z: loc.z })
yours: world.getDimension(data.hurtEntity.dimension.id).spawnEntity('counter:damage', { x: loc.x, y: loc.y + 0, z: loc.z })
The only thing you changed was the identifier in this piece of code. You don't even need the + 0 for the y, why would we BOTH have it? I have it in mine cause i was messing with the Y values for spawning the number and forgot to take it out.
If you remake the code, not using ANY of mine, i'll be fine with this post.