Page 1 of 1

[Mod] Protection Lag Teleporter [protection_lagporter]

PostPosted: Tue Dec 08, 2015 02:57
by shacknetisp
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

Re: [Mod] Protection Lag Teleporter [protection_lagporter]

PostPosted: Tue Dec 08, 2015 03:04
by shacknetisp
This mod is live on my Survival in Ethereal server.

Re: [Mod] Protection Lag Teleporter [protection_lagporter]

PostPosted: Sat Dec 19, 2015 12:47
by amadin
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.

Re: [Mod] Protection Lag Teleporter [protection_lagporter]

PostPosted: Sat Dec 19, 2015 14:40
by Fixerol
Admins and players need that mod badly.

Re: [Mod] Protection Lag Teleporter [protection_lagporter]

PostPosted: Tue Dec 22, 2015 12:24
by emperor_genshin
Agreed.

Fixerol wrote:Admins and players need that mod badly.

Re: [Mod] Protection Lag Teleporter [protection_lagporter]

PostPosted: Tue Dec 22, 2015 13:18
by shacknetisp
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.

Re: [Mod] Protection Lag Teleporter [protection_lagporter]

PostPosted: Tue Dec 22, 2015 20:43
by amadin
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?

Re: [Mod] Protection Lag Teleporter [protection_lagporter]

PostPosted: Tue Dec 22, 2015 20:52
by shacknetisp
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.

Re: [Mod] Protection Lag Teleporter [protection_lagporter]

PostPosted: Wed Dec 30, 2015 12:26
by amadin
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