Time Nick Message 00:14 Duvalon Hello 00:40 Duvalon I have a mod question: is it possible to modify the registered_ores in a mod before the mapgen happens? I tried something, even put logs to make sure the change was made, but it didn't seem to have an effect. 01:40 MTDiscord You can override the ore node itself 01:42 MTDiscord You can also do hax, like force-aliasing the old node to stone, then registering a new ore node like the original that you define and set in an ore def 02:54 fluxionary Duvalon: there's many ways to do that. see https://github.com/minetest/minetest/blob/1317cd12d74dba4ff765d6e18b0b30cdf42002a3/doc/lua_api.txt#L6530-L6533 and possibly other things 02:55 fluxionary there's even apparently `minetest.clear_registered_ores()` which just wipes out all existing registrations 03:10 Duvalon I guess overriding the node is what I did, searching through the minetest.registered_ores and changing the definition. I was hoping to avoid wiping all registrations... 03:16 fluxionary Duvalon: can you explain what your goal is in more detail? 03:16 fluxionary there's a number of possible solutions 03:17 Duvalon example: I would like to change the ymin/ymax of stone_with_iron 03:18 Duvalon So I did for _, def in pairs(minetest.registered_ores) do 03:18 Duvalon if (def.ore == "default:stone_with_iron") then 03:19 Duvalon Then there were three of them, one above ground and two underground. 03:19 Duvalon I changed the first underground layer to def.y_max = -500 03:20 fluxionary ohhhh i see. for some things, you can't just modify the values in the `registered` table. that isn't documented well. 03:21 Duvalon ok. So would I need to deep copy the table, clear_registered_ores, and rebuild it? 03:21 fluxionary in this case, you can use `minetest.registered_ore` to see what is registered, but you can't tell the engine about new registrations by modifying it 03:22 fluxionary Duvalon: i think you have to? seems a bit expensive 03:22 Duvalon Yeah... that's what I thought 03:22 fluxionary for some other things there's `override_XXX`, but not for `register_ore` 03:22 Duvalon I see 03:23 Duvalon It would only happen at load time... but yeah, a bit expensive. 03:23 Duvalon Thanks 03:24 fluxionary i think overriding ore generation should certainly be easier, but i don't have a great solution, because there can be multiple separate clauses for ore generation. things might get more common when they are deeper. 03:25 fluxionary reworking that is very much not expensive at load time. some mods like unified_inventory and moreblocks are *way* more epensive at load time 03:25 fluxionary but ideally, the game API should provide a way for some sort of modification w/out so much handwork 03:25 Duvalon oh I see 03:26 Duvalon that's what I was hoping for by asking here. I didn't find anything else in the lua_api 03:26 fluxionary but this isn't likely to get fixed unless someone really cares a lot about this in particular. there's too many other things to fix. 03:26 Duvalon Hehehe 03:26 Duvalon Yeah, I understand 03:27 Duvalon Priorities ;-) 03:27 fluxionary everyone has their own 03:27 Duvalon Thanks for the tips flux. I'll keep experimenting 03:27 fluxionary i can see what a solution here looks like, but i'm already working on dozens of other things and have dozens more in my "high priority" queue 03:28 Duvalon No worries 03:28 fluxionary you can always file a bug in the offical minetest repo and see if anything results 03:29 Duvalon Ok. I'll consider it if I run out of other options. 03:29 fluxionary (though please try to see if anyone else has filed the same issue before) 03:29 Duvalon For sure 03:29 fluxionary :) 11:05 mazes_83 savilli: I saw branch refactor_item_movement can be rebased to master without any troubles 11:05 mazes_83 is it quite safe to use ? 11:06 mazes_83 I guess my server segfault come from there, when they began I had message about incoherence in stack count 11:07 mazes_83 no there is no more message printed out, I may test your branch if you think it's safe enough 11:08 mazes_83 s/no there/now there/ 12:42 MTDiscord what are these bot 12:43 MTDiscord it's the IRC chat 15:13 Guest48 !tell sfan5 15:13 MinetestBot Guest48: ...and text 15:14 Guest48 Hi sfan5, 15:16 Guest48 Empire Of Legends uses bots to get higher in the minetest serverlist 15:16 Guest48 stats: 15:16 Guest48 address: mt.edgy1.net 15:16 Guest48 name: Empire Of Legends Next-gen 15:16 Guest48 25 Members actually 15:16 Guest48 I saw the server today for the first time 19:52 MTDiscord eol still exists?