Everything posted by IceLitty
-
[1.12.2] World.setBlockState() work in physical server side and not show correctly in client
I think it will use lang folder under assets/modid? So it could be anything string? Or it will get together and .. oh I know
-
[1.12.2] World.setBlockState() work in physical server side and not show correctly in client
Err.. Another simple question.. In this https://github.com/IceLitty/forge-1.12.2-14.23.1.2555-mod-test-project/blob/master/src/main/java/com/gmail/litalways/icykingdoms/RegistryFunc.java#L22 I register this blockitem's localname is "gb", whole id is "tile.gb.name" by block and "item.gb.name" by item, then I add en_US.lang file in assets/icykingdoms/lang folder, they still show local id in game.. And I try put lang file to assets/minecraft/lang, still doesn't work. *icykingdoms is mod id, defined https://github.com/IceLitty/forge-1.12.2-14.23.1.2555-mod-test-project/blob/master/src/main/java/com/gmail/litalways/icykingdoms/IcyKingdomsMod.java#L14 And I determine it's can't find lang file, because any string like item name, string on UI.. they all just show id
-
[1.12.2] World.setBlockState() work in physical server side and not show correctly in client
It works! Is actually when server changed, server push the meta id to client not push the state?! But I look forge document It have special state, it not effect metadata id, but still work.. And 1.13 will remove metadata id, if I using 1.12, it still need overwrite getStateFromMeta and getMetaFromState function?
-
[1.12.2] World.setBlockState() work in physical server side and not show correctly in client
hmm... and still no changes by client, server still can cycle it _(:з)∠)_
-
[1.12.2] World.setBlockState() work in physical server side and not show correctly in client
Yes I tried from 1 to 16, as same had problem..
-
[1.12.2] World.setBlockState() work in physical server side and not show correctly in client
Hi there, I'm new one to try write forge mods find some problems and search some topics may not help for this question... I write a test project about this: https://github.com/IceLitty/forge-1.12.2-14.23.1.2555-mod-test-project And problem lines: https://github.com/IceLitty/forge-1.12.2-14.23.1.2555-mod-test-project/blob/master/src/main/java/com/gmail/litalways/icykingdoms/growBlock.java#L77 When I run client and into client world, I use Bone Meal to change this block states 'stage', it can cycle from 0 to 1. And I start server, join client into it, IDE log can output correctly cycle 0 and 1, but client shows not changed.. Even if I not write world.isRemote, or tried this update function, they all not help: this.requiresUpdates(); worldIn.updateObservingBlocksAt(pos, this); worldIn.markBlockRangeForRenderUpdate(pos, pos); worldIn.notifyBlockUpdate(pos, state, state.withProperty(STAGE, 1), 4); worldIn.scheduleUpdate(pos, this, 0); worldIn.scheduleBlockUpdate(pos, this, 0, 1); worldIn.markAndNotifyBlock(pos, worldIn.getChunkFromBlockCoords(pos), state, state.withProperty(STAGE, 1), 4); worldIn.markBlocksDirtyVertical(pos.getX(), pos.getZ(), pos.getY(), pos.getY()); worldIn.updateBlockTick(pos, this, 0, 1);
IPS spam blocked by CleanTalk.