[Mod] Animated 3d chest [3dchest]

Post Reply
4aiman
Member
Posts: 1208
Joined: Mon Jul 30, 2012 05:47

[Mod] Animated 3d chest [3dchest]

by 4aiman » Post

At a request by mahmutelmas06 I've extracted 3d chest form my Magichet subgame.

The license is CC BY-NC-SA 4.0 International.
3dchest.zip
Here's a link to a fixed version of this mod: v 1.1 (brought to you by Mg)
[Added can_dig, fixed list size and offset to correspond those of minetest_game]

Mod has no sounds - add your own: "chestopen.ogg" and "chestclosed.ogg" to obtain some audio feedback.

The code can be altered to support any number of animated chests, so making any chest from any game animated is a no problem ;)
Last edited by 4aiman on Sun Aug 16, 2015 12:44, edited 2 times in total.

User avatar
tkerwel
Member
Posts: 213
Joined: Fri Jan 13, 2012 07:35

Re: [Mod] Animated 3d chest [3dchest]

by tkerwel » Post

How can i remove that chest when i dont want it anymore...Looks like there is a small bug ;-)

4aiman
Member
Posts: 1208
Joined: Mon Jul 30, 2012 05:47

Re: [Mod] Animated 3d chest [3dchest]

by 4aiman » Post

What do you mean by "remove"?
Are you referring to removing the mod itself?

Well, that's not really a problem my mod should solve.
It won't be there to even be loaded, let alone to do something.
That being said, it's a bug of whichever subgame you've used this mod with. :-)
(By, how's good Magichet is mostly incompatible with other mods!)


You still should be able to perform a /clearobjects.
But that will delete all entities, not only the chest ones...

Regards!

User avatar
tkerwel
Member
Posts: 213
Joined: Fri Jan 13, 2012 07:35

Re: [Mod] Animated 3d chest [3dchest]

by tkerwel » Post

just what ever i try to remove the chest in the game... hiting it with the Hand, using a Axt etc.... nothing happens ... once placed i cant remove it to get it back into the inventory...
..
of cause i know to remove the mod ...or use /clearpbjects

4aiman
Member
Posts: 1208
Joined: Mon Jul 30, 2012 05:47

Re: [Mod] Animated 3d chest [3dchest]

by 4aiman » Post

Oh, you've meant THAT issue :)
I thought you didn't like the mod and AFTER removal there were all those objects around.)))

Here, have this fixed version (see the 1st post).

User avatar
benrob0329
Member
Posts: 1341
Joined: Thu Aug 06, 2015 22:39
GitHub: Benrob0329
IRC: benrob0329
In-game: benrob03
Location: Michigan
Contact:

Re: [Mod] Animated 3d chest [3dchest]

by benrob0329 » Post

Could you make it match the default chest more? I mean in size and texture (formspec and entity).

BTW what sort of black magic is this?!?

Wait...its not magic.....its entities XD

4aiman
Member
Posts: 1208
Joined: Mon Jul 30, 2012 05:47

Re: [Mod] Animated 3d chest [3dchest]

by 4aiman » Post

I don't really want to supply the *.blend file all along.
I'm interested in Magichet being unique, after all.

Textures are all yours to change.
The license notice is there, so it should be clear that anyone can adopt this mod.

PS: I haven't seen the default chest from minetest_game for nearly 2 years. ;)

User avatar
mahmutelmas06
Member
Posts: 367
Joined: Mon Mar 02, 2015 13:10
GitHub: mahmutelmas06
IRC: mahmutelmas06
In-game: masum

Re: [Mod] Animated 3d chest [3dchest]

by mahmutelmas06 » Post

Thank you so much. That mod will give more life to game :)
My Mods:

Beverage

4aiman
Member
Posts: 1208
Joined: Mon Jul 30, 2012 05:47

Re: [Mod] Animated 3d chest [3dchest]

by 4aiman » Post

I'm glad it'll be used.
Sorry didn't make it earlier.

There are quite good chances Magichet will quit being non-commercial in early 2016.
So, this mod's license may get updated to LGPL or even WTFPL.
If by that time there will be anything else you'd like to extract - feel free to ask me to do it.

User avatar
Mg
Member
Posts: 86
Joined: Sun Mar 02, 2014 20:49
GitHub: LeMagnesium
IRC: ElectronLibre Mg
In-game: Mg
Location: Periodic Table

Re: [Mod] Animated 3d chest [3dchest]

by Mg » Post

MinetestForFun's server recently added this mod. Yet, I had to do some modifications due to bugs reported on the mod or issues I noticed. For example, you could dig a 3dchest when it was not empty, or destroy the entity during the brief interval during which the node disappear before can_dig's mechanisms bring it back (after I added a can_dig callback of course).
I also had to fix the indentation, and the formspec's lists sizes that were wrong (if it's related to changes in your subgame then don't mind that part).
Feel free to reuse.
View the mod online here on MinetestForFun's server's repository.
3dchest.zip
Fixed and improved
(11.97 KiB) Downloaded 221 times
"[...] Manganese and Mercury, Molybdenum, Magnesium [...]"
Mods I shared : metatools, ignore, PvPButton with U_inv support
You can look for more in my GitHub repositories
Tox ID : D878DF75D369C10DC0D3A1A782636EA242AE64FD687EDBADCB679AFACA78910BCEAAECF825E0
Currently developper for MinetestForFun server .

4aiman
Member
Posts: 1208
Joined: Mon Jul 30, 2012 05:47

Re: [Mod] Animated 3d chest [3dchest]

by 4aiman » Post

> I also had to fix the indentation, and the formspec's lists sizes that were wrong
Yep, those are different in Magichet. Totally forgot to change those...

> For example, you could dig a 3dchest when it was not empty
In Magichet I don't use on_dig, so that's why the protection has been moved elsewhere.
I don't know how different games handle can_dig, so decided not to include any protection.

Mg, thank you very much.
Should you need to use that chest mod commercially - you're allowed to do so.
Also, since the point was to make 3d chest available for every game, I'll add your version to the 1st post as version 1.1. I think that should fit minetest_game-based subgames better.

Regards!

Minetestforfun
Member
Posts: 940
Joined: Tue Aug 05, 2014 14:09
GitHub: MinetestForFun
IRC: MinetestForFun
In-game: MinetestForFun
Location: On earth
Contact:

Re: [Mod] Animated 3d chest [3dchest]

by Minetestforfun » Post

We will never used your mod for commercial purpose ;)

Our teamwork is for the community before everything.

4aiman
Member
Posts: 1208
Joined: Mon Jul 30, 2012 05:47

Re: [Mod] Animated 3d chest [3dchest]

by 4aiman » Post

Minetestforfun wrote:We will never used your mod for commercial purpose ;)
As I've stated before in Magichet thread: I will gladly give out permission to use my X work commercially to anyone who not only uses that X work but also adds to it and/or develops it.

There's much more to non-commercial than it seems to be.
Permission let ppl stream videos on, say, YouTube and monetize those with ads.
I'm really grateful for the fixes, so giving the permission was the least I could do.

Minetestforfun wrote:Our teamwork is for the community before everything.
That is why I've chosen such a "useless" and "unpopular" license - to deliver free of charge mods/subgame and make sure I would have the means to stop those who are trying to profit on community.
But that would be unfair to devoid those who really adds to my stuff the right to earn some money.
I believe that any work should have at least a chance to pay off.

Regards!

Post Reply

Who is online

Users browsing this forum: No registered users and 15 guests