mokonaModoki
Members-
Posts
32 -
Joined
-
Last visited
Converted
-
Gender
Male
-
Location
Minsk, Belarus
-
Personal Text
Alchemy++ dev.
mokonaModoki's Achievements
Tree Puncher (2/8)
1
Reputation
-
[1.6.2] [Solved] Config file doesn't work
mokonaModoki replied to SackCastellon's topic in Modder Support
The way you do this, instance of ItemKnot is created even before your mod is loaded properly. So that means that you try to read knotID value from configHandler before it is initialized. Try creating instance of ItemKnot in public void load(FMLInitializationEvent event) method. That should help. -
So... I've seen it before in Thaumcraft 3 mod, where Azanor somehow used transparent textures while rendering Tile Entities: I wonder how it is possible? When using regular model rendering with boxes all the alpha channel from the textures is removed.
-
[1.6] Textures missing - how did I fuck this one up? O.o
mokonaModoki replied to Mazetar's topic in Modder Support
all your textures sould be in the mcp/src/minecraft/assets/modname/blocks(items, whatever)/ so you create assets folder inside the mcp/src/minecraft/ After reobfuscating the game, you copy the assets folder from src/minecraft inside your .zip file. If you are not sure about the paths, check the Eclipse console. When game launches it tries to load all the icons. If the icon is missing it is going to display a message like this in the console: Using missing texture, unable to load: somemod:textures/blocks/someblock.png That way you can determine if you have your textures in the right place. -
Syncing client tile entity data with server? [SOLVED]
mokonaModoki replied to QuantumLeaf7895's topic in Modder Support
Server and Client Tile Entities are synchronized via the Container class. check out detectAndSaveChanges(), updateProgressBar(), addCraftingToCrafters() methods in the ContainerFurnace class and make you Tile Entity update itself the same way. Otherwise your client and server Tile entities will desync after you log out from the world or unload the chunk it is in. -
Way to get Block-Side player is pointing at ?
mokonaModoki replied to Maexx's topic in Modder Support
Is there a way to do so when onPlayerStoppedUsing() method is executed? -
this is just the way to determine the direction block should face after placement. I need a way to find target block coordinates and it's sides and directions don't really matter
-
[Solved] TileEntity cast weird behaviour
mokonaModoki replied to Wouto1997's topic in Modder Support
I had the same desync trouble between client and server parts of the game. The container class should solve your problem: just override methods public void addCraftingToCrafters(ICrafting par1ICrafting) public void detectAndSendChanges() @SideOnly(Side.CLIENT) public void updateProgressBar(int index, int value) (you can find out what they should do in ContainerFurnace class) these methods are required for proper syncing between client and server TE -
is there an easy way to get coordinates of the block player is looking at? (like the block at which target box appears)
-
[Resolved] textures not rendering properly on placed blocks?
mokonaModoki replied to dewboy3d's topic in Modder Support
try overriding getTextureFromSideAndMetadata() method. The one that you use (getBlockTextureFromSide) in your class determines the looks of the block in your inventory. You may just do something like this: public int getTextureFromSideAndMetadata(int side, int metadata) { return this.getBlockTextureFromSide(side); }