Currently I'm developing a mod that (among others) defines a nodebox that is waaay off-center the actual node and thus the image in the inventory is visually nearly not present (only a few pixels are shown) and when wielding the item it is the same.
So I wonder if there is a way to visually move the wielded item without inventory_image and wield_image set (not applicable because there might be hundreds of nodes like this having textures basing entirely on the user's texture packs and enabled mods).
Any ideas?
Optically move wielded item
- azekill_DIABLO
- Member
- Posts: 7507
- Joined: Wed Oct 29, 2014 20:05
- GitHub: azekillDIABLO
- In-game: azekill_DIABLO
- Location: OMICRON
- Contact:
Re: Optically move wielded item
Engine change.
EDIT: or do a mod that sets wield item to blank.png
EDIT: or do a mod that sets wield item to blank.png
Gone, but not dead. Contact me on discord: azekill_DIABLO#6565
DMs are always open if you want to get in touch!
DMs are always open if you want to get in touch!
- PolySaken
- Member
- Posts: 817
- Joined: Thu Nov 09, 2017 05:18
- GitHub: PolySaken-I-Am
- In-game: PolySaken
- Location: Wānaka, Aotearoa
- Contact:
Re: Optically move wielded item
wield_scale = {your position here}
obviously needs to be done by trial and error, but you'll get it eventually.
:)
obviously needs to be done by trial and error, but you'll get it eventually.
:)
Guidebook Lib, for in-game docs | Poly Decor, some cool blocks | Vision Lib, an all-purpose library.
- Linuxdirk
- Member
- Posts: 3219
- Joined: Wed Sep 17, 2014 11:21
- In-game: Linuxdirk
- Location: Germany
- Contact:
Re: Optically move wielded item
This seems to have no effect in 0.4.16, is it a dev version feature?PolySaken wrote:wield_scale = {your position here}
Basing on the name it just scales (stretches?) the wielditem and does not move it (or the section of the nodebox used as inventory image) to another location as described.
- PolySaken
- Member
- Posts: 817
- Joined: Thu Nov 09, 2017 05:18
- GitHub: PolySaken-I-Am
- In-game: PolySaken
- Location: Wānaka, Aotearoa
- Contact:
Re: Optically move wielded item
i am using the latest 0.4.16 ver from the site, and it works just fine.
i don't remember how, but i used it in an old mod to make a pistol appear in the middle of the screen.
i don't remember how, but i used it in an old mod to make a pistol appear in the middle of the screen.
Guidebook Lib, for in-game docs | Poly Decor, some cool blocks | Vision Lib, an all-purpose library.
- Linuxdirk
- Member
- Posts: 3219
- Joined: Wed Sep 17, 2014 11:21
- In-game: Linuxdirk
- Location: Germany
- Contact:
Re: Optically move wielded item
Maybe my initial description was not the best but it’s not about moving the generated wieldimage around. It’s about moving the “camera angle” that is USED to generate the wielditem.PolySaken wrote:i am using the latest 0.4.16 ver from the site, and it works just fine.
i don't remember how, but i used it in an old mod to make a pistol appear in the middle of the screen.
But there seems to be no way.
So … https://github.com/minetest/minetest/issues/7140
Who is online
Users browsing this forum: No registered users and 9 guests