+
Spoiler
Finding the amount of items in a stack(SOLVED)
Finding the amount of items in a stack(SOLVED)
In Minearriatest's Jungletools mod, there is a grinder node. This grinder's formspec has 2 slots (input, output) and a button (Grind). However, on clicking Grind, only one item is removed from the input slot, and only 1 is added to the output. Is there a way to find the amount of jungletools:jungle_spore craftitems in the input slot and add that many jungletools:jungle_dust to the output slot on_recieve_fields?
EDIT: I used stack:get_count().
Last edited by qwrwed on Wed Jan 01, 2014 15:17, edited 1 time in total.
- Krock
- Developer
- Posts: 4577
- Joined: Thu Oct 03, 2013 07:48
- GitHub: SmallJoker
- Location: Switzerland
- Contact:
I don't like to say this but: use ABM's
There are serval examples in minetest_game, just browse through them, you'll surely find some.
There are serval examples in minetest_game, just browse through them, you'll surely find some.
Look, I programmed a bug for you. >> Mod Search Engine << - Mods by Krock - DuckDuckGo mod search bang: !mtmod <keyword here>
- Minearriatest
- Member
- Posts: 34
- Joined: Mon Nov 25, 2013 18:28
- Location: United Kingdom
Modding a Mod, seems legit.
Minetest user name: asg
Try out some mods which I contributed in:
Jungle Tools(made) Ice + Magma Tools(contributed) Ultimate Tools(made)
Try out some mods which I contributed in:
Jungle Tools(made) Ice + Magma Tools(contributed) Ultimate Tools(made)
Who is online
Users browsing this forum: No registered users and 9 guests