Mightydanp
-
Posts
225 -
Joined
-
Last visited
Posts posted by Mightydanp
-
-
How do i fix this so i can get back to working on my mod?
-
I have run into this same problem same exact issue here is the full build log
-
I had te delete ny intellij environment to get it to work.
-
28 minutes ago, diesieben07 said:
I set up the breakpoints like you did and they all triggered fine.
The reason nothing is generated is because you told Forge to only generate for mods with Mod ID "${mod_id}", whereas your Mod ID is "industrialtech".
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 -
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
-
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
-
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
-
29 minutes ago, diesieben07 said:
Post a Git repo of your mod.
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 -
-
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
-
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? -
also i not using data generators i just have them set up so i dont know why its not working
-
ive just tried that still nothing drops
https://pastebin.com/JAjCZsr3 -
15 minutes ago, Beethoven92 said:
If i understand this correctly, when you break your block you never get the block itself as a drop, but rather you are getting only flint, am i correct?
i am not getting anything back when I break it
-
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.jsonhere is my json https://pastebin.com/xJF8gkFp
here is my rockblock.java https://pastebin.com/sZuDfucc -
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 -
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
-
On 10/5/2020 at 9:00 PM, Mightydanp said:
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.jsonthis is what my files are sepost to look like
-
sweet i got it to find my file but i get a crash on line 51 so i am doing something wrong
[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: '127.0.0.1:12041', transport: 'socket' Process finished with exit code 1
-
everything inside src/main/resources will be loaded but everything like src/main/resources/industrialcraft wont ?
-
rebuilding runs fix the problem
my only problem atm is i have a
IndustrialTech\src\main\resources\assets\industrialtech\models\block\ore\stone_ore.jsonand 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 } } }
-
might not have updated it on github but i do have
@Mod.EventBusSubscriber(bus = Bus.MOD, modid = Ref.mod_id) public class DataGenEventHandler {
-
But its not in the same class so i just follow that so why do you keep quoting something i already am following
-
This is very irritating because its still wont pass into registerStatesAndModels nomatter what i do.
[1.16]Help with treads with other blocks in your custom model
in Modder Support
Posted · Edited by Mightydanp
i am doing something simular but i am getting a out of bounds
java.lang.ArrayIndexOutOfBoundsException: 4 at net.minecraftforge.client.model.pipeline.BakedQuadBuilder.put(BakedQuadBuilder.java:99) ~[forge-1.16.5-36.2.20_mapped_official_1.16.5-recomp.jar:?] {re:classloading} at mightydanp.industrialtech.api.client.helper.BakedModelHelper.putVertex(BakedModelHelper.java:31) ~[main/:?] {re:classloading} at mightydanp.industrialtech.api.client.helper.BakedModelHelper.createQuad(BakedModelHelper.java:80) ~[main/:?] {re:classloading} at mightydanp.industrialtech.client.rendering.models.CampFireBakedModel.getQuads(CampFireBakedModel.java:51) ~[main/:?] {re:classloading}
https://github.com/mightydanp/IndustrialTech/blob/master/src/main/java/mightydanp/industrialtech/api/client/helper/BakedModelHelper.java
https://github.com/mightydanp/IndustrialTech/blob/master/src/main/java/mightydanp/industrialtech/client/rendering/models/CampFireBakedModel.java
i cant figure out whats causing the out of bounds