Everything posted by IPECTER
-
How to increase Mob Health and Max Health over 1024?
hmm... It's weird... Everything is perfect. But Mob's maxhealth doesn't go up above 1024. public X100health() { MinecraftForge.EVENT_BUS.register(this); } @SubscribeEvent public void on(FMLCommonSetupEvent e) { e.enqueueWork(() -> { replaceAttributeValue((RangedAttribute) Attributes.MAX_HEALTH, 131072); System.out.println("Hello!!!"); }); } protected static void replaceAttributeValue(RangedAttribute attribute, double maxValue) { attribute.maxValue = maxValue; } @SubscribeEvent public void onMobSpawn(LivingSpawnEvent.SpecialSpawn e) { if (e.getEntity() instanceof Mob) { Mob mob = (Mob) e.getEntity(); mob.getAttribute(Attributes.MAX_HEALTH).setBaseValue(mob.getAttribute(Attributes.MAX_HEALTH).getBaseValue() * 100); mob.setHealth(mob.getHealth() * 100); } }
-
How to increase Mob Health and Max Health over 1024?
holly.... thank you very much
-
How to increase Mob Health and Max Health over 1024?
Therefore e.enqueueWork(() -> { Attribute.MAX_HEALTH.maxValue = 10000000;1 }); !!!! Ill try it morning
-
How to increase Mob Health and Max Health over 1024?
oh thx understand!
-
How to increase Mob Health and Max Health over 1024?
What I want to know is what should be written in parentheses of equeueWork() If I say something weird, please tell me. The translator isn't perfect either.
-
How to increase Mob Health and Max Health over 1024?
..... I use JAVA since 2 years ago... but... I mean... I cant understand How to use what e.equeueWork(HERE).. hmm... I cant explain using English that my think well... or.. I might be not able to understand your comments...
-
How to increase Mob Health and Max Health over 1024?
I've made a lot of plugins, but it's almost the first mod. I don't understand well about the current work and the supplier. I feel like I'm missing something.
-
How to increase Mob Health and Max Health over 1024?
Okay, I'll try it for a few hours.
-
How to increase Mob Health and Max Health over 1024?
hmm... e.enqueueWork(() -> Attribute.MAX_HEALTH.getDefaultValue) = 1234567890 ?
-
How to increase Mob Health and Max Health over 1024?
.....
-
How to increase Mob Health and Max Health over 1024?
@SubscribeEvent public void on(FMLCommonSetupEvent e) { e.enqueueWork(() -> Attributes.MAX_HEALTH); } hmm.. it is my best
-
How to increase Mob Health and Max Health over 1024?
Can you tell me just this time? I've never seen anything like that before. supplier?
-
How to increase Mob Health and Max Health over 1024?
@SubscribeEvent public void on(FMLCommonSetupEvent e) { e.enqueueWork(Attributes.MAX_HEALTH()??????); } hmm...
-
How to increase Mob Health and Max Health over 1024?
I complete to add AT (build.gradle) then.. What should i do?
-
EntitySpawnEvent? MobSpawnEvent?
look at this
-
How to increase Mob Health and Max Health over 1024?
I dont know anything how to add/use access transformer...
-
How to increase Mob Health and Max Health over 1024?
"Have you added the access transformer?" no.
-
How to increase Mob Health and Max Health over 1024?
I'm creating a mod that set MaxHealth to MaxHealth*100 when only once mob spawned.
-
How to increase Mob Health and Max Health over 1024?
"add an attribute modifier."? addTransientModifier()? or addPermanentModifier()? else?
-
How to increase Mob Health and Max Health over 1024?
I couldn't do anything. I don't know how to set the maximum value of Attributes.MAX_HEALTH. Can you show us the code as an example? I've been looking for it for hours, but it's hard alone.
-
How to increase Mob Health and Max Health over 1024?
hmm.. too hard this is my code, but Cant make Maxhealth up 1024.... @SubscribeEvent public void onMobSpawn(EntityJoinWorldEvent e) { if (e.getEntity() instanceof Mob) { Mob mob = (Mob) e.getEntity(); mob.getAttribute(Attributes.MAX_HEALTH).setBaseValue(mob.getAttribute(Attributes.MAX_HEALTH).getBaseValue() * 100); mob.setHealth(mob.getHealth() * 100); } }
-
EntitySpawnEvent? MobSpawnEvent?
It has to be an event that runs only once for all mobs. No matter how mob spawn, Event should happen to Mob. LivingSpawnEvent.SpecialSpawn occur when only player summon Mob using spawn egg
-
How to increase Mob Health and Max Health over 1024?
Thank you for the explanation. I'll try it and ask you again if there's anything difficult.
-
How to increase Mob Health and Max Health over 1024?
hmm.... It's getting harder. How can you modify the health and maxHealth of all mobs 100 times(maxhealth * 100) using AccessTransformer? sorry for asking a lot of questions..
-
EntitySpawnEvent? MobSpawnEvent?
thx!!
IPS spam blocked by CleanTalk.