#(nasrulswd) damage area

39 messages · Page 1 of 1 (latest)

trim salmon
#
on player left clicks block with:Custom_Item:
            - define players <player.location.find_players_within[2]>
            - define mobs <player.location.find_entities.within[2]>
            - hurt 3 <[players]> source::<player>
            - hurt 3 <[mobs]> source::<player>

how can i ignore damage to player who left click that item??

random sunBOT
#

(nasrulswd) damage area

random sunBOT
#

Hi I'm AutoThreadBot! Don't mind me, I'll just be adding the helper team to this thread so they can see it. A human will get to you soon.

arctic zodiac
#

!t listtag.exclude

tawny vectorBOT
trim salmon
#

<player.location.find_players_within[2].exclude[<player>]>

#

???

#

like that?

arctic zodiac
#

!tias

tawny vectorBOT
# arctic zodiac !tias
Info: tias

Try it and see!

If somebody pulled this up for you, you're probably asking a question of the public channel that's easier and faster to figure out by just attempting your idea in-game and looking at the result of that attempt.

trim salmon
#

okey thanks

fallow jackalBOT
#
Resolved

Thread closed as resolved.

trim salmon
#

wait

fallow jackalBOT
#
Thread Reopened

Thread was manually reopened by @trim salmon.

trim salmon
#
- define target <player.precise_target>
- burn <[target].exclude[<player>]> duration:5s

how about this?

#

not work

arctic zodiac
#

ye because that returns entitytag

#

aand not a listtag

#

listtag.exclude is for lists

trim salmon
#

i don't understand

#

can u give a example?

arctic zodiac
#

!t entitytag.precise_target

tawny vectorBOT
arctic zodiac
#

so this tag ^ returns exactly one entity

#

that means its not a list

#

so you cant use list tags with that

trim salmon
#

ouh yeah

#

but if player target is not the entity they will burn self

arctic zodiac
#

not sure its possible that it will return player itself buut you can use if command

#

if <[target]> == <player> ...

#

!c if

tawny vectorBOT
# arctic zodiac !c if
Group

queue

Syntax

if [<value>] (!)(<operator> <value>) (&&/|| ...) [<commands>]

Short Description

Compares values, and runs a subset of commands if they match.

Description

Compares values, and runs a subset of commands if they match.
Works with the else command, which handles alternatives for when the comparison fails.
The if command is equivalent to the English phrasing "if something is true, then do the following".

Values are compared using the comparable system. See !language operator for information.

Comparisons may be chained together using the symbols '&&' and '||' or their text equivalents 'and' and 'or'.
'&&' means "and", '||' means "or".
So, for ...

trim salmon
#
- if <[target]> = <player> && <context.entity>:
        - burn <[target]> duration:5s
- else:
        - stop
#

why the entity not burning

manic iris
#

!debug

tawny vectorBOT
# manic iris !debug
Info: debug

If you need help with a script issue, one of the most powerful tools Denizen has to offer is full debug output. This is displaying in your console whenever scripts are running until you turn debug off. To share a debug log quickly and easily with helpers, simply run the command /denizen debug -r in-game to begin recording, then run through the part of the script you need help with, then run the command /denizen submit. This will give you a link to a paste of the debug log, which you can then copy/paste back to us!

trim salmon
#

ouh it's oke

#

done fix it