-
Posts
62 -
Joined
-
Last visited
-
Days Won
7
Everything posted by IvanSteklow
-
[1.12.2] [SOLVED] spawnParticle not working
IvanSteklow replied to dalobstah's topic in Modder Support
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. -
[1.12.2] Data exchanging between Client and Server
IvanSteklow replied to IvanSteklow's topic in Modder Support
So, I tried. Crash: Packet Handler: *CLICK* What's wrong. Yeah, I don't like packets and never work with it -
[1.12.2] Data exchanging between Client and Server
IvanSteklow replied to IvanSteklow's topic in Modder Support
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* -
[1.12.2] Data exchanging between Client and Server
IvanSteklow replied to IvanSteklow's topic in Modder Support
Can U give me some tutorials, pls? -
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*
-
[SOLVED] [1.12.2] Phantom item in Machine inventory
IvanSteklow replied to IvanSteklow's topic in Modder Support
OMG.. I forget about this. Thank you -
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*
-
I want to drop hot item and if it in water it turns into not hot item =D
-
I need to track where item is. For example: This item is in water
-
Try to delete this mod: SpaceAdvanced
- 1 reply
-
- 1
-
Hi everyone, I need event that tracking all dropped items\blocks HELP ME PLS
-
Oh, thank you, I miss this fact
-
-
But if I logging current block in console, that shows me Minecraft:air
-
[SOLVED][1.11.2] Play default minecraft sound
IvanSteklow replied to IvanSteklow's topic in Modder Support
So thanks! -
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
-
[SOLVED][1.11.2] Play default minecraft sound
IvanSteklow replied to IvanSteklow's topic in Modder Support
So, 'cause I have only to blockpos, how to get nearest player? -
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
-
[CLOSED][Not solved, but closed][1.11.2] Area breaking bug
IvanSteklow replied to IvanSteklow's topic in Modder Support
I think you don't understand me, it digging 9 blocks forward and backward. Video test: -
[1.12] Block Variant Inventory Display Issue
IvanSteklow replied to xXiNightXx's topic in Modder Support
Please upload it all to github and try to refresh your workspace and run game again -
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))
-
[SOLVED][1.11.2] Switch Block NullPointerException
IvanSteklow replied to IvanSteklow's topic in Modder Support
Thank you, I fixed it! -
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