Posted December 9, 20204 yr How could I make an event to for example make all parrots variant 2 or all creepers charged? because what define this conditions are private Edited December 9, 20204 yr by LeiteDesnatado
December 10, 20204 yr Use reflection, in particular, look at the `ObfuscationReflectionHelper` class, you're interested in the `setPrivateValue` method Have you ever want the new operator to return a type that you didn't ask for? Well, now you can!
December 11, 20204 yr Author On 12/10/2020 at 2:51 AM, Vinyarion said: Use reflection, in particular, look at the `ObfuscationReflectionHelper` class, you're interested in the `setPrivateValue` method Do you have an example code?
December 12, 20204 yr 21 hours ago, loordgek said: we dont give sample code Some of us do. Try this https://github.com/TheGreyGhost/MinecraftByExample/blob/master/src/main/java/minecraftbyexample/usefultools/debugging/DebugBlockVoxelShapeHighlighter.java You will need to find the srg name for the fields you are interested in. This tool can help you find it: https://mcp.thiakil.com/#/search Some useful background info here too: https://jamieswhiteshirt.github.io/resources/know-your-tools/ -TGG
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.