Everything posted by Animefan8888
-
[SOLVED] [1.12.2] Some item textures doesn't show
pink_sword.json That is incorrect. item/pinkguy_block.json That needs to be block. Pay attention to your spelling also check your console for errors. Whenever these is a texture/model problem there is always an error in the console.
-
[1.12.2] Adding Properties to Blocks that dont have them
This is true. A Chunk capability or World capability.
-
[1.12.2] [Solved] Adding/Changing Block properties in world.
Well now you know that BlockStates are singletons.
-
[1.12.2] [Solved] Adding/Changing Block properties in world.
It makes every blockstate value at startup. 2,000,000,000 is way too many. That's 4,000,000,000 block states for blocks that dont have other properties. Imagine redstone. Also this wont work in 1.14 so you'd be better off with a chunk capability that stores an integer for every block position.
-
[1.12.2] [Solved] Adding/Changing Block properties in world.
When you apply this and the boolean value do you have any idea how many IBlockState values are created?
-
[SOLVED] [1.14.4] Syncing player capabilities to client
Because you are creating a new CompoundNBT and loading your data from there instead of using the INBT instance you are provided. Cast it to a CompoundNBT.
-
Change Recipes with config
You'll need to have a custom IRecipeSerializer(1.14) make sure to register it via the forge registry system.
-
.
Do not interact with OpenGL directly like that. Don't use GL11 use GLStateManager. Also please use the Tesselator.
-
[SOLVED][1.14.4] Persist Player attributes on respawn
What would it be used for then if not making data persist across death, and what event would you use for making data persist across death because there is no way to use PlayerRespawnEvent to do so.
-
[1.14.4] Modifying Vanilla Content
You need to make the data persist through player death. This can be done using the PlayerEvent.Clone(I think is the name, I know Clone is a part of it).
-
[1.12.1 - 1.12.2] An already working method suddenly stop working out of nowhere
You're making it a new array every time that method is called therefore it is never the "previous" inventory. It is always an "empty" inventory. You only need to initialize it once. You also need to make sure that none of the values are null, but instead ItemStack.EMPTY.
-
[1.12.1 - 1.12.2] An already working method suddenly stop working out of nowhere
It's meant to represent the player's inventory right? Then you should initialize it to have the same size as the inventory. If his mod worked at all then he must have done it at some point.
-
[1.12.1 - 1.12.2] An already working method suddenly stop working out of nowhere
For the love of god no...go back to using an array. You need to initialize your array. If you don't know how to do that please look it up. It's very basic Java and many other languages.
-
[1.12.2]Why my Texture not Loading?
Please make this lowercase and post the console output there must be an error in it.
-
[1.14.4] Unable to set Y motion
Here is what you should do instead. Set the multiplier to 0. Check if the world is on the server (isRemote is false). Then modify the velocity/motion. Then do living.velocityChanged = true.
-
(SOLVED) [1.14.4] Block Ticking and Properties
setBlockState(state.with(integerProp, state.get() + 1)) // then setBlockState(state.with(booleanProp, false)) // is not the same as setBlockState(state.with(integerProp, state.get() + 1).with(booleanProp, false) Does that make sense?
-
(SOLVED) [1.14.4] Block Ticking and Properties
state.with(state.get(...)+1)
-
[1.12.1 - 1.12.2] An already working method suddenly stop working out of nowhere
No. I need to see the current state of your code.
-
[1.12.1 - 1.12.2] An already working method suddenly stop working out of nowhere
Post your code.
-
Algorithm for changing textures based on position
I believe that is wrong...cant you just have two models per color/whatever(16). And then an extra one that's empty. Then an extra one that is empty to apply when it is false. Which comes to 16x2+1=33 which is a lot, but you can just parent the glass pane model and change the texture.
-
[1.12.1 - 1.12.2] An already working method suddenly stop working out of nowhere
No...The problem is that it is null you never give them any value. You need to give them a value. They dont automatically have a size/length.
-
[1.12.1 - 1.12.2] An already working method suddenly stop working out of nowhere
Also this will always most of the time be true. Use ItemStack#areItemStacksEqual or similar method name.
-
[1.12.1 - 1.12.2] An already working method suddenly stop working out of nowhere
Do you ever give your previous or now fields a value or do you assume that they automatically have the size you want?
-
[1.12.1 - 1.12.2] An already working method suddenly stop working out of nowhere
Hmm it crashed...why did it crash? If only it told us...
-
[1.14.4] Modifying Vanilla Content
It would be easier to just store a boolean called hasSpawned.
IPS spam blocked by CleanTalk.