Page 1 of 1

Stacks of 64?

PostPosted: Mon Apr 22, 2013 01:05
by windmere33
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?

PostPosted: Mon Apr 22, 2013 04:06
by Mito551
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)
})

PostPosted: Mon Apr 22, 2013 04:14
by 4aiman
Windmere33, try out minitest by PilzAdam - he implemented many minecraft features ;)

PostPosted: Fri Apr 26, 2013 14:20
by Likwid H-Craft
Or look in the Bulletin I think it, was title item something, idk with one right now.

PostPosted: Fri Apr 26, 2013 16:03
by ShadowNinja
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,
[...]

PostPosted: Fri Apr 26, 2013 16:07
by Likwid H-Craft
And the max I believe is 54713. unless it higher now.

PostPosted: Fri Apr 26, 2013 16:15
by rubenwardy
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.