Mods / dummyPlayer - pvp anti-leave

Category: #Other #Tweak
Author: KenigVovan
Side: Both
Created: Feb 5th 2022 at 8:39 PM
Last modified: Nov 16th 2023 at 7:26 PM
Downloads: 5262
Follow Unfollow 10

Latest file for v1.18.15:
dummyplayer_1.2.3.zip 1-click install


Mod adds behavior "pvp tag" - if you hit another player or you are attacked - next X seconds you are in a combat state.

If you leave during this state, clone entity will be spawned on the same place with your current health. This entity will have
items in it's enventory depending on setting (can be bags, hotbar etc, more info below). If entity is killed it drops everything it
has from source player entity. On next login of the player(whose clone entity was killed) is killed as well.

If entity wasn't killed, only player's health will be changed to clone's one if it changed.

There is time period after clone will be despawn - 30 sec by default.

 

Big thanks to jakecool19 for very useful example in "Lands of Chaos" mod (https://mods.vintagestory.at/show/mod/847)

-----------------------------------------------------------------------------------------------------------------------------------------------------------------

KILL_AFTER_LOGIN - if true - player will be killed if his clone was killed and inventories which were selected by settings will be cleared for player

DROP_BAGS, DROP_HOTBAR, DROP_CLOTHS, DROP_ARMOR - if true, copy of inventory will be placed in the clone, if player logout during combat

SECONDS_PVP_TAG_TIMER - how long pvp state is active for player after he attacked or was attacked

TIME_TO_DISAPPEAR - how long clone will exist

By default: 

  1. DROP_HOTBAR and DROP_BAGS are true; DROP_CLOTHS and DROP_ARMOR are false;
  2. KILL_AFTER_LOGIN is true
  3. SECONDS_PVP_TAG_TIMER - 30 seconds
  4. TIME_TO_DISAPPEAR - 30 seconds

Version For Game version Downloads Release date Changelog Download 1-click mod install*
v1.2.3 750 Nov 16th 2023 at 7:26 PM Show dummyplayer_1.2.3.zip Install now
v1.2.2 40 Nov 15th 2023 at 10:34 PM Show dummyplayer_1.2.2.zip Install now
v1.2.1 917 Aug 21st 2023 at 4:16 PM Show dummyplayer_1.2.1.zip Install now
v1.2.0 792 Apr 26th 2023 at 5:24 PM Show dummyplayer_v1.2.0.zip Install now
v1.1.1 585 Nov 13th 2022 at 1:50 PM Show dummyplayer_v1.1.1.zip Install now
v1.1.0 154 Jul 9th 2022 at 2:58 PM Show dummyplayer_v1.1.0.zip Install now
v1.0.4 1084 May 1st 2022 at 7:57 AM Show dummyplayer_v1.0.4.zip Install now
v1.0.3 162 Mar 27th 2022 at 11:37 AM Show dummyplayer_v1.0.3.zip Install now
v1.0.2 324 Mar 5th 2022 at 10:27 PM Show dummyplayer_v1.0.2.zip Install now
v1.0.1 194 Mar 4th 2022 at 3:41 PM Show dummyplayer_v1.0.1.zip Install now
v1.0.0 221 Feb 5th 2022 at 8:40 PM Show dummyplayer_v1.0.0.zip Install now

5 Comments (oldest first | newest first)

💬 Marlim, Jan 20th at 5:50 PM

Will the mod be updated to 1.19?

💬 KenigVovanAuthor, Aug 13th 2023 at 4:01 PM

Ryuu

No, it just catchs event "PlayerDisconnect" from api and spawn a clone and remove it after some time or if player is back online on "PlayerNowPlaying"

💬 Ryuu, Aug 8th 2023 at 7:35 PM

Great solution for people wanting to go pve on a pvp server or pve in a pvp zone on a pvpve server to avoid PVP. If ya don't like PVP, why join a PVP game/server, you know? I know a lot of other games that could learn from this mod tbh. Thanks, KenigVovan! 
A question though, does it detect players with unstable internet and allow sufficient time for the player to log back in before the clone is attackable?

💬 YourCreator, May 1st 2022 at 11:01 AM

Very useful, noice. (thieved silently )
image

💬 TeacupAngel, Feb 5th 2022 at 11:15 PM

In case anyone is curious - this seems to add PvP tag functionality, where you leave behind a "dummy player" with all your items if you log out within 30 seconds of being hurt or attacking someone.

(edit comment delete)