Leaderboard
Popular Content
Showing content with the highest reputation on 08/12/19 in all areas
-
Create new class which extends WorldType and call it's constructor during one event (preInitialization/initialization/..) - That will register it. Then you can override some methods like getChunkGenerator if you want to change the world gen2 points
-
I'm using the 28.0.45 mdk, the rest of my mod is working fine. I'm just looking for a way to remove vanilla recipes. The recipe is in iron_chestplate.json { "type": "minecraft:crafting_shaped", "pattern": [ "X X", "XXX", "XXX" ], "key": { "X": { "item": "minecraft:iron_ingot" } }, "result": { "item": "minecraft:iron_ingot", "count": 8 } } I have more un-recipes, but I figured I'd get just this one working first. Ideally, the output would be air, or nothing. It was working in 25.0.100 (for 1.13.2), but after updating it doesn't. (I had a custom serializer to toggle the recipes from the config file, but now a simple override doesn't seem to work.) I've tried in the following locations within src/main/resources: assets.minecraft.recipes assets.warforge.recipes data.minecraft.recipes data.warforge.recipes None of them seemed to work. In all cases, the recipe crafted a chestplate, which I'm trying to disable. While in the data.warforge.recipes folder, I tried using to command to enable the recipe in-game, but the vanilla recipe still won over. What am I missing? Is there a way to override vanilla recipes without a separate data pack to install? EDIT: I got recipe overrides to work by putting the recipes in data.[modid].recipes with the following solution of sorts: So I found something. I don't have any clue how it makes any sense, other than the "warforge" ID seems to be cursed. I did a clean install of the mdk and started testing mod IDs on the example mod after putting some recipes in the right locations. Other than "warforge" and "example mod", I tested "mhmod", "mjmod", "rmod", and "exampleforge", all in the clean install. ALL of them were able to replace the vanilla recipes EXCEPT "warforge". I want to do more testing because so far I haven't seen a pattern.1 point
-
http://pastebin.com/KV1DALGn ---- Minecraft Crash Report ---- // You should try our sister game, Minceraft! Time: 8/11/19 8:40 PM Description: Unexpected error java.lang.NoClassDefFoundError: net/minecraftforge/fml/common/gameevent/TickEvent$ClientTickEvent at java.lang.Class.getDeclaredMethods0(Native Method) ~[?:1.8.0_51] {} at java.lang.Class.privateGetDeclaredMethods(Class.java:2701) ~[?:1.8.0_51] {} at java.lang.Class.privateGetPublicMethods(Class.java:2902) ~[?:1.8.0_51] {} at java.lang.Class.getMethods(Class.java:1615) ~[?:1.8.0_51] {} at net.minecraftforge.eventbus.EventBus.registerObject(EventBus.java:86) ~[eventbus-0.10.6-service.jar:?] {} at net.minecraftforge.eventbus.EventBus.register(EventBus.java:114) ~[eventbus-0.10.6-service.jar:?] {} at com.mamiyaotaru.voxelmap.forgemod.ClientProxy.postInit(ClientProxy.java:19) ~[?:1.0] {} at com.mamiyaotaru.voxelmap.forgemod.ForgeModVoxelMap$1.run(ForgeModVoxelMap.java:68) ~[?:1.0] {} at net.minecraft.util.concurrent.ThreadTaskExecutor.func_213166_h(SourceFile:144) ~[?:?] {pl:accesstransformer:B} at net.minecraft.util.concurrent.RecursiveEventLoop.func_213166_h(SourceFile:23) ~[?:?] {} at net.minecraft.util.concurrent.ThreadTaskExecutor.func_213168_p(SourceFile:118) ~[?:?] {pl:accesstransformer:B} at net.minecraft.util.concurrent.ThreadTaskExecutor.func_213160_bf(SourceFile:103) ~[?:?] {pl:accesstransformer:B} at net.minecraft.client.Minecraft.func_195542_b(Minecraft.java:857) [?:?] {pl:accesstransformer:B,pl:runtimedistcleaner:A} at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:384) [?:?] {pl:accesstransformer:B,pl:runtimedistcleaner:A} at net.minecraft.client.main.Main.main(SourceFile:155) [?:?] {} at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_51] {} at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_51] {} at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_51] {} at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_51] {} at net.minecraftforge.fml.loading.FMLClientLaunchProvider.lambda$launchService$0(FMLClientLaunchProvider.java:56) [forge-1.14.4-28.0.45.jar:28.0] {} at net.minecraftforge.fml.loading.FMLClientLaunchProvider$$Lambda$348/332498651.call(Unknown Source) [forge-1.14.4-28.0.45.jar:28.0] {} at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:37) [modlauncher-3.2.0.jar:?] {} at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:50) [modlauncher-3.2.0.jar:?] {} at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:68) [modlauncher-3.2.0.jar:?] {} at cpw.mods.modlauncher.Launcher.run(Launcher.java:80) [modlauncher-3.2.0.jar:?] {} at cpw.mods.modlauncher.Launcher.main(Launcher.java:65) [modlauncher-3.2.0.jar:?] {} Caused by: java.lang.ClassNotFoundException: net.minecraftforge.fml.common.gameevent.TickEvent$ClientTickEvent at java.lang.ClassLoader.findClass(ClassLoader.java:530) ~[?:1.8.0_51] {} at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[?:1.8.0_51] {} at cpw.mods.modlauncher.TransformingClassLoader.loadClass(TransformingClassLoader.java:102) ~[modlauncher-3.2.0.jar:?] {} at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[?:1.8.0_51] {} ... 26 more A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- System Details -- Details: Minecraft Version: 1.14.4 Minecraft Version ID: 1.14.4 Operating System: Windows 10 (amd64) version 10.0 Java Version: 1.8.0_51, Oracle Corporation Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 3157040592 bytes (3010 MB) / 4294967296 bytes (4096 MB) up to 4294967296 bytes (4096 MB) CPUs: 4 JVM Flags: 9 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xss1M -Xmx4G -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32M ModLauncher: 3.2.0+60+b86c1d4 ModLauncher launch target: fmlclient ModLauncher naming: srg ModLauncher services: /eventbus-0.10.6-service.jar eventbus PLUGINSERVICE /forge-1.14.4-28.0.45.jar object_holder_definalize PLUGINSERVICE /forge-1.14.4-28.0.45.jar runtime_enum_extender PLUGINSERVICE /accesstransformers-0.16.0-shadowed.jar accesstransformer PLUGINSERVICE /forge-1.14.4-28.0.45.jar capability_inject_definalize PLUGINSERVICE /forge-1.14.4-28.0.45.jar runtimedistcleaner PLUGINSERVICE /forge-1.14.4-28.0.45.jar fml TRANSFORMATIONSERVICE FML: 28.0 Forge: net.minecraftforge:28.0.45 FML Language Providers: [email protected] minecraft@1 Mod List: [1.14.4]+SecurityCraft+v1.8.12.1.jar SecurityCraft {[email protected] ENQUEUE_IMC} AppleSkin-mc1.14.4-forge-1.0.12.jar AppleSkin {[email protected] ENQUEUE_IMC} AttributeFix-1.14.4-3.0.2.jar AttributeFix {[email protected] ENQUEUE_IMC} BiomesOPlenty-1.14.4-9.0.0.229-universal.jar Biomes O' Plenty {[email protected] ENQUEUE_IMC} caelus-FORGE-1.14.4-0.11.jar Caelus API {[email protected] ENQUEUE_IMC} colytra-FORGE-1.14.4-2.0-beta4.jar Colytra {[email protected] ENQUEUE_IMC} DoggyTalents-1.14.4-1.15.1.1-universal.jar Doggy Talents {[email protected] ENQUEUE_IMC} forgemod_VoxelMap-1.9.13_for_1.14.4.jar VoxelMap {[email protected] ENQUEUE_IMC} Hwyla-forge-1.10.5-B66_1.14.4.jar Waila {waila@version ENQUEUE_IMC} jei-1.14.4-6.0.0.10.jar Just Enough Items {[email protected] ENQUEUE_IMC} MineMenu-1.14.4-1.8.2.jar MineMenu {[email protected] ENQUEUE_IMC} Neat+1.5-19.jar Neat {[email protected] ENQUEUE_IMC} overloadedarmorbar-3.0.0.jar Example Mod {[email protected] ENQUEUE_IMC} practicaltools-1.14.4-1.4.jar Practical Tools {[email protected] ENQUEUE_IMC} PyramidPlunder-1.14.4-1.0.jar Pyramid Plunder {[email protected] ENQUEUE_IMC} SilentGear-1.14.4-1.3.5+54.jar Silent Gear {[email protected]+54 ENQUEUE_IMC} SilentGems-1.14.4-3.3.3+60.jar Silent's Gems 3 {[email protected]+60 ENQUEUE_IMC} SilentLib-1.14.4-4.3.1+39.jar Silent Lib {[email protected]+39 ENQUEUE_IMC} forge-1.14.4-28.0.45-universal.jar Forge {[email protected] ENQUEUE_IMC} forge-1.14.4-28.0.45-client.jar Minecraft {[email protected] ENQUEUE_IMC} Launched Version: 1.14.4-forge-28.0.45 LWJGL: 3.2.2 build 10 OpenGL: AMD Radeon(TM) R4 Graphics GL version 4.6.13547 Compatibility Profile Context 25.20.15031.1000, ATI Technologies Inc. GL Caps: Using GL 1.3 multitexturing. Using GL 1.3 texture combiners. Using framebuffer objects because OpenGL 3.0 is supported and separate blending is supported. Shaders are available because OpenGL 2.1 is supported. VBOs are available because OpenGL 1.5 is supported. Using VBOs: Yes Is Modded: Definitely; Client brand changed to 'forge' Type: Client (map_client.txt) Resource Packs: Current Language: English (US) CPU: 4x AMD A6-7310 APU with AMD Radeon R4 Graphics1 point
-
It was made public again in this PR (1.14.4-28.0.37). Update Forge.1 point
-
It looks like spawning conditions are handled by EntitySpawnPlacementRegistry in 1.14. You need to call EntitySpawnPlacementRegistry.register with your EntityType and a predicate that determines the conditions under which it can spawn. Zombies and other hostile mobs use MonsterEntity::func_223325_c for the predicate, this checks the difficulty and the light level.1 point
-
During 1.13 the entire Forge toolset got rewritten and updated. There's a ton that changed just with the loader so updating is likely to be a bit slow.1 point
-
1) You do not need a class called BlockBase or ItemBase because "base" block and item classes already exist. They're called Block and Item. A "base" class that saves you from having to write a few lines of code over and over again is an anti-pattern. What happens if you want to write your own Fence block? Well, now you can't inherit from BlockBase because BlockBase isn't a Fence and you'd have to copy all of that code. But you can't inherit from FenceBlock because now you have to write all your BlockBase code again. 2) You do not need IHasModel. Two very very simple reasons. One: all items need models, no exceptions. Blocks that need item models also (gasp!) have items and all items need models. Two, the information that you expose in the methods specified by IHasModel are already public. So you perform a completely pointless instanceof and class cast to call a method that does nothing useful. See this method: https://github.com/LotteWiltshy/lottycraft-mod/blob/master/LottyCraft/src/main/java/com/lotty/lottycraft/util/handler/RegistryHandler.java#L21-L30 Watch this: @SubscribeEvent public static void onModelRegister(ModelRegistryEvent event) { for(Item item : ModItems.ITEMS) { Main.proxy.registerItemRenderer(item, 0, "inventory"); } } HOLY SHIT BALLS BABY JESUS, IT FUCKING WORKS Except, for you know, the ModelRegistryEvent is SideOnly(CLIENT) so you can't actually have this here.... Oh, also: https://github.com/LotteWiltshy/lottycraft-mod/blob/master/LottyCraft/src/main/java/com/lotty/lottycraft/init/ModItems.java#L13-L14 Problematic Code #141 point
-
1 point
-
Sleep is good. Send a screenshot of your file explorer in eclipse.1 point
-
So it seems it isn't finding your model files. Is your resources folder setup as a source folder in your IDE.1 point
-
That is an intentional texture choice designed to stand out as THIS IS WRONG, FIX IT so that things that are broken don't go into production. Magenta/black checkerboard is a pretty standard missing texture texture these days, dating back to Counter Strike: Source. Anyway, you're going to need to include more of your code, namely where you register your item models. Post a working github repo as the best way to provide us with all of the necessary code and resources.1 point
-
I disagree with others in this thread. One should not use any kinds of wrapers around GIT while they don't even understand it. I find the command-line version to be easier to understand as it gives you more feedback instead of obscuring the actual process of using git behind a pretty GUI. I know there is a steep learning curve, but the most basic git commands one needs are not that hard. Anyway, here is a tutorial.1 point