Jump to content

[1.8] how to detect a tileentity calls markDirty()?


Tschallacka

Recommended Posts

I was wondering how i can get an event when a tileentity calls markdirty()

I want to monitor changes in certain tileentities of other mods and perform an action corresponding to that.

 

Does markDirty() cause a bud update or is there an event fired?

How much wood could a woodchuck chuck if a wood chuck could chuck wood - Guybrush Treepwood

 

I wrote my own mod ish... still a few bugs to fix. http://thaumcraft.duckdns.org/downloads/MagicCookies-1.0.6.4.jar

Link to comment
Share on other sites

No. It only changes nearby blocks. So it can only be detected by nearby blocks or tileentities.

I. Stellarium for Minecraft: Configurable Universe for Minecraft! (WIP)

II. Stellar Sky, Better Star Rendering&Sky Utility mod, had separated from Stellarium.

Link to comment
Share on other sites

How would these blocks detect the markdirty call then?

In case the blocks are nearby blocks,

In Block#onNeighborChange get the changed TileEntity.

If the tileentity is what you are looking for, then do what you want. That's how you detect markdirty call.

I. Stellarium for Minecraft: Configurable Universe for Minecraft! (WIP)

II. Stellar Sky, Better Star Rendering&Sky Utility mod, had separated from Stellarium.

Link to comment
Share on other sites

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.