Everything posted by Draco18s
-
[1.11.2] Get attack delay from items [Solved]
Just because you're done with it does not mean the topic needs to be locked. Look at the rest of this forum, how many locked topics do you see?
-
Breaking Doors and Avoiding water[1.10.2]
And explain what you mean by "doesn't work."
-
[1.11.2] [Solved] saplingGrowTreeEvent triggers
Nothing about that says it is fired during world generation it says it is fired on the TERRAIN_GEN_BUS.
-
Breaking Doors and Avoiding water[1.10.2]
There's an existent AI task for that too.
-
[1.10.2] My Tools does not repair when used in anvil
Thread: You: [no code] lars: post your code jeffry: you need to do X you: "here's my code!" me: did you read this? (Quoting X.)
-
[SOLVED] [1.10.2] Blockstate change not rendering
And sync the data to the client, of course.
-
[Solved][1.11] Remove drop from the leaves
There also shouldn't be empty stacks in the drops array.
-
[Solved][1.11] Facing and meta
No, what you need to do is extract the 2 bits of metadata. EnumFacing.getHorizontal(meta&3)
-
[1.10.2] My Tools does not repair when used in anvil
*cough, did you read this, cough*
-
[Solved][1.11] Facing and meta
return this.getDefaultState().withProperty(FACING, EnumFacing.getHorizontal(meta)) This line won't work if meta > 4 (which BARREL and SPIGOT make it be)
-
Json model to big, how do i fix it?
Basically, you'll collide from some directions and not others and general wonkiness. The only, the only, direction it is safe to extend a collision box outside the 1x1x1 cube is +Y and even then only an extra half-block.
-
Json model to big, how do i fix it?
If your block has a collision bounds greater than 1x1x1 you're in trouble there too: it won't work either. Getting fences to work properly was a problem Mojang took several versions to get right.
-
[1.11.2] MultiBlock Structure
It is a little messy, and facings can be mitigated. You can convert a facing (EnumWest) into x and z offsets. "Forward" gets translated to facing.offsetX() + facing.offsetZ() because a facing will only ever have one of those values as non-zero. For right, you use facing.rotate(UP).offsetX() + facing.rotate(UP).offsetZ() (you can store the rotated facings as their own variables as well).
-
[1.11.2] Prevent mobs from passing/seeing through a block
The functionailiy will continue to exist as Minecraft evolves, but it is possible that the method does get removed and placed somewhere else. It will depend on how Mojang continues to work with the IBlockState format.
-
[1.11.2] Prevent mobs from passing/seeing through a block
Basically not really. The method is marked deprecated which means do not call this method. You should still override it to get the desired behavior.
-
[1.11.2] MultiBlock Structure
Well, with a well-defined structure I wouldn't use getAllInBox. I'd go "this is the core, so at x+1 I should find BlockY, at x+2 I should find... And do a big query that way.
-
[1.11.2] Animating a block model
FastTESR is still slower than IBakedModel, but it's more performant than a regular TESR
-
[1.11] Register items models with metadata
ModelLoader.setCustomModelResourceLocation(item, metadata, modelResourceLocation); Hmm...
-
[1.11.2] Animating a block model
For this you should use a FastTESR. There is an animation API in JSON, but it's limited.
-
[1.10.2] FastTESR/IBakedModel Setup
Why do you need a TESR (fast or otherwise) to render a block? Use the JSON model system.
-
just a question
Maybe you should ask the mod developer. We here don't even know what mod you're using because you conveniently left that out, must less know anything about it.
-
MC 1.11.2 Custom armor and tools
public/private change wasn't necessary, it was that the local-scope declaration overrode the parent scope declaration.
-
MC 1.11.2 Custom armor and tools
repair.isItemEqual(new ItemStack(RepairItem)) can be simplified torepair.getItem() == RepairItem Except that RepairItem is always null because you did this: Item RepairItem = repairitem; That variable is local and discarded as soon as the constructor finishes and theprivate Item RepairItem;declared is left undefined.
-
1.7.10 problem with ligthing and rotation of slopes
1.7.10 is no longer supported here.
-
[Forge 1.10.2] How to make new line in the language file.
There are a lot of things I don't know. I didn't start programming on Java so I generally take what I do know and make it work, it isn't until later that someone says, "hey, there's an easier way."
IPS spam blocked by CleanTalk.