Custom Leaves start decay around the custom log.

Started by VolcanoBoy on

Topic category: Help with Minecraft modding (Java Edition)

Active 21 hours ago
Joined Sep 2019
Points:
814

User statistics:

  • Modifications: 1
  • Forum topics: 30
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 26
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)

Active 6 months ago
Joined Dec 2019
Points:
678

User statistics:

  • Modifications: 0
  • Forum topics: 0
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 94
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.

Active 3 years ago
Joined Apr 2018
Points:
738

User statistics:

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

Where do I put this?

Active 2 years ago
Joined Jun 2019
Points:
689

User statistics:

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

Where would this code be put??

Active 2 years ago
Joined Jun 2019
Points:
689

User statistics:

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

Bump

Active 3 years ago
Joined Jul 2014
Points:
779

User statistics:

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

The block class.

Active 3 years ago
Joined Jul 2014
Points:
779

User statistics:

  • Modifications: 1
  • Forum topics: 6
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 41
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.

Active 4 years ago
Joined May 2020
Points:
777

User statistics:

  • Modifications: 0
  • Forum topics: 19
  • Wiki pages: 1
  • MCreator plugins: 0
  • Comments: 108
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.

Active 3 years ago
Joined Jul 2014
Points:
779

User statistics:

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

How do we add "logs" tag?

Active 3 years ago
Joined Mar 2020
Points:
1262

User statistics:

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

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

Active 2 years ago
Joined Jan 2021
Points:
564

User statistics:

  • Modifications: 0
  • Forum topics: 0
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 2
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!"

Active 4 years ago
Joined Nov 2019
Points:
638

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 2
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'.

Active 4 years ago
Joined Nov 2019
Points:
638

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 2
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

Active 2 years ago
Joined Jan 2021
Points:
564

User statistics:

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

Ok, thanks :)

Active 3 years ago
Joined Jun 2021
Points:
519

User statistics:

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

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