Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

new hook #470

Open
officialmcpro32 opened this issue Jan 4, 2016 · 9 comments
Open

new hook #470

officialmcpro32 opened this issue Jan 4, 2016 · 9 comments

Comments

@officialmcpro32
Copy link

@zhuowei
function blockUpdateHook()
Block.setUpdatable

@Blakintosh
Copy link

Explanation would be nice.

@aetriusgx
Copy link

Yrp

@officialmcpro32
Copy link
Author

function blockUpdateHook(eventType) or add x,y,Z
if(eventType==digBlock && getTile(x,y,Z)==3){ //event types is digBlock && placeBlock

//Block.setUpdatable(id,boolean) //weather the block can be updated

@Blakintosh
Copy link

Doesn't make sense to me and most of that would cause errors anyway

@Blakintosh
Copy link

would need a digBlock constant but the thing is there's destroyBlock(x,y,z, side) which is a better option

1 similar comment
@Blakintosh
Copy link

would need a digBlock constant but the thing is there's destroyBlock(x,y,z, side) which is a better option

@zhuowei
Copy link
Owner

zhuowei commented Jan 20, 2016

When would block update hook get called? Is it only called for player modification of blocks or is it called on any block change (e.g. snow melting, fire spreading)?

1 similar comment
@zhuowei
Copy link
Owner

zhuowei commented Jan 20, 2016

When would block update hook get called? Is it only called for player modification of blocks or is it called on any block change (e.g. snow melting, fire spreading)?

@officialmcpro32
Copy link
Author

Yes if there a block update nearby it types would be like fireSpread place block and you would specify what should it do if updated @zhuowei

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants