[Mod] Send Stack [sendstack]

Post Reply
User avatar
ChimneySwift
Member
Posts: 320
Joined: Fri Sep 22, 2017 06:46
GitHub: ChimneySwift
IRC: ChimneySwift
In-game: ChimneySwift
Location: 127.0.0.1

[Mod] Send Stack [sendstack]

by ChimneySwift » Post

Send Stack

Adds a command to Minetest which enables you to send the stack you are currently holding to another player's inventory.

GitHub
ZIP Download

Code license: MIT

Dependencies: None

Usage

/sendstack <playername>

Takes the item you are holding and sends it to playername, setting the stack you are holding to what couldn't be added to the player's inventory (none if all was added, partial stack if partially added and a full stack if none was added)

Privs
By default the command will require the `interact` priv. On lines 1 to 4 you can enable or disable and set an additional privilege (such as ban) to also be required.
Last edited by ChimneySwift on Wed Dec 27, 2017 05:40, edited 1 time in total.
A spoon is basically a tiny bowl with a stick on it

pengnuin
New member
Posts: 9
Joined: Sat Dec 23, 2017 18:39

Re: [Mod] Send Stack [sendstack]

by pengnuin » Post

This is looking pretty neat. Not quite sure what it could be used for specifically, but I like the idea of a simple mod for item transfer. The feedback looks well implemented from what I can tell. Keep it up!

EDIT: Grammar

User avatar
KatzEyez
Member
Posts: 50
Joined: Tue Aug 08, 2017 18:24
GitHub: KatzPetz
IRC: LadyK
In-game: LadyK
Location: (IG: Depends) (RL: USA)

Re: [Mod] Send Stack [sendstack]

by KatzEyez » Post

I am assuming this is for player to player instead of mod/admin/owner to player.
If this allows a normal player to send items to someone without having to drop them and worry that someone else might steal them, then this would be a nice mod to have.
Why wish upon a star when you can pray to the one who created it.

Chem871
Member
Posts: 999
Joined: Sat Aug 19, 2017 21:49
GitHub: Chemguy99
In-game: Chem Nyx
Location: My Basement's Attic

Re: [Mod] Send Stack [sendstack]

by Chem871 » Post

That is a cool concept, would be good to have on Hometown and other big servers.
What is SCP-055?

User avatar
ChimneySwift
Member
Posts: 320
Joined: Fri Sep 22, 2017 06:46
GitHub: ChimneySwift
IRC: ChimneySwift
In-game: ChimneySwift
Location: 127.0.0.1

Re: [Mod] Send Stack [sendstack]

by ChimneySwift » Post

Originally it was designed to transfer valuable or limited items from staff to player, however all actions are logged so I see no issue with it being available ot regular players, so I've made it now that by default if you wish to lock it's use to a particular priv, you must uncomment (remove "--") line 4 of init.lua (default priv is ban)
A spoon is basically a tiny bowl with a stick on it

Byakuren
Member
Posts: 818
Joined: Tue Apr 14, 2015 01:59
GitHub: raymoo
IRC: Hijiri
In-game: Raymoo + Clownpiece

Re: [Mod] Send Stack [sendstack]

by Byakuren » Post

ChimneySwift wrote:Originally it was designed to transfer valuable or limited items from staff to player, however all actions are logged so I see no issue with it being available ot regular players, so I've made it now that by default if you wish to lock it's use to a particular priv, you must uncomment (remove "--") line 4 of init.lua (default priv is ban)
Why not make it a configuration setting?
Every time a mod API is left undocumented, a koala dies.

User avatar
ChimneySwift
Member
Posts: 320
Joined: Fri Sep 22, 2017 06:46
GitHub: ChimneySwift
IRC: ChimneySwift
In-game: ChimneySwift
Location: 127.0.0.1

Re: [Mod] Send Stack [sendstack]

by ChimneySwift » Post

Byakuren wrote:Why not make it a configuration setting?
Excellent point.
Privs
By default the command will require the `interact` priv. On lines 1 to 4 you can enable or disable and set an additional privilege (such as ban) to also be required.
A spoon is basically a tiny bowl with a stick on it

User avatar
ManElevation
Member
Posts: 896
Joined: Tue Aug 02, 2016 22:04
GitHub: ManElevation
IRC: ManElevation
In-game: ManElevation
Location: Madrid,Spain

Re: [Mod] Send Stack [sendstack]

by ManElevation » Post

+1
My Public Mods! Discord: Rottweiler Games#3368

Byakuren
Member
Posts: 818
Joined: Tue Apr 14, 2015 01:59
GitHub: raymoo
IRC: Hijiri
In-game: Raymoo + Clownpiece

Re: [Mod] Send Stack [sendstack]

by Byakuren » Post

ChimneySwift wrote:
Byakuren wrote:Why not make it a configuration setting?
Excellent point.
Privs
By default the command will require the `interact` priv. On lines 1 to 4 you can enable or disable and set an additional privilege (such as ban) to also be required.
I meant using Minetest's settings API.
Every time a mod API is left undocumented, a koala dies.

User avatar
ChimneySwift
Member
Posts: 320
Joined: Fri Sep 22, 2017 06:46
GitHub: ChimneySwift
IRC: ChimneySwift
In-game: ChimneySwift
Location: 127.0.0.1

Re: [Mod] Send Stack [sendstack]

by ChimneySwift » Post

Byakuren wrote:I meant using Minetest's settings API.
Hmm, I don't personally like that api, but, *sigh* I guess I should use it...
A spoon is basically a tiny bowl with a stick on it

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 38 guests