Custom Leaves start decay around the custom log.

Started by VolcanoBoy on

Topic category: Help with modding (Java Edition)

Last seen on 06:53, 18. Apr 2024
Joined Sep 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Custom Leaves start decay around the custom log.

I make a custom log and a custom leaves, and i make a biome with this custom tree, but the leaves start decay around the custom log. what is the option? (bad english, i'm hungarian)

Last seen on 21:31, 18. Apr 2024
Joined Dec 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
i got the code: @Override…
Sat, 04/04/2020 - 23:13

i got the code:

@Override public boolean canSustainLeaves(IBlockState state, IBlockAccess world, BlockPos pos){

return true;

}

If it doesn't work, let me know.

Last seen on 00:35, 26. Jan 2022
Joined Apr 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Where do I put this?
Mon, 04/27/2020 - 07:08

Where do I put this?

Last seen on 15:53, 27. Feb 2023
Joined Jun 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Where would this code be put…
Thu, 05/21/2020 - 03:43

Where would this code be put??

Last seen on 15:53, 27. Feb 2023
Joined Jun 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Bump
Thu, 05/21/2020 - 03:43

Bump

Last seen on 19:13, 3. Apr 2022
Joined Jul 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
The block class.
Mon, 06/01/2020 - 00:13

The block class.

Last seen on 19:13, 3. Apr 2022
Joined Jul 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
That would be great if I…
Sat, 06/06/2020 - 15:16

That would be great if I could edit comments, but I'm actually not sure where in the block class either.

Last seen on 06:40, 15. Feb 2021
Joined May 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You could just add "logs"…
Sat, 06/06/2020 - 15:37

You could just add "logs" tag to your logs and "leaves" tag to your leaves. After you do this, it must stop decaying.

Last seen on 19:13, 3. Apr 2022
Joined Jul 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do we add "logs" tag?
Sat, 06/06/2020 - 16:13

How do we add "logs" tag?

Last seen on 22:41, 29. Dec 2021
Joined Mar 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Why is this not…
Sat, 06/06/2020 - 19:16

Why is this not automatically done with MCreator? Shouldn't this be a feature?

Last seen on 13:59, 19. May 2023
Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
For me, the leaves don't…
Tue, 09/01/2020 - 07:49

For me, the leaves don't decay at all. (They're persistent:true)

Last seen on 23:01, 26. May 2022
Joined Jan 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I can add "logs" tag just…
Fri, 01/08/2021 - 17:19

I can add "logs" tag just fine but for "leaves" tag I get error message: "Do not use vanilla names, this can cause build problems!"

Last seen on 01:29, 28. Feb 2021
Joined Nov 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Minecraft 1.12 and up (i…
Fri, 01/08/2021 - 22:30

Minecraft 1.12 and up (i think) use tags to do a lot of things. Create a tag called whatever you want really, 'logsTag' would work

Set the registry name to 'logs', namespace to 'minecraft' and tag type to 'blocks'. Then set your custom log/s in the tag.

You DO NOT need a leaves tag, the leaves element in the block editor is enough.

This bit isn't important for your question just giving you some context:

Minecraft uses tags (in this particular instance) to check if the block it is next to is valid. So the leaves will go 'hey, are there any blocks under the logs tag nearby to prevent me from decaying?' and if there is a block under the tag, it will not decay. You can do this is datapacks too, if you add stone for example under the logs tag, stone becomes a 'log'.

Last seen on 01:29, 28. Feb 2021
Joined Nov 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
If you want your logs to be…
Fri, 01/08/2021 - 22:35

If you want your logs to be used in vanilla recipes, like campfires, duplicate the tag element and change the tag type to items. And boom! you're done

Last seen on 23:01, 26. May 2022
Joined Jan 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Ok, thanks :)
Thu, 02/04/2021 - 11:36

Ok, thanks :)