Time |
Nick |
Message |
00:00 |
octacian |
How can I get an object position from self? |
00:03 |
behalebabo |
octacian: presumably you can override __builtin:item using minetest.registered_entities["__builtin:item"].on_punch = function(self, puncher) ... end |
00:03 |
octacian |
How do I get position from self? |
00:03 |
behalebabo |
object:is_player() indeed indicates the object is a player |
00:03 |
octacian |
And could I just set on_punch to nil? |
00:03 |
behalebabo |
I'd think so |
00:04 |
behalebabo |
self:getpos() |
00:04 |
octacian |
Now, if object:is_player(), would a field such as object:get_inventory() work? |
00:04 |
octacian |
And yes, I just figured that out. |
00:04 |
behalebabo |
hm, no |
00:04 |
behalebabo |
self.object:getpos() |
00:04 |
behalebabo |
octacian: yes, it's a player |
00:04 |
octacian |
So object:get_inventory() would work? |
00:04 |
octacian |
Good. |
00:10 |
|
xtremehacker_ joined #minetest-project |
00:38 |
|
est31 joined #minetest-project |
00:39 |
|
est31 joined #minetest-project |
00:40 |
|
est31 left #minetest-project |
01:17 |
|
Miner_48er joined #minetest-project |
01:22 |
|
turtleman joined #minetest-project |
02:04 |
|
benrob0329-lapto joined #minetest-project |
02:05 |
|
benrob0329-lapto left #minetest-project |
02:12 |
|
lordfingle joined #minetest-project |
02:14 |
lordfingle |
Greetings! |
02:26 |
|
est31 joined #minetest-project |
02:31 |
OldCoder |
lordfingle, greetings are not fleetings |
02:40 |
octacian |
How can I customize the chat message on join player? |
02:48 |
OldCoder |
octacian, Which message is this? |
02:48 |
OldCoder |
Example? |
02:48 |
octacian |
*** test joined the game |
02:50 |
behalebabo |
octacian: it's registered in builtin/game/misc.lua as a register_on_joinplayer, I don't see any way you can override that |
02:50 |
octacian |
OK |
02:51 |
octacian |
Thought so |
02:52 |
OldCoder |
octacian, if you wish a patch, it will be provided. See me in the other channel. |
02:52 |
octacian |
It's fine |
02:52 |
OldCoder |
|
02:53 |
octacian |
I might even submit a PR in a while |
02:58 |
|
ssieb joined #minetest-project |
03:28 |
octacian |
garywhite: my latest mod https://forum.minetest.net/viewtopic.php?f=9&t=17163 |
04:08 |
OldCoder |
New minetest.conf setting added to Community Edition based on octacian suggestion: |
04:08 |
OldCoder |
joinedtext1=Hooray, |
04:08 |
OldCoder |
joinedtext2=has returned |
04:08 |
OldCoder |
These two settings will change the player-join message to be something like: “Hooray, ElfTron has returnedâ€. There is no provision yet for random messages, but this could be added easily. |
04:08 |
OldCoder |
|
04:39 |
|
lumidify joined #minetest-project |
05:09 |
|
Tesseract joined #minetest-project |
06:02 |
|
lumidify joined #minetest-project |
06:09 |
|
red-001 joined #minetest-project |
06:12 |
|
CWz joined #minetest-project |
07:32 |
|
lumidify joined #minetest-project |
07:56 |
|
lumidify joined #minetest-project |
09:51 |
|
CWz joined #minetest-project |
11:14 |
|
Jordach joined #minetest-project |
11:50 |
|
DI3HARD139 joined #minetest-project |
12:17 |
|
troller joined #minetest-project |
12:20 |
|
RobbieF joined #minetest-project |
12:26 |
|
Fixer joined #minetest-project |
12:47 |
|
NathanS21 joined #minetest-project |
13:08 |
|
est31 left #minetest-project |
13:29 |
|
turtleman joined #minetest-project |
13:47 |
|
lumidify joined #minetest-project |
13:59 |
|
octacian joined #minetest-project |
14:28 |
|
troller joined #minetest-project |
14:51 |
|
twoelk joined #minetest-project |
15:13 |
|
red-001 joined #minetest-project |
15:13 |
|
CWz joined #minetest-project |
15:29 |
|
troller joined #minetest-project |
16:01 |
|
red-001 joined #minetest-project |
16:03 |
|
red-001 joined #minetest-project |
16:03 |
|
red-001 joined #minetest-project |
16:20 |
|
red-001 joined #minetest-project |
16:37 |
|
GunshipPenguin joined #minetest-project |
16:45 |
octacian |
garywhite: another latest mod. https://forum.minetest.net/viewtopic.php?f=9&t=17164 |
16:54 |
twoelk |
somehow I have the feeling I have seen such function before :-) just can't remember where |
16:56 |
octacian |
twoelk: you probably have, but I made this because of the above - something like this probably exists, but haven't found one and if one does it's unlikely that it's as simple as mine |
16:56 |
twoelk |
:-) |
17:02 |
|
twoelk|2 joined #minetest-project |
17:05 |
garywhite |
Cool, octacian |
18:38 |
|
est31 joined #minetest-project |
18:38 |
|
epoch joined #minetest-project |
18:41 |
|
lumidify joined #minetest-project |
18:47 |
|
epoch joined #minetest-project |
19:25 |
|
ssieb joined #minetest-project |
21:03 |
|
GunshipPenguin joined #minetest-project |
21:43 |
|
troller joined #minetest-project |
21:55 |
ircSparky |
when you attach a player to an object, is there a way to let the player's model rotate freely? |
21:56 |
ircSparky |
like if you're riding a minecart, then look around, your model is still looking dead ahead |
21:58 |
ircSparky |
it might look better if the player's model rotated with the camera. (might look weird with boats, though) |
22:09 |
|
GunshipPenguin joined #minetest-project |
22:13 |
|
Nathans21 joined #minetest-project |
22:28 |
|
troller joined #minetest-project |
22:53 |
twoelk |
ircSparky: maybe just rotate the head for an <owly> look :-D |
22:54 |
ircSparky |
haha |
22:54 |
ircSparky |
that would probably be harder, idk |
22:55 |
ircSparky |
if you use playeranim, when you look left and right, you just swing your shoulders |
22:56 |
twoelk |
with the beat? cool |
22:56 |
twoelk |
although dancing on that little raft might prove dangerous |
22:58 |
ircSparky |
haha |
23:18 |
ircSparky |
https://youtu.be/ra5hJSKhwLs |
23:19 |
ircSparky |
I had to ^ |
23:33 |
* twoelk |
downloads and enjoys |
23:34 |
|
twoelk left #minetest-project |