Everything posted by Abastro
-
Gas
Yes, for there are some differences. Gases can be compressed nearly infinitely in limited space, before they become condensed. It is significantly different, I think.
-
How to make a non-Sword Item enchantable with sword enchantments?
I had the similar issues too, but I discovered that the related code is hardcoded in the EnumEnchantmentType class. To make an item should be enchantable with sword enchantments, the item has to extend ItemSword class.
-
[1.7.2] Custom Entity Model Damage Flash
Please show your tail rendering code. it would be related with this issue.
-
[1.6.4] Setting Player Inventory Slot Contents on Server Side
I am working on the player inventory on the server side, and i found that it has to be synced with client before use. So I tried the following: inventoryContainer.inventoryItemStacks .set(i + 9, inventory.getStackInSlot(i)); inventory.setInventorySlotContents(func(i), stack); inventoryContainer.detectandSendChanges(); But when i opened the Enchanting Table and Shift-clicked the specific item, the item is copied, and when i clicked the item again, it just disappears. Anyone knows why these happens?
-
Custom Block Orintation
You can override the onBlockPlacedBy method, and make it save the direction in the metadata similat to the following: /** * Called when the block is placed in the world. */ public void onBlockPlacedBy(World par1World, int par2, int par3, int par4, EntityLivingBase par5EntityLivingBase, ItemStack par6ItemStack) { int l = MathHelper.floor_double((double)(par5EntityLivingBase.rotationYaw * 4.0F / 360.0F) + 0.5D) & 3; if (l == 0) { par1World.setBlockMetadataWithNotify(par2, par3, par4, 2, 2); } if (l == 1) { par1World.setBlockMetadataWithNotify(par2, par3, par4, 5, 2); } if (l == 2) { par1World.setBlockMetadataWithNotify(par2, par3, par4, 3, 2); } if (l == 3) { par1World.setBlockMetadataWithNotify(par2, par3, par4, 4, 2); } if (par6ItemStack.hasDisplayName()) { ((TileHeatFurnace)par1World.getBlockTileEntity(par2, par3, par4)).setGuiDisplayName(par6ItemStack.getDisplayName()); } }' (The code is just for furnace, so you should change it) And you can render with the metadata value.
-
[1.7.2] Help with container !
Before that: Can you post the code related with Main.list?
-
[1.7.2] Help with container !
I think your container is not overriden during the crash.. Can you debug with it.?
-
SOLVED[1.7.2] Block/Item Names and Textures won't work in jar
So your texture folder is: assets\testmod_yashagoro\textures?
-
SOLVED[1.7.2] Block/Item Names and Textures won't work in jar
What is your modId? and what is the unlocalizedname of the block? And you didn't post where your textures are in the jar file. PS. It is not recommended to use getUnlocalizedName().substring(5), it could be confusing. ex) "heatcauldron" and "heatcasing" would have same texture, for the texture name only contains first 5 characters.
-
[1.7.2] Help with container !
I think it is related with your GuiHandler. can you post the code?
-
Tile Entity Problems
I think it is related with syncing container... you have to send the progress data to client.
-
SOLVED[1.7.2] Block/Item Names and Textures won't work in jar
Post your code related with the textures and the directories in the jar file.
-
[1.7.2] Help with container !
Did you override slotClick method? It seems that you had mistaken with the function "clickSlot" ... You should add @Override annotation when you overrides a function.
-
[1.7.2] Removing clouds and altering sky colour in Overworld
Maybe changing DimensionManager.gerWorld(0).provider on World Load Event would work..
-
[Solved][1.7.2] Problem with keybinding
Did you check if the keybinding appears in minecraft's controls gui?
-
Custom Modelled block
Override onBlockPlacedBy(World, int, int, int, EntityLivingBase, ItemStack) from the Block class, and edit it. the parameters are world, x, y, z, placing_Entity, placed_ItemStack, and you would only need the yaw of the Entity for those purpose.
-
[1.7.2] Removing clouds and altering sky colour in Overworld
See the code in the WorldProvider class. Find the getSkyColor method, and see what is wrong.
-
[Solved][1.7.2]Can someone explain adding new liquids to me?
Please post your exact symptoms. It is necessary for solving a problem.
-
[1.7.2][Solved]Getting all items and checking if player is in void?
if (e.entityItem.dimension == VoidMod.NullVoidDimID) Why are you checking the dimension? The item you need would be in the world where it created... and you have to edit the teleporting code if you want to teleport the player.
-
Changing Water to Ice
@Override public void onArmorTick(World world, EntityPlayer player, ItemStack armor) { int x = (int) player.posX; int y = (int) (player.posY - 0.5D); int z = (int) player.posZ; if(armor.getItem() != ElementalArmor.iceBoots) return; for(int i = -1; i <= 1; i++) for(int j = -1; j <= 1; j++) for(int k = -2; k <= -1; k++){ if(world.getBlock(x-i, y-k, z-j) == Blocks.water) world.setBlock(x-i, y-k, z-j, Blocks.ice); } } Did you try this?
-
Changing Water to Ice
Maybe you can search several blocks around the player and changes the water block(s) to the ice. like: for(int i = -1; i <= 1; i++) for(int j = -1; j <= 1; j++) for(int k = -2; k <= -1; k++){ if(world.getBlock(posX-i, posY-k, posZ-j) is waterblock) change the block to ice block. }
-
[1.7.2] Removing clouds and altering sky colour in Overworld
In WorldProvider class, there is getSkyColor method. You can use it. For the cloud, one solution is editing your own cloudrenderer and sets the cloudrenderer of the WorldProvider with your own.
-
Change mob model depending on state?
Just set model via the entity's state in the renderHusser function.
-
[1.7.2] [Solved] SkyRender and WorldProvider
So, you just deleted the moon from the Renderer?
-
[1.7.2] [Solved] SkyRender and WorldProvider
why are you using the SkyRenderer?
IPS spam blocked by CleanTalk.