Jump to content

[solved]How to overwrite the update behavior of EntityFallingBlock?


Recommended Posts

Posted (edited)

I want to make falling sand fly upwards.

I tried to find the event of falling block entity updating. But I could not find it. LivingEvent.LivingUpdateEvent is only for living entities, which do not include falling sand.

I also tried to store all falling block entities and manage them by myself. But I could not find the event of game ticking.

Maybe I should use Instrumentation to change a vanilla class?

(sorry for my English)

Edited by qouteall
Posted
12 minutes ago, qouteall said:

I could not find the event of game ticking.

TickEvent.[X]Tick

 

12 minutes ago, qouteall said:

Maybe I should use Instrumentation to change a vanilla class?

Define "Instrumentation".

Posted

If that doesn't work out for you, you might consider making your own EntityFallingBlock. You can swap out the vanilla falling block for yours in the EntityJoinWorld event, I think.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.