Posted October 8, 20186 yr Why? And when I place conduits somewhere else: Edited October 10, 20186 yr by TSEngineer
October 9, 20186 yr Seems to me as though you've got your horizontal EnumFacing values wrong. What exactly are you trying to do i.e. what are you trying to transfer? In your code I see vein and a custom energy capability and a whole bunch of classes with abbreviations in their name who's purpose is not immediately obvious. Also don't use IHasModel (or any variant - ItemM) Don't us static initialisers, use the @ObjectHolder annotation About Me Spoiler My Discord - Cadiboo#8887 My Website - Cadiboo.github.io My Mods - Cadiboo.github.io/projects My Tutorials - Cadiboo.github.io/tutorials Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support. When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible. Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)
October 9, 20186 yr Author They're just rendering wrong. See: src/main/resources/assets/extraexpansion/blockstates/conduit.json src/main/resources/assets/extraexpansion/models/conduit_(u,d,n,s,w,e).json src/main/java/ru/tse/extraexpansion/tech/conduit/BConduit.java
October 9, 20186 yr Author If one conduit changed, it's connections will be applied in every conduit in the world, but NOT always, something strange is happening Edited October 9, 20186 yr by TSEngineer Additional info
October 9, 20186 yr 2 hours ago, TSEngineer said: If one conduit changed, it's connections will be applied in every conduit in the world, but NOT always, something strange is happening Did you push all of your code to github or just your jsons? Cause we also need to see the Block class too. VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect. Forge and vanilla BlockState generator.
October 9, 20186 yr You can't do this. Blocks are singletons meaning that these values will apply to all blocks in the world when you change it. Resolve the needed connections in your getActualState method. Or migrate the variables responsible to the connections to a TileEntity.
October 9, 20186 yr Author Now tile entity is not saving u, d, n, s, w, e. https://github.com/TSEngineer/ExtraExpansion
October 9, 20186 yr 20 minutes ago, TSEngineer said: Now tile entity is not saving u, d, n, s, w, e. https://github.com/TSEngineer/ExtraExpansion No, it's totally saving them. You just aren't updating the client. You need to override getUpdatePacket, handleUpdatePacket, and two other methods I cant think of right now. VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect. Forge and vanilla BlockState generator.
October 9, 20186 yr 1 minute ago, TSEngineer said: Will markDirty() also help? That just tells the server that something has changed and it needs to be saved, it may query sending the packet based on if it has been marked dirty or not. VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect. Forge and vanilla BlockState generator.
October 9, 20186 yr Author So I need to make an update packet and send it to client, then handle it on client, right?
October 9, 20186 yr 2 minutes ago, TSEngineer said: So I need to make an update packet and send it to client, then handle it on client, right? You can, but you dont have to, vanilla has one. And the methods I told you to override are used by them. VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect. Forge and vanilla BlockState generator.
October 9, 20186 yr 1 minute ago, TSEngineer said: Ok, where do I override handleUpdatePacket then? Should be in the TileEntity however the name may be slightly different but there are two other methods but I cant remember the names so you should look in the TileEntity class. VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect. Forge and vanilla BlockState generator.
October 9, 20186 yr Author Maybe handleUpdateTag and getUpdateTag? Edited October 9, 20186 yr by TSEngineer
October 9, 20186 yr 4 minutes ago, TSEngineer said: Maybe handleUpdateTag and getUpdateTag? Those sound about right. VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect. Forge and vanilla BlockState generator.
October 9, 20186 yr Author @Override public void handleUpdateTag(NBTTagCompound tag) { u = tag.getBoolean("u"); d = tag.getBoolean("d"); n = tag.getBoolean("n"); s = tag.getBoolean("s"); w = tag.getBoolean("w"); e = tag.getBoolean("e"); } @Override public NBTTagCompound getUpdateTag() { NBTTagCompound nbt = new NBTTagCompound(); nbt.setBoolean("u", u); nbt.setBoolean("d", d); nbt.setBoolean("n", n); nbt.setBoolean("s", s); nbt.setBoolean("w", w); nbt.setBoolean("e", e); return nbt; }
October 10, 20186 yr What’s the error? you should also probably read https://mcforge.readthedocs.io/en/latest/tileentities/tileentity/#synchronizing-the-data-to-the-client About Me Spoiler My Discord - Cadiboo#8887 My Website - Cadiboo.github.io My Mods - Cadiboo.github.io/projects My Tutorials - Cadiboo.github.io/tutorials Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support. When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible. Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.