Jump to content

Abastro

Forge Modder
  • Posts

    1075
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by Abastro

  1. 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.
  2. 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.
  3. Please show your tail rendering code. it would be related with this issue.
  4. 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?
  5. 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.
  6. Before that: Can you post the code related with Main.list?
  7. I think your container is not overriden during the crash.. Can you debug with it.?
  8. So your texture folder is: assets\testmod_yashagoro\textures?
  9. 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.
  10. I think it is related with your GuiHandler. can you post the code?
  11. I think it is related with syncing container... you have to send the progress data to client.
  12. Post your code related with the textures and the directories in the jar file.
  13. 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.
  14. Maybe changing DimensionManager.gerWorld(0).provider on World Load Event would work..
  15. Did you check if the keybinding appears in minecraft's controls gui?
  16. 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.
  17. See the code in the WorldProvider class. Find the getSkyColor method, and see what is wrong.
  18. Please post your exact symptoms. It is necessary for solving a problem.
  19. 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.
  20. @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?
  21. 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. }
  22. 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.
  23. Just set model via the entity's state in the renderHusser function.
  24. So, you just deleted the moon from the Renderer?
  25. why are you using the SkyRenderer?
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.