Jump to content

Recommended Posts

Posted

Hey guys!

Does anyone of you has an idea how to create an Item which causes a sequence of several events with a delay inbetween?

Examples:

a) You have one Item, which uses setBlock to create a Beacon at given position which dissappears after some seconds.

b) If you use a special Item the Player turns around three times and spawns an explosion afterwards.

c) A player right-klicks an Item, is lifted up into the air and is then accelerated forward.

 

Any Ideas how to do this?

Maybe you can use a kind of a custom potion effects which does this stuff depending on World time. Or it is useful to create an invisible Entity which manages everything for you.

 

What do you think is the better way? Or do you have another Idea?

Posted

I use a generified TickHandler for this which can schedule events in the future: https://github.com/diesieben07/SevenCommons/blob/master/src/main/java/de/take_weiland/mods/commons/util/Scheduler.java

 

Not sure if you want this fancyness, but it might help :P

 

Looks quite complicated to me.. And I not really understand how to use it

(neither I understand all the other code examples on your site  ;D)

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.