
Korlimann
Members-
Posts
53 -
Joined
-
Last visited
Everything posted by Korlimann
-
Hello everyone! I created a custom Sword (for anyone who knows Terraria: the Terrablade) and I want it to shoot a projectile, just like in Terraria, which also damages mobs. I've been working approx. 10 hours on this, and I can't get it to work. I've searched for tutorials, but I only found one single tutorial that was kind of useful, but it's from 2013, so kind of outdated. I got to the point where the swords does the animation that comes up whenever you shoot a fireball, but there's nothing that actually shoots out. I'm sure I just made one or many stupid errors when copying and trying to understand code (this is my first time working with entities) Since I think it's easier and I'll most likely forget some important code here is the link to my github. I'd really appreciate any input, be it a link to a tutorial, or a small explanation of how entities actually work. Thanks a lot and have a great day!
-
Hey there guys! I wanted to create a seaweed block that acts like reeds. At first, I tried extending my BlockBaseSeaweed class by BlockReed, but I'm not really sure anymore, if that will work. I overrided the canPlaceBlockAt-method to work only, if the block where the seaweed should get placed is a water-block. But I'm still not sure about some things, that might cause problems. I believe, I'll have to set the material for my seaweed to water, so that it won't get destroyed. Question is, will water "flow" through my block, or will the seaweed create an airbubble underwater? Or will this simply be an issue about the texture/model itself? Since I can't set a material when I extend by BlockReed, would it be better if I only extended by Block and would reuse all of the methods from BlockReed? Thanks!
-
Custom Flower - Texture only shows up for the item but not the block
Korlimann replied to Korlimann's topic in Modder Support
Okay, so I fixed all of the errors. Only error for now is still that the textures for the flower won't show up. Here is the log file: 2018-02-17 13:17:13,272 main WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream 2018-02-17 13:17:13,274 main WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream [13:17:13] [main/INFO] [GradleStart]: username: [email protected] [13:17:13] [main/INFO] [GradleStart]: Extra: [] [13:17:13] [main/INFO] [GradleStart]: Password found, attempting login [13:17:13] [main/INFO]: Logging in with username & password [13:17:14] [main/INFO] [GradleStart]: Login Succesful! [13:17:14] [main/INFO] [GradleStart]: Running with arguments: [--userProperties, [], --assetsDir, C:/Users/stefa/.gradle/caches/minecraft/assets, --assetIndex, 1.12, --userType, mojang, --accessToken{REDACTED}, --version, 1.12.2, --uuid, c100c5fcedb64104a4b51a3e38bc95f4, --username, Korlimann, --tweakClass, net.minecraftforge.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.tweakers.CoremodTweaker] [13:17:14] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker [13:17:14] [main/INFO] [LaunchWrapper]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker [13:17:14] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker [13:17:14] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLTweaker [13:17:14] [main/INFO] [FML]: Forge Mod Loader version 14.23.2.2611 for Minecraft 1.12.2 loading [13:17:14] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_162, running on Windows 10:amd64:10.0, installed at C:\Program Files\Java\jre1.8.0_162 [13:17:14] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation [13:17:14] [main/INFO] [FML]: Ignoring missing certificate for coremod FMLCorePlugin (net.minecraftforge.fml.relauncher.FMLCorePlugin), we are in deobf and it's a forge core plugin [13:17:14] [main/INFO] [FML]: Ignoring missing certificate for coremod FMLForgePlugin (net.minecraftforge.classloading.FMLForgePlugin), we are in deobf and it's a forge core plugin [13:17:14] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.CoremodTweaker [13:17:14] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.fml.relauncher.FMLCorePlugin [13:17:14] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin [13:17:14] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker [13:17:14] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLDeobfTweaker [13:17:14] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.AccessTransformerTweaker [13:17:14] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker [13:17:14] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker [13:17:14] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper 2018-02-17 13:17:14,362 main WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream 2018-02-17 13:17:14,547 main WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream 2018-02-17 13:17:14,550 main WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream [13:17:15] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing [13:17:15] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper [13:17:15] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLDeobfTweaker [13:17:15] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.AccessTransformerTweaker [13:17:15] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.TerminalTweaker [13:17:15] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.TerminalTweaker [13:17:15] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main} [13:17:16] [main/INFO]: Setting user: Korlimann [13:17:18] [main/WARN]: Skipping bad option: lastServer: [13:17:18] [main/INFO]: LWJGL Version: 2.9.4 [13:17:19] [main/INFO] [FML]: -- System Details -- Details: Minecraft Version: 1.12.2 Operating System: Windows 10 (amd64) version 10.0 Java Version: 1.8.0_162, Oracle Corporation Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 713867680 bytes (680 MB) / 1038876672 bytes (990 MB) up to 1038876672 bytes (990 MB) JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0 FML: Loaded coremods (and transformers): GL info: ' Vendor: 'NVIDIA Corporation' Version: '4.6.0 NVIDIA 390.65' Renderer: 'GeForce GTX 1060 6GB/PCIe/SSE2' [13:17:19] [main/INFO] [FML]: MinecraftForge v14.23.2.2611 Initialized [13:17:19] [main/INFO] [FML]: Starts to replace vanilla recipe ingredients with ore ingredients. [13:17:19] [main/INFO] [FML]: Replaced 1036 ore ingredients [13:17:19] [main/INFO] [FML]: Found 0 mods from the command line. Injecting into mod discoverer [13:17:19] [main/INFO] [FML]: Searching C:\Users\stefa\Desktop\Mods\SushiMod\run\mods for mods [13:17:20] [main/INFO] [FML]: Forge Mod Loader has identified 5 mods to load [13:17:20] [main/INFO] [FML]: Attempting connection with missing mods [minecraft, mcp, FML, forge, sm] at CLIENT [13:17:20] [main/INFO] [FML]: Attempting connection with missing mods [minecraft, mcp, FML, forge, sm] at SERVER [13:17:20] [main/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Sushi Mod [13:17:20] [main/INFO] [FML]: Processing ObjectHolder annotations [13:17:20] [main/INFO] [FML]: Found 1168 ObjectHolder annotations [13:17:20] [main/INFO] [FML]: Identifying ItemStackHolder annotations [13:17:20] [main/INFO] [FML]: Found 0 ItemStackHolder annotations [13:17:20] [main/INFO] [FML]: Configured a dormant chunk cache size of 0 [13:17:20] [Forge Version Check/INFO] [ForgeVersionCheck]: [forge] Starting version check at http://files.minecraftforge.net/maven/net/minecraftforge/forge/promotions_slim.json [13:17:20] [main/INFO] [FML]: Applying holder lookups [13:17:20] [main/INFO] [FML]: Holder lookups applied [13:17:20] [main/INFO] [FML]: Applying holder lookups [13:17:20] [main/INFO] [FML]: Holder lookups applied [13:17:20] [main/INFO] [FML]: Applying holder lookups [13:17:20] [main/INFO] [FML]: Holder lookups applied [13:17:20] [main/INFO] [FML]: Applying holder lookups [13:17:20] [main/INFO] [FML]: Holder lookups applied [13:17:20] [main/INFO] [FML]: Injecting itemstacks [13:17:20] [main/INFO] [FML]: Itemstack injection complete [13:17:21] [Forge Version Check/INFO] [ForgeVersionCheck]: [forge] Found status: UP_TO_DATE Target: null [13:17:21] [Thread-3/INFO] [FML]: Using sync timing. 200 frames of Display.update took 94530059 nanos [13:17:22] [Sound Library Loader/INFO]: Starting up SoundSystem... [13:17:22] [Thread-5/INFO]: Initializing LWJGL OpenAL [13:17:22] [Thread-5/INFO]: (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org) [13:17:22] [Thread-5/INFO]: OpenAL initialized. [13:17:23] [Sound Library Loader/INFO]: Sound engine started [13:17:25] [main/INFO] [FML]: Max texture size: 16384 [13:17:26] [main/INFO]: Created: 512x512 textures-atlas [13:17:26] [main/ERROR] [FML]: Exception loading model for variant sm:sunflower#type=dandelion for blockstate "sm:sunflower[type=dandelion]" net.minecraftforge.client.model.ModelLoaderRegistry$LoaderException: Exception loading model sm:sunflower#type=dandelion with loader VariantLoader.INSTANCE, skipping at net.minecraftforge.client.model.ModelLoaderRegistry.getModel(ModelLoaderRegistry.java:153) ~[ModelLoaderRegistry.class:?] at net.minecraftforge.client.model.ModelLoader.registerVariant(ModelLoader.java:248) ~[ModelLoader.class:?] at net.minecraft.client.renderer.block.model.ModelBakery.loadBlock(ModelBakery.java:153) ~[ModelBakery.class:?] at net.minecraftforge.client.model.ModelLoader.loadBlocks(ModelLoader.java:236) ~[ModelLoader.class:?] at net.minecraftforge.client.model.ModelLoader.setupModelRegistry(ModelLoader.java:163) ~[ModelLoader.class:?] at net.minecraft.client.renderer.block.model.ModelManager.onResourceManagerReload(ModelManager.java:28) [ModelManager.class:?] at net.minecraft.client.resources.SimpleReloadableResourceManager.registerReloadListener(SimpleReloadableResourceManager.java:121) [SimpleReloadableResourceManager.class:?] at net.minecraft.client.Minecraft.init(Minecraft.java:559) [Minecraft.class:?] at net.minecraft.client.Minecraft.run(Minecraft.java:421) [Minecraft.class:?] at net.minecraft.client.main.Main.main(Main.java:118) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_162] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_162] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_162] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_162] at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.12.jar:?] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_162] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_162] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_162] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_162] at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) [start/:?] at GradleStart.main(GradleStart.java:26) [start/:?] Caused by: net.minecraft.client.renderer.block.model.ModelBlockDefinition$MissingVariantException at net.minecraft.client.renderer.block.model.ModelBlockDefinition.getVariant(ModelBlockDefinition.java:83) ~[ModelBlockDefinition.class:?] at net.minecraftforge.client.model.ModelLoader$VariantLoader.loadModel(ModelLoader.java:1189) ~[ModelLoader$VariantLoader.class:?] at net.minecraftforge.client.model.ModelLoaderRegistry.getModel(ModelLoaderRegistry.java:149) ~[ModelLoaderRegistry.class:?] ... 21 more [13:17:27] [main/INFO] [FML]: Applying holder lookups [13:17:27] [main/INFO] [FML]: Holder lookups applied [13:17:27] [main/INFO] [FML]: Injecting itemstacks [13:17:27] [main/INFO] [FML]: Itemstack injection complete [13:17:27] [main/INFO] [FML]: Forge Mod Loader has successfully loaded 5 mods [13:17:27] [main/WARN]: Skipping bad option: lastServer: [13:17:27] [main/INFO]: Narrator library for x64 successfully loaded -
Custom Flower - Texture only shows up for the item but not the block
Korlimann replied to Korlimann's topic in Modder Support
Alright, I'll do so. Thanks for the suggestion. I will let you know if it works or not. -
Custom Flower - Texture only shows up for the item but not the block
Korlimann replied to Korlimann's topic in Modder Support
Look. I have some ITEMS, that currently don't have a texture/json, because some friends of mine are going to do these later on for me. I made my own textures/model for a flower. I want to concentrate on getting the flower to work for now. (Because for the flower, I actually have the textures) The flower has textures, but I think the blockstate variant is not right or smth like that, because the ItemBlock gets shown but the block/flower only has missing textures. Here's a screenshot of how it looks. You can see I'm holding the flower in my hands, looking at a flower I just placed down, but as you can see, it only shows missing textures. And, I even have more items that have no json/textures, but somehow, those don't throw an exception -
Custom Flower - Texture only shows up for the item but not the block
Korlimann replied to Korlimann's topic in Modder Support
Yes, I know, because I haven't created any textures or json for this items yet, so they get shown with missing textures. But that's not the problem. -
Good evening fellow devs. I've been sitting on this issue since 4 hours, and it's really frustrating because I'm sure it's probably just a really obvious error. I made a custom flower model. (I have already made a custom workbench, and for this one everything worked just fine, so I followed the steps I did for the workbench) However, the model only shows for the ItemBlock in the Inventory. When I place the block down, I get a missing texture So, here is my BlockBaseSunflower class: I created three jsons. One for the item, located in assets/[modid](in my case sm)/models/items/sunflower.json One for the block, located in assets/sm/models/blocks/sunflower.json And one for the blockstates, located in assets/sm/blockstates Here are the three json files: item: block: and blockstates: I believe that there's a problem with the blockstates, because the ItemBlock in the inventory seems to work fine, but I couldn't figure it out yet. When I start the game, I get an exception for the model, but I don't know what to do about it log: Also, somehow the block get's initialized 9 times, but the model (in the inventory) works only for one. The others just have missing textures. Any help in any form would be highly appreciated. Thanks
-
THANK YOU! I managed to get it to work. However, the texture for the crops does not get displayed. I think it's a pathing error, but I can't find the exact error. But I'll figure it out somehow. Thanks a lot anyways. :3
-
Hi! Sorry, I only had a chance to have a look at your answer now. So, I tried using your class, but I think I went wrong somewhere... This would be my "RegistryHandler", as I called it: package com.korlimann.sushimod.util.handlers; import com.korlimann.sushimod.init.ModBlocks; import com.korlimann.sushimod.init.ModItems; import com.korlimann.sushimod.util.IHasModel; import net.minecraft.block.Block; import net.minecraft.item.Item; import net.minecraftforge.client.event.ModelRegistryEvent; import net.minecraftforge.event.RegistryEvent; import net.minecraftforge.fml.common.Mod.EventBusSubscriber; import net.minecraftforge.fml.common.eventhandler.SubscribeEvent; @EventBusSubscriber public class RegistryHandler { @SubscribeEvent public static void onBlockRegister(RegistryEvent.Register<Block> event) { event.getRegistry().registerAll(ModBlocks.BLOCKS.toArray(new Block[0])); } @SubscribeEvent public static void onItemRegister(RegistryEvent.Register<Item> event) { event.getRegistry().registerAll(ModItems.ITEMS.toArray(new Item[0])); } @SubscribeEvent public static void onModelRegister(ModelRegistryEvent event) { for(Block block : ModBlocks.BLOCKS) { if(block instanceof IHasModel) { ((IHasModel)block).registerModels(); } } for(Item item : ModItems.ITEMS) { if(item instanceof IHasModel) { ((IHasModel)item).registerModels(); } } } } I changed all of my Block and Item classes, so they'll add themselves to the items and blocks list from your ObjectRegistry class. But I'm not sure if I have to do something else, because for now, nothing of the items or blocks gets shown. Do I have to create an instance of the ObjectRegistry class somewhere? I looked into my code, but I didn't find a single line, where my RegistryHandler would've been initialized. As you can see, in my ModItems and my ModBlocks classes, I had an ArrayList of the blocks and items, that then would've been initialized by my RegistryHandler. So, expect for that now, you have the lists in the ObjectRegistry class itself, I can't see any big differences between those two classes.
-
Oooh, I see. Do you know what I can do about this?
-
Whoops, I actually had like 30 more items in there but I deleted them so you'll only see the right ones, and I actually deleted the Corn_seed item. Here it is: package com.korlimann.sushimod.init; import java.util.ArrayList; import java.util.List; import com.korlimann.sushimod.items.ItemBase; import com.korlimann.sushimod.items.ItemBaseFood; import com.korlimann.sushimod.items.ItemCornSeed; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.init.Blocks; import net.minecraft.item.Item; import net.minecraft.item.ItemFood; public class ModItems { public static final List<Item> ITEMS = new ArrayList<Item>(); public static final Item CORN_SEED = new ItemCornSeed(ModBlocks.CROPCORN, Blocks.FARMLAND, "corn_seed"); public static final Item CORN = new ItemBaseFood("corn", 2, 0.3f, false); }
-
Hey there and good evening fellow devs. I created a simple "corn" crop, also seeds. When I went into the game and tried to plant the seed, the game immediately crashed. Here's the log from the error: Also, here are the classes I used and made for the crops to work: ItemCornSeed BlockCropCorn ModBlocks & ModItems to initialize everything: I think that would be all important classes, if you miss anything, please just tell me. Not only I, but also a friend of mine is having the exact same problem. I followed this tutorial on how to create crops: https://shadowfacts.net/tutorials/forge-modding-112/crops/ Thanks for all the help! Cheers and have a nice evening Korlimann
-
Thanks so much my dude. :3 I hope I'll figure this out soon. This is actually for a project for school, and out of a group of 4, I'm the only one doing the coding.
-
I see. Arrgh, why are there only such few tutorials.
-
Okay.. ..I think, all of this just confused me more than before.
-
Originally, I just wanted to show the normal workbench gui, I don't think I even want to show a custom gui. Will I still need to implement all of this?
-
So, I guess I have to change the GUI ID, corresponding to the id of the gui I want to show. But what do I have to do with the containers?
-
Thanks, I'll try and implement it.
-
I meant, I won't need any additional methods than those two, sorry. Do you have a tutorial for me on what actually needs to be in those methods?
-
So, I won't need anything else than this two methods? :3
-
Thanks, I'll try it out.
-
Can I just use this for mine? And, will I need to change my "BlockBaseCraftingTable" class too?
-
I did it like this: public boolean onBlockActivated(World worldIn, BlockPos pos, IBlockState state, EntityPlayer playerIn, EnumHand hand, EnumFacing facing, float hitX, float hitY, float hitZ) { if (worldIn.isRemote) { return true; } else { FMLNetworkHandler.openGui(playerIn, Main.instance, Reference.GUI_KITCHENBOARD, worldIn, pos.getX(), pos.getY(), pos.getZ()); playerIn.addStat(StatList.CRAFTING_TABLE_INTERACTION); return true; } } I guess, according to what you wrote, I called it from the serverside.
-
Nope. I guess I'll need this?
-
...what do you mean by "on the server side"? Just started coding mods after years again and I kinda still need to get into it again. How can I call it from the server side?