[mod] Ban hammer! [banhammer]

Post Reply
Amaz
Member
Posts: 354
Joined: Wed May 08, 2013 08:26
GitHub: Amaz1
IRC: Amaz
In-game: Amaz

[mod] Ban hammer! [banhammer]

by Amaz » Post

This mod adds a ban hammer and a kick pick to Minetest. They can be used only by players who have the ban/kick privs. The items are not craftable. I think that's about it!
Slight warning: I have not tested the ban hammer much, so if it bans you from your server when you use it, I'm very sorry!

Image

This requires a -dev version of Minetest from at least the 15th May. (When register_on_punchplayer was added)

Github link: https://github.com/Amaz1/banhammer.git
Download: https://github.com/Amaz1/banhammer/archive/master.zip

Depends: Nothing!

License: WTFPL code and banhammer texture, CC BY-SA 3.0 kick pick texture, based off BlockMen's pick texture.

User avatar
Evergreen
Member
Posts: 2135
Joined: Sun Jan 06, 2013 01:22
GitHub: EvergreenTheTree
IRC: Evergreen
In-game: Evergreen
Location: Unlikely to come back to minetest or update my mods, see my contact info if you need anything.
Contact:

Re: [mod] Ban hammer! [banhammer]

by Evergreen » Post

I actually have already made a mod for this (viewtopic.php?t=9032). What does this do differently?
Back from the dead!

Amaz
Member
Posts: 354
Joined: Wed May 08, 2013 08:26
GitHub: Amaz1
IRC: Amaz
In-game: Amaz

Re: [mod] Ban hammer! [banhammer]

by Amaz » Post

Evergreen wrote:I actually have already made a mod for this (viewtopic.php?t=9032). What does this do differently?
I didn't realize that, sorry!
I think that the code that mine uses is considerably shorter, and it use a function of the api to do it (register_on_punchplayer).

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

Re: [mod] Ban hammer! [banhammer]

by rubenwardy » Post

Amaz wrote:
Evergreen wrote:I actually have already made a mod for this (viewtopic.php?t=9032). What does this do differently?
I didn't realize that, sorry!
I think that the code that mine uses is considerably shorter, and it use a function of the api to do it (register_on_punchplayer).
His uses the hammer's on_use function, which is a better way IMHO.
Renewed Tab (my browser add-on) | Donate | Mods | Minetest Modding Book

Hello profile reader

Post Reply