[Mod] Protection Lag Teleporter [protection_lagporter]

shacknetisp
Member
 
Posts: 23
Joined: Wed Feb 25, 2015 15:27
GitHub: shacknetisp
IRC: behalebabo
In-game: beha

[Mod] Protection Lag Teleporter [protection_lagporter]

by shacknetisp » Tue Dec 08, 2015 02:57

Protection Lagporter

This mod will teleport players back to where they started digging if they try to dig through protection.

Known Problems

  • It cannot handle very long lag.
  • Occasionally players who try very hard to break through protection while in the air will jump up and down rapidly. This won't last very long though.
Documentation

Downloads
Latest .zip
Github Source

License: MIT
Last edited by shacknetisp on Wed Dec 30, 2015 22:32, edited 1 time in total.
 

shacknetisp
Member
 
Posts: 23
Joined: Wed Feb 25, 2015 15:27
GitHub: shacknetisp
IRC: behalebabo
In-game: beha

Re: [Mod] Protection Lag Teleporter [protection_lagporter]

by shacknetisp » Tue Dec 08, 2015 03:04

This mod is live on my Survival in Ethereal server.
 

amadin
Member
 
Posts: 471
Joined: Tue Jun 16, 2015 16:23
GitHub: Amadin

Re: [Mod] Protection Lag Teleporter [protection_lagporter]

by amadin » Sat Dec 19, 2015 12:47

Can you add freezing (immobility) after teleporting for an check_time time? Now if player had tried to dig protected block then he can't go away.
Last edited by amadin on Sat Dec 19, 2015 19:26, edited 1 time in total.
 

Fixerol
Member
 
Posts: 633
Joined: Sun Jul 31, 2011 11:23
IRC: Fixer
In-game: Fixer

Re: [Mod] Protection Lag Teleporter [protection_lagporter]

by Fixerol » Sat Dec 19, 2015 14:40

Admins and players need that mod badly.
 

User avatar
emperor_genshin
Member
 
Posts: 32
Joined: Tue Dec 22, 2015 05:04
IRC: Emperor_Genshin
In-game: Emperor_Genshin - Genshin

Re: [Mod] Protection Lag Teleporter [protection_lagporter]

by emperor_genshin » Tue Dec 22, 2015 12:24

Agreed.

Fixerol wrote:Admins and players need that mod badly.
Minetest Modder
Server Wanderer

Signature
"I have no words that would do justice to the atrocities you commit to the English language, as well as your continued assaults on the concepts of basic literacy and logical reasoning."

_Tom Gioconda
 

shacknetisp
Member
 
Posts: 23
Joined: Wed Feb 25, 2015 15:27
GitHub: shacknetisp
IRC: behalebabo
In-game: beha

Re: [Mod] Protection Lag Teleporter [protection_lagporter]

by shacknetisp » Tue Dec 22, 2015 13:18

Can you add freezing (immobility) after teleporting for an check_time time? Now if player had tried to dig protected block then he can't go away.

I've added this now.
 

amadin
Member
 
Posts: 471
Joined: Tue Jun 16, 2015 16:23
GitHub: Amadin

Re: [Mod] Protection Lag Teleporter [protection_lagporter]

by amadin » Tue Dec 22, 2015 20:43

All fine but players still can kill chickens in protected paddock made of fence wood, because they can dig even if they freeze. Maybe is any way to freeze also players hands?
Last edited by amadin on Tue Dec 22, 2015 20:55, edited 1 time in total.
 

shacknetisp
Member
 
Posts: 23
Joined: Wed Feb 25, 2015 15:27
GitHub: shacknetisp
IRC: behalebabo
In-game: beha

Re: [Mod] Protection Lag Teleporter [protection_lagporter]

by shacknetisp » Tue Dec 22, 2015 20:52

You could modify the mobs mod to check for protection_lagporter.glitching, but I experimented with revoking interact during the teleport time, and it is too laggy to have effect.
 

amadin
Member
 
Posts: 471
Joined: Tue Jun 16, 2015 16:23
GitHub: Amadin

Re: [Mod] Protection Lag Teleporter [protection_lagporter]

by amadin » Wed Dec 30, 2015 12:26

For using this mod with TenPlus1's Protector mod you must:

Replace in init.lua:

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
function minetest.is_protected(pos, digger)

with:

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
function minetest.is_protected(pos, digger, digging)

And replace also:

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
if not protector.can_dig(protector.radius, pos, digger, false, 1) then

with:

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
if not protector.can_dig(protector.radius, pos, digger, false, 1) then
    if digging then protection_lagporter.check(pos, digger) end
 


Return to WIP Mods

Who is online

Users browsing this forum: No registered users and 12 guests

cron