[Mod] Send Stack [sendstack]
- 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]
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.
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
Re: [Mod] Send Stack [sendstack]
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
EDIT: Grammar
- 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]
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.
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.
-
- 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]
That is a cool concept, would be good to have on Hometown and other big servers.
What is SCP-055?
- 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]
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
-
- Member
- Posts: 818
- Joined: Tue Apr 14, 2015 01:59
- GitHub: raymoo
- IRC: Hijiri
- In-game: Raymoo + Clownpiece
Re: [Mod] Send Stack [sendstack]
Why not make it a configuration setting?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)
Every time a mod API is left undocumented, a koala dies.
- 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]
Excellent point.Byakuren wrote:Why not make it a configuration setting?
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
- ManElevation
- Member
- Posts: 896
- Joined: Tue Aug 02, 2016 22:04
- GitHub: ManElevation
- IRC: ManElevation
- In-game: ManElevation
- Location: Madrid,Spain
-
- Member
- Posts: 818
- Joined: Tue Apr 14, 2015 01:59
- GitHub: raymoo
- IRC: Hijiri
- In-game: Raymoo + Clownpiece
Re: [Mod] Send Stack [sendstack]
I meant using Minetest's settings API.ChimneySwift wrote:Excellent point.Byakuren wrote:Why not make it a configuration setting?
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.
Every time a mod API is left undocumented, a koala dies.
- 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]
Hmm, I don't personally like that api, but, *sigh* I guess I should use it...Byakuren wrote:I meant using Minetest's settings API.
A spoon is basically a tiny bowl with a stick on it
Who is online
Users browsing this forum: Bing [Bot] and 38 guests