-
Posts
642 -
Joined
-
Last visited
Everything posted by TheRPGAdventurer
-
(1.12) Issues with Llibrary not downloading
TheRPGAdventurer replied to TheRPGAdventurer's topic in Modder Support
If it wasn't working the llibrary owner adviced me to use 1.7.7 -
So I tried to install Llibrary 1.7.7 for 1.12 adding the dependencies (code below) on my build.gradle on dependencies and I get this error on the problems section in eclipse: Description Resource Path Location Type Project 'MDKExample' is missing required library: 'C:\Users\*****\Desktop\Coding\1.12\ROTD\unresolved dependency - net.ilexiconn llibrary 1.7.7-1.12' MDKExample Build path Build Path Problem repositories { mavenCentral() maven { url = "https://maven.mcmoddev.com" } maven { url = "http://dvs1.progwml6.com/files/maven" } } dependencies { compile "net.ilexiconn:llibrary:1.7.7-1.12:dev" } Also I am not seeing classes as imports from the Llibrary files Like AbstractMessage or AdvancedModelRenderer exists as if it wasn't downloaded. I also get errors like Could not resolve dependency net.ilexiconn llibrary 1.7.7-1.12 whenever I rerun gradlew setupdecompworkspace eclipse on the command prompt Also the url:"https://maven.mcmoddev.com" cannot be accessed through browser unlike other working libraries Do I need to do something manually while installing Llibrary? It's thread on curseforge said that All I have to do is add the code above on my build.gradle to be integrated on my mod I have: jdk1.8.0_161 and jre1.8.0_161 installed my full build.gradle: https://pastebin.com/QMxUX38j
-
EntityPlayer#isAirBorne always as false?
TheRPGAdventurer replied to Insane96MCP's topic in Modder Support
Interesting. -
EntityPlayer#isAirBorne always as false?
TheRPGAdventurer replied to Insane96MCP's topic in Modder Support
So what you are saying that Mojang doesn't give these names in the original source code so forge kinda give it names so we could use them to make our coding easier? Why do they obfuscate tho? To portect it's code from script kiddies who will just copy paste them and build their own pirated versions of minecraft? -
EntityPlayer#isAirBorne always as false?
TheRPGAdventurer replied to Insane96MCP's topic in Modder Support
Why does minecraft have a lot of misleading method names btw? -
So I tried installing llibrary in my MDK and added this snippet at the build.gradlew but it appears I am missing Lli repositories { maven { url "https://maven.mcmoddev.com/" } } dependencies { compile "net.ilexiconn:llibrary:1.7.7-1.11.2:dev" } I didnt have this issue before but when I open eclipse i get a red exclamation mark (!) on MDKExample and get this error Description Resource Path Location Type Project 'MDKExample' is missing required library: 'C:\Users\win7\Desktop\Coding\1.12\ROTD\unresolved dependency - net.ilexiconn llibrary 1.7.7-1.11.2' MDKExample Build path Build Path Problem Does Llibrary automatically adds it's library when I add the snippet at the build file and run gradlew setupdecompworkspace or I have to do it manually?
-
When the classis put in the keybind_array HashMap how do I remove it? /** * Create an Interceptor based on an existing binding. * The initial interception mode is OFF. * If existingKeyBinding is already a KeyBindingInterceptor, a reinitialised copy will be created but no further effect. * @param existingKeyBinding - the binding that will be intercepted. */ public KeyBindingInterceptor(KeyBinding existingKeyBinding) { super(existingKeyBinding.getKeyDescription(), existingKeyBinding.getKeyCode(), existingKeyBinding.getKeyCategory()); try { // the base constructor automatically adds the class to the keybindArray and hash, which we don't want, so undo it HashMap reflectkeybindArray = (HashMap) keybindArrayField.get(this); reflectkeybindArray.remove(this); reflectkeybindArray.remove(keyDescriptionField, this); // List reflectkeybindArray = (List) keybindArrayField.get(this); // reflectkeybindArray.remove(this); pressedField.setBoolean(this, false); pressTimeField.setInt(this, 0); // this.pressed = false; // this.pressTime = 0; } catch (Exception e) { throw Throwables.propagate(e); } this.interceptionActive = false; this.interceptedPressTime = 0; if (existingKeyBinding instanceof KeyBindingInterceptor) { interceptedKeyBinding = ((KeyBindingInterceptor)existingKeyBinding).getOriginalKeyBinding(); } else { interceptedKeyBinding = existingKeyBinding; } KeyBinding.resetKeyBindingArrayAndHash(); KeyBinding.updateKeyBindState(); } in List it was easy because they just used List#add() but they used put in 1.12 and put has 2 params? would we use the remove method that has 2 params? 1.8: public KeyBinding(String description, int keyCode, String category) { this.keyDescription = description; this.keyCode = keyCode; this.keyCodeDefault = keyCode; this.keyCategory = category; keybindArray.add(this); hash.addKey(keyCode, this); keybindSet.add(category); } 1.12 public KeyBinding(String description, int keyCode, String category) { this.keyDescription = description; this.keyCode = keyCode; this.keyCodeDefault = keyCode; this.keyCategory = category; KEYBIND_ARRAY.put(description, this); HASH.addKey(keyCode, this); KEYBIND_SET.add(category); }
-
I have revived a mod from 1.8 due to requests. It has reflections in it which i'm currently new, https://pastebin.com/TjJmQr2r I am currently having this one below in the console: private static final Field keybindArrayField = ReflectionHelper.findField(KeyBinding.class, "keybindArray", "field_74516_a"); I also noticed that keyBindArray are all capital letters in 1.12 while small letters in 1.8 and I also noticed that it is not just a list anymore but a hashMap some sort. I also think it has something to do with these: field_74516_a.
-
I'm trying to make a mob heal on ender crystals. I found about setBeamtarget(BlockPos pos) but in older versions where the dragon can still get beamed by an ender crystal like in 1.8, setbeamtarget() doesn't exist. Is there another method where mojang uses to target the ender dragon? or the structure Ender Towers are different from EnderCrystals
-
How does the findNearestStructure function work?
TheRPGAdventurer replied to Calous's topic in Modder Support
Is this what the command /locate use to find nearest structures? -
1.12 How do I make a dragon breath particle || entity?
TheRPGAdventurer replied to TheRPGAdventurer's topic in Modder Support
Funny, I did. -
1.12 How do I make a dragon breath particle || entity?
TheRPGAdventurer replied to TheRPGAdventurer's topic in Modder Support
Ohhh, so there are loads of possibilities on programming that even experienced has something they dont know of, I figured it out via looking at 1.9 lingering effects, i kinda figured out how the hitbox works. -
1.12 How do I make a dragon breath particle || entity?
TheRPGAdventurer replied to TheRPGAdventurer's topic in Modder Support
I don't know, confusions, I tried to replicate an old mod that has a firebreathing mod yet EntityFX is now Particle and Particle is no longer an entity. -
In 1.9-- you use getTicksSincelastAttack but things changed and I don't know how anymore. // TODO: find better attack animation method int ticksSinceLastAttack = dragon.getLastAttackedEntityTime(); boolean jawFlag = (ticksSinceLastAttack >= 0 && ticksSinceLastAttack < JAW_OPENING_TIME_FOR_ATTACK); jawTimer.add(jawFlag ? 0.2f : -0.6f); jawTimer.set(0.0F); When I use the code above it just open closes the mouth of the dragon even when not attacking.
-
1.12 How do I make my entity or item breathe fire?
TheRPGAdventurer posted a topic in Modder Support
It's been long now since DM made their dragons breathe fire, how do other mods breathe fire, how do other mods make their flamethrower or hydra from Twilight Forest make their mob breathe fire? In entities it's clear that you should make an AI for it. -
How do I make 32 X 32 texture like faithful
TheRPGAdventurer replied to TheRPGAdventurer's topic in Modder Support
how do I upscale in Photoshop? kinda new to it, maybe in Gimp?