Hi, I am new to Minetest, I really like the game.
I have a server with a world and some bad kids on it. For that reason I've made a prison. It's possible to escape, but that's really difficult because I revoke them everything...
My problem is that the prisoners can die, and respawn outside the prison. Is there a way that I (as the admin) can make them respawn in the prison-bed? I cannot find where the respawn location is stored, its not in
.minetest/worlds/world/players/<name> . Maybe in the database?
I am using the normal minetest_game.
Or do you know a workaround for this "problem"?
Bye,
Paul
Respawn after dead in prison
- Krock
- Developer
- Posts: 4650
- Joined: Thu Oct 03, 2013 07:48
- GitHub: SmallJoker
- Location: Switzerland
- Contact:
Re: Respawn after dead in prison
Common ways to escape:
Command "/home": Revoke the "home" privileges to make it stop happening.
Death respawn in bed: Saved in "[worldname]/beds_player_spawns". Either set the minetest.conf setting "enable_bed_respawn" to "false" or use something like this in your prison mod to overwrite the last bed:
Teleport home in unified_inventory: Revoking "home" privilege suffices
Normal respawn on death (game without beds): Write a mod that sets the position of a player on respawn.
Command "/home": Revoke the "home" privileges to make it stop happening.
Death respawn in bed: Saved in "[worldname]/beds_player_spawns". Either set the minetest.conf setting "enable_bed_respawn" to "false" or use something like this in your prison mod to overwrite the last bed:
Code: Select all
beds.spawn[player:get_player_name()] = vector.new(position_of_prison_bed)
beds.save_spawns()
Normal respawn on death (game without beds): Write a mod that sets the position of a player on respawn.
Look, I programmed a bug for you. >> Mod Search Engine << - Mods by Krock - DuckDuckGo mod search bang: !mtmod <keyword here>
Re: Respawn after dead in prison
Ah, "beds_player_spawns" is what I need!Krock wrote:Common ways to escape:
Command "/home": Revoke the "home" privileges to make it stop happening.
Death respawn in bed: Saved in "[worldname]/beds_player_spawns". Either set the minetest.conf setting "enable_bed_respawn" to "false" or use something like this in your prison mod to overwrite the last bed:Teleport home in unified_inventory: Revoking "home" privilege sufficesCode: Select all
beds.spawn[player:get_player_name()] = vector.new(position_of_prison_bed) beds.save_spawns()
Normal respawn on death (game without beds): Write a mod that sets the position of a player on respawn.
I revoke all privileges, so they don't have the home privilege.
Maybe I can create a very simple mod to put bad kids in prison, and to learn how creating a mod works.
Bye,
Paul
Who is online
Users browsing this forum: No registered users and 9 guests