Everything posted by TheRPGAdventurer
-
Github uploaded all in my repo and making it slow after i deleted .git folder to fix an issue when the power on my PC was cut
Hey another issue, my mods wont appear, its creative tab its mod options, nothing. it wont even appear on packages part on eclipse as if it werent your workspace
-
Github uploaded all in my repo and making it slow after i deleted .git folder to fix an issue when the power on my PC was cut
cloning my repository that contains another .git folder, my src is in a good place
-
Github uploaded all in my repo and making it slow after i deleted .git folder to fix an issue when the power on my PC was cut
so i encountered an issue with github when my computer killed itself due to brownout and i lost progress, so when i uploaded it it makes an issue i fixed it by deleting .git so when i reupload it worked but it was slow, because in the .git that i deleted is supposed to have settings that tells what to upload and what not how it should be: https://github.com/TheRPGAdventurer/dragonmounts2-1.12.2 my messed up branch: https://github.com/TheRPGAdventurer/dragonmounts2-1.12.2/tree/1.5.9
-
Do tile entities need a ItemBlock and a .json file to have its texture be shown in the inventory?
Im assuming this hack is used so you dont have to use a .json block model?
-
Optional Mod Support
you also need to add the mod into your libraries for access: i have slow internet to put it in build.gradle dependencies so waht i do is make a folder called libs, same folder as src gradle and run put the mod in it run the command gradlew setupdecompworkspace now its in your libraries like minecrafts source code and forge
-
Do tile entities need a ItemBlock and a .json file to have its texture be shown in the inventory?
i have a tile entity that looks like a shulker, its texture works when placed to the ground, but they appear purple and black(somethings missing) in the inventory, plus when you break them they use these white particles that looks like white enchantment letters not what youd expect because my tile entity is ender pearl green. so do these tile entities .json in assets file like regular blocks? if so what do i put i there to make it use the block texture, most blocks i made have no itemblocks in it. It is based on the shulker code btw. even uses the same model from shulkers with animations. ItemBlock: https://pastebin.com/yT6PtYh7 block: https://pastebin.com/UPKzfzDQ tileentity: https://pastebin.com/c9bq9zFE
-
Who is flowerchild? whats the "disagreement with forge" that forced him to make his mod only 1.5.2
hey there, i heard news about a very long time about flowerchild, the one who told me about this doesnt know coding and i think i have to go ask the forge gods about his, i might pick something up with this, my friennd told me "this happened years ago but basically he disagreed with the forge devs about something that we do not know the cause of and he deliberately dropped support for forge and he doesn't believe minecraft should be played any way but the one he deems fit and thus made it so his mod better then wolves can't be played with other mods". my friend is no programmer yet she played minecraft on the old days, im nothing but a new coder who played only at 1.7.10. I am interested with the story and i might pick something up from him.
-
Accidentally opened my Pixelmon world on vanilla
what in the world is launcher profiles?
-
What makes mojang a "not the best in their class" kind of programmers
ghost in the code.... ok that why we have data fixers for fixing items ids for later worlds right?
-
Nametags given on my entities keep disapearing
@Override public ITextComponent getDisplayName() { // return custom name if set String s = this.getCustomNameTag(); if (s != null && !s.isEmpty()) { TextComponentString textcomponentstring = new TextComponentString(s); return textcomponentstring; } // return default breed name otherwise String entName = EntityList.getEntityString(this); String breedName = getBreed().getSkin().toLowerCase(); ITextComponent name = new TextComponentTranslation("entity." + entName + "." + breedName + ".name"); return name; } i was once using the getname() method but that was deprecated so likely the cause of disappearing nametags. Now i replaced it with getDisplayNAme, but it also happens.
-
how to give an item as soon a he joins when the player is offline
where would i find such examples?
-
how to give an item as soon a he joins when the player is offline
ok what method should i call to get the player online boolean, wdym saving it on a file how do i do that? aslo what kind of file? Is there an example?
-
how to give an item as soon a he joins when the player is offline
Hi everyone, i want a simple question, WHen a dragon dies there are some changes, now instead of dropping their dragon essence (used to revive them) and get burned to dust, how about theyre given in the players inventory with: boolean flag = entityplayer.inventory.addItemStackToInventory(amulet); But what if the player is offline when the dragon dies? what method should i put when the player goes online and gives the item to it? does it happen on already when joining while calling this method, or i need to call an event to check whether the player is there and just give it to him/her.
-
I need some help figuring out this java.lang.ArrayIndexOutOfBoundsException: 4
or /** * Returns the value of the first parameter, clamped to be within the lower and upper limits given by the second and * third parameters. */ public static int clamp(int num, int min, int max) { if (num <= min) { return min; } else { return num >= max ? max : num; } }
-
I need some help figuring out this java.lang.ArrayIndexOutOfBoundsException: 4
so i have to put ( return MathHelper.clamp(ticksSinceCreation, 0, 5 * TICKS_PER_STAGE); )
-
I need some help figuring out this java.lang.ArrayIndexOutOfBoundsException: 4
I googled this before and it say that happens if you are calling an array in a restricted EnumDragonLifeStage: https://pastebin.com/RhcFuqw9 Crash java.lang.ArrayIndexOutOfBoundsException: 4 at com.TheRPGAdventurer.ROTD.server.entity.helper.EnumDragonLifeStage.fromTickCount(EnumDragonLifeStage.java:31) at com.TheRPGAdventurer.ROTD.server.entity.helper.DragonLifeStageHelper.getLifeStage(DragonLifeStageHelper.java:128) at com.TheRPGAdventurer.ROTD.server.entity.helper.DragonLifeStageHelper.updateLifeStage(DragonLifeStageHelper.java:278) at com.TheRPGAdventurer.ROTD.server.entity.helper.DragonLifeStageHelper.onLivingUpdate(DragonLifeStageHelper.java:267) at java.util.HashMap$Values.forEach(HashMap.java:972) at com.TheRPGAdventurer.ROTD.server.entity.EntityTameableDragon.func_70636_d(EntityTameableDragon.java:923) at net.minecraft.entity.EntityLivingBase.func_70071_h_(EntityLivingBase.java:2179) at net.minecraft.entity.EntityLiving.func_70071_h_(EntityLiving.java:295) at com.TheRPGAdventurer.ROTD.server.entity.EntityTameableDragon.func_70071_h_(EntityTameableDragon.java:847) at net.minecraft.world.World.func_72866_a(World.java:1993) at net.minecraft.world.WorldServer.func_72866_a(WorldServer.java:832) at net.minecraft.world.World.func_72870_g(World.java:1955) at net.minecraft.world.World.func_72939_s(World.java:1759) at net.minecraft.world.WorldServer.func_72939_s(WorldServer.java:613) at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:767) at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:668) at net.minecraft.server.integrated.IntegratedServer.func_71217_p(IntegratedServer.java:185) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:526) at java.lang.Thread.run(Thread.java:745) To be fair i didnt write thi code thi wa written years ago im here to revive it.
-
My IDE and forge setup is being slow
Ok im back still the ame iue, i deleted my run folder maybe it was the extra mod causing this
-
My IDE and forge setup is being slow
wdym command line in my modding directory like gradlew setupdecompworkspace idea?
-
My IDE and forge setup is being slow
jvisualvm is that a plugin? do I have to pay like Jrebel?
-
My IDE and forge setup is being slow
[11:00:35] [Server thread/INFO] [minecraft/MinecraftServer]: Preparing spawn area: 0% [11:00:39] [Server thread/INFO] [minecraft/MinecraftServer]: Preparing spawn area: 0% [11:00:41] [Server thread/INFO] [minecraft/MinecraftServer]: Preparing spawn area: 0% [11:00:42] [Server thread/INFO] [minecraft/MinecraftServer]: Preparing spawn area: 0% [11:00:44] [Server thread/INFO] [minecraft/MinecraftServer]: Preparing spawn area: 1% [11:00:53] [Server thread/INFO] [minecraft/MinecraftServer]: Preparing spawn area: 1% [11:00:54] [Server thread/INFO] [minecraft/MinecraftServer]: Preparing spawn area: 1% [11:00:56] [Server thread/INFO] [minecraft/MinecraftServer]: Preparing spawn area: 1% [11:00:57] [Server thread/INFO] [minecraft/MinecraftServer]: Preparing spawn area: 2% [11:00:58] [Server thread/INFO] [minecraft/MinecraftServer]: Preparing spawn area: 2% [11:01:01] [Server thread/INFO] [minecraft/MinecraftServer]: Preparing spawn area: 2% [11:01:02] [Server thread/INFO] [minecraft/MinecraftServer]: Preparing spawn area: 2% [11:01:03] [Server thread/INFO] [minecraft/MinecraftServer]: Preparing spawn area: 2% [11:01:04] [Server thread/INFO] [minecraft/MinecraftServer]: Preparing spawn area: 3% [11:01:05] [Server thread/INFO] [minecraft/MinecraftServer]: Preparing spawn area: 3% [11:01:07] [Server thread/INFO] [minecraft/MinecraftServer]: Preparing spawn area: 3% [11:01:22] [Server thread/INFO] [minecraft/MinecraftServer]: Preparing spawn area: 3% [11:01:24] [Server thread/INFO] [minecraft/MinecraftServer]: Preparing spawn area: 3% [11:01:25] [Server thread/INFO] [minecraft/MinecraftServer]: Preparing spawn area: 4% [11:01:27] [Server thread/INFO] [minecraft/MinecraftServer]: Preparing spawn area: 4% [11:01:28] [Server thread/INFO] [minecraft/MinecraftServer]: Preparing spawn area: 4% [11:01:30] [Server thread/INFO] [minecraft/MinecraftServer]: Preparing spawn area: 4% [11:01:31] [Server thread/INFO] [minecraft/MinecraftServer]: Preparing spawn area: 4% [11:01:33] [Server thread/INFO] [minecraft/MinecraftServer]: Preparing spawn area: 4% [11:01:35] [Server thread/INFO] [minecraft/MinecraftServer]: Preparing spawn area: 5% [11:01:36] [Server thread/INFO] [minecraft/MinecraftServer]: Preparing spawn area: 5% [11:01:38] [Server thread/INFO] [minecraft/MinecraftServer]: Preparing spawn area: 5% [11:01:39] [Server thread/INFO] [minecraft/MinecraftServer]: Preparing spawn area: 6% [11:01:41] [Server thread/INFO] [minecraft/MinecraftServer]: Preparing spawn area: 6% [11:01:42] [Server thread/WARN] [minecraft/WorldServer]: Keeping entity iceandfire:deathworm that already exists with UUID d2fa1f0f-b06a-4d71-b49b-4fa73fe7d388 [11:01:43] [Server thread/INFO] [minecraft/MinecraftServer]: Preparing spawn area: 6% [11:01:44] [Server thread/INFO] [minecraft/MinecraftServer]: Preparing spawn area: 6% [11:01:45] [Server thread/INFO] [minecraft/MinecraftServer]: Preparing spawn area: 7% [11:01:46] [Server thread/INFO] [minecraft/MinecraftServer]: Preparing spawn area: 7% [11:01:48] [Server thread/WARN] [minecraft/WorldServer]: Keeping entity minecraft:sheep that already exists with UUID e57d808c-9af5-481e-a7ff-b9302a6c561c [11:01:48] [Server thread/INFO] [minecraft/MinecraftServer]: Preparing spawn area: 7% [11:01:49] [Server thread/INFO] [minecraft/MinecraftServer]: Preparing spawn area: 7% [11:01:51] [Server thread/INFO] [minecraft/MinecraftServer]: Preparing spawn area: 7% [11:01:52] [Server thread/INFO] [minecraft/MinecraftServer]: Preparing spawn area: 8% [11:01:54] [Server thread/INFO] [minecraft/MinecraftServer]: Preparing spawn area: 8% [11:01:55] [Server thread/INFO] [minecraft/MinecraftServer]: Preparing spawn area: 8% [11:01:56] [Server thread/INFO] [minecraft/MinecraftServer]: Preparing spawn area: 8% [11:01:58] [Server thread/INFO] [minecraft/MinecraftServer]: Preparing spawn area: 8% [11:02:00] [Server thread/INFO] [minecraft/MinecraftServer]: Preparing spawn area: 9% [11:02:01] [Server thread/INFO] [minecraft/MinecraftServer]: Preparing spawn area: 9% [11:02:03] [Server thread/INFO] [minecraft/MinecraftServer]: Preparing spawn area: 9% [11:02:05] [Server thread/WARN] [minecraft/WorldServer]: Keeping entity minecraft:sheep that already exists with UUID 8c00374f-ebe5-4b61-932f-d6b7a7160943 [11:02:05] [Server thread/INFO] [minecraft/MinecraftServer]: Preparing spawn area: 10% [11:02:06] [Server thread/INFO] [minecraft/MinecraftServer]: Preparing spawn area: 10% [11:02:08] [Server thread/INFO] [minecraft/MinecraftServer]: Preparing spawn area: 10% [11:02:10] [Server thread/WARN] [minecraft/WorldServer]: Keeping entity minecraft:sheep that already exists with UUID 1a2f8f11-f3aa-446e-b786-4330339d2629 [11:02:10] [Server thread/INFO] [minecraft/MinecraftServer]: Preparing spawn area: 10% [11:02:12] [Server thread/INFO] [minecraft/MinecraftServer]: Preparing spawn area: 11% [11:02:14] [Server thread/INFO] [minecraft/MinecraftServer]: Preparing spawn area: 11% [11:02:16] [Server thread/INFO] [minecraft/MinecraftServer]: Preparing spawn area: 11% [11:02:17] [Server thread/INFO] [minecraft/MinecraftServer]: Preparing spawn area: 11% [11:02:18] [Server thread/INFO] [minecraft/MinecraftServer]: Preparing spawn area: 11% [11:02:20] [Server thread/INFO] [minecraft/MinecraftServer]: Preparing spawn area: 11% [11:02:21] [Server thread/INFO] [minecraft/MinecraftServer]: Preparing spawn area: 12% [11:02:22] [Server thread/INFO] [minecraft/MinecraftServer]: Preparing spawn area: 12% [11:02:24] [Server thread/INFO] [minecraft/MinecraftServer]: Preparing spawn area: 12% [11:02:26] [Server thread/INFO] [minecraft/MinecraftServer]: Preparing spawn area: 12% [11:02:27] [Server thread/INFO] [minecraft/MinecraftServer]: Preparing spawn area: 13% [11:02:29] [Server thread/INFO] [minecraft/MinecraftServer]: Preparing spawn area: 13% [11:02:30] [Server thread/INFO] [minecraft/MinecraftServer]: Preparing spawn area: 13% [11:02:33] [Server thread/INFO] [minecraft/MinecraftServer]: Preparing spawn area: 13% [11:02:34] [Server thread/INFO] [minecraft/MinecraftServer]: Preparing spawn area: 14% [11:02:35] [Server thread/INFO] [minecraft/MinecraftServer]: Preparing spawn area: 14% [11:02:37] [Server thread/INFO] [minecraft/MinecraftServer]: Preparing spawn area: 14% [11:02:38] [Server thread/INFO] [minecraft/MinecraftServer]: Preparing spawn area: 14% [11:02:39] [Server thread/INFO] [minecraft/MinecraftServer]: Preparing spawn area: 14% [11:02:41] [Server thread/INFO] [minecraft/MinecraftServer]: Preparing spawn area: 15% [11:02:43] [Server thread/INFO] [minecraft/MinecraftServer]: Preparing spawn area: 15% [11:02:44] [Server thread/INFO] [minecraft/MinecraftServer]: Preparing spawn area: 15% [11:02:46] [Server thread/INFO] [minecraft/MinecraftServer]: Preparing spawn area: 16% [11:02:48] [Server thread/INFO] [minecraft/MinecraftServer]: Preparing spawn area: 16% [11:02:49] [Server thread/INFO] [minecraft/MinecraftServer]: Preparing spawn area: 16% [11:02:51] [Server thread/INFO] [minecraft/MinecraftServer]: Preparing spawn area: 16% [11:02:52] [Server thread/INFO] [minecraft/MinecraftServer]: Preparing spawn area: 17% [11:02:54] [Server thread/INFO] [minecraft/MinecraftServer]: Preparing spawn area: 17% [11:02:55] [Server thread/INFO] [minecraft/MinecraftServer]: Preparing spawn area: 17% [11:02:57] [Server thread/INFO] [minecraft/MinecraftServer]: Preparing spawn area: 18% [11:02:59] [Server thread/INFO] [minecraft/MinecraftServer]: Preparing spawn area: 18% [11:03:00] [Server thread/INFO] [minecraft/MinecraftServer]: Preparing spawn area: 18% [11:03:01] [Server thread/INFO] [minecraft/MinecraftServer]: Preparing spawn area: 18% [11:03:03] [Server thread/INFO] [minecraft/MinecraftServer]: Preparing spawn area: 19% [11:03:04] [Server thread/INFO] [minecraft/MinecraftServer]: Preparing spawn area: 19% [11:03:06] [Server thread/INFO] [minecraft/MinecraftServer]: Preparing spawn area: 19% [11:03:08] [Server thread/INFO] [minecraft/MinecraftServer]: Preparing spawn area: 20% [11:03:09] [Server thread/INFO] [minecraft/MinecraftServer]: Preparing spawn area: 20% [11:03:10] [Server thread/INFO] [minecraft/MinecraftServer]: Preparing spawn area: 20% [11:03:12] [Server thread/INFO] [minecraft/MinecraftServer]: Preparing spawn area: 20% [11:03:13] [Server thread/INFO] [minecraft/MinecraftServer]: Preparing spawn area: 20% [11:03:14] [Server thread/INFO] [minecraft/MinecraftServer]: Preparing spawn area: 20% [11:03:16] [Server thread/INFO] [minecraft/MinecraftServer]: Preparing spawn area: 21% [11:03:18] [Server thread/INFO] [minecraft/MinecraftServer]: Preparing spawn area: 21% [11:03:19] [Server thread/INFO] [minecraft/MinecraftServer]: Preparing spawn area: 21% [11:03:21] [Server thread/INFO] [minecraft/MinecraftServer]: Preparing spawn area: 21% [11:03:23] [Server thread/INFO] [minecraft/MinecraftServer]: Preparing spawn area: 21% Thi is normal, i think its caused by me editing the gradle.properties and uing les RAM org.gradle.jvmargs=-Xmx3G tp org.gradle.jvmargs=-Xmx2G. It is not caued by Forge hook event right?
-
(SOLVED)GUI button texture unable to be seen properly on GUI due to brightness
ok ok i fixed it: heres the solution /** * Draws this button to the screen. */ @Override public void drawButton(Minecraft mc, int mouseX, int mouseY, float partialTicks) { if (visible) { if (dragon.allowedOtherPlayers()) { mc.getTextureManager().bindTexture(lockOpen); } else if (!dragon.allowedOtherPlayers()) { mc.getTextureManager().bindTexture(lockLocked); } else if(!enabled) { mc.getTextureManager().bindTexture(lockDisabled); } GlStateManager.color(1.0F, 1.0F, 1.0F, 1.0F); this.hovered = mouseX >= this.x && mouseY >= this.y && mouseX < this.x + this.width && mouseY < this.y + this.height; GlStateManager.tryBlendFuncSeparate(GlStateManager.SourceFactor.SRC_ALPHA, GlStateManager.DestFactor.ONE_MINUS_SRC_ALPHA, GlStateManager.SourceFactor.ONE, GlStateManager.DestFactor.ZERO); GlStateManager.blendFunc(GlStateManager.SourceFactor.SRC_ALPHA, GlStateManager.DestFactor.ONE_MINUS_SRC_ALPHA); drawModalRectWithCustomSizedTexture(x, y, 0.0F, 0.0F, 16, 16, 16, 16); } } } Just call these 2 : GlStateManager.tryBlendFuncSeparate(GlStateManager.SourceFactor.SRC_ALPHA, GlStateManager.DestFactor.ONE_MINUS_SRC_ALPHA, GlStateManager.SourceFactor.ONE, GlStateManager.DestFactor.ZERO); GlStateManager.blendFunc(GlStateManager.SourceFactor.SRC_ALPHA, GlStateManager.DestFactor.ONE_MINUS_SRC_ALPHA); } }
-
When a player diconnects and its riding entity like a horse disappears too. How do I do this
o i found a bug when i diconnec the dragon doent disconnect too so when i play again i spawn not riding the dragon cauing for my fall. multiplayer servers use this method so that their hore doent get sstolen. How do i fix this? is this on canPassengerteer method?
-
(SOLVED)GUI button texture unable to be seen properly on GUI due to brightness
The textures cant be een for ome reason they appear to be affected by lighting how do i fix? GuiDragon: https://pastebin.com/az2eyAX7
-
What is the method for making mobs dont pass through blocks
mine pass through blocks, maybe ebcause its size and width variables are abnormal. Gonna make a custom one
-
How to reduce lag on dragon flight
IPS spam blocked by CleanTalk.