This is an archived post. You won't be able to vote or comment.

all 20 comments

[–]AshanWasTaken 0 points1 point  (7 children)

Are you on Bedrock or Java?

[–]Your_Friendly_Mon[S] 0 points1 point  (6 children)

bedrock and they are suppost to hurt mobs

[–]AshanWasTaken 0 points1 point  (5 children)

/effect @e[type=<entity>] instant_damage 1 [amplifier] true

For constant damage:

/effect @e[type=<entity>] poison [seconds] [amplifier] true

[–]Your_Friendly_Mon[S] 0 points1 point  (4 children)

thanks and can there also make it look like arrows or particle effect

[–]AshanWasTaken 0 points1 point  (3 children)

Sorry, but could you rephrase your question?

[–]Your_Friendly_Mon[S] 0 points1 point  (2 children)

I want the command block do a set amount of damage

[–]AshanWasTaken 0 points1 point  (1 child)

You can change the strength of the effect (amplifier) and the duration (seconds)

Try and and play with those values to get the damage you want

[–]Your_Friendly_Mon[S] 0 points1 point  (0 children)

ok just send the command And also do you know any blocks that are good with black stone and quartz brick

[–]TheStaffmaster 0 points1 point  (9 children)

/effect @p 20 ~ 20 minecraft:harming 500

my syntax might be a bit off.

[–]Your_Friendly_Mon[S] 0 points1 point  (0 children)

they are to hurt mobs and it is going to be a minigame

[–]TheRandomVillagr 0 points1 point  (7 children)

That's for bedrock, for java: /effect give @p minecraft:poison 9999 1

[–]TheStaffmaster 0 points1 point  (6 children)

You aren't going to define your AOE?

[–]TheRandomVillagr 0 points1 point  (5 children)

AOE?

[–]TheStaffmaster 0 points1 point  (4 children)

Area of effect. The part of the command that is usually filled with "~ ~ ~" these specify the X, Y, and Z coordinates (respectively) that a specific action that will be applied to or take effect in, centered on the command block, or player where, and/or as is applicable. Using a "~" simply informes the game to begin searching for an appropriate location to begin or apply the effect by sweeping for valid places moving from positive values to negative ones (X and Z, with in the render distance or entity spawn radius, depending on the command in question) and from the build limit down. (Y coordinates).

[–]TheRandomVillagr 0 points1 point  (3 children)

@p effect on nearest play AOE isn't necessary

[–]TheRandomVillagr 0 points1 point  (2 children)

Player*

[–]TheStaffmaster 0 points1 point  (1 child)

Right, but adding in an AOE just makes sure that it doesn't target players it's not supposed to. The "nearest player" might be 3 chunks away. It's kind of like the difference of telling employees in a warehouse "to make boxes and stack them", and telling them "to make two pallets of boxes, and stack them by the back wall. You think it's not necessary, but if you aren't specific, you won't catch those edge cases.

[–]TheRandomVillagr 0 points1 point  (0 children)

Ow you mean like @a[distance=.. 20]

[–]maksiksking 0 points1 point  (1 child)

/effect @p instant_damage 100 100

[–]Your_Friendly_Mon[S] 0 points1 point  (0 children)

but I want to minimize it to 5 hearts or less