Jump to content

JustDreaming

Members
  • Posts

    7
  • Joined

  • Last visited

Everything posted by JustDreaming

  1. To check if a player has received damage, you need to use an event. These events are named differently in different versions of the game. To understand which creature attacked the player, you need to use "instanceof" operator. For example: if(e.getLivingEntity() instanceof EnityMod) { //some code } The above code is just an example of using an operator in an event. You will have to find the event you need yourself and get the entity that attacked the player
  2. Hi. Maybe you didn't set the attributes of the mob quite correctly. Or mod's attributes are not applied
  3. Using Mixin if your gonna make something really serios, It depends on your goals. First of all in forge we have a events that can be useful for you. If you have no java skills you better stay out of modding and learn basic java knowledges. Good luck my man
  4. For example, is it possible to make it so that when you press the bone meal on the block, it changes to something else Game Version 1.12.2
  5. Event Handler is in the package "net.minecraftforge.fml.common.Mod.EventHandler", and SubscribeEvent is in the package "net.minecraftforge.fml.common.eventhandler.SubscribeEvent" Game Version is 1.12.2
  6. I can't undestand why some events caught using EventHandler and other using SubscribeEvent. What's the difference between them?
  7. I catch events using SubscribeEvent, but i've seen how someone catchs one using EventHander(Plus, In main class all FML event is catched using EventHandler). Why So? I don't speak English. The text was compiled in the Google translator
×
×
  • Create New...

Important Information

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