-
Help with checking if the player has been attacked?
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
-
Unable to summon entity
Hi. Maybe you didn't set the attributes of the mob quite correctly. Or mod's attributes are not applied
-
JustDreaming changed their profile photo
- [1.20.1] How do I edit vanilla items properties?
-
-
How to add additional features to an item from the game
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
-
What's the difference between EventHandler and SubscribeEvent?
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
-
What's the difference between EventHandler and SubscribeEvent?
I can't undestand why some events caught using EventHandler and other using SubscribeEvent. What's the difference between them?
-
What's the difference between EventHandler and SubscribeEvent?
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
IPS spam blocked by CleanTalk.