Player name in locked chest

Post Reply
User avatar
neko259
Member
Posts: 805
Joined: Sun Jun 19, 2011 06:51

Player name in locked chest

by neko259 » Post

Locked chest should have it's owner name in brackets when looking on it with mouse.

"Locked chest (neko259)"

Also, there has to be a way to destroy it by server op. Or a griefer would build some of these chest and anyone won't be able to remove them.
s3tuPDfUv2IyvXHzPmE31MQvnWULv1zj

sfan5
Moderator
Posts: 4095
Joined: Wed Aug 24, 2011 09:44
GitHub: sfan5
IRC: sfan5
Location: Germany

by sfan5 » Post

+2
Mods: Mesecons | WorldEdit | Nuke & Minetest builds for Windows (32-bit & 64-bit)

XCalibur54
Member
Posts: 51
Joined: Mon Oct 24, 2011 01:29

by XCalibur54 » Post

+1 for both ideas.
Moderator of redcrab's 0.4 server: http://c55.me/minetest/forum/viewtopic.php?id=606

User avatar
jji7skyline
Member
Posts: 28
Joined: Tue Jan 31, 2012 01:39

by jji7skyline » Post

Definitley.

User avatar
cisoun
Member
Posts: 232
Joined: Tue Apr 19, 2011 18:56
GitHub: cisoun
IRC: cisoun
In-game: cisoun
Location: Switzerland
Contact:

by cisoun » Post

Yep, that would be useful for shouting at someone who put one at a wrong place.
Not here for a while due to some troubles between my graphic card and Minetest.
Cisoun's Texture Pack | The Conifers Mod (deprecated) | Faenza icons for Minetest |
Website

User avatar
neko259
Member
Posts: 805
Joined: Sun Jun 19, 2011 06:51

by neko259 » Post

cisoun wrote:Yep, that would be useful for shouting at someone who put one at a wrong place.
Or banning him :3
s3tuPDfUv2IyvXHzPmE31MQvnWULv1zj

sfan5
Moderator
Posts: 4095
Joined: Wed Aug 24, 2011 09:44
GitHub: sfan5
IRC: sfan5
Location: Germany

by sfan5 » Post

xD
Mods: Mesecons | WorldEdit | Nuke & Minetest builds for Windows (32-bit & 64-bit)

randomproof
Member
Posts: 214
Joined: Thu Nov 17, 2011 06:31
Location: California, USA

by randomproof » Post

As far as I can tell this can not be done with a mod, but if you really want it you can make a change to the source code and it seems that the change is only needed in the client to work.
Just replace this function in 'content_nodemeta.cpp'

Code: Select all

std::string LockingChestNodeMetadata::infoText()
{
    std::string output;
    output = "Locking Chest (";
    output = output + getOwner() + ")";
    return output;
}

wokste
Member
Posts: 78
Joined: Sat Feb 11, 2012 09:06

by wokste » Post

I think server admins should be considered to be owner of any placed item (currently only chests). I think this means:
  • They can look inside, usable if you suspect that someone is cheating
  • They can destroy chests
PS: I would change the text to "Owner: " + getOwner()
We must be careful not to clone Notches mistakes.

oblitorator
Member
Posts: 12
Joined: Mon Jan 16, 2012 00:39
Location: Dunbar.Ave 503 WV

by oblitorator » Post

i like it C:
you can get a membership card in the mail for my server just PM me! a membership card is basicly VIP! Membership bonuses:
geting into golden gates (Membership Gates),mining in awesome places like:lava falls,the death cavern and a diggy diggy hole!
also you will get rare items in the mail evry week (in game)
so get one today! ;)

User avatar
bgsmithjr
Member
Posts: 436
Joined: Thu Mar 08, 2012 23:21
Location: USA,Michigan

by bgsmithjr » Post

http://www.filedropper.com/chests
locked chests with player name; brick, sandstone, stone, and wood. The wood recipe was changed to using sticks. Let me know if you want locked doors, that display the name also.
Last edited by bgsmithjr on Wed Mar 28, 2012 21:12, edited 1 time in total.

lkjoel
Member
Posts: 779
Joined: Wed Feb 29, 2012 19:27
Location: Gallifrey
Contact:

by lkjoel » Post

randomproof wrote:As far as I can tell this can not be done with a mod, but if you really want it you can make a change to the source code and it seems that the change is only needed in the client to work.
Just replace this function in 'content_nodemeta.cpp'

Code: Select all

std::string LockingChestNodeMetadata::infoText()
{
    std::string output;
    output = "Locking Chest (";
    output = output + getOwner() + ")";
    return output;
}
That being said, it would be better if locking chests were fully in a mod, don't you think?
My mods: The Nether | Doctor Who (WIP)

I have quit minetest ... again. I am heavily unimpressed by both the game and the community.

User avatar
LolManKuba
Member
Posts: 939
Joined: Fri Feb 10, 2012 22:36
Location: Ontario, Canada
Contact:

by LolManKuba » Post

+2 Good idea neko.

User avatar
bgsmithjr
Member
Posts: 436
Joined: Thu Mar 08, 2012 23:21
Location: USA,Michigan

by bgsmithjr » Post

I just posted a mod with locked chests that displays the owner name. With no patches.

User avatar
Death Dealer
Member
Posts: 1379
Joined: Wed Feb 15, 2012 18:46
Location: Limbo
Contact:

by Death Dealer » Post

bgsmithjr wrote:http://www.filedropper.com/chests
locked chests with player name; brick, sandstone, stone, and wood. The wood recipe was changed to using sticks. Let me know if you want locked doors, that display the name also.
ya locked doors :D god job with the chests to:D
Keep calm and code python^_^

User avatar
bgsmithjr
Member
Posts: 436
Joined: Thu Mar 08, 2012 23:21
Location: USA,Michigan

by bgsmithjr » Post

Here are locked doors that display the owners name
http://www.filedropper.com/zlpdoors

User avatar
Death Dealer
Member
Posts: 1379
Joined: Wed Feb 15, 2012 18:46
Location: Limbo
Contact:

by Death Dealer » Post

bgsmithjr wrote:Here are locked doors that display the owners name
http://www.filedropper.com/zlpdoors
wow dude your fast o.o NICE!!!
Keep calm and code python^_^

User avatar
bgsmithjr
Member
Posts: 436
Joined: Thu Mar 08, 2012 23:21
Location: USA,Michigan

by bgsmithjr » Post

Thanks, I already had locked doors and chest, so adding the owner name was easy.

User avatar
Death Dealer
Member
Posts: 1379
Joined: Wed Feb 15, 2012 18:46
Location: Limbo
Contact:

by Death Dealer » Post

bgsmithjr wrote:Thanks, I already had locked doors and chest, so adding the owner name was easy.
if you say so:D still good job.
Keep calm and code python^_^

Michael Eh?
Member
Posts: 391
Joined: Sun Jan 01, 2012 17:21

by Michael Eh? » Post

it would also be nice if a person is banned that their locked chests revert to normal chests or admin can empty them an return stolen contents.

User avatar
bgsmithjr
Member
Posts: 436
Joined: Thu Mar 08, 2012 23:21
Location: USA,Michigan

by bgsmithjr » Post

I am working on something else, but I will add it to my to-do list.

Michael Eh?
Member
Posts: 391
Joined: Sun Jan 01, 2012 17:21

by Michael Eh? » Post

anyone got a windows compile of this mod for 0.3.1? I'm on a server that I could use this now.

Post Reply

Who is online

Users browsing this forum: No registered users and 10 guests