Jump to content

Recommended Posts

Posted

Considering it has it's texture in the inventory, most likely your item model is correct, and it is instead a problem with your blockstate.json file. Can you post your blockstate, block model, and item model .json?

Follow these rules when talking to me, and we'll get along fine.

1).I know Java fairly well. I don't know as much about modding. They are not the same, don't compare them.

2). I consider myself to always be learning. I make mistakes, you make mistakes. Who doesn't?

3). Insult me, and I will leave the thread. I have a real life, I don't have time to throw petty insults in a Minecraft Modding forum.

 

ModMCdl - Co-Founder and Director of Design for Artemis Game Studios

Posted

Also post your latest log file.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Posted
  On 5/5/2020 at 5:31 PM, ModMCdl said:

Considering it has it's texture in the inventory, most likely your item model is correct, and it is instead a problem with your blockstate.json file. Can you post your blockstate, block model, and item model .json?

Expand  

blockstate: { "variants": { "": { "model": "test:block/plastic_block" } } }

block model: { "parent": "block/cube_all", "textures": { "all": "test:blocks/plastic_block" } }

Item: { "parent": "test:block/plastic_block" }

Posted (edited)
  On 5/5/2020 at 5:44 PM, LinuxMinecrafter234 said:

blockstate: { "variants": { "": { "model": "test:block/plastic_block" } } }

block model: { "parent": "block/cube_all", "textures": { "all": "test:blocks/plastic_block" } }

Item: { "parent": "test:block/plastic_block" }

Expand  

Although this is incredibly hard to read, (in the future please make use of code blocks/spacing), your .json files look valid. Is everything named correctly and in the correct location? 

 

Also this:

  On 5/5/2020 at 5:32 PM, Draco18s said:

Also post your latest log file.

Expand  
Edited by ModMCdl

Follow these rules when talking to me, and we'll get along fine.

1).I know Java fairly well. I don't know as much about modding. They are not the same, don't compare them.

2). I consider myself to always be learning. I make mistakes, you make mistakes. Who doesn't?

3). Insult me, and I will leave the thread. I have a real life, I don't have time to throw petty insults in a Minecraft Modding forum.

 

ModMCdl - Co-Founder and Director of Design for Artemis Game Studios

Posted
  On 5/5/2020 at 6:40 PM, ModMCdl said:

Although this is incredibly hard to read, (in the future please make use of code blocks/spacing), your .json files look valid. Is everything named correctly and in the correct location? 

 

Also this:

Expand  

sorry. Yes. I made sure the naming was correct. Also, I am launching minecraft from Intellij. Is there a latest.log?

Posted (edited)
  On 5/5/2020 at 7:25 PM, LinuxMinecrafter234 said:

[05May2020 10:44:08.298] [Server-Worker-3/WARN] [net.minecraft.client.renderer.model.ModelBakery/]: Exception loading blockstate definition: test:blockstates/plastic_block.json: java.io.FileNotFoundException: test:blockstates/plastic_block.json

 

[05May2020 10:44:08.299] [Server-Worker-3/WARN] [net.minecraft.client.renderer.model.ModelBakery/]: Exception loading blockstate definition: 'test:blockstates/plastic_block.json' missing model for variant: 'test:plastic_block#'

Expand  

A). Forge cannot find your blockstate file. It is either not named "plastic_block.json" or is not in the blockstates folder. Thus, it cannot find your model file either.

 

B). This was incredibly hard to read. Again, please use codeblocks or https://pastebin.com to post large blocks of log output/code like this. No one can read through that easily, and we won't be able to effectively help you.

 

Edited by ModMCdl

Follow these rules when talking to me, and we'll get along fine.

1).I know Java fairly well. I don't know as much about modding. They are not the same, don't compare them.

2). I consider myself to always be learning. I make mistakes, you make mistakes. Who doesn't?

3). Insult me, and I will leave the thread. I have a real life, I don't have time to throw petty insults in a Minecraft Modding forum.

 

ModMCdl - Co-Founder and Director of Design for Artemis Game Studios

Posted
  On 5/5/2020 at 7:31 PM, ModMCdl said:

A). Forge cannot find your blockstate file. It is either not named "plastic_block.json" or is not in the blockstates folder. Thus, it cannot find your model file either.

 

B). This was incredibly hard to read. Again, please use codeblocks or https://pastebin.com to post large blocks of log output/code like this. No one can read through that easily, and we won't be able to effectively help you.

 

Expand  

ok. I edited it to a pastebin shortly after posting. anyways, here is a screenshot of my directories.

directories.png

Posted
  On 5/5/2020 at 7:36 PM, LinuxMinecrafter234 said:

ok. I edited it to a pastebin shortly after posting. anyways, here is a screenshot of my directories.

Expand  

Your folder should be set up as resources\assets\modid\blockstates etc.  Not what you have there.

Follow these rules when talking to me, and we'll get along fine.

1).I know Java fairly well. I don't know as much about modding. They are not the same, don't compare them.

2). I consider myself to always be learning. I make mistakes, you make mistakes. Who doesn't?

3). Insult me, and I will leave the thread. I have a real life, I don't have time to throw petty insults in a Minecraft Modding forum.

 

ModMCdl - Co-Founder and Director of Design for Artemis Game Studios

Posted (edited)

You're missing your modID directory.

image.png.40dae4417f754a27d50a2db636e6dbb2.png

Edited by Draco18s

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Posted (edited)
  On 5/5/2020 at 7:42 PM, LinuxMinecrafter234 said:

I have added an item and it worked fine. If it's something like that, wouldn't that effect that to?

Expand  

Just because "it works fine" does not mean it is correct. We're pointing out what is causing the problem you are having now, and will continue to have.

 

resources\assets\test\blockstates etc. is where everything needs to be for forge to find it correctly.

Edited by ModMCdl

Follow these rules when talking to me, and we'll get along fine.

1).I know Java fairly well. I don't know as much about modding. They are not the same, don't compare them.

2). I consider myself to always be learning. I make mistakes, you make mistakes. Who doesn't?

3). Insult me, and I will leave the thread. I have a real life, I don't have time to throw petty insults in a Minecraft Modding forum.

 

ModMCdl - Co-Founder and Director of Design for Artemis Game Studios

Posted (edited)
  On 5/5/2020 at 7:46 PM, LinuxMinecrafter234 said:

 

Expand  

Your blockstate folder is not inside that test directory.

image.png.f5c3a137ae0f2317ecb7c8790c428d5a.png

Edited by ModMCdl

Follow these rules when talking to me, and we'll get along fine.

1).I know Java fairly well. I don't know as much about modding. They are not the same, don't compare them.

2). I consider myself to always be learning. I make mistakes, you make mistakes. Who doesn't?

3). Insult me, and I will leave the thread. I have a real life, I don't have time to throw petty insults in a Minecraft Modding forum.

 

ModMCdl - Co-Founder and Director of Design for Artemis Game Studios

Posted

Post new logs.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Posted
  Quote

[05May2020 14:50:33.312] [Server-Worker-4/WARN] [net.minecraft.client.renderer.model.ModelBakery/]: Exception loading blockstate definition: test:blockstates/plastic_block.json: java.io.FileNotFoundException: test:blockstates/plastic_block.json

Expand  

Your blockstate file is still in the wrong place or incorrectly named.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • Hello all. I'm currently grappling with the updateShape method in a custom class extending Block.  My code currently looks like this: The conditionals in CheckState are there to switch blockstate properties, which is working fine, as it functions correctly every time in getStateForPlacement.  The problem I'm running into is that when I update a state, the blocks seem to call CheckState with the position of the block which was changed updated last.  If I build a wall I can see the same change propagate across. My question thus is this: is updateShape sending its return to the neighbouring block?  Is each block not independently executing the updateShape method, thus inserting its own current position?  The first statement appears to be true, and the second false (each block is not independently executing the method). I have tried to fix this by saving the block's own position to a variable myPos at inception, and then feeding this in as CheckState(myPos) but this causes a worse outcome, where all blocks take the update of the first modified block, rather than just their neighbour.  This raises more questions than it answers, obviously: how is a different instance's variable propagating here?  I also tried changing it so that CheckState did not take a BlockPos, but had myPos built into the body - same problem. I have previously looked at neighbourUpdate and onNeighbourUpdate, but could not find a way to get this to work at all.  One post on here about updatePostPlacement and other methods has proven itself long superceded.  All other sources on the net seem to be out of date. Many thanks in advance for any help you might offer me, it's been several days now of trying to get this work and several weeks of generally trying to get round this roadblock.  - Sandermall
    • sorry, I might be stupid, but how do I open it? because the only options I have are too X out, copy it, which doesn't work and send crash report, which doesn't show it to me, also, sorry for taking so long.
    • Can you reproduce this with version 55.0.21? A whole lot of plant placement issues were just fixed in this PR.
    • Necro'ing that thread to ask if you found a solution ? I'm encountering the same crash on loading the world. I created the world in Creative to test my MP, went into survival to test combat, died, crashed on respawn and since then crash on loading the world. Deactivating Oculus isn't fixing it either, and I don't have Optifine (Twilight forest is incompatible)
  • Topics

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.