Productive Bees

Productive Bees

10M Downloads

trying to make bee

MxDeath opened this issue ยท 21 comments

commented

So i'm no expert at doing any of this. I did update my graphics. Trying to add my own bee has been a real trial and error process. I feel like i'm really close to having it but I've hit a spot where I keep crashing. I get Error exitcode -1

crash-2024-06-15_17.30.46-client.txt

This is the crash report I receive, I honestly don't know what's wrong. Any help would be much appreciated

commented

Screenshot (183)

Hey i'm having one last issue, the name of my bee doesn't seem to be loading in correctly? I've double checked everything, and added "name": "Pinkie", to the .json file yet it keeps loading in like this

commented

Can you share the code you made for the bee?

commented

pinky.json
pinky_bee.json
pinky_bee.json
honeycomb_pinky.json

i hope these work, please let me know if they dont

commented

if you add "beeTexture": "productivebees:textures/entity/bee/slimy/bee", to the bee configuration, does it stop crashing?
if it stops then you must have a custom texture to use the translucent_with_center renderer

commented

okay so that was the inital issues, but i did have my own textures on standby. unfortunely when i tried to add them, the bee was invisible in game. checking the log report this is what was given

[17:59:24] [Render thread/INFO]: Registering commands with com.sk89q.worldedit.forge.ForgePlatform
[17:59:25] [Worker-Main-11/ERROR]: Couldn't parse data file productivebees:pinky from productivebees:productivebees/pinky.json
com.google.gson.JsonParseException: com.google.gson.stream.MalformedJsonException: Invalid escape sequence at line 5 column 22 path $.beeTexture
at net.minecraft.util.GsonHelper.m_13780_(GsonHelper.java:526) ~[client-1.20.1-20230612.114412-srg.jar%23214!/:?]
at net.minecraft.util.GsonHelper.m_263475_(GsonHelper.java:531) ~[client-1.20.1-20230612.114412-srg.jar%23214!/:?]
at net.minecraft.util.GsonHelper.m_13776_(GsonHelper.java:581) ~[client-1.20.1-20230612.114412-srg.jar%23214!/:?]
at net.minecraft.server.packs.resources.SimpleJsonResourceReloadListener.m_278771_(SimpleJsonResourceReloadListener.java:41) ~[client-1.20.1-20230612.114412-srg.jar%23214!/:?]
at net.minecraft.server.packs.resources.SimpleJsonResourceReloadListener.m_5944_(SimpleJsonResourceReloadListener.java:29) ~[client-1.20.1-20230612.114412-srg.jar%23214!/:?]
at cy.jdkdigital.productivebees.setup.BeeReloadListener.m_5944_(BeeReloadListener.java:39) ~[productivebees-1.20.1-12.5.3.jar%23205!/:1.20.1-12.5.3]
at cy.jdkdigital.productivebees.setup.BeeReloadListener.m_5944_(BeeReloadListener.java:23) ~[productivebees-1.20.1-12.5.3.jar%23205!/:1.20.1-12.5.3]
at net.minecraft.server.packs.resources.SimplePreparableReloadListener.m_10786_(SimplePreparableReloadListener.java:11) ~[client-1.20.1-20230612.114412-srg.jar%23214!/:?]
at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1768) ~[?:?]
at java.util.concurrent.CompletableFuture$AsyncSupply.exec(CompletableFuture.java:1760) ~[?:?]
at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:373) ~[?:?]
at java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1182) ~[?:?]
at java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1655) ~[?:?]
at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1622) ~[?:?]
at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:165) ~[?:?]
Caused by: com.google.gson.stream.MalformedJsonException: Invalid escape sequence at line 5 column 22 path $.beeTexture
at com.google.gson.stream.JsonReader.syntaxError(JsonReader.java:1657) ~[gson-2.10.jar%23107!/:?]
at com.google.gson.stream.JsonReader.readEscapeCharacter(JsonReader.java:1648) ~[gson-2.10.jar%23107!/:?]
at com.google.gson.stream.JsonReader.nextQuotedValue(JsonReader.java:1025) ~[gson-2.10.jar%23107!/:?]
at com.google.gson.stream.JsonReader.nextString(JsonReader.java:824) ~[gson-2.10.jar%23107!/:?]
at com.google.gson.internal.bind.TypeAdapters$28.readTerminal(TypeAdapters.java:747) ~[gson-2.10.jar%23107!/:?]
at com.google.gson.internal.bind.TypeAdapters$28.read(TypeAdapters.java:791) ~[gson-2.10.jar%23107!/:?]
at com.google.gson.internal.bind.TypeAdapters$28.read(TypeAdapters.java:725) ~[gson-2.10.jar%23107!/:?]
at com.google.gson.internal.bind.TypeAdapters$34$1.read(TypeAdapters.java:1007) ~[gson-2.10.jar%23107!/:?]
at net.minecraft.util.GsonHelper.m_13780_(GsonHelper.java:524) ~[client-1.20.1-20230612.114412-srg.jar%23214!/:?]
... 14 more

commented

there's no beeTexture entry in that file

commented

pinky.json

this is what i did to add the textures

commented

my bad! this is what i got
{
"primaryColor": "#ffb3c9",
"secondaryColor": "#b82b54",
"particleColor": "#ffdcc4",
"beeTexture": "C:\Users\shann\Documents\Instances\bap\saves\New World\datapacks\pb\data\productivebees\textures\entity\bee\pinky",
"flowerTag": "productivebees:flowers/swamp_flowers",
"slimy": true,
"renderer": "translucent_with_center",
"attributes": {
"temper": 0
}
}

commented

you can't put a path to your computer, you have to put the textures in a resourcepack and use a path to that

"productivebees:textures/entity/bee/pinky/bee"

commented

Apologies, i'm very new at this. Would making a resource pack be in the texture pack itself? or in the general resource packs? I tried to add them in and i thought I had it right. i'm getting closer but the bees now load in as error cubes? Thank you so much for helping and your patience

commented

resource packs are textures packs, just the new name for them
the bee file and it's recipes go into the data pack, the textures into a resource pack

commented

i have the textures in the pack, this is what i got from it. I'm really sorry

[18:33:26] [Render thread/WARN]: Failed to load texture: productivebees:textures/entity/bee/pinky/bee.png
java.io.FileNotFoundException: productivebees:textures/entity/bee/pinky/bee.png
at net.minecraft.server.packs.resources.ResourceProvider.m_215590_(ResourceProvider.java:21) ~[client-1.20.1-20230612.114412-srg.jar%23214!/:?]
at java.util.Optional.orElseThrow(Optional.java:403) ~[?:?]
at net.minecraft.server.packs.resources.ResourceProvider.m_215593_(ResourceProvider.java:21) ~[client-1.20.1-20230612.114412-srg.jar%23214!/:?]
at net.minecraft.client.renderer.texture.SimpleTexture$TextureImage.m_118155_(SimpleTexture.java:83) ~[client-1.20.1-20230612.114412-srg.jar%23214!/:?]
at net.minecraft.client.renderer.texture.SimpleTexture.m_6335_(SimpleTexture.java:58) ~[client-1.20.1-20230612.114412-srg.jar%23214!/:?]
at net.minecraft.client.renderer.texture.SimpleTexture.m_6704_(SimpleTexture.java:29) ~[client-1.20.1-20230612.114412-srg.jar%23214!/:?]
at net.minecraft.client.renderer.texture.TextureManager.m_118515_(TextureManager.java:96) ~[client-1.20.1-20230612.114412-srg.jar%23214!/:?]
at net.minecraft.client.renderer.texture.TextureManager.m_118495_(TextureManager.java:66) ~[client-1.20.1-20230612.114412-srg.jar%23214!/:?]
at net.minecraft.client.renderer.texture.TextureManager.m_118506_(TextureManager.java:119) ~[client-1.20.1-20230612.114412-srg.jar%23214!/:?]
at net.minecraft.client.renderer.RenderStateShard$TextureStateShard.m_263890_(RenderStateShard.java:243) ~[client-1.20.1-20230612.114412-srg.jar%23214!/:?]
at net.minecraft.client.renderer.RenderStateShard.m_110185_(RenderStateShard.java:37) ~[client-1.20.1-20230612.114412-srg.jar%23214!/:?]
at com.google.common.collect.ImmutableList.forEach(ImmutableList.java:422) ~[guava-31.1-jre.jar%23109!/:?]
at net.minecraft.client.renderer.RenderType$CompositeRenderType.m_110526_(RenderType.java:490) ~[client-1.20.1-20230612.114412-srg.jar%23214!/:?]
at net.minecraft.client.renderer.RenderStateShard.m_110185_(RenderStateShard.java:37) ~[client-1.20.1-20230612.114412-srg.jar%23214!/:?]
at net.minecraft.client.renderer.RenderType.m_276775_(RenderType.java:433) ~[client-1.20.1-20230612.114412-srg.jar%23214!/:?]
at net.minecraft.client.renderer.MultiBufferSource$BufferSource.m_109912_(MultiBufferSource.java:97) ~[client-1.20.1-20230612.114412-srg.jar%23214!/:?]
at net.minecraft.client.renderer.MultiBufferSource$BufferSource.m_173043_(MultiBufferSource.java:65) ~[client-1.20.1-20230612.114412-srg.jar%23214!/:?]
at net.minecraft.client.renderer.LevelRenderer.m_109599_(LevelRenderer.java:1228) ~[client-1.20.1-20230612.114412-srg.jar%23214!/:?]
at net.minecraft.client.renderer.GameRenderer.m_109089_(GameRenderer.java:1126) ~[client-1.20.1-20230612.114412-srg.jar%23214!/:?]
at net.minecraft.client.renderer.GameRenderer.m_109093_(GameRenderer.java:909) ~[client-1.20.1-20230612.114412-srg.jar%23214!/:?]
at net.minecraft.client.Minecraft.m_91383_(Minecraft.java:1146) ~[client-1.20.1-20230612.114412-srg.jar%23214!/:?]
at net.minecraft.client.Minecraft.m_91374_(Minecraft.java:718) ~[client-1.20.1-20230612.114412-srg.jar%23214!/:?]
at net.minecraft.client.main.Main.main(Main.java:218) ~[forge-47.2.0.jar:?]
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) ~[?:?]
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
at java.lang.reflect.Method.invoke(Method.java:568) ~[?:?]
at net.minecraftforge.fml.loading.targets.CommonLaunchHandler.runTarget(CommonLaunchHandler.java:111) ~[fmlloader-1.20.1-47.2.0.jar:?]
at net.minecraftforge.fml.loading.targets.CommonLaunchHandler.clientService(CommonLaunchHandler.java:99) ~[fmlloader-1.20.1-47.2.0.jar:?]
at net.minecraftforge.fml.loading.targets.CommonClientLaunchHandler.lambda$makeService$0(CommonClientLaunchHandler.java:25) ~[fmlloader-1.20.1-47.2.0.jar:?]
at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:30) ~[modlauncher-10.0.9.jar:?]
at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:53) ~[modlauncher-10.0.9.jar:?]
at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:71) ~[modlauncher-10.0.9.jar:?]
at cpw.mods.modlauncher.Launcher.run(Launcher.java:108) ~[modlauncher-10.0.9.jar:?]
at cpw.mods.modlauncher.Launcher.main(Launcher.java:78) ~[modlauncher-10.0.9.jar:?]
at cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:26) ~[modlauncher-10.0.9.jar:?]
at cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:23) ~[modlauncher-10.0.9.jar:?]
at cpw.mods.bootstraplauncher.BootstrapLauncher.main(BootstrapLauncher.java:141) ~[bootstraplauncher-1.1.2.jar:?]

commented

now you just need to move the files from bap\saves\New World\datapacks\pb\data\productivebees\textures\entity\bee\pinky into bap\resourcepacks\pb\assets\productivebees\textures\entity\bee\pinky

commented

bee
bee_angry
bee_angry_nectar
bee_nectar
pinky.json

latest.log

i forgot the pb and asset folder at first. I did add that, I reloaded everything, minecraft, the folders. I double checked that there was no capitals or spaces or anything misspelled. All my textures are pngs yet any time i try to load it in, i get error cubes? I genuinely dont know where im going wrong

commented

did you add an .mcmeta file to it? it's required for a resource or data pack

commented

is the resource pack enabled?

commented

would it be with the mod resource packs? if so then yes. If the resource pack is suppose to pop up on its own then im uncertain
Screenshot (178)

commented

it's supposed to be its own when you put it in the resourcepacks folder

commented

then its not showing up for me in game? but i have it in the resourcepacks folder

commented

that was it! I got it working now! Thank you so so much for your help, you're amazing!

commented

closing