Apple Decay

User avatar
Menche
Member
 
Posts: 994
Joined: Sat Jul 02, 2011 00:43

Apple Decay

by Menche » Sat Mar 30, 2013 23:42

Currently apples don't decay, so you are left with a cloud of flying apples when you cut down an apple tree. Making apples decay isn't a good idea, because sometimes they are used for decoration.

My solution is to make a leaves_with_apple node that decays like leaves and drops a normal, non-decaying edible apple when dug. The problem with making unpicked apples nodes is that the apple texture can be shown up to 3 times for one node, depending on your angle. Several different possibilities:
Apple texture over leaves texture:
Image

Leaves texture over apple texture:
Image

Or, just make the leaves_with_apple look like a normal plantlike apple.
Last edited by Menche on Sat Mar 30, 2013 23:43, edited 1 time in total.
An innocent kitten dies every time you top-post.
I am on the Voxelands Forums more often than here.
Try Voxelands (forked from Minetest 0.3) by darkrose
 

User avatar
PilzAdam
Member
 
Posts: 4026
Joined: Fri Jul 20, 2012 16:19
GitHub: PilzAdam
IRC: PilzAdam

by PilzAdam » Sun Mar 31, 2013 00:10

I would prefer dropping the node when leafdecay group rating is 2. And spawn apples on trees like they currently do.
 

User avatar
Mito551
Member
 
Posts: 1271
Joined: Sat Jun 16, 2012 15:03

by Mito551 » Sun Mar 31, 2013 08:24

i use attached_node and am happy with it
 

User avatar
0gb.us
Member
 
Posts: 841
Joined: Sun Sep 16, 2012 01:55

by 0gb.us » Sun Mar 31, 2013 11:22

PilzAdam wrote:I would prefer dropping the node when leafdecay group rating is 2. And spawn apples on trees like they currently do.

Menche wrote:Making apples decay isn't a good idea, because sometimes they are used for decoration.
 

User avatar
PilzAdam
Member
 
Posts: 4026
Joined: Fri Jul 20, 2012 16:19
GitHub: PilzAdam
IRC: PilzAdam

by PilzAdam » Sun Mar 31, 2013 12:55

0gb.us wrote:
PilzAdam wrote:I would prefer dropping the node when leafdecay group rating is 2. And spawn apples on trees like they currently do.

Menche wrote:Making apples decay isn't a good idea, because sometimes they are used for decoration.

If param2 ~= 0 then nodes dont decay. So simply set param2 = 1 in on_place().
 

User avatar
Menche
Member
 
Posts: 994
Joined: Sat Jul 02, 2011 00:43

by Menche » Sun Mar 31, 2013 20:49

PilzAdam wrote:If param2 ~= 0 then nodes dont decay. So simply set param2 = 1 in on_place().

So generated apples would decay but when placed they wouldn't? That would work and would be one less node definition.
An innocent kitten dies every time you top-post.
I am on the Voxelands Forums more often than here.
Try Voxelands (forked from Minetest 0.3) by darkrose
 

User avatar
0gb.us
Member
 
Posts: 841
Joined: Sun Sep 16, 2012 01:55

by 0gb.us » Sun Mar 31, 2013 22:57

PilzAdam wrote:
0gb.us wrote:
PilzAdam wrote:I would prefer dropping the node when leafdecay group rating is 2. And spawn apples on trees like they currently do.

Menche wrote:Making apples decay isn't a good idea, because sometimes they are used for decoration.

If param2 ~= 0 then nodes dont decay. So simply set param2 = 1 in on_place().


Really?

/me runs to check source code

That's rather interesting. It means that things with a facedir should never be in the leafdecay group. It works out quite nicely for apples though.
 

User avatar
xavier108
Member
 
Posts: 227
Joined: Sat Nov 24, 2012 06:05
IRC: Ezlif

by xavier108 » Fri Apr 05, 2013 06:39

Menche wrote: Making apples decay isn't a good idea, because sometimes they are used for decoration..

I store them in a chest without any reasons
Ezlif :D
 

User avatar
BlockMen
Member
 
Posts: 768
Joined: Fri Mar 01, 2013 17:24
GitHub: BlockMen

by BlockMen » Sat May 18, 2013 13:30

I have add Apple Decay in my last mod Default Plus
 

User avatar
12Me21
Member
 
Posts: 826
Joined: Tue Mar 05, 2013 00:36

by 12Me21 » Sat May 18, 2013 16:45

maybe make them fall when not touching leaves, that way when you destroy a tree the apples will fall on the ground.
This is a signature virus. Add me to your signature so that I can multiply.
Don't ever save anything as a JPEG.
 

User avatar
BlockMen
Member
 
Posts: 768
Joined: Fri Mar 01, 2013 17:24
GitHub: BlockMen

by BlockMen » Sat May 18, 2013 18:59

12Me21 wrote:maybe make them fall when not touching leaves, that way when you destroy a tree the apples will fall on the ground.


Well, thats how it works.
Image


Hybrid Dog wrote:I made a mod which replaces wrong directed torches (worldedit or sth like this) to right directed ones.


Why posting that here? The topic is about apple decay, not torches...
 

User avatar
12Me21
Member
 
Posts: 826
Joined: Tue Mar 05, 2013 00:36

by 12Me21 » Sat May 18, 2013 19:04

BlockMen wrote:
12Me21 wrote:maybe make them fall when not touching leaves, that way when you destroy a tree the apples will fall on the ground.


Well, thats how it works.
Image


I meant as falling nodes
This is a signature virus. Add me to your signature so that I can multiply.
Don't ever save anything as a JPEG.
 

User avatar
BlockMen
Member
 
Posts: 768
Joined: Fri Mar 01, 2013 17:24
GitHub: BlockMen

by BlockMen » Sat May 18, 2013 19:07

12Me21 wrote:
I meant as falling nodes


And why do you think a falling node would be better than an item that falls on ground?
Last edited by BlockMen on Sat May 18, 2013 19:08, edited 1 time in total.
 

User avatar
12Me21
Member
 
Posts: 826
Joined: Tue Mar 05, 2013 00:36

by 12Me21 » Sat May 18, 2013 19:19

BlockMen wrote:
12Me21 wrote:
I meant as falling nodes


And why do you think a falling node would be better than an item that falls on ground?

nodes don't slow the game down and entities do
This is a signature virus. Add me to your signature so that I can multiply.
Don't ever save anything as a JPEG.
 

User avatar
BlockMen
Member
 
Posts: 768
Joined: Fri Mar 01, 2013 17:24
GitHub: BlockMen

by BlockMen » Sat May 18, 2013 19:28

12Me21 wrote:
BlockMen wrote:
12Me21 wrote:
I meant as falling nodes


And why do you think a falling node would be better than an item that falls on ground?

nodes don't slow the game down and entities do


Well, even if thats true, if you want this you have to change the decay (which cant be done by mods) or you have to code a new decay just for apples, which would slow the game down too.

Furthermore it makes more sense to drop items and not nodes.
 


Return to Minetest Features

Who is online

Users browsing this forum: No registered users and 6 guests

cron