This library may be helpful:
https://content.minetest.net/packages/Desour/keyevent/
Search found 570 matches
- Mon Apr 08, 2024 20:54
- Forum: Modding Discussion
- Topic: Code to detect if "shift" key is pressed.
- Replies: 3
- Views: 145
- Sun Mar 31, 2024 12:26
- Forum: Modding Discussion
- Topic: Client side moving platforms?
- Replies: 5
- Views: 201
Re: Client side moving platforms?
Besides client mods, using Voxel Area Entities may be a solution to your problem. However, this feature will also most likely not be available anytime soon, maybe it will never be. As LMD said, changing client predicted player physics is currently not possible and if you want to modify the engine ad...
- Wed Mar 13, 2024 19:12
- Forum: Modding Discussion
- Topic: Save object in node metadata
- Replies: 7
- Views: 284
Re: Save object in node metadata
Example: I have a block and when it's built, the block creates an entity but when the block is destroyed, the entity must disappear. I just don't know how to store the object. Oh, so you want to store an object which is a luaentity without destroying it, in this case it is not much different than t...
- Tue Mar 12, 2024 17:37
- Forum: Modding Discussion
- Topic: Save object in node metadata
- Replies: 7
- Views: 284
Re: Save object in node metadata
Is there a function to convert an object in a string to be stored or an id object ? Yes, assuming your object is a table and not userdata: minetest.serialize(table) and minetest.deserialize(string) . https://github.com/minetest/minetest/blob/32f68f35cf5eabd4223ef4901486d43bb806867e/doc/lua_api.md?p...
- Mon Mar 11, 2024 17:35
- Forum: Modding Discussion
- Topic: [SOLVED] Warp Block for Wrap-around
- Replies: 5
- Views: 281
Re: Warp Block for Wrap-around
Hello and welcome. Blockhead already gave an extensive explanation, so I will keep short and just give a concrete example how it can be implemented. I hope it helps. -- Check only twice a second. If you remove it, it will be checked every server step. (usually 0.1 sec) local delay = 0.5 local time =...
- Tue Mar 05, 2024 08:54
- Forum: Modding Discussion
- Topic: voxelManipulator's was_modified() not working?
- Replies: 1
- Views: 132
Re: voxelManipulator's was_modified() not working?
The documentation seems to be wrong. IIRC, was_modified() can only become true for a mapgen VoxelManip. (which you get by using minetest.get_mapgen_object("voxelmanip") inside an on generated callback.) Those functions can make it true. minetest.set_node(pos, node) minetest.add_node(pos, n...
- Sun Feb 18, 2024 14:30
- Forum: Deutsch
- Topic: Stadt nachbauen
- Replies: 6
- Views: 377
Re: Stadt nachbauen
Minecraft nutze ich nicht.... Das ist irrelevant, es geht bloß um die Erstellung einer Map mit einem externen Editor, welche dann zu einer Minetest Map umgewandelt werden kann. WorldPainter ist zum Beispiel ein Programm (welches auch in der Liste auftaucht, die ich verlinkt hatte) dass für Minecraf...
- Fri Feb 09, 2024 15:23
- Forum: Servers
- Topic: [Server] The Architect's Server [Pre-launch]
- Replies: 6
- Views: 396
Re: [Server] The Architect's Server [Pre-launch]
This looks promising and I hope you will succeed. It is also nice that you provide the source code and don't hide anything or use closed source parts, if I see this correctly. The GitHub repository is not licensed properly, some mods don't have a license and the overall project does not have a licen...
- Tue Feb 06, 2024 21:51
- Forum: Deutsch
- Topic: Stadt nachbauen
- Replies: 6
- Views: 377
Re: Stadt nachbauen
realterrain ist sehr alt und ich weiß nicht wie schwierig es ist ihn dazuzubekommen genau das zu machen, was du willst. Hier sind noch ein paar weitere Werkzeuge: https://wiki.minetest.net/Programs_and_Editors#World_editing Theoretisch kannst du die map auch in Minecraft erstellen und dann zu Minete...
- Mon Feb 05, 2024 17:00
- Forum: Problems
- Topic: Is there a known bottleneck with media sending to clients?
- Replies: 5
- Views: 322
Re: Is there a known bottleneck with media sending to clients?
It seems like this should definitely be changed. Using a remote media server is an alternative solution for now, I think.
- Thu Jan 25, 2024 11:04
- Forum: General Discussion
- Topic: Minetest is used in a class at a junior high school in Japan
- Replies: 3
- Views: 476
Re: Minest is used in a class at a junior high school in Japan
Interesting how white their PC setups are.
(You have a typo in your title, it's Minetest not "Minest".)
Maybe this should be added to minetest.net/education, to include more countries.
https://github.com/minetest/minetest.github.io/pull/292
(You have a typo in your title, it's Minetest not "Minest".)
Maybe this should be added to minetest.net/education, to include more countries.
https://github.com/minetest/minetest.github.io/pull/292
- Sat Jan 20, 2024 10:54
- Forum: Problems
- Topic: Development Mode Only
- Replies: 7
- Views: 642
Re: Development Mode Only
Alternatively to what Blockhead wrote you can also press the "+" button right next to the devtest icon (where you select games) to directly go to the content installation window for games. The main menu really needs to be improved, if users who are not too familiar with Minetest have probl...
- Fri Jan 19, 2024 08:57
- Forum: General Discussion
- Topic: How to build a custom minetest client
- Replies: 1
- Views: 488
Re: How to build a custom minetest client
(I hope "make my own" referrers to compiling and not rewriting the whole client code ...)
Read the built instructions:
https://github.com/minetest/minetest/bl ... g/linux.md
Everything else should be no different than compiling any other C++ project.
Read the built instructions:
https://github.com/minetest/minetest/bl ... g/linux.md
Everything else should be no different than compiling any other C++ project.
- Fri Jan 19, 2024 08:27
- Forum: Problems
- Topic: Crash while playing world
- Replies: 4
- Views: 401
Re: Crash while playing world
It's right there in the error text, animalia or creatura caused this error. (Note that animalia depends on creatura ) You should complain to ElCeejo, since he made this mods. There are many bugs in animalia , but it doesn't look like ElCeejo will fix them any time soon: https://github.com/ElCeejo/an...
- Mon Jan 15, 2024 17:42
- Forum: Modding Discussion
- Topic: cooking recipe output
- Replies: 1
- Views: 256
Re: cooking recipe output
Yes, sadly they can only output one item.
Using replacements is a hacky way to still output multiply items but it may not work that well.
Using replacements is a hacky way to still output multiply items but it may not work that well.
- Mon Jan 15, 2024 10:27
- Forum: General Discussion
- Topic: Roller banner design needed for FOSDEM 2024
- Replies: 18
- Views: 4241
Re: Roller banner design needed for FOSDEM 2024
I'm not an artist or a graphic designer, but for anyone who wants to create the banner I have a design idea. (Please ignore it if it is trash.) A brief timeline to show how old/well established Minetest is and to emphasize key aspects like: A brief version history (To show some features, e.g. when t...
- Fri Jan 05, 2024 22:06
- Forum: Problems
- Topic: [SOLVED] Disabling Christmas Chest texture
- Replies: 2
- Views: 410
Re: Disabling Christmas Chest texture
Here is how you can disable it:
1. Open the file .../.minetest/games/mineclone2/mods/ITEMS/mcl_chests/init.lua.
2. At line 16 replace
with
3. Restart the game
Or alternatively override it with a texturepack.
1. Open the file .../.minetest/games/mineclone2/mods/ITEMS/mcl_chests/init.lua.
2. At line 16 replace
Code: Select all
local it_is_christmas = mcl_util.is_it_christmas()
Code: Select all
local it_is_christmas = false
Or alternatively override it with a texturepack.
- Mon Dec 25, 2023 19:38
- Forum: Deutsch
- Topic: Flaschenhals
- Replies: 5
- Views: 298
- Mon Dec 18, 2023 10:11
- Forum: Modding Discussion
- Topic: Intercept a node from being dug
- Replies: 2
- Views: 385
Re: Intercept a node from being dug
Better use minetest.handle_node_drops(pos, drops, digger) . E.g. local old_handle_node_drops = minetest.handle_node_drops minetest.handle_node_drops = function(pos, drops, digger) for k, name in pairs(drops) do if minetest.get_item_group(name, "stone") > 0 then drops[k] = nil end end retur...
- Wed Dec 13, 2023 19:28
- Forum: Modding Discussion
- Topic: Why does the LuaVoxelManip area differ from the on_generated area?
- Replies: 8
- Views: 1967
Re: Why does the LuaVoxelManip area differ from the on_generated area?
I looked into the code and this does not seem to be very intentional. ¯\_(ツ)_/¯ minetest.get_mapgen_object("voxelmanip") just returns the Edge pos of the MMVManip object (it's a VoxelManipulator object handled by the Mapgen) mg->vm->m_area.MinEdge and mg->vm->m_area.MaxEdge https://github....
- Sun Dec 10, 2023 00:28
- Forum: Problems
- Topic: How to fix broken crosshair display?
- Replies: 12
- Views: 1575
Re: How to fix broken crosshair display?
I searched in the git history and apparently this is a new feature.
https://github.com/minetest/minetest/pull/13772
Maybe changing your hud_scaling setting will fix it.
Or maybe making the texture's height and width odd/even, such that there is/isn't a single centered pixel.
https://github.com/minetest/minetest/pull/13772
Maybe changing your hud_scaling setting will fix it.
Or maybe making the texture's height and width odd/even, such that there is/isn't a single centered pixel.
- Thu Dec 07, 2023 08:46
- Forum: Modding Discussion
- Topic: Is it possible to register an Elepower machine that can consume and produce power?
- Replies: 1
- Views: 595
Re: Is it possible to register an Elepower machine that can consume and produce power?
I haven't looked into the code, but can't you just register two Elepower nodes, one for generation power and one for using power, and swap them with minetest.swap_node(pos, node) depending on the circumstances.
- Sat Dec 02, 2023 05:57
- Forum: Problems
- Topic: [Minetest Game] Menu : ui and texture
- Replies: 4
- Views: 807
Re: [Minetest Game] Menu : ui and texture
Wow, thank a lot ! I will take my time to read the API :) You probably already found it, but the modding book may be a better starting point if you are new to Minetest. However, in case anything is unclear or incomplete refer to the API reverence manual. (There also exists a conversion to HTML if y...
- Sat Dec 02, 2023 05:54
- Forum: General Discussion
- Topic: Defragmenting the Minetest community
- Replies: 36
- Views: 8857
Re: Defragmenting the Minetest community
*cough* viewtopic.php?t=22128MirceaKitsune wrote: ↑Fri Dec 01, 2023 17:51Also we forgot one: There's no Minetest group chat on Telegram! Gotta catch them all.
- Fri Dec 01, 2023 16:32
- Forum: Problems
- Topic: [Minetest Game] Menu : ui and texture
- Replies: 4
- Views: 807
Re: [Minetest Game] Menu : ui and texture
Hi all ! Sorry if the question was already convered. I have lot trouble to understand how minetest files are structure and slowly reading the wiki. I recommend reading the API documentation: https://github.com/minetest/minetest/blob/master/doc/lua_api.md It is up to date and complete which may no b...