[mod] Jail [0.0.1] [jail]
[mod] Jail [0.0.1] [jail]
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
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
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)
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)
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.
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.
- kaeza
- Moderator
- Posts: 2162
- Joined: Thu Oct 18, 2012 05:00
- GitHub: kaeza
- IRC: kaeza diemartin blaaaaargh
- In-game: kaeza
- Location: Montevideo, Uruguay
- Contact:
Seems like you have added more features.
+1 My friend.
+1 My friend.
RAPHAEL wrote:With the help of kaeza (thank you again) this mod was born.
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
Check out my stuff! | Donations greatly appreciated! PayPal
No for the time being it just re-teleports listed prisoners back to jail every 30 seconds.rarkenin wrote:Are you using set_attach to keep the person attached to the jail?
"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)
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)
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)
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)
I made a texture pack for this mod:
i build a jail just for fun, only to see how its look:
Download HERE http://ompldr.org/vaDFoNQ/Textures.zip
Licence: WTFPL
"im innocent!!!"
i build a jail just for fun, only to see how its look:
Download HERE http://ompldr.org/vaDFoNQ/Textures.zip
Licence: WTFPL
"im innocent!!!"
- rubenwardy
- Moderator
- Posts: 6978
- Joined: Tue Jun 12, 2012 18:11
- GitHub: rubenwardy
- IRC: rubenwardy
- In-game: rubenwardy
- Location: Bristol, United Kingdom
- Contact:
-
- Member
- Posts: 96
- Joined: Fri Mar 30, 2012 19:03
- Location: United Kingdom
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.
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.
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.
-
- Member
- Posts: 211
- Joined: Thu Sep 27, 2012 15:41
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.
My Essential Server Modpack: ServerExtended
Maintainer of the Minitest Game
[0.4.6-git] SunriseTest Minecraft-Like Hardcore Server
My Kindle broke... Online time will drop significantly.
Maintainer of the Minitest Game
[0.4.6-git] SunriseTest Minecraft-Like Hardcore Server
My Kindle broke... Online time will drop significantly.
Please make a version of the Jail Mod which use set_attach instead of a teleport.rarkenin wrote:Are you using set_attach to keep the person attached to the jail?
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.)
- 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:
If someone could do that, then jails will actually be useful in minetest.Cooper97 wrote:Please make a version of the Jail Mod which use set_attach instead of a teleport.rarkenin wrote:Are you using set_attach to keep the person attached to the jail?
Please make it also so that it revokes the privileges interact, fly, teleport and noclip of a jailed player.
Back from the dead!
- webdesigner97
- Member
- Posts: 1328
- Joined: Mon Jul 30, 2012 19:16
- GitHub: webD97
- IRC: webdesigner97
- In-game: webdesigner97
- Location: Cologne, Germany
- Contact:
I was thinking of such a mod too I started it, but you were faster
But the idea is really great!
But the idea is really great!
Visit me: webD97.de | @GitHub | @DeviantArt
Mods: StreetsMod | Vehicles
Featured from my blog: Dockerize the Minetest server
On my own behalf: Chameleon - A PHP image manipulation library built around GD
Mods: StreetsMod | Vehicles
Featured from my blog: Dockerize the Minetest server
On my own behalf: Chameleon - A PHP image manipulation library built around GD
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.
-
- Member
- Posts: 122
- Joined: Wed Apr 10, 2013 16:46
You have to change in init.lua:Element wrote:how do i change the jail coords.
Code: Select all
local jailpos = { x = -517, y = 36, z = 169 }
Last edited by PenguinDad on Mon Aug 05, 2013 15:18, edited 1 time in total.
Who is online
Users browsing this forum: No registered users and 3 guests