[Mod]Flowerpot[flowerpot]

sofar
Developer
Posts: 2146
Joined: Fri Jan 16, 2015 07:31
GitHub: sofar
IRC: sofar
In-game: sofar

Re: [Mod]Flowerpot[flowerpot]

by sofar » Post

Alright so I made the pots drop if they're e.g. on a sand node, and they will drop 2 items instead of one. Second, when you dig a plant now (no more punching a plant out) out of the pot, the empty pot remains, which has to be dug separately, and it's not that hard to do, at least for me.

I changed the icon as well, and made it a wield image for the empty pot. It's still tiny, maybe I'll scale it up somehow.

Scaled up the model just a bit to stay under 1m but fill as much as it can.

sofar
Developer
Posts: 2146
Joined: Fri Jan 16, 2015 07:31
GitHub: sofar
IRC: sofar
In-game: sofar

Re: [Mod]Flowerpot[flowerpot]

by sofar » Post

PS: If you place a wooden door into a flowerpot, the game crashes. xD
yes, found that and fixed it too.

sofar
Developer
Posts: 2146
Joined: Fri Jan 16, 2015 07:31
GitHub: sofar
IRC: sofar
In-game: sofar

Re: [Mod]Flowerpot[flowerpot]

by sofar » Post

Wuzzy wrote:About the bug:
Normally, when you dig grass in Minetest Game, you only get grass of ONE size (default:grass_5 if I recall correctly), the other grass sizes all drop the same. The other 4 grass sizes are unobtainable (not in game, not in Creative Mode), probably to avoid inventory clutter. Which is GOOD.
Fixed. It's grass_1, not _5, but I would have gotten that wrong myself :)

You get a random grass height when planting this, just like normal grass. Works for dry grass too, obviously.

sofar
Developer
Posts: 2146
Joined: Fri Jan 16, 2015 07:31
GitHub: sofar
IRC: sofar
In-game: sofar

Re: [Mod]Flowerpot[flowerpot]

by sofar » Post

I'd be willing to add a second pot model that has the dimensions of what you want. But I'm inclined to only enable one pot model by default... would it help if there's a switch available?

sofar
Developer
Posts: 2146
Joined: Fri Jan 16, 2015 07:31
GitHub: sofar
IRC: sofar
In-game: sofar

Re: [Mod]Flowerpot[flowerpot]

by sofar » Post

An important note is that due to the API, you can (if registered!) also place pretty much anything in it, including cobblestone or wood plants. All that's needed is a mod with a line like this:

Code: Select all

flowerpot.register_node("default:wood")

sofar
Developer
Posts: 2146
Joined: Fri Jan 16, 2015 07:31
GitHub: sofar
IRC: sofar
In-game: sofar

Re: [Mod]Flowerpot[flowerpot]

by sofar » Post

Image

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

Re: [Mod]Flowerpot[flowerpot]

by azekill_DIABLO » Post

sofar, it's very nice what you've done there.
Gone, but not dead. Contact me on discord: azekill_DIABLO#6565
DMs are always open if you want to get in touch!

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

Re: [Mod]Flowerpot[flowerpot]

by Sokomine » Post

Very nice flower pots. It's good to have them in more reasonable size than one cubic meter. Very decorative.
A list of my mods can be found here.

User avatar
FreeGamers
Member
Posts: 650
Joined: Sat May 25, 2019 00:15
GitHub: is proprietary I use NotABug
Location: United States
Contact:

Re: [Mod]Flowerpot[flowerpot]

by FreeGamers » Post

Great mod. Doesn't have support for all saplings from other mods, but for default, its a very pretty simple pot that fits in well with the game.

A user found a glitch today. We had flowerpots with saplings setup in a spawn area with protector redo coverage. Punching the pot by a different user causes the pot to drop the sapling and protector redo replaces just the pot. Then, if the pot is punched again, it attempts to drop the sapling again, but it cannot and causes an itemstack expectation error on the server.

Code: Select all

2019-07-27 06:10:25: ACTION[Server]: testuser2 tried to dig flowerpot:empty at protected position (100,30,-75)
2019-07-27 06:10:25: ACTION[Server]: testuser2 punches object 29: LuaEntitySAO at (100,30.0412,-75)
2019-07-27 06:10:26: ACTION[Main]: Server: Shutting down
2019-07-27 06:10:26: ERROR[Main]: ServerError: AsyncErr: ServerThread::run Lua: Expecting itemstack, itemstring, table or nil. item=default:aspen_sapling
FreeGamers.org has moved to MeseCraft.net | FreeGamers on this forum is now MeseCraft

twoelk
Member
Posts: 1482
Joined: Fri Apr 19, 2013 16:19
GitHub: twoelk
IRC: twoelk
In-game: twoelk
Location: northern Germany

Re: [Mod]Flowerpot[flowerpot]

by twoelk » Post

Image
something is broken in mt 5.x versions. That is supposed to be a viola plant in the pot and in the frame above that.

Post Reply

Who is online

Users browsing this forum: No registered users and 10 guests