#(jonaaaaa) return to who click and who get clicked?

50 messages · Page 1 of 1 (latest)

neat crest
sweet inletBOT
#

(jonaaaaa) return to who click and who get clicked?

sweet inletBOT
#

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.

half storm
#

What editor do you use

#

@neat crest

neat crest
#

on pterodactyl

#

cuz my vs code denizen sometimes doesnt work

neat crest
#

wht tags target to who click and who get clicked?

soft hare
half storm
#

Let's fix VSCode first before we continue okay?

neat crest
#

hm ok

#

the denizen already worked, ill just wait until the extension running

half storm
#

If it doesn't run, could you post a screenshot of the extension window of VSCode and also one of a script file?

neat crest
#

okay, ill do tht when it doesnt work

neat crest
#

so, how i can solve my problem?

half storm
#

could you post a screenshot so we can make sure everything is running properly? :

neat crest
#

the script? or wht

half storm
#

the editor

neat crest
half storm
#

nice

half storm
shut duneBOT
# half storm !e clicks entity
Group

Player

**WARNING**

this event may in some cases double-fire, requiring usage of the 'ratelimit' command (like 'ratelimit <player> 1t') to prevent doubling actions.

Event Lines

player right clicks <entity>

Switches

with:<item> to only process the event when the player is holding a specified item.
type:<entity> to only run if the entity clicked matches the entity input.

Triggers

when a player right clicks on an entity.

Has Player

Always. - this adds switches flagged:<flag name> + permission:<node>, in addition to the <player> link.

Context

<context.entity> returns the EntityTag the player is clicking on.
<context.item> returns the ItemTag the player is clicking with.
<context.hand> returns "offhand" or "mainhand" to indicate which hand was used to fire the event. ...
<context.click_position> returns a LocationTag of the click position (as a world-less vector, rela...

Has Known Location

True - this adds switches in:<area> + location_flagged:<flag name>.

Cancellable

True - this adds <context.cancelled> and determines cancelled + cancelled:false.

half storm
#

You have <context.entity> and <player> available

neat crest
#

i dont really get it how to combine tags, how i can combine it? srry im new

half storm
#

what exactly

#

<context.entity> returns the entity that the player clicked on

#

<player> always returns the player who clicked

neat crest
#

i mean, when player 1 click the clickable chat, its returns to player who right click player 1

half storm
#

!c narrate

shut duneBOT
# half storm !c narrate
Group

player

Syntax

narrate [<text>] (targets:<player>|...) (format:<script>) (per_player) (from:<uuid>)

Short Description

Shows some text to the player.

Description

Prints some text into the target's chat area. If no target is specified it will default to the attached player or the console.

Accepts the 'format:<script>' argument, which will reformat the text according to the specified format script. See !language Format Script Containers.

Optionally use 'per_player' with a list of player targets, to have the tags in the text input be reparsed for each and every player.
So, for example, "- narrate 'hello <player.name>' targets:<server.online_players...

half storm
#

target argument

neat crest
#

its sended to who click the clickable chat not who right click player

#
geledahinven:
    type: world
    events:
        on player right clicks player:
            - if <player.is_sneaking>:
                - ratelimit <player> 1t
                - narrate "<dark_red><bold>SYSTEM <reset><blue>/ <reset><yellow>Berhasil mengirim permintaan untuk menggeledah" targets:<player>
                - clickable save:yes:
                    - execute as_op "invsee <context.entity.name>"
                    - narrate "<dark_red><bold>SYSTEM <reset><blue>/ <reset><yellow><context.entity.name> menerima untuk digeledah!" targets:<player>
                    - narrate "<dark_red><bold>SYSTEM <reset><blue>/ <reset><yellow>Kamu menerima untuk digeledah!" targets:<context.entity>
                - clickable save:no:
                    - narrate "<dark_red><bold>SYSTEM <reset><blue>/ <reset><yellow><context.entity.name> menolak digeledah!" targets:<player>
                    - narrate "<dark_red><bold>SYSTEM <reset><blue>/ <reset><yellow>Kamu menolak untuk digeledah!" targets:<context.entity>
                - narrate "<dark_red><bold>SYSTEM <reset><blue>/ <reset><yellow>Kamu akan digeledah! apakah kamu mengizinkannya? <green><element[Yes].on_click[<entry[yes].command>]><reset> <blue>/ <red><element[No].on_click[<entry[no].command>]><reset>" targets:<context.entity>
half storm
#

!paste

shut duneBOT
half storm
#

Do me the favor and post your script on the pastesite please

neat crest
half storm
#

hwot?

#

could you elaborate please

neat crest
#

i want make like player can check tsrget player inven via invsee by shift right clicking in

#

but with agreement from target player

#

but '<context.entity>' doesnt work on me

half storm
shut duneBOT
# half storm !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!

neat crest
half storm
shut duneBOT
# half storm !checklog https://paste.denizenscript.com/View/116249
Server Version

Paper version git-Paper-17 (MC: 1.20)-- (:warning: Outdated build, behind by 206... Current build is 223)

Plugin Version(s)

Citizens: 2.0.32-SNAPSHOT (build 3204) -- (Outdated build, behind by 15)
Denizen: 1.2.8-SNAPSHOT (build 1797-REL) -- (Current build :white_check_mark:)

Checked For

@half storm

Online/Offline

:triangular_flag_on_post: Offline.

UUID Version

3 (:triangular_flag_on_post: Offline)

Java Version

17.0.8.1 :white_check_mark:

Other Noteworthy Plugin(s)

MythicMobs: 5.3.5-64893d49

Possibly Relevant Plugin(s)

ModelEngine: R3.1.8 - ModelEngine has Citizens support, but that support is known to be buggy. Issues related to NPCs that use ModelEngine should be reported to ModelEngine support, not Citizens.

half storm
#

@lime pulsar cracked @neat crest

lime pulsarBOT