PaperMC / PaperMC/Paper

BlockGrowEvent is inconsistent for different type of blocks

Open
#13,480 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

status: needs triage version: 1.21.10
Dominant language
Java
Stars
12.7k
Forks
3.5k
Avg merge
3d 13h
Merged PRs (30d)
11

Description

Expected behavior

The block age must not get updated and must stay the same, same as before the grow.

Observed/Actual behavior

Cactus age still gets updated even after cancelling grow event.
Cactus is at age 0 -> BlockGrowEvent triggered -> Cactus is at age 1 -> Cancelling the grow event -> Cactus is still at age 1

Steps/models to reproduce

Make a cactus farm, size don't really matter.
Create a command that sends targeted block's block data.
Listen to BlockGrowEvent, maybe filter it to just cactuses.
Cancel the event.
Set the random tick speed gamerule high to test faster.
Use the command to see cactuses' datas. They'll have 15 age with just root block.

Plugin and Datapack List

[21:14:00 INFO]: ℹ Server Plugins (17):
[21:14:00 INFO]: Paper Plugins (3):
[21:14:00 INFO]: - FancyNpcs, RoseStacker, SkBee
[21:14:00 INFO]: Bukkit Plugins (14):
[21:14:00 INFO]: - Essentials, FastAsyncWorldEdit, Lands, LuckPerms, NBTAPI, packetevents, PlaceholderAPI, ProtocolLib, Skript, skript-reflect
[21:14:00 INFO]: uxmFarmer (my plugin), Vault, ViaBackwards, ViaVersion

Paper version

[21:13:53 INFO]: This server is running Paper version 1.21.10-129-ver/1.21.10@3e25649 (2025-12-19T23:34:30Z) (Implementing API version 1.21.10-R0.1-SNAPSHOT)
You are running the latest version

Other

I'm not sure if this is intented or not, I'm not saying it must be fixed right now but it really is weird and shouldn't happen. A person from Paper discord said the age data changes before BlockGrowEvent so its not really that event's fault, then there should be another event for this.
Please atleast discuss this. Also, not yet tried with other blocks like sugar cane and bamboo. Will try.
Also, also, happy new year!

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the cactus farm case with BlockGrowEvent, a cancelled listener, and the block-data command described in the issue. Compare the cactus age before the event, after cancellation, and after the random tick; done means establishing whether cancellation should preserve the age and identifying the appropriate event or API behavior for consistent block handling.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
api, game-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.