Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Crazy_sheep

Members
  • Joined

  • Last visited

Everything posted by Crazy_sheep

  1. thats what i am trying but learning java is kinda boring
  2. @loordgekbut i dont know how to use the getPrivateValue can you maybe help me with that it would really help😉
  3. @loordgek idk where the most of the code needs to go so help
  4. @loordgekah yeah oh you write another thing i needed to refresh idk not really i did not under stand where it needs to go
  5. @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
  6. @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
  7. @Draco18sbut i use ObfuscationReflectionHelper so what do i need to do with ObfuscationReflectionHelper?
  8. 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")
  9. i know but how do i use the privateValueCommand
  10. 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
  11. @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
  12. when i try to put the ObfuscationReflectionHelper with Field f = creeper.getclass.ObfuscationReflectionHelper or creeper.ObfuscationReflectionHelper its not a command
  13. @diesieben07 ok i will try
  14. 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
  15. @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
  16. @loordgek it was just a joke bro but where do i put the getprivatevalue and use it
  17. @loordgek but i want to learn it with forge ok and i am learning java yes
  18. i dont know where to place the code you guys say
  19. @Danebibut learning java is sooo boring and if i do it in minecraft i can play around with my code
  20. i really dont know how to use the getprivatevalue
  21. 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
  22. this is getting so hard because I dont know what to do because i dont know where to place the code you guys say
  23. @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???
  24. 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

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.