Jump to content

IvanSteklow

Forge Modder
  • Posts

    62
  • Joined

  • Last visited

  • Days Won

    7

Everything posted by IvanSteklow

  1. So, I have same problem with particles. Try to make cycle of particle spawn with random position or try to see how furnace/torch/lava particle generator works.
  2. So, I tried. Crash: Packet Handler: *CLICK* What's wrong. Yeah, I don't like packets and never work with it
  3. So, I try to get 'TIME' from NBT, but I don't know why it didn't working. So, writeToNBT in my Tile Entity class looks like that: @Override public NBTTagCompound writeToNBT(NBTTagCompound compound) { super.writeToNBT(compound); compound.setInteger("time", this.time); compound.setInteger("maxTime", METAL_REFINERY_WORKTIME); compound.setTag("items", this.itemStackHandler.serializeNBT()); return compound; } And my GUI Screen Updater looks like that: @Override public void updateScreen() { NBTTagCompound compound = new NBTTagCompound(); compound = this.te.writeToNBT(compound); this.time = compound.getInteger("time"); this.maxTime = compound.getInteger("maxTime"); Core.logger.info(compound); super.updateScreen(); } What's wrong? Full code: Block: *CLICK* Tile Entity: *CLICK* Container: *CLICK* GUI: *CLICK*
  4. Hello Modders! Sorry for my bad English I have Tile Entity that have working time and I have GUI with Progress Bar that need this working time. And I don't know how to do it. Pls help Block: *CLICK* Tile Entity: *CLICK* Container: *CLICK* GUI: *CLICK*
  5. Hello Modders! Please excuse me for my broken English)) I have a machine for processing iron bars in scrap metal. And when I run it - I have a strange bug with phantom items. See below on GIF. Help please with the code. I can not understand the problem. Block: *CLICK* Tile Entity: *CLICK* Container: *CLICK* GUI: *CLICK* GIF: *CLICK*
  6. I want to drop hot item and if it in water it turns into not hot item =D
  7. I need to track where item is. For example: This item is in water
  8. Please, download all mods from CURSE!!! https://minecraft.curseforge.com/ or from official sites of developers, this is site of chicken bones: http://chickenbones.net/Pages/links.html
  9. Hi everyone, I need event that tracking all dropped items\blocks HELP ME PLS
  10. But if I logging current block in console, that shows me Minecraft:air
  11. Hi everyone, I want to identify where water and I have a BlockPos, but it doesn't work: @SubscribeEvent public static void livingDropsEvent(ItemTossEvent e) { Utils.getLogger("FMHammers").info("1"); if (e.getEntityItem().getEntityItem().getItem() == ModItems.moltenDuctTape) { Utils.getLogger("FMHammers").info("2"); World world = e.getEntity().getEntityWorld(); Block srcBlock = world.getBlockState(e.getEntity().getPosition()).getBlock(); BlockPos pos = e.getEntity().getPosition(); EntityItem item = new EntityItem(world, pos.getX(), pos.getY(), pos.getZ(), new ItemStack(ModItems.ductTape)); if (srcBlock.equals(Blocks.WATER)) { Utils.getLogger("FMHammers").info("3"); e.getEntity().setDead(); world.spawnEntity(item); world.playSound(pos.getX() + 0.5D, pos.getY() + 1.0D, pos.getZ() + 0.5D, SoundEvents.BLOCK_FIRE_AMBIENT, SoundCategory.AMBIENT, 1.0f, 1.0f, true); world.spawnParticle(EnumParticleTypes.SMOKE_NORMAL, pos.getX() + 0.5D, pos.getY() + 1.0D, pos.getZ() + 0.5D, 0.0D, 0.0D, 0.0D, new int[0]); } } } HELP ME PLS
  12. So, 'cause I have only to blockpos, how to get nearest player?
  13. Hi everyone, I want to play default minecraft sound: world.playSound(pos.getX() + 0.5D, pos.getY() + 1.0D, pos.getZ() + 0.5D, "liquid.splash", SoundCategory.AMBIENT, 1.0f, 1.0f, true); But it doesn't work. I don't know how to play it HELP ME PLS
  14. I think you don't understand me, it digging 9 blocks forward and backward. Video test:
  15. Please upload it all to github and try to refresh your workspace and run game again
  16. Hi everyone, I have one problem, if I use my drill, it digging in both side. For example: My drill digging area 3x3x3 and it digging 3 blocks forward and backward, but I want only forward (where looking player). Code of digging is here: https://github.com/IvanSteklow/FMHammers/blob/master/src/main/java/ivansteklow/fmhammers/tools/ItemDrill.java#L80 PLS HELP, and excuse me for broken english))
  17. Hi everyone, I started new mod, but got a problem: Crash-report: So, you can view this file at my GitHub: https://github.com/IvanSteklow/FMHammers/blob/master/src/main/java/ivansteklow/fmhammers/tools/ItemHammer.java HELP ME PLS!!! & excuse me for my broken english
×
×
  • Create New...

Important Information

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