How can I make custom tree leaves decayable:true?

Started by darkgreenminer on

Topic category: Help with modding (Java Edition)

Last seen on 13:49, 14. Jun 2023
Joined Jan 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How can I make custom tree leaves decayable:true?

Hi, how can I make custom tree leaves decayable?  I've follow a tutorial video about the topic on YouTube by Northwesttrees Gaming, and his method of using the /fill command of replacing the modid:modleaves with themselves works for a later version of MCreator (2020.3), but doesn't seem to work with 2020.2, which shows 'check_decay' and 'decayable' instead of the leaves having a value of being 'persistent' or not.  

When trying the /fill & replace command, I get an error that '"replace" is not a state for block mymodid:modleaves' (in the actual command I did type the correct modid and custom leaves name).  

The leaves 'check_decay' value is set to true, which I think is the correct setting, but 'decayable' is set to false and I can't figure out how to change it to true.  Is there a command that will change that setting (blockstate or dataValue or whatever it is)?

I hope it's okay to ask for modding help about this.  I checked the guidelines and couldn't find any restriction that it had to relate to the latest version of MCreator.

Thanks

gbv1436

 

 

 

There are no rules for which…
Fri, 07/23/2021 - 13:54

There are no rules for which version of MCreator you can ask, but I'm afraid you can still get answers such as "use 2021.1!" or "outdated". Maybe I'm bit biased, but I got these already for both 2020.2 topics I created :c

That's kinda shame, as MCreator community is really helpful, but for some reason there is some sad trend on that version. Hoping that my message will discourage some frustrated people and you will get your answer! ^^

Last seen on 13:49, 14. Jun 2023
Joined Jan 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thanks, Toma400, appreciate…
Sat, 07/24/2021 - 04:14

Thanks, Toma400, appreciate your warning .  I actually have it working on my 2021.1 version, but wanted to backport (is the the term?) it to my earlier 1.12.2 version as there seem to be quite a few people who still play it, me included.  The tree is so close to working too, as the logs and leaves are good, spawns well, but just that frustrating decayable issue.  

Yeah, backporting is the…
Sat, 07/24/2021 - 07:32

Yeah, backporting is the term ^^ I get it completely, I made backport for 1.12 exactly for the same reason. The thing is, 2020.2 is kinda bugged and missing a lot of crucial features (I struggle with slots in GUI, as they don't recognise items put in them; as well as there's no "shot custom projectile" procedure block)...

Generally there's one other option: 1.12.2 plugin for 2021.1.
I mean, it has really small changes compared to 2020.2 and is a lot less intuitive, but if we take our time to contribute to its development, it could compete somehow with 1.15+ generators. The problem is, there are no contributors at the moment, and I'm just starting learning Java, so I won't be able to contribute just yet :<

As for leaves: maybe try to make procedure that checks if there are logs nearby? This could be some form of workaround, though I don't know if it wouldn't be too laggy (since each leaf would need to check it at least once per tick, I suppose). But you can try to optimise it somehow to your needs.

Last seen on 13:49, 14. Jun 2023
Joined Jan 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thanks for mentioning the 1…
Sat, 07/24/2021 - 15:11

Thanks for mentioning the 1.12.2 plugin.  I upgrading my 2020.2 workspace now that I've installed the plugin and am hopeful that will work.  

 

Last seen on 13:49, 14. Jun 2023
Joined Jan 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
To anyone who might find…
Sun, 07/25/2021 - 09:34

To anyone who might find this help request - don't upgrade your 2020.2 (for 1.12) workspace to a 2021.1 workspace using the 1.12 plugin!  It has been a disaster.  Not only is the tree's leaves still not decaying, I lost all my sounds, my bounding boxes went wild and my GUIs won't work.  I've re-imported my sounds, reset them and that's working.  Rebuilt some blocks to get bounding boxes decent, but the GUIs just won't open.  Have regenerated the code twice.  I backed up the old 2020.2 workspace and am going to try to restore that.  

Last seen on 13:49, 14. Jun 2023
Joined Jan 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I should clarify my last…
Fri, 07/30/2021 - 10:50

I should clarify my last comment.  I would definitely recommend using 2021.1 and the 1.12.2 plugin for creating a mod for that popular version, but be aware of limitations like the decayable issue.  What I've done is created a drop and custom pick item to get a new sapling and the fruit.  It might be possible do use a tick update procedure (as Northwesttrees Gaming mentions very briefly in his helpful tutorial using 2020.3), but I haven't tried that yet.  It really makes me appreciate the beautiful coding of Pam's Harvestcraft, with its fruit trees that have fruit dangling below the tree.