[Mod] Inventorybags [inventorybags]

User avatar
cx384
Member
Posts: 655
Joined: Wed Apr 23, 2014 09:38
GitHub: cx384
IRC: cx384

[Mod] Inventorybags [inventorybags]

by cx384 » Post

Authors note: This mod was written many years ago and has not been updated. It is neither sufficiently performant nor crash safe, and it needs to be completely refactored. Maybe in the future it will, but for now avoid using this mod if you care about these things. Look here for alternatives.

This mod adds bags which can be stored in inventory and opened with right click.
I have made this mod, because if you use many mods at once the player inventory is too small to store all items which you get from for example mining.
You probably need minetest 0.4.16 or later.

Image

License:
Code: GNU GPLv3 for everything what is not taken from anywhere (look in README for more information)
Sound and textures: CC-BY-SA-4.0 for everything what is not taken from anywhere (look in README for more information)
Dependencies: default, wool, farming, stairs, dye, bucket, (unified_inventory?, more_chests?, xdecor?, beds?, tnt?, pipeworks?, homedecor?, node_texture_modifier?)
Download: zip, tar.gz
Github: inventorybags

Nathan.S's mod review

How to use.
1. Craft a spinning wheel
2. Spin wool
3. Craft a loom
4. Weave some yarn
5. Craft a bag
The rest is self-explaining.

To Do:
- Find bugs (done for now)
Last edited by cx384 on Sun Aug 20, 2023 12:44, edited 10 times in total.
Can your read this?

User avatar
ExeterDad
Member
Posts: 1717
Joined: Sun Jun 01, 2014 20:00
In-game: ExeterDad
Location: New Hampshire U.S.A

Re: [Mod] Inventorybags [inventorybags]

by ExeterDad » Post

Haven't used them yet, but I really like your approach. :)

User avatar
Desour
Member
Posts: 1472
Joined: Thu Jun 19, 2014 19:49
GitHub: Desour
IRC: Desour
In-game: DS
Location: I'm scared that if this is too exact, I will be unable to use my keyboard.

Re: [Mod] Inventorybags [inventorybags]

by Desour » Post

Great!
he/him; Codeberg; GitHub; ContentDB; public personal TODO list; "DS" is preferred (but often too short)

User avatar
azekill_DIABLO
Member
Posts: 7507
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO
Location: OMICRON
Contact:

Re: [Mod] Inventorybags [inventorybags]

by azekill_DIABLO » Post

didn't tried too but that seem to be a lot of bags! +1
Gone, but not dead. Contact me on discord: azekill_DIABLO#6565
DMs are always open if you want to get in touch!

User avatar
cx384
Member
Posts: 655
Joined: Wed Apr 23, 2014 09:38
GitHub: cx384
IRC: cx384

Re: [Mod] Inventorybags [inventorybags]

by cx384 » Post

Thank you for your feedback!
Can your read this?

User avatar
lisacvuk
Member
Posts: 274
Joined: Sat Jul 19, 2014 11:52
GitHub: lisacvuk
IRC: lisac
In-game: lisacvuk
Location: Serbia, Užice

Re: [Mod] Inventorybags [inventorybags]

by lisacvuk » Post

azekill_DIABLO wrote:didn't tried too but that seem to be a lot of bags! +1
I sense a pun.
It's lisac, not lisa.
400 character limit? Am I writing a book?
Administrator on Craig's server. Minetest player.
"The enemy pales when they see the face of Dazzle!" ~ Dazzle obviously.
I live in Serbia.
Steam | OpenDOTA
My mods:
Tool ranks
I appreciate donations in TF2 items. :)

User avatar
the_raven_262
Member
Posts: 343
Joined: Mon Sep 22, 2014 09:30
GitHub: theraven262
IRC: [Discord unfortunately] corvus262

Re: [Mod] Inventorybags [inventorybags]

by the_raven_262 » Post

Oh, a very nice mod indeed.
Also very nice textures. +1

User avatar
azekill_DIABLO
Member
Posts: 7507
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO
Location: OMICRON
Contact:

Re: [Mod] Inventorybags [inventorybags]

by azekill_DIABLO » Post

lisacvuk wrote:
azekill_DIABLO wrote:didn't tried too but that seem to be a lot of bags! +1
I sense a pun.
not even! i think it's a real good mod!
Gone, but not dead. Contact me on discord: azekill_DIABLO#6565
DMs are always open if you want to get in touch!

User avatar
cx384
Member
Posts: 655
Joined: Wed Apr 23, 2014 09:38
GitHub: cx384
IRC: cx384

Re: [Mod] Inventorybags [inventorybags]

by cx384 » Post

Update:
- Minor changes
- Added explosions upgrade
- and the bag of winds ( suggested by DS-minetest )
Spoiler
A hole made with 99 TNT.
Image
The bag of winds.
Image
Attachments
screenshot_20170611_210842.png
screenshot_20170611_210842.png (597.62 KiB) Viewed 2725 times
screenshot_20170611_210949.png
screenshot_20170611_210949.png (395.51 KiB) Viewed 2725 times
Can your read this?

User avatar
Nathan.S
Member
Posts: 1147
Joined: Wed Sep 24, 2014 17:47
GitHub: NathanSalapat
IRC: NathanS21
In-game: NathanS21
Location: Bigsby Texas
Contact:

Re: [Mod] Inventorybags [inventorybags]

by Nathan.S » Post

I believe step four should be weave some yarn, not wave some yarn.

Other than that, this is a super fun mod, recoding a mod review on it soon. Your approach for the tools to use them on right click is interesting, but I haven't found any problems with it.
(If interested I do have a model of a weaving loom and spinning wheel you could use for nodes.)
I record Minetest videos, Mod reviews, Modding tutorials, and Lets plays.
Check out my website, and brand new Minetest Modding Course

User avatar
cx384
Member
Posts: 655
Joined: Wed Apr 23, 2014 09:38
GitHub: cx384
IRC: cx384

Re: [Mod] Inventorybags [inventorybags]

by cx384 » Post

Nathan.S wrote:I believe step four should be weave some yarn, not wave some yarn.
Oh yes, thank you.
Nathan.S wrote: Other than that, this is a super fun mod, recoding a mod review on it soon.
That's great, but if you want to show everything you should install more_chests, xdecor and pipeworks or homedecor, too. Moreover you should enable the beds mod, tnt mod and the Teleportation Bag in settings .
Nathan.S wrote: Your approach for the tools to use them on right click is interesting, but I haven't found any problems with it.
I have decided that you can open a bag/machine with right click, because on nodes it's the same key.
Nathan.S wrote: (If interested I do have a model of a weaving loom and spinning wheel you could use for nodes.)
I haven't used nodes, because I am really bad in making models, and I think nodes with such complex models look ugly . So maybe I am interested, but it would be also nice to have a model for the bag upgrade device.
Last edited by cx384 on Mon Jun 12, 2017 12:18, edited 2 times in total.
Can your read this?

User avatar
Desour
Member
Posts: 1472
Joined: Thu Jun 19, 2014 19:49
GitHub: Desour
IRC: Desour
In-game: DS
Location: I'm scared that if this is too exact, I will be unable to use my keyboard.

Re: [Mod] Inventorybags [inventorybags]

by Desour » Post

Nice Update!
Can you make a machine that has to be placed at cloudhight to get the bag of winds?
he/him; Codeberg; GitHub; ContentDB; public personal TODO list; "DS" is preferred (but often too short)

User avatar
cx384
Member
Posts: 655
Joined: Wed Apr 23, 2014 09:38
GitHub: cx384
IRC: cx384

Re: [Mod] Inventorybags [inventorybags]

by cx384 » Post

DS-minetest wrote:Nice Update!
Can you make a machine that has to be placed at cloudhight to get the bag of winds?
Nice suggestion, but I already got an idea to craft the bag of winds. I want to make a wind catcher or something like this.
Can your read this?

User avatar
Nathan.S
Member
Posts: 1147
Joined: Wed Sep 24, 2014 17:47
GitHub: NathanSalapat
IRC: NathanS21
In-game: NathanS21
Location: Bigsby Texas
Contact:

Re: [Mod] Inventorybags [inventorybags]

by Nathan.S » Post

Image

I made these models for a subgame I was working on, as a way to make fabric which was used to make clothing and armor. The textures are of a slightly higher resolution, but those can always be changed. :)
Attachments
wheel-and-loom.png
wheel-and-loom.png (231.12 KiB) Viewed 2725 times
I record Minetest videos, Mod reviews, Modding tutorials, and Lets plays.
Check out my website, and brand new Minetest Modding Course

User avatar
cx384
Member
Posts: 655
Joined: Wed Apr 23, 2014 09:38
GitHub: cx384
IRC: cx384

Re: [Mod] Inventorybags [inventorybags]

by cx384 » Post

Nathan.S wrote: (img)
I made these models for a subgame I was working on, as a way to make fabric which was used to make clothing and armor. The textures are of a slightly higher resolution, but those can always be changed. :)
Your models aren't bad, but I think that those will not fit well with the mod even with other textures. : /
In addition, I'm happy with the craftitems and at the moment my mod doesn't add any nodes.

But it would be nice to have an other mod/supgame which adds fabric, because then I can depend on this mod.
Can your read this?

User avatar
cx384
Member
Posts: 655
Joined: Wed Apr 23, 2014 09:38
GitHub: cx384
IRC: cx384

Re: [Mod] Inventorybags [inventorybags]

by cx384 » Post

moved to Mod Releases
Can your read this?

Modern Hippie
Member
Posts: 115
Joined: Wed Oct 29, 2014 04:35

Re: [Mod] Inventorybags [inventorybags]

by Modern Hippie » Post

Is there somewhere a description what features every single bag has?
No longer active with this account! Please PM me on my new account "Wolfshippie"!

User avatar
cx384
Member
Posts: 655
Joined: Wed Apr 23, 2014 09:38
GitHub: cx384
IRC: cx384

Re: [Mod] Inventorybags [inventorybags]

by cx384 » Post

Modern Hippie wrote:Is there somewhere a description what features every single bag has?
No, but I think this is not necessary, because the only differences between normal bags are the size, name, texture and sound and this are things which you should find out yourself by playing with this mod. The special bags don't need a description, because of their names, for example sleeping bag or bag transporting bag. Nevertheless there is a description for the upgrades (open the bag upgrade device and press the help button).
You can also watch this: http://www.nathansalapat.com/minetest/inventorybags
Can your read this?

Modern Hippie
Member
Posts: 115
Joined: Wed Oct 29, 2014 04:35

Re: [Mod] Inventorybags [inventorybags]

by Modern Hippie » Post

cx384 wrote:
Modern Hippie wrote:Is there somewhere a description what features every single bag has?
No, but I think this is not necessary, because the only differences between normal bags are the size, name, texture and sound and this are things which you should find out yourself by playing with this mod. The special bags don't need a description, because of their names, for example sleeping bag or bag transporting bag. Nevertheless there is a description for the upgrades (open the bag upgrade device and press the help button).
You can also watch this: http://www.nathansalapat.com/minetest/inventorybags
Oh ok, thx :)
No longer active with this account! Please PM me on my new account "Wolfshippie"!

User avatar
cx384
Member
Posts: 655
Joined: Wed Apr 23, 2014 09:38
GitHub: cx384
IRC: cx384

Re: [Mod] Inventorybags [inventorybags]

by cx384 » Post

Small update:
Fixed the inventory sorting.
Can your read this?

User avatar
nirasa
Member
Posts: 19
Joined: Fri Jun 10, 2016 10:11
GitHub: nirasa1957
IRC: nirasa1957
In-game: nirasa
Location: Czech republic

Re: [Mod] Inventorybags [inventorybags]

by nirasa » Post

Hi, I have error in Minetest 0.4.16:

Code: Select all

-------------
  Separator
-------------

2017-12-23 10:45:09: WARNING[Main]: BanManager: creating /home/irenas/.minetest/worlds/inventory/ipban.txt
2017-12-23 10:45:09: WARNING[Main]: NodeDefManager: Ignoring CONTENT_IGNORE redefinition
2017-12-23 10:45:09: WARNING[Main]: WARNING: minetest.setting_* functions are deprecated.  Use methods on the minetest.settings object.
2017-12-23 10:45:09: WARNING[Main]: WARNING: minetest.setting_* functions are deprecated.  Use methods on the minetest.settings object.
2017-12-23 10:45:09: ERROR[Main]: ModError: Failed to load and run script from /home/irenas/.minetest/mods/inventorybags/init.lua:
2017-12-23 10:45:09: ERROR[Main]: ....minetest/mods/inventorybags/sort_inventory_function.lua:18: unexpected symbol near '-'
2017-12-23 10:45:09: ERROR[Main]: stack traceback:
2017-12-23 10:45:09: ERROR[Main]: 	[C]: in function 'dofile'
2017-12-23 10:45:09: ERROR[Main]: 	/home/irenas/.minetest/mods/inventorybags/init.lua:6: in main chunk
2017-12-23 10:45:09: ERROR[Main]: Pro detaily se podívejte do debug.txt.
Sorry for my english :(

User avatar
cx384
Member
Posts: 655
Joined: Wed Apr 23, 2014 09:38
GitHub: cx384
IRC: cx384

Re: [Mod] Inventorybags [inventorybags]

by cx384 » Post

nirasa wrote:Hi, I have error in Minetest 0.4.16:

Code: Select all

-------------
  Separator
-------------

2017-12-23 10:45:09: WARNING[Main]: BanManager: creating /home/irenas/.minetest/worlds/inventory/ipban.txt
2017-12-23 10:45:09: WARNING[Main]: NodeDefManager: Ignoring CONTENT_IGNORE redefinition
2017-12-23 10:45:09: WARNING[Main]: WARNING: minetest.setting_* functions are deprecated.  Use methods on the minetest.settings object.
2017-12-23 10:45:09: WARNING[Main]: WARNING: minetest.setting_* functions are deprecated.  Use methods on the minetest.settings object.
2017-12-23 10:45:09: ERROR[Main]: ModError: Failed to load and run script from /home/irenas/.minetest/mods/inventorybags/init.lua:
2017-12-23 10:45:09: ERROR[Main]: ....minetest/mods/inventorybags/sort_inventory_function.lua:18: unexpected symbol near '-'
2017-12-23 10:45:09: ERROR[Main]: stack traceback:
2017-12-23 10:45:09: ERROR[Main]: 	[C]: in function 'dofile'
2017-12-23 10:45:09: ERROR[Main]: 	/home/irenas/.minetest/mods/inventorybags/init.lua:6: in main chunk
2017-12-23 10:45:09: ERROR[Main]: Pro detaily se podívejte do debug.txt.
Thank you for trying out my mod and posting this error.
Everything should work well again with the new version.
Can your read this?

User avatar
TechNolaByte
Member
Posts: 465
Joined: Wed May 10, 2017 21:00
GitHub: TechNolaByte

Re: [Mod] Inventorybags [inventorybags]

by TechNolaByte » Post

a.
m.
a.
z.
I.
n.
g!
The great quest of alchemy neither failed nor attained gold; programmers are those great alchemists who transmute caffeine into code.

User avatar
nirasa
Member
Posts: 19
Joined: Fri Jun 10, 2016 10:11
GitHub: nirasa1957
IRC: nirasa1957
In-game: nirasa
Location: Czech republic

Re: [Mod] Inventorybags [inventorybags]

by nirasa » Post

cx384 wrote:
nirasa wrote:
Thank you for trying out my mod and posting this error.
Everything should work well again with the new version.
Yes! New version is OK :-)
Sorry for my english :(

User avatar
TechNolaByte
Member
Posts: 465
Joined: Wed May 10, 2017 21:00
GitHub: TechNolaByte

Re: [Mod] Inventorybags [inventorybags]

by TechNolaByte » Post

I get an error and crash when I try to mine cobble with this mod enabled I think it may be because it doesn't support overridden blocks as I have this as well in another mod

Code: Select all

minetest.register_node(":default:cobble", {
    description = "Cobblestone",
	tiles = {"default_cobble.png"},
	is_ground_content = false,
	groups = {cracky = 3, stone = 2},
	sounds = default.node_sound_stone_defaults(),
	emc = 1,
	drop = { 
        max_items = 1,
        items = {{
            items = {'node "default:gravel" 1'},
	    tools ={"skytest:stone_hammer","skytest:steel_hammer","skytest:diamond_hammer","skytest:mese_hammer","gs_tools:stone_sledge"},
	}, {
	    items = {'node "default:cobble" 1'},
	    tools ={"~pick","~sledge"},
      }}
    }
})
as far as I know it only happens with default:cobble node


here is the error I get

Code: Select all

2017-12-30 22:01:05: ACTION[Server]: singleplayer digs default:cobble at (2,0,-4)
2017-12-30 22:01:05: ERROR[Main]: ServerError: AsyncErr: ServerThread::run Lua: Runtime error from mod 'inventorybags' in callback ScriptApiNode::node_on_dig(): ...\minetest-0.4.16-win32-msvc\bin\..\builtin\game\item.lua:186: attempt to call method 'find' (a nil value)
2017-12-30 22:01:05: ERROR[Main]: stack traceback:
2017-12-30 22:01:05: ERROR[Main]: 	...\minetest-0.4.16-win32-msvc\bin\..\builtin\game\item.lua:186: in function 'get_node_drops'
2017-12-30 22:01:05: ERROR[Main]: 	...actory\mods\skyfactory\inventorybags-master/upgrades.lua:278: in function 'callback'
2017-12-30 22:01:05: ERROR[Main]: 	...\minetest-0.4.16-win32-msvc\bin\..\builtin\game\item.lua:529: in function <...\minetest-0.4.16-win32-msvc\bin\..\builtin\game\item.lua:453>
plz help as cobble is the worst block to crash when you try to mine in my modpacks
The great quest of alchemy neither failed nor attained gold; programmers are those great alchemists who transmute caffeine into code.

Post Reply

Who is online

Users browsing this forum: No registered users and 10 guests