Stacks of 64?

User avatar
windmere33
Member
 
Posts: 100
Joined: Thu Apr 04, 2013 19:21

Stacks of 64?

by windmere33 » Mon Apr 22, 2013 01:05

I saw another topic, where someone said that you can change stacks to 64 by looking for "stack_max" i havent found that in default mods, or any other mods. Where can I find this to change the max stack to 64?
Active Contributor To Thaumtest!
 

User avatar
Mito551
Member
 
Posts: 1271
Joined: Sat Jun 16, 2012 15:03

by Mito551 » Mon Apr 22, 2013 04:06

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
minetest.register_craftitem("farming:bread", {
    description = "Bread",
    inventory_image = "farming_bread.png",
    stack_max = 99,
    on_use = minetest.item_eat(10)
})
Last edited by Mito551 on Mon Apr 22, 2013 04:06, edited 1 time in total.
 

4aiman
Member
 
Posts: 1208
Joined: Mon Jul 30, 2012 05:47

by 4aiman » Mon Apr 22, 2013 04:14

Windmere33, try out minitest by PilzAdam - he implemented many minecraft features ;)
 

User avatar
Likwid H-Craft
Member
 
Posts: 1113
Joined: Sun Jan 06, 2013 14:20

by Likwid H-Craft » Fri Apr 26, 2013 14:20

Or look in the Bulletin I think it, was title item something, idk with one right now.
My Domain's/others:
http://likwidtest.hj.cx/ (Not Done)
 

User avatar
ShadowNinja
Member
 
Posts: 194
Joined: Tue Jan 22, 2013 22:35
GitHub: ShadowNinja
IRC: ShadowNinja
In-game: ShadowNinja

by ShadowNinja » Fri Apr 26, 2013 16:03

Look in builtin/item.lua, around line 389.
Note that some mods will explictly set a stack_max, this is only the default.

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
[...]
wield_scale = {x=1,y=1,z=1},
stack_max = 99,
usable = false,
[...]
I play on my Minetest server and VanessaE's.
The best way to contact me is usually IRC (InchraNet, freenode).
 

User avatar
Likwid H-Craft
Member
 
Posts: 1113
Joined: Sun Jan 06, 2013 14:20

by Likwid H-Craft » Fri Apr 26, 2013 16:07

And the max I believe is 54713. unless it higher now.
My Domain's/others:
http://likwidtest.hj.cx/ (Not Done)
 

User avatar
rubenwardy
Member
 
Posts: 4500
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy

by rubenwardy » Fri Apr 26, 2013 16:15

Likwid H-Craft wrote:And the max I believe is 54713. unless it higher now.


That is the maximum value stack_max can take.

Normally stacks fill until they reach 99, and then a new stack is created.
 


Return to Minetest General

Who is online

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