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 4:56 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.

Expand  

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



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • This is the Forge forums. Fabric is not supported here. Please read the FAQ before posting
    • This is the Forge forums, Neo is not supported here
    • So after a long break of minecraft I've decided to play but i got this crash when i would start up a world "The game crashed: exception in server tick loopError: net.minecraft.ResourceLocationException: Non [a-z0-9/._-] character in path of location: minecraft:gui/custom/curios/talent_slot - Copie" i moved all texture packs in case that was causing it but it wasn't that   https://pastebin.com/wjKtdMbU
    • 🔻 SERVER IP: 90.146.113.53 Watch the Server-Trailer now!     ArenaSMP is a brand new minecraft survival server combining the vanilla survival experience with the following exciting enhancements: In the PVE Arena, combat skeletons whom will when defeated by the player reward them with money which can be spent to purchase ranks with cool permissions such as disguising as a mob, setting multiple homes, accessing the enderchest by command and many more! To enhance your gameplay there are few tough named skeletons with a minor percent chance to drop highly enchanted tools when defeated! But that isn't all, theres a whole world dedicated to bring you the most exciting minecraft experience you've ever had. The treasurehunt world, a place made of massive scary abandoned mineshafts and underground ruins, is populated by very though skeletons and zombies guarding the most powerful treasures including armor and weapons with unique enchantments that will change the way you progress in survival forever! Some secret places hiding the most powerful treasures are difficult to find, only those who look behind every path and corner where nobody else would look might get the chance becomming an undefeatable GOD. The Enderdragon is yet alive, will you be the one to hunt it down first? Will you become the next GOD in arenasmp? Join now! As a bonus, the first 5 players joining will instantly recive a free rankup! What does ArenaSMP offer exactly? • Vanilla like Survival experience, Nether and End World • Hub with portals to various locations • PVE Arena • Treasurehunt World with many secrets • Powerful Hidden Gear • Ranks to be purchased with ingame-money • Landprotection for all players • Players with any minecraft version can join • Shields are disabled, we use the 1.8 combatsystem including sword blocking • Change your skin with the /skins command • Creepers don't destroy blocks and Phantoms are disabled • Defeated skeletons reward the player with ingame-money • Anticheat enabled • Survival World will never reset • Automatic Daily Server Backups Watch the Server-Trailer now! https://www.youtube.com/watch?v=xl5GfTizasI 🔻 SERVER IP: 90.146.113.53
  • Topics

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.