Everything posted by Draco18s
-
Custom Crop Crashes w/ Unknown Error Upon Planting.
You can't register them at the exact same time: one will always goes first. Stop passing references to constructors and instead alter the class files to point to your items/blocks lists.
-
Entities not updating rotation (not rendering it at least)
MoveEntity is for moving by an amount, not to a location.
-
[1.10.2] [UNSOLVED] Block EnumFacing crash
You should try using Step Into rather than Step Over
-
[1.8.9] Generating Block Texture On Runtime
Use a TextureAtlasSprite and override it's load method and make sure that it gets added to the sprite sheet (subscribe to TextureStitchEvent). Do note that by overriding load you'll end up skipping LOTS of vanilla debug behavior regarding missing/corrupt textures and the game will either crash (in vanilla code), or not behave properly, and you'll be on your own to debug. Here's a TextureAtlasSprite class I wrote once that combines two different .png files during startup. https://github.com/Draco18s/HarderStuff/blob/master/src/main/java/com/draco18s/hardlib/client/TextureAtlasDynamic.java
-
-
Well...you're passing the size of the array as the slot index. Of course that's going to be out of bounds.
-
[1.10.2] 9x9 Crafting table dupe
You're going to have to do some debugging yourself and at least narrow it down to a specific method. We aren't going to download your whole project and load it into Eclipse and do that knowing only the observed behavior.
-
Creating an item with eclipse: Not working
- [1.10.2][SOLVED] Custom mobsound would`t work
Post a screenshot of the path for me?- [1.8.9] TESR's collision box and bounding box
Look at the bed, door, and other two-high vanilla blocks.- [1.8.9] TESR's collision box and bounding box
By using a second block.- [SOLVED] Dynamic blocks models and complex underlying block states
The camo block (the router?) needs to not tell Minecraft that it is a full, opaque, cube.- [1.10 SOLVED] Trying to cleanly implement Colored Items
Gimp handles hex values as well. You can copy and paste to that field.- [1.10 SOLVED] Trying to cleanly implement Colored Items
Readability. And the decimal color is just the base 10 representation of the same value.- [1.10 SOLVED] Trying to cleanly implement Colored Items
Colors in decompiled minecraft are in decimal. 171,36,36 would be 11215908. However, you should express your colors in hex. Which would be 0xAB2424.- Gui buttons and drawing in the foreground
How about making your own button class? https://github.com/Draco18s/ReasonableRealism/blob/master/src/main/java/com/draco18s/ores/client/gui/GuiContainerOreCart.java#L82-L114- [1.8.9] Throwable Entity ... (all entitys get the same model?)
It's spelled "mod" in lower case and without quotes (the quotes in this post are a legitimate use of the punctuation mark). It is not an acronym. Minecraft mod. CustomNPCs mod. One Piece anime.- [1.8.9] Throwable Entity ... (all entitys get the same model?)
Is your mod a mod or is it a MOD or only sort of a "MOD" but not really? (Protip: quotes around things mean either speech or saying "it's not really this thing." See: Air Quotes).- TileEntity rendering with json
Er...yes. Somewhere along the way I got extended state and actual state mushed together in my head. Whoops!- TileEntity rendering with json
Here's the only work I've done with extended states. https://github.com/Draco18s/ReasonableRealism/blob/master/src/main/java/com/draco18s/ores/block/BlockSluice.java#L80 Mind, all that is for calculating water height (but it's treated like any other unlisted property). But it doesn't have a json file associated (the model is runtime). But the principles should be similar.- TileEntity rendering with json
Yes. You would just be encoding those values in the block's extended state (which is used pretty much only for rendering). That said, with 4 blocks and 4 horizontal directions, there's no need for a TE at all: 4x4 = 16, which is the maximum amount of data storable in metadata.- [Solved][1.10.2] Can't get blockstates file to work
That depends, what does the console say when you start the game?- [Solved][1.10.2] Blockstates crashing
There's also no reason not to use .getDefaultState() in the onBlockPlaced method: the itemblock shouldn't ever have metadata associated with it. Also, you allow any facing when the block is placed, and even save that value into metadata. But when reloading the world you enforce the facing to be either UP or DOWN (any other direction gets set to DOWN).- [Solved][1.10.2] TextureAtlasSprite for custom particle coming back null
The ResourceLocation class adds the /texture and .png for you.- [Solved][1.10.2] Blockstates crashing
You didn't declare your block state properties. @Override protected BlockStateContainer createBlockState() { return new BlockStateContainer(this, new IProperty[] {FACING}); }- Creating an item with eclipse: Not working
Well.... You're not calling registerRenders from anywhere You shouldn't be using the ModelMesher for rendering anyway (use ModelLoader.setCustomModelResourceLocation) Your rendering code shouldn't be in common code, it should be in your client proxy You have several spots where you're using the wrong character (you appear to be using something from UTF-8 not ASCII when ASCII is required). Namely in your @Mod annotation and here: ModHD1Items(String unlocalizedName, String registryName){ //why aren't these two lines ended with ; ? this.unlocalizedname=unlocalizedName%3B this.registryname=registryName%3B } Why are you using item.getUnlocalizedName().substring(5) ? Use getRegistryName like you're supposed to - [1.10.2][SOLVED] Custom mobsound would`t work
IPS spam blocked by CleanTalk.
Important Information
By using this site, you agree to our Terms of Use.