Jump to content

Recommended Posts

Posted

Just wondering if there was any documentation to the events used in World world.playEvent(type,pos,data).

type = 2005 is the bonemeal event and 2006 is the enderdragon fireball explode thing.

 

The seven became one and the one became two.

Posted

Probably not.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Posted (edited)

It shouldn't be that hard to go through. If you're using Eclipse just go to the World class and find the source to the playEvent() method. Then just highlight the method name and right-click and select Call Hierarchy. That will show you all the places the method is called from. I just did that and there is only about 30 places, so would only take about 10 minutes to just go down the calls and see all the ints.

 

In fact for "fun" I just did it:

  • playDispenseSound 1000 (default), 1001 (fail), 1002 (projectile), 1004 (fireworks), or 1018 (fire charge) 
  • ItemEnderEye.onItemRightClick 1003
  • BlockDoor.onNeighborChanged and blockActivated and toggleDoor1005 (iron door opening), 1006 (non-iron doors opening), 1011 (iron door closing), 1012 (non-iron door closing)
  • BlookFenceGate.onNeighborChanged  and blockActivated1008 (if powered), 1014 (not powered)
  • World.extinguishFire 1009
  • ItemRecord.onItemUse and dropRecord 1010
  • AIFireBallAttack.updateTask 1015, 1016, 1018 (as the attack progresses
  • dragon.phase.PhaseStrafePlayer 1017
  • EntityAIBreakDoor 1019 (randomly about once per second, 1021 if door breaks (in Hard mode). 
  • EntityWither.updateAITasks 1022 (something to do with destroying blocks?)
  • EntityWither 1023 (explosion occurred)
  • launchWitherSkull 1024
  • EntityBat.updateAITasks 1025 (when leaves hanging position)
  • EntityZombie.onKillEntity 1026
  • EntityZombieVillager.finishConversion 1027
  • EntityDragon.onDeathUpdate 1028
  • BlockAnvil.onBroken 1029
  • ContainerRepair.onTake 1029 or 1030 depending on anvil repair result
  • BlockAnvil.onEndFalling 1031
  • EntityPlayerMP.changeDimension 1032
  • BlockChorusFlower.placeGrownFlower 1033
  • BlockChorusFlower.placeDeadFlower 1034
  • brewPotions 1035
  • BlockTrapDoor.playSound 1036 (iron door open), 1037 (iron door close), 1007 (non-iron door open), 1013 (non-iron door close)
  • ItemEnderEye 1038
  • spawnDispenseParticles 2000
  • Various methods that destroy blocks 2001
  • EntityXPBottle.onImpact 2002
  • EntityEnderEye.onUpdate 2003
  • updateSpawner 2004
  • dispenceStack also ItemDye.onItemUse 2005
  • EntityDragonFireball.onImpact  2006
  • EntityPotion.onImpact 2007 if instant effect, 2002 otherwise
  • DragonFightManager generateGateway 3000
  • DragonSpawnManager.process 3001

 

I think that should be about all of them. I did it pretty fast so you might want to double check any that you're actually planning to use.

Edited by jabelar
  • Like 1

Check out my tutorials here: http://jabelarminecraft.blogspot.com/

  • 5 years later...
Posted
On 6/15/2018 at 10:26 AM, jabelar said:

It shouldn't be that hard to go through. If you're using Eclipse just go to the World class and find the source to the playEvent() method. Then just highlight the method name and right-click and select Call Hierarchy. That will show you all the places the method is called from. I just did that and there is only about 30 places, so would only take about 10 minutes to just go down the calls and see all the ints.

 

In fact for "fun" I just did it:

  • playDispenseSound 1000 (default), 1001 (fail), 1002 (projectile), 1004 (fireworks), or 1018 (fire charge) 
  • ItemEnderEye.onItemRightClick 1003
  • BlockDoor.onNeighborChanged and blockActivated and toggleDoor1005 (iron door opening), 1006 (non-iron doors opening), 1011 (iron door closing), 1012 (non-iron door closing)
  • BlookFenceGate.onNeighborChanged  and blockActivated1008 (if powered), 1014 (not powered)
  • World.extinguishFire 1009
  • ItemRecord.onItemUse and dropRecord 1010
  • AIFireBallAttack.updateTask 1015, 1016, 1018 (as the attack progresses
  • dragon.phase.PhaseStrafePlayer 1017
  • EntityAIBreakDoor 1019 (randomly about once per second, 1021 if door breaks (in Hard mode). 
  • EntityWither.updateAITasks 1022 (something to do with destroying blocks?)
  • EntityWither 1023 (explosion occurred)
  • launchWitherSkull 1024
  • EntityBat.updateAITasks 1025 (when leaves hanging position)
  • EntityZombie.onKillEntity 1026
  • EntityZombieVillager.finishConversion 1027
  • EntityDragon.onDeathUpdate 1028
  • BlockAnvil.onBroken 1029
  • ContainerRepair.onTake 1029 or 1030 depending on anvil repair result
  • BlockAnvil.onEndFalling 1031
  • EntityPlayerMP.changeDimension 1032
  • BlockChorusFlower.placeGrownFlower 1033
  • BlockChorusFlower.placeDeadFlower 1034
  • brewPotions 1035
  • BlockTrapDoor.playSound 1036 (iron door open), 1037 (iron door close), 1007 (non-iron door open), 1013 (non-iron door close)
  • ItemEnderEye 1038
  • spawnDispenseParticles 2000
  • Various methods that destroy blocks 2001
  • EntityXPBottle.onImpact 2002
  • EntityEnderEye.onUpdate 2003
  • updateSpawner 2004
  • dispenceStack also ItemDye.onItemUse 2005
  • EntityDragonFireball.onImpact  2006
  • EntityPotion.onImpact 2007 if instant effect, 2002 otherwise
  • DragonFightManager generateGateway 3000
  • DragonSpawnManager.process 3001

 

I think that should be about all of them. I did it pretty fast so you might want to double check any that you're actually planning to use.

Thanks for sharing :)

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.