Time Nick Message 08:46 SNDBX hi 08:46 SNDBX today I am going to stream day to of my new survival world (MineClone 2) 08:46 SNDBX *day 2 08:59 SNDBX I am live with a new survival world of minetest / MineClone (day 2), please join me and help build a new world! https://www.youtube.com/channel/UCkWAn0Wt8Gw4p3m_y37gZuw/live 12:59 epoch anyone want a bookmarklet to linkify the address column of https://servers.minetest.net/ ? 13:18 Joseph15 Hello! I have a modding question. 13:18 epoch ok 13:19 Krock ok 13:19 Joseph15 If I have 2 craftitems or tools and I want to replace item one with item two when I release Left Mouse Button, How would I do that? 13:19 Joseph15 or right mouse button 13:19 Joseph15 I meant right 13:19 Joseph15 I know about the controls mod but idk how to make that work 13:20 Joseph15 also, I looked at some bow mods that do this for charging the bow, but I got confused by the code 13:20 Krock local old_rmb = player:get_player_controls().rmb 13:20 Joseph15 and use that as a function of the craftitem? 13:21 Krock then get the new rmb value to see whether it got released 13:21 Krock you'll have to keep that variable stored somewhere 13:21 Joseph15 Hmmm ok 13:21 Krock thing is: there's no callback when releasing a mouse button, so you could register a globalstep callback 13:22 Joseph15 ok, but is there docs on that? 13:22 Joseph15 I'm still new to lua coding 13:22 Joseph15 I understand callbacks just not globalstep callbacks 13:24 Krock hmm.. what if you try after_use? https://github.com/minetest/minetest/blob/master/doc/lua_api.txt#L5973 13:25 Joseph15 this would be only left click though, right? 13:26 Joseph15 I'm trying to make a blocking mod, where if you are holding the mod's sword and right click, it will replace with another item that is the blocking sword version 13:26 Krock well then.. on_place to record the first time when the button was pressed 13:26 Joseph15 I got that working 13:27 Joseph15 the issue is putting the non-blocking sword back once you release rightclick 13:27 Krock https://github.com/minetest/minetest/blob/master/doc/lua_api.txt#L3692 13:27 Krock 1) as soon on_place is called, put the player name into a mod's local table 13:27 Krock 2) iterate through these entires each step 13:28 Krock 3) when the player control "rmb" is no longer set, reset the wielded item 13:28 Krock 4) ??? 13:28 Krock 5) profit 13:29 Joseph15 ok, so somethinglike this? minetest.register_globalstep(function(dtime)) if player:get_player_controls().rmb 13:29 Joseph15 probably not that exact code but somethinglike it right? 13:37 Joseph15 sorry but I'm still on the lesser side of understandig, oof 13:41 Krock https://pastebin.com/raw/4rdeVLsm 13:41 Krock untested 14:03 bingfengfsx 共和有两个层面意思:一是,指的是不同的政治机构间的各安其分、和谐共处,它包括政治体系的立法、行政和司法等主要部门;二是,指的是不同政治群体和政治力量,如政党、区域、民族,乃至国家之间在宪法、法律和国际法基础上各安其分的过程和状态。 14:04 bingfengfsx Sorry, I sent it in the wrong place. 14:58 Joseph15 Thanks Krock, I will test it later. 16:28 epoch https://en.wikipedia.org/wiki/Breeder_reactor one of these in technic would be neat 17:45 Joseph15_ How could I make it so if you are holding a certain item in your hand you take less damage when hit by another player? 17:47 Joseph15_ Like if I were to hold a shield item in my hand take half damage only when holding it 17:52 rubenwardy register_on_hpchange, Joseph15_ 17:54 Joseph15_ so on the register hp change I will then give hearts back? 17:55 Joseph15_ Like local hp change? 17:57 Joseph15_ Local hp_gain 18:03 rubenwardy you can return a new HP 18:04 Joseph15_ So like, if I take 4 hearts of damage, return two? 22:00 Ruslan1 VanessaE 22:01 VanessaE yes? 22:01 Ruslan1 I was pm you 22:01 VanessaE don't. 22:01 Ruslan1 Why 22:02 VanessaE I don't like to use pm's. anything you need to say can be said in public. 22:02 VanessaE (mostly) 22:03 Ruslan1 Ok I join your channel 22:04 VanessaE you can't. 22:04 VanessaE you must use a real IRC client, and you must register your nick with nickserv. 22:04 VanessaE webchat won't do. 22:04 Ruslan1 Oh 22:05 Ruslan1 I’ll switch it 22:06 Ruslan1 I’m gonna change my nick 22:11 VanessaE kiwiirc is not a real irc client 22:11 Ruslan1 VanessaE I’m back 22:13 Ruslan1 VanessaE give me link 22:13 VanessaE google it :P 22:13 VanessaE if you don't know what a real IRC client is versus webchat, you don't need to be in my server channel. 22:13 VanessaE no offense. 22:14 Ruslan1 Ok 22:17 Ruslan1 This one 22:18 Ruslan1 Here is real one 22:19 Ruslan1 I join real one 22:19 Ruslan1 VanessaE 22:20 VanessaE that's a webchat. 22:20 VanessaE not an irc client. 22:21 Ruslan1 Yes 22:22 VanessaE no. 22:22 VanessaE it is not. 22:23 Ruslan1 Ok maybe I won’t join your channel 22:26 Ruslan1 VanessaE 22:40 ircSparky is the dir from on_punchplayer different than vector.direction(hitterpos, playerpos) for any particular reason? it seems to just point from one players feet to the others head, the y value increases to ~1 when the players are at the same position, and lowers as they get farther away 22:41 ircSparky if the remove the y value and normalize they end up the same 22:44 ircSparky not sure, it's just weird. It seems like it would be better to just send the hitters look direction 22:49 VanessaE sounds like a bug to m 22:49 VanessaE me* 22:50 ircSparky ill see if there anything related in the git issues 23:27 ircSparky dosnt look like there is one 23:42 mothrah Hello. Not sure if this server is more for modders or players, but if anyone has info about manipulating the "heat" and "humidity" values in the biomes API to better space my biomes, I would love it hear it! 23:42 VanessaE "this server"? 23:43 VanessaE you're on a general Minetest chat channel :) 23:43 epoch I bet they came from discord 23:43 clavi nope, the glorious webchat 23:44 mothrah I did come from discord, yes. This general, abstractly-defined place. 23:45 p_gimeno mothrah: there's a thread in the forums dedicated to Q&A relative to map generation, I'd say that's your best shot 23:46 p_gimeno https://forum.minetest.net/viewtopic.php?f=47&t=15272 23:48 tune it's called a channel, it's on the freenode server 23:49 clavi and discord has no servers, just chatrooms 23:49 tune iirc the things people call servers are internally called guilds 23:49 tune never used it personally but it's hard to ignore the unsightly monster 23:50 mothrah Thank you for the link. Browsing it now. 23:50 galaxie tune: Discord? Yeah, it's hideous. Try using it in Tor. 23:50 mothrah So. . . this is a guild? 23:50 tune this is an irc channel 23:50 galaxie mothrah: IRC channel. 23:50 tune was talking about discord for a sec 23:50 mothrah Gotcha. 23:52 p_gimeno freenode is a network of servers actually, the individual servers have little relevance because their only purpose is to distribute load, e.g. I'm on leguin.freenode.net, tune is on livingstone.freenode.net, mothrah is on herbert.freenode.net... 23:54 VanessaE and by servers, p_gimeno means the underlying chat network, not minetest.