[Mod] Protection Lag Teleporter [protection_lagporter]

shacknetisp
Member
 
Posts: 27
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: 27
Joined: Wed Feb 25, 2015 15:27
GitHub: shacknetisp
IRC: behalebabo
In-game: beha
 

amadin
Member
 
Posts: 544
Joined: Tue Jun 16, 2015 16:23

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.
 

User avatar
Fixer
Member
 
Posts: 866
Joined: Sun Jul 31, 2011 11:23
Location: Ukraine
IRC: Fixer
In-game: Fixer
 

User avatar
emperor_genshin
Member
 
Posts: 37
Joined: Tue Dec 22, 2015 05:04
Location: Cyberspace
IRC: Emperor_Genshin - 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.
I'm just a individual who likes to make impressive things. | Current Advanced Bosses Test: https://www.youtube.com/watch?v=nOjLGty2qW8
 

shacknetisp
Member
 
Posts: 27
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: 544
Joined: Tue Jun 16, 2015 16:23

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: 27
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: 544
Joined: Tue Jun 16, 2015 16:23

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:

Code: Select all
function minetest.is_protected(pos, digger)

with:

Code: Select all
function minetest.is_protected(pos, digger, digging)

And replace also:

Code: Select all
if not protector.can_dig(protector.radius, pos, digger, false, 1) then

with:

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: BrunoMine and 5 guests