Custom Leaves start decay around the custom log.

Started by VolcanoBoy on

Topic category: Help with Minecraft modding (Java Edition)

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)

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.

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?

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??

Joined Jun 2019
Points:

User statistics:

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

Bump

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.

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.

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.

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?

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?

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!"

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'.

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

Joined Jan 2021
Points:

User statistics:

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

Ok, thanks :)

Joined Jun 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I've tried this but it doesn…
Wed, 06/23/2021 - 03:18

I've tried this but it doesn't work ):