[Mod] Item shelf [itemshelf]
- Grizzly Adam
- Member
- Posts: 252
- Joined: Sat Aug 05, 2017 01:28
- GitHub: Grizzly-Adam
- Location: Lost in America
- Contact:
Re: [Mod] Item shelf [itemshelf]
Thanks for the hard work!
I just updated the Media Pack for Laptop mod, everything works great there. Also, the old lady is very pleased about the rotate bug being fixed as she uses the shelves in her house.
I just updated the Media Pack for Laptop mod, everything works great there. Also, the old lady is very pleased about the rotate bug being fixed as she uses the shelves in her house.
Check out my Mods: BBQ Mod Crops Plus
-
- Member
- Posts: 1482
- Joined: Fri Apr 19, 2013 16:19
- GitHub: twoelk
- IRC: twoelk
- In-game: twoelk
- Location: northern Germany
Re: [Mod] Item shelf [itemshelf]
cool stuff
now my bakery starts looking like the real thing :-D
hmm, you can put stacks in the shelves - but on destruction only one item per stack is dropped?
now take it to the next level of all inventories - add locked versions ;-P
now my bakery starts looking like the real thing :-D
hmm, you can put stacks in the shelves - but on destruction only one item per stack is dropped?
now take it to the next level of all inventories - add locked versions ;-P
- Grizzly Adam
- Member
- Posts: 252
- Joined: Sat Aug 05, 2017 01:28
- GitHub: Grizzly-Adam
- Location: Lost in America
- Contact:
Re: [Mod] Item shelf [itemshelf]
It would be cool if we had the option to make a shelf either drop its contents or to retain them while stored in inventory.
Check out my Mods: BBQ Mod Crops Plus
-
- Member
- Posts: 1482
- Joined: Fri Apr 19, 2013 16:19
- GitHub: twoelk
- IRC: twoelk
- In-game: twoelk
- Location: northern Germany
Re: [Mod] Item shelf [itemshelf]
take that deeper!Grizzly Adam wrote:It would be cool if we had the option to make a shelf either drop its contents or to retain them while stored in inventory.
imagine a shelf of filled chests
drooooool
- Attachments
-
- screenshot_20180207_194509.png (316.29 KiB) Viewed 879 times
Last edited by twoelk on Wed Feb 07, 2018 19:08, edited 1 time in total.
- Lone_Wolf
- Member
- Posts: 2578
- Joined: Sun Apr 09, 2017 05:50
- GitHub: LoneWolfHT
- IRC: LandarVargan
- In-game: LandarVargan
Re: [Mod] Item shelf [itemshelf]
A full shelf within a full shelf within a full shelf within a full shelf...twoelk wrote:take that deeper!Grizzly Adam wrote:It would be cool if we had the option to make a shelf either drop its contents or to retain them while stored in inventory.
imagine a shelf of filled chests
drooooool
- Grizzly Adam
- Member
- Posts: 252
- Joined: Sat Aug 05, 2017 01:28
- GitHub: Grizzly-Adam
- Location: Lost in America
- Contact:
Re: [Mod] Item shelf [itemshelf]
Meh, I just think it would be nice to have it in the api for a developer to choose to use or not.
Check out my Mods: BBQ Mod Crops Plus
-
- Member
- Posts: 84
- Joined: Tue Jul 26, 2016 18:18
- GitHub: hkzorman
- In-game: zorman2000
Re: [Mod] Item shelf [itemshelf]
Grizzly Adam wrote:It would be cool if we had the option to make a shelf either drop its contents or to retain them while stored in inventory.
I don't know how to do it (nodes keeping their inventories while being held as items), but it is certainly possible.Grizzly Adam wrote:Meh, I just think it would be nice to have it in the api for a developer to choose to use or not.
If I get to do it, it would certainly be an option in the API and not default behavior of shelves.
You are entirely right on this, and this has been fixed in the latest version available in GitHub.twoelk wrote:hmm, you can put stacks in the shelves - but on destruction only one item per stack is dropped?
Good suggestion, but not sure how to do it. How do lock a shelf? They are so open...twoelk wrote:now take it to the next level of all inventories - add locked versions ;-P
- Lone_Wolf
- Member
- Posts: 2578
- Joined: Sun Apr 09, 2017 05:50
- GitHub: LoneWolfHT
- IRC: LandarVargan
- In-game: LandarVargan
Re: [Mod] Item shelf [itemshelf]
Maybe take a look at the code for locked chestzorman2000 wrote:Good suggestion, but not sure how to do it. How do lock a shelf? They are so open...twoelk wrote:now take it to the next level of all inventories - add locked versions ;-P
Re: [Mod] Item shelf [itemshelf]
See the methods after_place_node (restore node inventory from item) after_dig_node (save node inventory to item) in the laptop mod:I don't know how to do it (nodes keeping their inventories while being held as items), but it is certainly possible.
If I get to do it, it would certainly be an option in the API and not default behavior of shelves.
https://github.com/Gerold55/minetest-la ... w.lua#L106
Note the limitation if you like to do it, the stacking the shelf items is not allowed anymore (just 1x metadata for each stack). So you need to set stack_max = 1 in this case.
If you wait for Mintetest-0.5, a new function preserve_metadata() appears that should be take the search for the right item in after_dig_node obsolete.
Agree it feels strange if the itemshelf can be picked up with all the content, but the Disk Storage is usually picked up with the content, and the content of disk storage is usually disks only and not disk storage recursivelly.
-
- Member
- Posts: 1482
- Joined: Fri Apr 19, 2013 16:19
- GitHub: twoelk
- IRC: twoelk
- In-game: twoelk
- Location: northern Germany
Re: [Mod] Item shelf [itemshelf]
hmm
you can put filled chests into the shelf with the old wrench mod
and the technic-wrench indeed seems to allow to place and retrieve a filled chest from the shelf. now if the wrench could pick up filled shelves ...
you might want to shift the placement of the items in a large shelf a little down to have them rest on the shelf as in the small ones
edit:
you can place steel trapdoors in front of a shelff, so if interaction with the shelf inventory would be restricted to the front when an opening node such as a door or trapdoor is placed in front of a shelf it might be enough.
you can put filled chests into the shelf with the old wrench mod
and the technic-wrench indeed seems to allow to place and retrieve a filled chest from the shelf. now if the wrench could pick up filled shelves ...
you might want to shift the placement of the items in a large shelf a little down to have them rest on the shelf as in the small ones
edit:
you can place steel trapdoors in front of a shelff, so if interaction with the shelf inventory would be restricted to the front when an opening node such as a door or trapdoor is placed in front of a shelf it might be enough.
- Attachments
-
- screenshot_20180207_211525.png (307.29 KiB) Viewed 879 times
-
- screenshot_20180207_203514.png (283.65 KiB) Viewed 879 times
-
- screenshot_20180207_203259.png (166.36 KiB) Viewed 879 times
-
- Member
- Posts: 4290
- Joined: Sun Sep 09, 2012 17:31
- GitHub: Sokomine
- IRC: Sokomine
- In-game: Sokomine
Re: [Mod] Item shelf [itemshelf]
Thanks! I hope they'll show up on servers. Would love to build with them.zorman2000 wrote: Add half-width shelf, with open back as well (asked by GrizzlyAdam and Sokomine)
Direction usually does not matter that much when interacting with a node. It might be easier to just check if there is a trapdoor. If it's closed - that might be trickier to check. Manually sourrounding the shelf with diffrent nodes and then placing the closed trapdoor in front might be sufficient if the area is protected.twoelk wrote: you can place steel trapdoors in front of a shelff, so if interaction with the shelf inventory would be restricted to the front when an opening node such as a door or trapdoor is placed in front of a shelf it might be enough.
A list of my mods can be found here.
- GamingAssociation39
- Member
- Posts: 858
- Joined: Mon Apr 25, 2016 16:09
- GitHub: Gerold55
- IRC: Gerold55
- In-game: Gerold55
- Location: Maryland, USA
Re: [Mod] Item shelf [itemshelf]
Maybe you could do something like this for an oven.
Jesus Is Lord and Savior!!!
- Grizzly Adam
- Member
- Posts: 252
- Joined: Sat Aug 05, 2017 01:28
- GitHub: Grizzly-Adam
- Location: Lost in America
- Contact:
Re: [Mod] Item shelf [itemshelf]
That would be really cool with a roast chicken in it?
Check out my Mods: BBQ Mod Crops Plus
- GamingAssociation39
- Member
- Posts: 858
- Joined: Mon Apr 25, 2016 16:09
- GitHub: Gerold55
- IRC: Gerold55
- In-game: Gerold55
- Location: Maryland, USA
- Grizzly Adam
- Member
- Posts: 252
- Joined: Sat Aug 05, 2017 01:28
- GitHub: Grizzly-Adam
- Location: Lost in America
- Contact:
Re: [Mod] Item shelf [itemshelf]
zoorman- any way I can rotate a entity placed in shelf to face upward, so a player is presented with an edge-on view like a coin laying on a flat surface.
Check out my Mods: BBQ Mod Crops Plus
- Grizzly Adam
- Member
- Posts: 252
- Joined: Sat Aug 05, 2017 01:28
- GitHub: Grizzly-Adam
- Location: Lost in America
- Contact:
Re: [Mod] Item shelf [itemshelf]
Bug found-- dropped stacks are drops are counted as single items when picked up.
For instance, here are four slots and the number of cookies they contain:
[1][1][3][1]
When the shelf is destroy, play can then pick up one shelf and 4 cookies (not the 6 contained within).
For instance, here are four slots and the number of cookies they contain:
[1][1][3][1]
When the shelf is destroy, play can then pick up one shelf and 4 cookies (not the 6 contained within).
Check out my Mods: BBQ Mod Crops Plus
-
- Member
- Posts: 84
- Joined: Tue Jul 26, 2016 18:18
- GitHub: hkzorman
- In-game: zorman2000
Re: [Mod] Item shelf [itemshelf]
Hi all,
I have not been active for a long time... but I think I will be slowly coming back and being more active. I come back with a new update though! This is the list of changes:
As per Grizzly Adam's bug, I will be looking at that soon.
A screenshot... Download: https://content.minetest.net/packages/z ... itemshelf/
I have not been active for a long time... but I think I will be slowly coming back and being more active. I come back with a new update though! This is the list of changes:
- Enable protection using for taking/putting items on shelves.
- Add crafting recipes.
- Add shelves in all wood varieties.
As per Grizzly Adam's bug, I will be looking at that soon.
A screenshot... Download: https://content.minetest.net/packages/z ... itemshelf/
Who is online
Users browsing this forum: No registered users and 31 guests