[Mod] Unified Inventory [git][unified_inventory]

Sokomine
Member
 
Posts: 3869
Joined: Sun Sep 09, 2012 17:31
GitHub: Sokomine

Re: [Mod] Unified Inventory [git][unified_inventory]

by Sokomine » Thu Jun 13, 2019 01:12

Maybe we need a new priv for the "get items from unified_inventory for free" option - what the creative priv did before. The creative priv was turned into something that does something in MTG now - something that (to me) is entirely undesirable. I don't want digging speed or effects of digging/placing affected. Just that free material from unified_inventory for building purposes.
A list of my mods can be found here.
 

User avatar
VanessaE
Moderator
 
Posts: 4461
Joined: Sun Apr 01, 2012 12:38
Location: Waynesville, NC
GitHub: VanessaE
IRC: VanessaE
In-game: VanessaE

Re: [Mod] Unified Inventory [git][unified_inventory]

by VanessaE » Thu Jun 13, 2019 09:45

That's more the domain of minetest_game (well, the creative mod therein). Having a minetest.conf setting to change the place/dig behavior separate from the creative-inventory feature could be useful.

That said, there is a workaround:

On a survival-mode server or world, giving someone the creative privilege *does* have the effect you're interested in -- they get the materials for free, but place/dig behavior still uses survival-mode timings and tool capabilities. All good mods that have to do inventory manipulations on dig/place (such as taking two or more of something from your inventory when used) already check for creative mode and/or privilege before making such changes, too.

So, put the server/world/etc. into survival mode, turn off damage and PvP, and add creative to the default privileges (alongside fast, fly, shout, etc.). Anyone who wants the usual fast digging under that scenario just needs to give him/herself a tool that'll do the job.
You might like some of my stuff: Plantlife ~ More Trees ~ Home Decor ~ Pipeworks ~ HDX Textures (64-512px)
 

User avatar
Wuzzy
Member
 
Posts: 3616
Joined: Mon Sep 24, 2012 15:01
GitHub: Wuzzy2
IRC: Wuzzy
In-game: Wuzzy

Re: [Mod] Unified Inventory [git][unified_inventory]

by Wuzzy » Thu Sep 19, 2019 13:07

VanessaE, please repost this thread because RealBadAngel is dead and you are alive.

Someone should mark this thread as “old” then and add a link to the current version of Unified Inventory.

Thanks.

I hope the GitHub repo is still the correct one. Cuz I posted things there.
My creations. I gladly accept bitcoins: 17fsUywHxeMHKG41UFfu34F1rAxZcrVoqH
 

User avatar
VanessaE
Moderator
 
Posts: 4461
Joined: Sun Apr 01, 2012 12:38
Location: Waynesville, NC
GitHub: VanessaE
IRC: VanessaE
In-game: VanessaE

Re: [Mod] Unified Inventory [git][unified_inventory]

by VanessaE » Thu Sep 19, 2019 17:58

The first post points at the Github repo. Since it isn't my mod, nor am I the maintainer anymore, it doesn't make sense to me to be the "head" of the forum thread for it.
You might like some of my stuff: Plantlife ~ More Trees ~ Home Decor ~ Pipeworks ~ HDX Textures (64-512px)
 

Robsoie
Member
 
Posts: 98
Joined: Fri Apr 29, 2016 16:22

Re: [Mod] Unified Inventory [git][unified_inventory]

by Robsoie » Wed Oct 09, 2019 12:35

Hello,

I use Backspace to open/close my inventory, but i noticed when using unified inventory that i am not always able to close it with Backspace, sometime i can sometime not, it puzzled me for a while but i noticed the reason :

the line with "Search" (the searchbox) sometime seems to enable itself (there's the cursor that appear in it) despite i never click on it , and when it happens i simply can't use Backspace to close the inventory because with the searchbox cursor being present Backspace is suddenly used as being the textual "backspace" function, so i need to press Escape to exit the inventory.

As i never use the search functionality of unified inventory, i was trying to find a way to remove it entirely because it's super annoying to me.
So in the internal.lua i deleted
Code: Select all
   -- Search box
   formspec[n] = "field_close_on_enter[searchbox;false]"
   n = n+1

   if not draw_lite_mode then
      formspec[n] = "field[9.5,8.325;3,1;searchbox;;"
         .. F(unified_inventory.current_searchbox[player_name]) .. "]"
      formspec[n+1] = "image_button[12.2,8.1;.8,.8;ui_search_icon.png;searchbutton;]"
         .. "tooltip[searchbutton;" ..F(S("Search")) .. "]"
      formspec[n+2] = "image_button[12.9,8.1;.8,.8;ui_reset_icon.png;searchresetbutton;]"
         .. "tooltip[searchbutton;" ..F(S("Search")) .. "]"
         .. "tooltip[searchresetbutton;" ..F(S("Reset search and display everything")) .. "]"
   else
      formspec[n] = "field[8.5,5.225;2.2,1;searchbox;;"
         .. F(unified_inventory.current_searchbox[player_name]) .. "]"
      formspec[n+1] = "image_button[10.3,5;.8,.8;ui_search_icon.png;searchbutton;]"
         .. "tooltip[searchbutton;" ..F(S("Search")) .. "]"
      formspec[n+2] = "image_button[11,5;.8,.8;ui_reset_icon.png;searchresetbutton;]"
         .. "tooltip[searchbutton;" ..F(S("Search")) .. "]"
         .. "tooltip[searchresetbutton;" ..F(S("Reset search and display everything")) .. "]"
   end
   n = n+3

   local no_matches = S("No matching items")
   if draw_lite_mode then
      no_matches = S("No matches.")
   end


It seems to work good so far after playing for a while, but as i am no coder at all, i am wondering if it is going to lead into unexpected bugs later or if it's completely safe like that ?
 

Previous

Return to Mod Releases



Who is online

Users browsing this forum: jeremyericson, Odracir and 8 guests