Posted May 9, 201510 yr comment_157477 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
May 9, 201510 yr comment_157489 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.
May 9, 201510 yr Author comment_157499 How would these blocks detect the markdirty call then? 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
May 9, 201510 yr comment_157514 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.
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.