[mod] Jail [0.0.1] [jail]

User avatar
RAPHAEL
Member
Posts: 627
Joined: Tue Nov 01, 2011 09:09
Location: Earth

[mod] Jail [0.0.1] [jail]

by RAPHAEL » Post

EDIT: Decided to experiment with github. This mod is now on github.

The idea hit me earlier tonight when building a small town on the DTAmedia server.. why isn't there a jail mod? With the help of kaeza (thank you again) this mod was born.

What does it do? It allows anyone with the "jail" priv to send players to jail and release them from jail. Every 30 seconds it sends prisoners back to jail (in case they escape). You can edit the init.lua file to change how often it sends the prisoners to jail and also the jail coordinates. This mod also adds unbreakable jail wall, jail glass, jail bars and a warden pick (for breaking said unbreakable blocks).

To send someone to jail, do:
/jail playername

To release someone from jail do:
/release playername

To grant someone the priv to send someone to jail and release them do:
/grant playername jail

To get jail wall, glass, bars or pick:
/giveme wardenpick
/giveme jail:jailwall
/giveme jail:glass
/giveme jail:ironbars

You MUST build a jail before you can send someone to jail! (this shouldn't have to be mentioned but mentioning it anyway).

No screenshots are offered since theres nothing really to screenshot.

Feel free to offer better textures and any ideas. Also report any issues.


License: WTFPL (basically do what you want)
License URL: https://github.com/TheZenKitteh/minetes ... ICENSE.txt
Download: https://github.com/TheZenKitteh/minetes ... master.zip
Sources: https://github.com/TheZenKitteh/minetest-jail
To Install: Download the zip file, extract and rename resulting folder to jail. Move jail folder to mod directory.
Dependencies: None

EDIT: Yes I know the wardenpick looks very retarded. Feel free to offer a better texture :P
Last edited by RAPHAEL on Sun Jan 27, 2013 04:36, edited 1 time in total.
"Before you speak, ask yourself: Is it kind, is it true, is it necessary, does it improve upon the silence?"
My mods: http://goo.gl/n4kpn
(Currently Various, Industrial, Fakeblocks, Jail, MoarCraft, Christmas, Replicator, minetest dev installer for linux, bash mod installer, windows mod installer)

User avatar
jojoa1997
Member
Posts: 2890
Joined: Thu Dec 13, 2012 05:11
Location: Earth

by jojoa1997 » Post

yay this could be implemented on hungergame servers
Coding;
1X coding
3X debugging
12X tweaking to be just right

rarkenin
Member
Posts: 668
Joined: Tue Nov 20, 2012 20:48

by rarkenin » Post

Are you using set_attach to keep the person attached to the jail?
Admin pro tempore on 0gb.us:30000. Ask me if you have a problem, or just want help.
This is a signature virus. Add me to your signature so that I can multiply.
Now working on my own clone, Mosstest.
I guess I'm back for some time.

User avatar
kaeza
Moderator
Posts: 2162
Joined: Thu Oct 18, 2012 05:00
GitHub: kaeza
IRC: kaeza diemartin blaaaaargh
In-game: kaeza
Location: Montevideo, Uruguay
Contact:

by kaeza » Post

Seems like you have added more features.
+1 My friend.
RAPHAEL wrote:With the help of kaeza (thank you again) this mod was born.
Image
Your signature is not the place for a blog post. Please keep it as concise as possible. Thank you!

Check out my stuff! | Donations greatly appreciated! PayPal

User avatar
RAPHAEL
Member
Posts: 627
Joined: Tue Nov 01, 2011 09:09
Location: Earth

by RAPHAEL » Post

rarkenin wrote:Are you using set_attach to keep the person attached to the jail?
No for the time being it just re-teleports listed prisoners back to jail every 30 seconds.
"Before you speak, ask yourself: Is it kind, is it true, is it necessary, does it improve upon the silence?"
My mods: http://goo.gl/n4kpn
(Currently Various, Industrial, Fakeblocks, Jail, MoarCraft, Christmas, Replicator, minetest dev installer for linux, bash mod installer, windows mod installer)

User avatar
RAPHAEL
Member
Posts: 627
Joined: Tue Nov 01, 2011 09:09
Location: Earth

by RAPHAEL » Post

Decided to experiment with github hosting. Mod now hosted on github. See first post for details.
"Before you speak, ask yourself: Is it kind, is it true, is it necessary, does it improve upon the silence?"
My mods: http://goo.gl/n4kpn
(Currently Various, Industrial, Fakeblocks, Jail, MoarCraft, Christmas, Replicator, minetest dev installer for linux, bash mod installer, windows mod installer)

User avatar
Melkor
Member
Posts: 373
Joined: Sat Sep 24, 2011 01:03
Location: Underground

by Melkor » Post

I made a texture pack for this mod:
i build a jail just for fun, only to see how its look:

Image

Image

Image

Image


Download HERE http://ompldr.org/vaDFoNQ/Textures.zip
Licence: WTFPL


Image

"im innocent!!!"

User avatar
rubenwardy
Moderator
Posts: 6978
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy
Location: Bristol, United Kingdom
Contact:

by rubenwardy » Post

This looks fun...
Renewed Tab (my browser add-on) | Donate | Mods | Minetest Modding Book

Hello profile reader

shaunbrown1995
Member
Posts: 96
Joined: Fri Mar 30, 2012 19:03
Location: United Kingdom

by shaunbrown1995 » Post

Testing on my server now.

I'll let you know if i find bugs.

ETC
New member
Posts: 4
Joined: Thu Mar 28, 2013 18:45

by ETC » Post

Do you mind if I incorporate the code into another mod? I'll link back to this mod.
Last edited by ETC on Mon Apr 01, 2013 03:40, edited 1 time in total.

User avatar
Luke123
Member
Posts: 51
Joined: Sun Mar 31, 2013 17:51

by Luke123 » Post

This is a good mod for severs +1
My minetest username is <King>
BTW I like pie <3

rarkenin
Member
Posts: 668
Joined: Tue Nov 20, 2012 20:48

by rarkenin » Post

Yeah. A noclip client can get out easily. Maybe poll for the jailed user's position then reset as needed?

Or perhaps use the entity attach feature.
Admin pro tempore on 0gb.us:30000. Ask me if you have a problem, or just want help.
This is a signature virus. Add me to your signature so that I can multiply.
Now working on my own clone, Mosstest.
I guess I'm back for some time.

User avatar
Calinou
Moderator
Posts: 3169
Joined: Mon Aug 01, 2011 14:26
GitHub: Calinou
IRC: Calinou
In-game: Calinou
Location: Troyes, France
Contact:

by Calinou » Post

+1, attach the jailed guy to an invisible entity. :)
Last edited by Calinou on Mon Apr 01, 2013 21:01, edited 1 time in total.

markveidemanis
Member
Posts: 211
Joined: Thu Sep 27, 2012 15:41

by markveidemanis » Post

What about the /spawn command in some servers?
BitCoin: 1Eq4arvykGNa1YC2DbJpWcwGfMvtFGjAoR

User avatar
Calinou
Moderator
Posts: 3169
Joined: Mon Aug 01, 2011 14:26
GitHub: Calinou
IRC: Calinou
In-game: Calinou
Location: Troyes, France
Contact:

by Calinou » Post

markveidemanis wrote:What about the /spawn command in some servers?
Tell the "spawn" mod devs to check for a "no_spawn" privilege which prevents the use of /spawn and grant it to the jailed players. Same for /home.

User avatar
Traxie21
Member
Posts: 753
Joined: Mon Dec 31, 2012 10:48
Location: McKinney, Texas U.S.A.
Contact:

by Traxie21 » Post

Why not just save all privs to a file when someone is sent to jail, then revoke all privs, and restore them from that file when unjailed.

User avatar
Cooper97
Member
Posts: 52
Joined: Thu Feb 21, 2013 19:55
Location: Germany

by Cooper97 » Post

rarkenin wrote:Are you using set_attach to keep the person attached to the jail?
Please make a version of the Jail Mod which use set_attach instead of a teleport.
Please make it also so that it revokes the privileges interact, fly, teleport and noclip of a jailed player.
Last edited by Cooper97 on Sun Jul 07, 2013 13:48, edited 1 time in total.
Sorry for my bad english. (I am from germany.)

User avatar
Evergreen
Member
Posts: 2135
Joined: Sun Jan 06, 2013 01:22
GitHub: 4Evergreen4
IRC: EvergreenTree
In-game: Evergreen
Location: A forest in the midwest
Contact:

by Evergreen » Post

Cooper97 wrote:
rarkenin wrote:Are you using set_attach to keep the person attached to the jail?
Please make a version of the Jail Mod which use set_attach instead of a teleport.
Please make it also so that it revokes the privileges interact, fly, teleport and noclip of a jailed player.
If someone could do that, then jails will actually be useful in minetest. :P
Back from the dead!

Shire
Member
Posts: 19
Joined: Sat Jul 06, 2013 13:20

by Shire » Post

Maybe someone could make a Bubba/Bertha NPC, either for the fun of it, or make them hostile toward whoever's in the jail. That'd be hilarious.

User avatar
webdesigner97
Member
Posts: 1328
Joined: Mon Jul 30, 2012 19:16
GitHub: webD97
IRC: webdesigner97
In-game: webdesigner97
Location: Cologne, Germany
Contact:

by webdesigner97 » Post

I was thinking of such a mod too :D I started it, but you were faster ;)

But the idea is really great!

BadWolf
Member
Posts: 42
Joined: Thu Jun 27, 2013 17:27

by BadWolf » Post

I installed it, and built a jail. But if I /jail someone they don't transer into the jail

User avatar
Cooper97
Member
Posts: 52
Joined: Thu Feb 21, 2013 19:55
Location: Germany

by Cooper97 » Post

RAPHAEL wrote:You can edit the init.lua file to change how often it sends the prisoners to jail and also the jail coordinates.
You must change the jail coordinates in the init.lua file. Then it should work.
Sorry for my bad english. (I am from germany.)

User avatar
Junkman
New member
Posts: 5
Joined: Sat Aug 03, 2013 11:59
Location: France

by Junkman » Post

It would be cool if a player who kills an other would become "pvp mod". It's name would become red, and when someone kills him in return the killer will go jailed for one hour or something like that.
Last edited by Junkman on Sat Aug 03, 2013 12:40, edited 1 time in total.

User avatar
Element
Member
Posts: 269
Joined: Tue Jun 11, 2013 00:27
IRC: Elementwing4962
In-game: Elementwing4962
Location: New York
Contact:

by Element » Post

how do i change the jail coords.
Join Me And My Team - thornfyregaming-mc.noip.me:25565

My Server Is 1.7.9

PenguinDad
Member
Posts: 122
Joined: Wed Apr 10, 2013 16:46

by PenguinDad » Post

Element wrote:how do i change the jail coords.
You have to change in init.lua:

Code: Select all

local jailpos = { x = -517, y = 36, z = 169 }
to the coordinates where you built the jail.
Last edited by PenguinDad on Mon Aug 05, 2013 15:18, edited 1 time in total.

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests