[Mod] Itemframes & Pedestals [itemframes]

Post Reply
User avatar
Shakajiub
New member
Posts: 6
Joined: Sun Jan 18, 2015 12:52
GitHub: Shakajiub
In-game: Shakajiub
Location: Finland

[Mod] Itemframes & Pedestals [itemframes]

by Shakajiub » Post

Hi, everyone! I've been working on my own game for Minetest for a while now, browsing the forum for mods and such, and I came across Zeg9's Item Frames mod. It's a great mod that adds item frames and pedestals to the game to display items in. Now, the only problem I had with the mod was that there was only one type of pedestal, one made of stone.

So, what I've done is add support for multiple pedestals, using any material one wishes. By default, there now are pedestals of each material that also have stairs & slabs by default in the stairs mod (these are: stone, desert stone, cobble, desert cobble, stone brick, desert stone brick, brick, sandstone, sandstone brick & wood).

(I couldn't find if anyone else has already done this, if so, please tell me)

I suppose you need to see some screenshots, so here they are:
Spoiler
Image
Image
Image
And here's the necessary info:
Licence: WTFPL (code), CC BY-SA 3.0 (textures)
Version: made & tested in 0.4.11
Depends: default

Download: from GitHub (rename the directory to "itemframes" after extracting)
Or browse the code: https://github.com/Shakajiub/minetest-itemframes

Example of adding a new pedestal:

Code: Select all

itemframes.register_pedestal("stone", "default:stone",
	{cracky=3,pedestal=1},
	{"default_stone.png"},
	"Stone Pedestal",
	default.node_sound_stone_defaults()
)
Changelog:
Version 1.0.1 - Fixed items spinning in item frames.
Version 1.0.0 - Initial release.
Last edited by Shakajiub on Tue Jan 20, 2015 19:10, edited 2 times in total.

User avatar
Inocudom
Member
Posts: 3121
Joined: Sat Sep 29, 2012 01:14
IRC: Inocudom
In-game: Inocudom

Re: [Mod] Itemframes & Pedestals v2

by Inocudom » Post

https://github.com/VanessaE/minetest-itemframes
This is the most up-to-date version of the itemframes mod.

User avatar
Shakajiub
New member
Posts: 6
Joined: Sun Jan 18, 2015 12:52
GitHub: Shakajiub
In-game: Shakajiub
Location: Finland

Re: [Mod] Itemframes & Pedestals v2

by Shakajiub » Post

Inocudom wrote:https://github.com/VanessaE/minetest-itemframes
This is the most up-to-date version of the itemframes mod.
Yes, that was the version I updated.

User avatar
ExeterDad
Member
Posts: 1717
Joined: Sun Jun 01, 2014 20:00
In-game: ExeterDad
Location: New Hampshire U.S.A

Re: [Mod] Itemframes & Pedestals v2

by ExeterDad » Post

Shakajiub wrote:
Inocudom wrote:https://github.com/VanessaE/minetest-itemframes
This is the most up-to-date version of the itemframes mod.
Yes, that was the version I updated.
Do you think you can put in a pull request to VanessaE's version? Your changes are definitely nice, but it would be a shame to have additional versions of the same mod if the changes are just extra features.
I'll use the simple mobs mod as an example. So many variations, but not one of them includes all the neat additions.

User avatar
afflatus
Member
Posts: 362
Joined: Tue Apr 01, 2014 19:47
GitHub: 0-afflatus
IRC: afflatus
In-game: afflatus
Location: Avalonia
Contact:

Re: [Mod] Itemframes & Pedestals v2

by afflatus » Post

Nice.

I have one major question: What are item frames and pedestals actually for?
I also have trouble getting things off pedestals. Generally I have to destroy the pedestal to get them off.

Not directly related to your mod, which is a great improvement.
Grailtest is stirring ...

User avatar
Shakajiub
New member
Posts: 6
Joined: Sun Jan 18, 2015 12:52
GitHub: Shakajiub
In-game: Shakajiub
Location: Finland

Re: [Mod] Itemframes & Pedestals v2

by Shakajiub » Post

afflatus wrote:Nice.

I have one major question: What are item frames and pedestals actually for?
I also have trouble getting things off pedestals. Generally I have to destroy the pedestal to get them off.

Not directly related to your mod, which is a great improvement.
Mostly they are just for aesthetics, I suppose, you're able to display any of your items in them, safely. You could also use the item frames to mark your chests, for example.

To get an item off a pedestal, just punch or right-click it, and it should drop it on top of the pedestal, where you need to punch the item itself to pick it up, like any other item on the ground.

I also just realized, the items are rotating in the item frames as well, which they shouldn't. I'll fix that when I get home tonight evening.

User avatar
afflatus
Member
Posts: 362
Joined: Tue Apr 01, 2014 19:47
GitHub: 0-afflatus
IRC: afflatus
In-game: afflatus
Location: Avalonia
Contact:

Re: [Mod] Itemframes & Pedestals v2

by afflatus » Post

Ah OK, I've been playing on a server that uses item_drop, which makes it tricky. That's their problem, however. ;-)
Grailtest is stirring ...

User avatar
Shakajiub
New member
Posts: 6
Joined: Sun Jan 18, 2015 12:52
GitHub: Shakajiub
In-game: Shakajiub
Location: Finland

Re: [Mod] Itemframes & Pedestals v2

by Shakajiub » Post

afflatus wrote:Ah OK, I've been playing on a server that uses item_drop, which makes it tricky. That's their problem, however. ;-)
Yep, exactly. As handy as automatic item pickup is, it can sometimes be in your way since you always pickup things you don't necessarily want to. It's a personal preference, but once I switched from Minecraft to Minetest, that difference felt really good.

Also, the bug I mentioned earlier, items spinning in the frames, should now be fixed. If you downloaded this yesterday, be sure to do so again, unless you like the items clipping inside the frames, of course.

Post Reply

Who is online

Users browsing this forum: No registered users and 30 guests