#(Kadnick) How to sentinel fights back only when attacking it?

70 messages · Page 1 of 1 (latest)

last sedge
#

Forgot how to do that xD

winter relicBOT
#

(Kadnick) How to sentinel fights back only when attacking it?

winter relicBOT
#

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.
You can block this bot if you don't want to see these messages, I won't mind.
<@&525394568410038282>

last sedge
#

I tried Event pvsentinel .... But I dont get it

last sedge
#

And fightback wont work.. It doesnt fight back. If adding the player target, then it directly attacks.

vague oasis
#

!readme

pure hazelBOT
vague oasis
#

you could do that a variety of different ways, i'd check the sentinel java docs, or even checking how Sentinel handles the relevant commands that would combine what you need

last sedge
#

I tried different things... But I dont get it to work. I already read the wiki several times..

vague oasis
#

the wiki or the javadocs?

#

it might also help if you share the relevant code you tried with an explanation of what you expected to happen and what actually happed - logs referencing any debugging you do with it as well would be very useful

last sedge
#

No, not the java docs. I have not planned to code anything. Few years before I got sentinel to fight back if getting attacked. But over the time I forgot how to setup that.

#

So there is an npc and if I attack it, it shall fight back.

vague oasis
#

oh, you marked this thread with a dev api tag - that's for coding with sentinel lol

last sedge
#

I am sorry xD

vague oasis
#

it's okay lol

last sedge
#

It did that automatically. Tried to remove that.

vague oasis
#

have you tried any of the combat FAQs? the ones with fightback and pvp not working?

last sedge
#

My point is not listed there.. Faqs and common issues

vague oasis
#

as long as you removed yourself from the target ignoring, it should just retaliate

last sedge
#

Yes the first I did... RemoveTarget owner.

#

event:pvp, event:pvsentinel... Both not working

vague oasis
#

did you try without that? nothing but /trait sentinel?

#

and the remove owner, of course

#

just without an event: for any targeting

last sedge
#

/npc create poop
/trait sentinel
/sentinel removeignore owner

Hitting, nothing happens.

#

Then trying /sentinel fightback.... NPC now fights back!... Nothing.. Only standing there and looking holes into the sky..

vague oasis
#

wat

#

!logs

pure hazelBOT
# vague oasis !logs
Info: logs

Please post your full latest log file.

Background Info: One of the most helpful tools to identifying the source of a problem is your server logs file! Logs contain all sorts of important information like server and plugin versions, any error messages, and a lot more important information (More Info).

How To: Your log can be found in the logs folder within your server folder. The most recent log is a text file labeled latest.log. To get help using these logs, please open that file in a text editor and copy all of the text, then open https://paste.denizenscript.com/New/Log and paste the text into the box on the page. Then click "Submit" and copy the URL and paste that back into this channel.

Please do not upload the file to Discord or to other pastebin services, use the log pastebin linked above.

last sedge
vague oasis
pure hazelBOT
# vague oasis !logcheck https://paste.denizenscript.com/View/108084
Server Version

Paper version git-Paper-477 (MC: 1.19.4)-- (Current build :white_check_mark:)

Plugin Version(s)

Citizens v2.0.31-SNAPSHOT (build 2979) -- (:warning:Outdated build, behind by 21)
Sentinel v2.7.3-SNAPSHOT (build 505) -- (Current build :white_check_mark:)

Checked For

@vague oasis

UUID Version

0 (:triangular_flag_on_post: Hacked or Invalid ID)

Java Version

17.0.6 :white_check_mark:

Other Noteworthy Plugin(s)

WorldGuard v7.0.8-SNAPSHOT+2215-20044a7, ProtocolLib v5.0.0-SNAPSHOT-b624, BeautyQuests v0.20.1

Problematic Plugin(s)

PluginManager v2.7.4 - :warning: Plugin Managers are dangerous and will cause unpredictable issues. Remove it.
Geyser-Spigot v2.1.0-SNAPSHOT - Bedrock clients are unsupportable. Please do all testing with a Java Edition client.
floodgate v2.2.2-SNAPSHOT (b??-f0a20aa)

Possibly Relevant Plugin(s)

TAB v3.3.1 - This plugin adds Below_Name scoreboards to NPCs.
ViaVersion v4.6.2 - Mixed client vs server versions can sometimes cause packet-related issues.
Multiverse-Core v4.3.1-b861 - Multi-world configuration plugins may affect NPCs in unexpected ways.
FastAsyncWorldEdit v2.6.0-SNAPSHOT-392;d82bf05 - This plugin has been known to break the plugin load order on many servers, due to usage of the 'loadbefore' directive in its 'plugin.yml'.

Potentially Bad Line(s)

[13:52:15] [Server thread/WARN]: Caused by: java.nio.file.AccessDeniedException: ./EventsNeu/session.lock :warning: Log contains error messages.

vague oasis
#

could be the outdated citizens version; the other notes have a lot of relevant issues that can cause that to happen though

last sedge
#

I give it a try.

#

Can't be that hard ._.

#

Nope

#

Doesnt work

vague oasis
#

cant test myself rn but if it cant be replicated on a server with just sentinel/citizens it may be a plugin conflict

#

!pluginconflict

pure hazelBOT
last sedge
#

Okey on my testserver I got it within a minute...

#

Dont get why

vague oasis
#

that'd be a plugin conflict then, some other plugin si preventing it from working

#

you might check plugins that manage any kind of entity interaction, or combat

last sedge
#

nice... 97 plugins to focus on

vague oasis
#

only 47 if you try copying out half at a time lol

#

but uh, that is an alarming number of plugins

last sedge
#

I copied my server to a test server. I think disabling via pluginmanager one by one should work finde

#

*fine as well

vague oasis
#

definitely not, that will cause it to stay broken likely

#

you don't want to use that at all, citizens and sentinel use a lot of reflection

#

infact if you have ever used it and then tried using citizens or sentinel, it's probably enough to break that alone

last sedge
#

Okey ^^ Then I will disable half by half

last sedge
#

Got that plugin....

#

One of 97 plugins causes that shit... My plugin xD

last sedge
last sedge
#

However.. Its fixed now ^^ Thanks

#

!close

shadow roseBOT
#
Thread Closing Reminder

Has your issue been resolved, or your question been answered?
If so, please use the </resolved:1028673926114594866> command to close your thread.
Or </invalid:1028673926898909185> if it's not possible to resolve.

If not yet resolved, please reply below to tell us what you still need.

(Note that if there is no reply for a few days, this thread will eventually close itself.)

#

@last sedge