tool that changes mob's texture from all its textures

Post Reply
ph8jPf9M
Member
Posts: 77
Joined: Sat Jul 16, 2016 10:29
GitHub: 22i

tool that changes mob's texture from all its textures

by ph8jPf9M » Post

When you spawn a mob with an egg from mobs redo it comes with a random texture

textures = {{"parrot_blue.png"},{"parrot_green.png"},{"parrot_grey.png"}},

But when you want to test out different mob textures you need to spawn more and even then you might not get the mob with the right texture.

Image

These two tools could solve this

-a tool that can be used for right clicking on mobs to change their texture without formspec. With this tool you could test out all the mobs textures by aditionaly right clicking with it.

-a tool that can be used for right clicking on mobs to show a formspec with all the posible mob textures
buttons. When button is pressed mob changes textures to that texture.

How can this be done?
Attachments
parot.png
parot.png (301.75 KiB) Viewed 474 times

Sokomine
Member
Posts: 4289
Joined: Sun Sep 09, 2012 17:31
GitHub: Sokomine
IRC: Sokomine
In-game: Sokomine

Re: tool that changes mob's texture from all its textures

by Sokomine » Post

The parrots look very nice! Hope I'll see them on some servers soon. Regarding your question: I do have a way to select a texture in my mobf_trader mod. The texture is not adjusted in any way...it's just the image shown. All you really need to do is figure out how to get all textures a mob might have, display them, and react to the player's selection. I havn't taken a close enough look at mobs_redo to tell you how easy it is.
A list of my mods can be found here.

User avatar
Nathan.S
Member
Posts: 1147
Joined: Wed Sep 24, 2014 17:47
GitHub: NathanSalapat
IRC: NathanS21
In-game: NathanS21
Location: Bigsby Texas
Contact:

Re: tool that changes mob's texture from all its textures

by Nathan.S » Post

Take a look at the sheep, they can change texture when shorn or dyed. That should explain how the texture changing is accomplished.
I record Minetest videos, Mod reviews, Modding tutorials, and Lets plays.
Check out my website, and brand new Minetest Modding Course

User avatar
AiTechEye
Member
Posts: 1000
Joined: Fri May 29, 2015 21:14
GitHub: AiTechEye
Location: Sweden

Re: tool that changes mob's texture from all its textures

by AiTechEye » Post

right click with the test_texture:stick tool, and type texture(s) to use, then the text saves in the tool.

then simply use the tool on objects to set texture.


Image
Attachments
test_texture.zip
(697 Bytes) Downloaded 50 times
screenshot_20170515_110421.png
screenshot_20170515_110421.png (348.59 KiB) Viewed 474 times

User avatar
azekill_DIABLO
Member
Posts: 7507
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO
Location: OMICRON
Contact:

Re: tool that changes mob's texture from all its textures

by azekill_DIABLO » Post

great thing, you should release it!
Gone, but not dead. Contact me on discord: azekill_DIABLO#6565
DMs are always open if you want to get in touch!

ph8jPf9M
Member
Posts: 77
Joined: Sat Jul 16, 2016 10:29
GitHub: 22i

Re: tool that changes mob's texture from all its textures

by ph8jPf9M » Post

azekill_DIABLO wrote:great thing, you should release it!
its here https://github.com/22i/amc/ to test the parrot out go into creative and find parrot spawn egg there

User avatar
azekill_DIABLO
Member
Posts: 7507
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO
Location: OMICRON
Contact:

Re: tool that changes mob's texture from all its textures

by azekill_DIABLO » Post

ph8jPf9M wrote:
azekill_DIABLO wrote:great thing, you should release it!
its here https://github.com/22i/amc/ to test the parrot out go into creative and find parrot spawn egg there
:D i know this repo, i downloaded it (and probably starred it)

i was just talking to AItechEYE
Gone, but not dead. Contact me on discord: azekill_DIABLO#6565
DMs are always open if you want to get in touch!

Post Reply

Who is online

Users browsing this forum: No registered users and 7 guests