
Mods / dummyPlayer - pvp anti-leave
Author: KenigVovan
Side: Both
Created: Feb 5th at 8:39 PM
Last modified: May 1st at 7:57 AM
Downloads: 938
Follow Unfollow 2
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:
- DROP_HOTBAR and DROP_BAGS are true; DROP_CLOTHS and DROP_ARMOR are false;
- KILL_AFTER_LOGIN is true
- SECONDS_PVP_TAG_TIMER - 30 seconds
- TIME_TO_DISAPPEAR - 30 seconds
Version | For Game version | Downloads | Release date | Changelog | Download |
---|---|---|---|---|---|
v1.0.4 | 555 | May 1st at 7:57 AM | Show | dummyplayer_v1.0.4.zip | |
v1.0.3 | 32 | Mar 27th at 11:37 AM | Show | dummyplayer_v1.0.3.zip | |
v1.0.2 | 185 | Mar 5th at 10:27 PM | Show | dummyplayer_v1.0.2.zip | |
v1.0.1 | 51 | Mar 4th at 3:41 PM | Show | dummyplayer_v1.0.1.zip | |
v1.0.0 | 77 | Feb 5th at 8:40 PM | Show | dummyplayer_v1.0.0.zip |
Very useful, noice. (thieved silently )

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.