I think the best amount to allocate to stack size is a power of 2. For example:
If we take 64 (2^6) for the amount, you can divide the stack like this:
1*64, 2*32, 4*16, 32 + 2*16, 8*8, 64*1,etc...
If we use a little divisible size, we will find constant problems in the distribution.
Search found 17 matches
- Mon Mar 06, 2017 12:09
- Forum: General Discussion
- Topic: 99 items
- Replies: 31
- Views: 4027
- Sat Mar 04, 2017 12:12
- Forum: Modding Discussion
- Topic: I want to modify a tool but I can't
- Replies: 2
- Views: 734
Re: I want to modify a tool but I can't
Thanks! I'll see if I can use it successfully.
- Thu Mar 02, 2017 16:37
- Forum: Modding Discussion
- Topic: I want to modify a tool but I can't
- Replies: 2
- Views: 734
I want to modify a tool but I can't
Hi! In the mod that i'm making want to create this effect: when the player digs a node with a tool, that tool loses the hability to drop during X seconds. You can continue digging with this tool, but it do not drop never. The first idea was to create a minetest.register_on_dig_node, check the metada...
- Tue Feb 28, 2017 00:13
- Forum: Mod Releases
- Topic: [Mod] Extractor [extractor]
- Replies: 6
- Views: 2982
Re: [Mod] Extractor [extractor]
The main function of the extractor is extract items from a chest or furnace and drop to the world.
- Wed Feb 22, 2017 21:43
- Forum: Mod Releases
- Topic: [Mod] Extractor [extractor]
- Replies: 6
- Views: 2982
Re: [Mod] Extractor
Yes! If you put the extractor under the furnace it takes the content of "dst" and if you put on top puts items in "src"
- Wed Feb 22, 2017 17:38
- Forum: Mod Releases
- Topic: [Mod] Extractor [extractor]
- Replies: 6
- Views: 2982
[Mod] Extractor [extractor]
Hi everyone! Have you ever needed a simple block whose sole purpose is to get things out of a chest / furnace? Well, do not wait any longer! I introduce you: The Extractor. It works like a hopper, but the other way around. https://github.com/yawin123/utilities/blob/master/extractor/extractor-craft.p...
- Tue Feb 21, 2017 16:19
- Forum: WIP Mods
- Topic: [Mod] MicroExpansion [0.2] [microexpansion]
- Replies: 50
- Views: 16598
Re: [Mod] MicroExpansion [0.1] [microexpansion]
In "futuristic" module:
Error in line 5 -> groups = {cracky}=3, stone=1},
The correct line is -> groups = {cracky=3, stone=1},
Error in line 5 -> groups = {cracky}=3, stone=1},
The correct line is -> groups = {cracky=3, stone=1},
- Thu Feb 09, 2017 17:31
- Forum: WIP Mods
- Topic: [Mod] MicroExpansion [0.2] [microexpansion]
- Replies: 50
- Views: 16598
Re: [Mod] MicroExpansion [0.1] [microexpansion]
Oh! Hahahaha, solved. Thanks!
- Thu Feb 09, 2017 17:16
- Forum: WIP Mods
- Topic: [Mod] MicroExpansion [0.2] [microexpansion]
- Replies: 50
- Views: 16598
Re: [Mod] MicroExpansion [0.1] [microexpansion]
First crash: 2017-02-09 18:13:21: WARNING[Server]: Undeclared global variable "inventory_plus" accessed at ...t/games/redblockers/mods/3d_armor/3d_armor/armor.lua:401 2017-02-09 18:13:28: WARNING[Server]: Undeclared global variable "inventory_plus" accessed at ...t/games/redblock...
- Thu Feb 09, 2017 15:21
- Forum: WIP Mods
- Topic: [Mod] Redblockers' utilities
- Replies: 1
- Views: 641
[Mod] Redblockers' utilities
Hello! I present my first contribution to this community: Redblockers' utilities Is a suite of small mods (which can be used separately) to provide certain tools and / or fix certain aspects of the gameplay with which we did not end up agreeing. First of all I want to warn you that some mods are not...
- Sat Feb 04, 2017 14:39
- Forum: WIP Mods
- Topic: [Mod] MicroExpansion [0.2] [microexpansion]
- Replies: 50
- Views: 16598
Re: [Mod] MicroExpansion [0.1] [microexpansion]
Of all the mods that I hope, this is the one that I hope with more desire. So much to learn from the code, as to add it to my game.
- Thu Feb 02, 2017 15:40
- Forum: Modding Discussion
- Topic: [Solved] Trying to add a group for an existing node
- Replies: 3
- Views: 624
Re: Trying to add a group for an existing node
Oh!! Lot of thanks!kaeza wrote:Please see my comments here.
- Wed Feb 01, 2017 21:58
- Forum: Modding Discussion
- Topic: [Solved] Trying to add a group for an existing node
- Replies: 3
- Views: 624
[Solved] Trying to add a group for an existing node
Hello! I'm trying to add a group to an existing node (without overwriting the groups I already have) and the only way I can think of is this:
minetest.override_item("default:stone", {
groups.magical_tier1 = 1,
})
But it does not work. Does anyone comes up with something?
minetest.override_item("default:stone", {
groups.magical_tier1 = 1,
})
But it does not work. Does anyone comes up with something?
- Wed Feb 01, 2017 00:30
- Forum: Modding Discussion
- Topic: [Solved] Error trying to get player name
- Replies: 3
- Views: 613
Re: Error trying to get player name
I just found the error, chat_send_player needs two arguments and I only send one hahaha
- Tue Jan 31, 2017 20:59
- Forum: Modding Discussion
- Topic: [Solved] Error trying to get player name
- Replies: 3
- Views: 613
[Solved] Error trying to get player name
Hi! I'm trying to get the name of the player who places a node and I don't know what I'm doing wrong but it says 2017-01-31 21:58:11: ERROR[Main]: ServerError: AsyncErr: ServerThread::run Lua: Runtime error from mod 'magic' in callback item_OnPlace(): ....minetest/games/redblokers/mods/magic/home_st...
- Fri Dec 30, 2016 22:21
- Forum: Modding Discussion
- Topic: [Solved] How to enlarge torch range?
- Replies: 6
- Views: 1633
Re: How to enlarge torch range?
There are only 4 bits for the light-level, i.e. 0-15. Completely dark is 0. The sun has max light, at 15, everything else can only have max 14. Stepping down the lightlevel by 1 with every block of distance, and you see why there is a max range for lightsources. So, just set the time of day to get ...
- Fri Dec 30, 2016 17:13
- Forum: Modding Discussion
- Topic: [Solved] How to enlarge torch range?
- Replies: 6
- Views: 1633
[Solved] How to enlarge torch range?
Hi everyone! I'm creating a torch for a mod I'm doing. I would like it to illuminate a huge block radius. Changing "light_source" only changes the intensity of light, the range of that light, however, remains. How can I change that range so that the torch illuminates as much distance as I ...