Jump to content
Search In
  • More options...
Find results that contain...
Find results in...


  • Posts

  • Joined

  • Last visited

Everything posted by Mightydanp

  1. I had te delete ny intellij environment to get it to work.
  2. uhh i changed my build.gradle back to what i had before i changed it but it still isnt working for me https://github.com/mightydanp/IndustrialTech/blob/master/build.gradle
  3. Oh ok so this is a gradle problem for me. Alright isnt the way that i reference the gradle.properties folder the right way? I dont know much about gradle or if not what is the best way to do references from gradle.properties
  4. Oh i see it was a github issue it didnt relize i changed folder names from uppercase to lowercase. I did a push with it corrected so it shouldnt fail after replaceing the folders in src/main/resources/assets/industrialtech/textures/item/material_icons with tye new github push i just did https://github.com/mightydanp/IndustrialTech/tree/master/src/main/resources/assets/industrialtech/textures/item/material_icons
  5. i updated my github with my gradle also i dont know why it says cannot find texture for you. I also updated a few things on my new push. tell me what you get on the texture that is not found
  6. sorry I didn't see this un-tell now https://github.com/mightydanp/IndustrialTech/blob/master/src/main/java/mightydanp/industrialtech/api/common/handler/DataGenEventHandler.java
  7. update--- i fixed the code like so it hits the break points in GenItemModels now but it still is not generating anything
  8. I am having a problem. I ran my runData and i got this where it didnt run anything in my GatherDataEvent [05:07:01] [main/DEBUG] [ne.mi.re.GameData/REGISTRIES]: Applying holder lookups: minecraft:worldgen/foliage_placer_type [05:07:01] [main/DEBUG] [ne.mi.re.GameData/REGISTRIES]: Holder lookups applied: minecraft:worldgen/foliage_placer_type [05:07:01] [main/DEBUG] [ne.mi.re.GameData/REGISTRIES]: Applying holder lookups: minecraft:worldgen/structure_feature [05:07:01] [main/DEBUG] [ne.mi.re.GameData/REGISTRIES]: Holder lookups applied: minecraft:worldgen/structure_feature [05:07:01] [main/DEBUG] [ne.mi.re.GameData/REGISTRIES]: Applying holder lookups: minecraft:worldgen/surface_builder [05:07:01] [main/DEBUG] [ne.mi.re.GameData/REGISTRIES]: Holder lookups applied: minecraft:worldgen/surface_builder [05:07:01] [main/DEBUG] [ne.mi.re.GameData/REGISTRIES]: Applying holder lookups: minecraft:worldgen/tree_decorator_type [05:07:01] [main/DEBUG] [ne.mi.re.GameData/REGISTRIES]: Holder lookups applied: minecraft:worldgen/tree_decorator_type Process finished with exit code 0 I then put breakpoints and runData again. the break points stopped at one of the breakpoint in the GatherDataEvent since that caught a break point i put a breakpoint in GenItemModels. It caught the first breakpoint but after i pressed resume it didnt catch the other break points
  9. Hello I have a big question on how to do something. My question is that I have a item that has a gui. The gui has 3 slots. The item is a tool that you can change the items out. When you change out the items the items save data to nbt. such as mining speed, durability, enchants, color of the layer of that item. What would be the best way to implement this? Would I have problems setting the value of the tool after changing out the part? Would there be texture issues because changed the color of the tool? if so isn't there a way to refresh the items texture? For an example of a tool I have a axe. The axe has 3 parts. The axe head, wedge, and the handle. Say the tool has a wooden handle and a wooden wedge. The pickaxe head is stone. The pickaxe head sets the color and the mining speed of the tool. Each part has its own durability of its own and gets damaged over time. When I switch out the pickaxe head with a Bronze pickaxe head it changes the color of that items layer and the mining speed and saves those values into nbt to use for later on if needed. What is the best way to go about this and what will me problems be?
  10. also i not using data generators i just have them set up so i dont know why its not working
  11. ive just tried that still nothing drops https://pastebin.com/JAjCZsr3
  12. i am not getting anything back when I break it
  13. I have my gradle set up do register generated, I have my datagen set up for blockstates and models. i currently have generated\resources\assets\industrialtech\loot_tables\blocks,rock_block.json here is my json https://pastebin.com/xJF8gkFp here is my rockblock.java https://pastebin.com/sZuDfucc
  14. what is MyCustomCapabilities and MyCustomIItemHandlerProvider i am trying to recreate this instead of making a brand new player inventory aswell in screen.blint it is now missing MatrixStack i have no idea what that is
  15. i just figured that out. i got it to generate almost all files correctly it generates a \industrialtech\models\block\ore\andesite_ore.json aswell for some reason that i dont know. What part of my could do i chance to generate a model file for andesite_ore. Also is there not a way to get models/item instead of generating everyting there generate it in models/items/ore? atm i dont know how to classify where the resource location is for a block or item
  16. this is what my files are sepost to look like
  17. sweet i got it to find my file but i get a crash on line 51 so i am doing something wrong https://github.com/mightydanp/IndustrialTech/blob/master/src/main/java/mightydanp/industrialtech/api/common/datagen/BlockStates.java#L51 [23:13:38] [main/INFO] [minecraft/DataGenerator]: Starting provider: Block States: industrialtech Exception in thread "main" [23:14:00] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException [23:14:00] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]: at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:39) [23:14:00] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]: at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:54) [23:14:00] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]: at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:72) [23:14:00] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]: at cpw.mods.modlauncher.Launcher.run(Launcher.java:81) [23:14:00] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]: at cpw.mods.modlauncher.Launcher.main(Launcher.java:65) [23:14:00] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]: at net.minecraftforge.userdev.LaunchTesting.main(LaunchTesting.java:105) [23:14:00] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1061]: Caused by: java.lang.reflect.InvocationTargetException [23:14:00] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1061]: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [23:14:00] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1061]: at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) [23:14:00] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1061]: at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [23:14:00] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1061]: at java.lang.reflect.Method.invoke(Method.java:498) [23:14:00] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1061]: at net.minecraftforge.userdev.FMLUserdevDataLaunchProvider.lambda$launchService$0(FMLUserdevDataLaunchProvider.java:51) [23:14:00] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1061]: at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:37) [23:14:00] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1061]: ... 5 more [23:14:00] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:643]: Caused by: java.lang.IllegalArgumentException: Cannot set models for a state that has already been configured: [23:14:00] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:643]: at com.google.common.base.Preconditions.checkArgument(Preconditions.java:191) [23:14:00] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:643]: at net.minecraftforge.client.model.generators.VariantBlockStateBuilder.setModels(VariantBlockStateBuilder.java:146) [23:14:00] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:643]: at net.minecraftforge.client.model.generators.VariantBlockStateBuilder$PartialBlockstate.setModels(VariantBlockStateBuilder.java:249) [23:14:00] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:643]: at net.minecraftforge.client.model.generators.BlockStateProvider.simpleBlock(BlockStateProvider.java:193) [23:14:00] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:643]: at net.minecraftforge.client.model.generators.BlockStateProvider.simpleBlock(BlockStateProvider.java:184) [23:14:00] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:643]: at mightydanp.industrialtech.api.common.datagen.BlockStates.materialHandlerHelper(BlockStates.java:51) [23:14:00] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:643]: at mightydanp.industrialtech.api.common.datagen.BlockStates.registerStatesAndModels(BlockStates.java:36) [23:14:00] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:643]: at net.minecraftforge.client.model.generators.BlockStateProvider.act(BlockStateProvider.java:108) [23:14:00] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:643]: at net.minecraft.data.DataGenerator.run(DataGenerator.java:53) [23:14:00] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:643]: at net.minecraftforge.fml.event.lifecycle.GatherDataEvent$DataGeneratorConfig.lambda$runAll$0(GatherDataEvent.java:111) [23:14:00] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:643]: at cpw.mods.modlauncher.api.LamdbaExceptionUtils.lambda$rethrowConsumer$0(LamdbaExceptionUtils.java:34) [23:14:00] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:643]: at java.util.HashMap$Values.forEach(HashMap.java:980) [23:14:00] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:643]: at net.minecraftforge.fml.event.lifecycle.GatherDataEvent$DataGeneratorConfig.runAll(GatherDataEvent.java:107) [23:14:00] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:643]: at net.minecraftforge.fml.DatagenModLoader.begin(DatagenModLoader.java:51) [23:14:00] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:643]: at net.minecraft.data.Main.main(Main.java:41) [23:14:00] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:643]: ... 11 more Disconnected from the target VM, address: '', transport: 'socket' Process finished with exit code 1
  18. everything inside src/main/resources will be loaded but everything like src/main/resources/industrialcraft wont ?
  19. rebuilding runs fix the problem my only problem atm is i have a IndustrialTech\src\main\resources\assets\industrialtech\models\block\ore\stone_ore.json and i get Caused by: java.lang.IllegalStateException: Model at industrialtech:block/ore/stone_ore does not exist i have it setup like so ModelFile ore = models().withExistingParent(oreName, modId + ":block/ore/" + stoneVariant + "_ore"); i have data { workingDirectory project.file('run') // Recommended logging data for a userdev environment property 'forge.logging.markers', 'SCAN,REGISTRIES,REGISTRYDUMP' // Recommended logging level for the console property 'forge.logging.console.level', 'debug' args '--mod', 'industrialtech', '--all', '--output', file('src/generated/resources/') mods { industrialtech { source sourceSets.main } } }
  20. might not have updated it on github but i do have @Mod.EventBusSubscriber(bus = Bus.MOD, modid = Ref.mod_id) public class DataGenEventHandler {
  21. But its not in the same class so i just follow that so why do you keep quoting something i already am following
  22. This is very irritating because its still wont pass into registerStatesAndModels nomatter what i do.
  23. so now i have for(RegistryObject<Block> blockRegistered : material.blockOre) { Block oreBlock = blockRegistered.get(); VariantBlockStateBuilder builder = getVariantBuilder(oreBlock); String modId = oreBlock.getRegistryName().toString().split(":")[0]; String oreName = oreBlock.getRegistryName().toString().split(":")[1]; String stoneVariant = oreBlock.getRegistryName().toString().split(":")[1].split("_")[0]; ModelFile ore = models().withExistingParent(oreName, "block/ore/" + stoneVariant + "_ore"); builder.forAllStates(state -> ConfiguredModel.builder().modelFile(ore).build()); simpleBlock(oreBlock , ore); simpleBlockItem(oreBlock, ore); } also i have @Mod.EventBusSubscriber(bus = Bus.MOD) because its outside the main mod class that has @Mod i put a line BlockStates class on line 29 and the breaking point hits but its not hitting inside registerStatesAndModels
  24. i have these for the block model https://github.com/mightydanp/IndustrialTech/blob/master/src/main/resources/assets/industrialtech/models/block/ore/stone_ore.json https://github.com/mightydanp/IndustrialTech/blob/master/src/main/resources/assets/industrialtech/models/block/ore/state/ore.json as-well as this for the item https://github.com/mightydanp/IndustrialTech/blob/master/src/main/resources/assets/industrialtech/models/item/stone_iron_ore.json
  25. @Mod.EventBusSubscriber(bus = Bus.MOD) public class DataGenEventHandler { @SubscribeEvent public static void gatherData(GatherDataEvent event) { DataGenerator gen = event.getGenerator(); if (event.includeClient()) { gen.addProvider(new BlockStates(gen, event.getExistingFileHelper())); } if (event.includeServer()){ } } } i have it set up like so also what in modelfile do i use use existing model i dont really need to use a parent in my blockstate
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.