We've split up the commands, scripting and mods, and add ons category! Please be sure you get your thread in the right place.

8

/damage - A command for dealing (or healing) damage to mobs and players

1 Comments

Please sign in to leave a comment.

Sorted by oldest
  • 0
    Registered User commented
    Comment actions Permalink

    I was actually just about to post almost exactly the idea you've posted here,
    I've been working on a custom multiplayer gamemode using complex datapacks as the lead programmer,
    and one of the main things that's been holding us back has been the lack of ability to do custom damage amounts, so this command would be amazingly useful.


    I'd like to add:
    how I originally thought of this when I was going to post was something along the lines of:
    /damage <heal/deal> <target selector>* <amount> <source>* <type>
    (*uses @ target selecting)
    This could also potentially have a <fatal> true/false (defaulting to true) argument at the end that when set to false could mean that like poison, the damage can't set the player's health to lower than 1.

    I also wanted the idea of a knockback command, but due to the complexity, I thought that it would work better as it's own separate command (of course datapacks could still easily chain both together as if they were one), and that could probably work something like:
    /knockback <target selector>* <force> <direction> <allow resistance>*
    (*to set how much knockback resistance is ignored percentage based, defaults to 100% if left blank, going over 100% would mean that knockback resistance instead increases knockback).

    Either way, let's all hope that Mojang decides to add this overdue command some day.
    If this releases with 1.19 I honestly think that it'd automatically be basically one of the best updates for map/datapack makers.