Briaann Posted June 11, 2017 Posted June 11, 2017 https://pastebin.com/tbPras7A Error on line 4 the constructor block( double double double is undefined) help please Quote
draganz Posted June 11, 2017 Posted June 11, 2017 (edited) There's... a lot wrong with this. (1) the constructor for isBlockLoaded requires a BlockPos, not a Block; (2) Are you using Minecraft's Block class, cause I don't thing there has ever been a constructer that defines the usage of three double's in it; so ya, of course it is undefined. (3) Even if Block did have that constructor (it doesn't) and onBlockLoaded had those parameters (it doesn't), then it still would not work, cause you are declaring a new instance of a block; that block will never be equal to any other block instance; that is why you only define an instance once. Gist of this, read the parameters of the method you are trying to use; not hard. But, in the case that you for some reason decided to past all of that toward this thread for the simple mistake of a typo of Block instead of BlockPos; then just use getPos(), it will work, and is already predefined by the tile entity. Edited June 11, 2017 by draganz Quote
Recommended Posts
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.