Everything posted by Crazy_sheep
-
CLOSED:How to get Private Value?
thats what i am trying but learning java is kinda boring
-
CLOSED:How to get Private Value?
@loordgekbut i dont know how to use the getPrivateValue can you maybe help me with that it would really help😉
-
CLOSED:How to get Private Value?
@loordgek idk where the most of the code needs to go so help
-
CLOSED:How to get Private Value?
@loordgekah yeah oh you write another thing i needed to refresh idk not really i did not under stand where it needs to go
-
CLOSED:How to get Private Value?
@Draco18si did not mean to put that part as a mean part but so you know thats the main part(and for some reason i wanted to do that.... i hate my life) sorry. and i already know about the getPrivateValue but how do i use it
-
CLOSED:How to get Private Value?
@Draco18sum... ok.. but still:how do i get a private value and plz give me good answers that i understand because i dont want this to be the second topic that failed again like the first topic
-
CLOSED:How to get Private Value?
@Draco18sbut i use ObfuscationReflectionHelper so what do i need to do with ObfuscationReflectionHelper?
-
CLOSED:How to get Private Value?
ok but how do i get the class instance and is the class name just the class name what its called(its probely the class name like this "class name here")
-
CLOSED:How to get Private Value?
how do i use it?
-
CLOSED:How to get Private Value?
i know but how do i use the privateValueCommand
-
CLOSED:How to get Private Value?
that made me laugh just think about it someone just driving a car in the forest lol but the ObfuscationReflectionHelper is without and attachments like this creeper.ObfuscationReflectionHelper because this does not work but just like this Field f = ObfuscationReflectionHelper is a command so i think all i need to know now is how to use the ObfuscationReflectionHelper command and there is a getPrivateValue command so can you just give me a basic example code on how to use ObfuscationReflectionHelper.getPrivateValue() and i am not asking for example code from that i could just copy and paste but i mean a tutorial example code
-
CLOSED:How to get Private Value?
@diesieben07 oh come on why would i make a forum and on java there are no tutorials on how to get private value or a diffrent class when i try to put the ObfuscationReflectionHelper and this is not event a command in java i think that awsner does not help at all
-
CLOSED:How to get Private Value?
when i try to put the ObfuscationReflectionHelper with Field f = creeper.getclass.ObfuscationReflectionHelper or creeper.ObfuscationReflectionHelper its not a command
-
CLOSED:How to get Private Value?
@diesieben07 ok i will try
-
CLOSED:How to get Private Value?
is there a command to get a private value? because this does not work CreeperEntity creeper = (CreeperEntity) event.getEntity(); Field f = creeper.getClass().getDeclaredField("POWERED"); //this errors and i dont know why f.setAccessible(true); so i hope you guys give me good answers EDIT: this is closed(because i am gonne stop modding minecraft and i am garbage at java) and if you still wanna post something you can but this forum is closed
-
how to make creepers charged on spawn
@DaemonUmbra ok good to know @loordgeki have a chrome plugin thats called grepper and if i type in a awnser for code it will show me a bit of example code
-
how to make creepers charged on spawn
@loordgek it was just a joke bro but where do i put the getprivatevalue and use it
-
how to make creepers charged on spawn
@loordgek but i want to learn it with forge ok and i am learning java yes
-
how to make creepers charged on spawn
i dont know where to place the code you guys say
-
how to make creepers charged on spawn
@Danebibut learning java is sooo boring and if i do it in minecraft i can play around with my code
-
how to make creepers charged on spawn
i really dont know how to use the getprivatevalue
-
how to make creepers charged on spawn
i am sorry but i still dont get how to do this because public static final DataParameter<Boolean> gives errors and i dont know how the getPrivateValue works and i really wanna end this topic because i want to get this too work in my land its been 3 days and its still not working
-
how to make creepers charged on spawn
this is getting so hard because I dont know what to do because i dont know where to place the code you guys say
-
how to make creepers charged on spawn
@loordgekok i will try to do it if it works i will but solved behind the topic and when i try to add public or private static DataParameter<Boolean> it gives a error package ultrahardcore.ultrahardcore.events; import net.minecraft.entity.Entity; import net.minecraft.entity.LivingEntity; import net.minecraft.entity.SharedMonsterAttributes; import net.minecraft.entity.monster.CreeperEntity; import net.minecraft.nbt.CompoundNBT; import net.minecraft.network.datasync.DataParameter; import net.minecraftforge.api.distmarker.Dist; import net.minecraftforge.event.entity.EntityJoinWorldEvent; import net.minecraftforge.eventbus.api.SubscribeEvent; import net.minecraftforge.fml.common.Mod; @Mod.EventBusSubscriber(value = Dist.CLIENT) public class Events { public static DataParameter<Boolean>// when i add this it errors @SubscribeEvent public void autoChargeCreeper(EntityJoinWorldEvent event) { CreeperEntity creeper = (CreeperEntity) event.getEntity(); if (event.getEntity() instanceof CreeperEntity) { } } } and where do i put field_184714_b and where is my event handler???
-
how to make creepers charged on spawn
AHHHHHHHHHHH i am becoming insane i cant get this stupid project to work just plz i want example code i really just want to end this topic
IPS spam blocked by CleanTalk.