I want my first Minetest hack to be something like changing the image used for an item in a mod. How can I do that. I am running Minetest 0.5.0 on Ubuntu. I have the directory
/home/tom/Documents/minetest/games/Block_Islands/mods/creatures/chicken/textures
Can I just put different .png files in that? Under the same name?
First Hacks on Minetest
-
- Member
- Posts: 35
- Joined: Thu Nov 30, 2017 14:30
- Gael de Sailly
- Member
- Posts: 845
- Joined: Sun Jan 26, 2014 17:01
- GitHub: gaelysam
- IRC: Gael-de-Sailly
- In-game: Gael-de-Sailly gaelysam
- Location: Voiron, France
Re: First Hacks on Minetest
Yes, it is as simple as that. Just replace the image you want to change, and give it the same name.
Try it!
Don't hesitate to actually try things by yourself if you want to learn Minetest modding. The eternal DIY :D
Try it!
Don't hesitate to actually try things by yourself if you want to learn Minetest modding. The eternal DIY :D
Just realize how bored we would be if the world was perfect.
- Linuxdirk
- Member
- Posts: 3216
- Joined: Wed Sep 17, 2014 11:21
- In-game: Linuxdirk
- Location: Germany
- Contact:
Re: First Hacks on Minetest
Actually for changing the look of an item you don't need a mod. All you need is a texture pack having the texture for the item.
Since you asked for modding: I am not sure if it works but according to logic it should work.
Create a new mod and depend it creatures then create an empty init.lua and create a folder textures and place your new chicken texture there, using the original file name an enable the mod for the world.
Do not alter upstream files. It makes updating the package harder. Simply create a texture pack having the file and select the texture pack. The file then will be used instead of the original file.webmanoffesto wrote:Can I just put different .png files in that? Under the same name?
Since you asked for modding: I am not sure if it works but according to logic it should work.
Create a new mod and depend it creatures then create an empty init.lua and create a folder textures and place your new chicken texture there, using the original file name an enable the mod for the world.
- Gael de Sailly
- Member
- Posts: 845
- Joined: Sun Jan 26, 2014 17:01
- GitHub: gaelysam
- IRC: Gael-de-Sailly
- In-game: Gael-de-Sailly gaelysam
- Location: Voiron, France
Re: First Hacks on Minetest
As I understand it, it was for experimenting how mods work rather than just for changing a texture.
I remember my first modding experience, I learnt better by tweaking existing mods and seeing what happens, than adding some mod coded from scratch (but make sure to have an intact copy somewhere for backup).Linuxdirk wrote:Create a new mod and depend it creatures then create an empty init.lua and create a folder textures and place your new chicken texture there, using the original file name an enable the mod for the world.
Just realize how bored we would be if the world was perfect.
-
- Member
- Posts: 35
- Joined: Thu Nov 30, 2017 14:30
Re: First Hacks on Minetest
That's so cool. I'm working in /minetest/games/Lord-of-the-Test-master/mods/default
I replaced the apple with a photo I edited in Gimp.
Where are frequently encountered sounds set? I want to do something like replace the walking sound.
How do I set the sound which is made when I plant an apple tree?
Awesome game.
I replaced the apple with a photo I edited in Gimp.
Where are frequently encountered sounds set? I want to do something like replace the walking sound.
How do I set the sound which is made when I plant an apple tree?
Awesome game.
-
- Member
- Posts: 186
- Joined: Sat May 06, 2017 17:45
- GitHub: Parasitoid
Re: First Hacks on Minetest
Lol! I like this guy very much! :-Dwebmanoffesto wrote:That's so cool. I'm working in /minetest/games/Lord-of-the-Test-master/mods/default
I replaced the apple with a photo I edited in Gimp.
Where are frequently encountered sounds set? I want to do something like replace the walking sound.
How do I set the sound which is made when I plant an apple tree?
Awesome game.
Well, exploring the secrets of the Minetest Game is not so difficult. Note that minetest files which you have on your hard disk in your computer, are also available online at the github server. I think it is much more convenient and easy to view, explore and learn these things at github using a web browser. I would like to mention that there is a keyword search option in the browser, you can also look at each catalog quickly and efficiently, as well as it is very easy to view the contents of each file with the Lua code.
Check these links: the general Minetest Game catalog and sound folder:
- https://github.com/minetest/minetest_game
- https://github.com/minetest/minetest_ga ... ult/sounds
Learn the structure of those folders, where is the folder with sound files, what kind of sound files are those used by minetest and what is the name of the file you are interesting. When you explore these things on github, you should easily find them in your computer minetest folder ;-) Have lot of fun with testing!
-
- Member
- Posts: 35
- Joined: Thu Nov 30, 2017 14:30
Re: First Hacks on Minetest
Cool, I changed replaced the default_place_node.1.ogg file with a sound effect I found online and named it default_place_node.1.ogg.
Now I understand the
Now I understand the
comment. Don't worry, I won't do that. I'm not using Git on this folder.Linuxdirk wrote:Do not alter upstream files
-
- Member
- Posts: 35
- Joined: Thu Nov 30, 2017 14:30
Re: First Hacks on Minetest
Can you be more specific on how I do that?Linuxdirk wrote:Create a new mod and depend it creatures then create an empty init.lua and create a folder textures and place your new chicken texture there, using the original file name an enable the mod for the world.
Who is online
Users browsing this forum: No registered users and 20 guests