Jump to content

SNGTech

Members
  • Posts

    10
  • Joined

  • Last visited

Recent Profile Visitors

1280 profile views

SNGTech's Achievements

Tree Puncher

Tree Puncher (2/8)

3

Reputation

  1. U can try digging in my github. https://github.com/SNGTech/Beneath-Mod/tree/master/src/main/java/com/sngtech/beneathMod/world/dimensions
  2. @KingPhygieBoo Post your dimension code here
  3. I'm also in the same situation. Unable to render custom tnt entity...
  4. Biome Registry (Straight from Krevik's registry): https://github.com/SNGTech/Beneath-Mod/blob/master/src/main/java/com/sngtech/beneathMod/init/BiomeInit.java Biome Class: https://github.com/SNGTech/Beneath-Mod/blob/master/src/main/java/com/sngtech/beneathMod/world/biomes/AMPlainsBiome.java Hopefully this helps (May not be the correct way but it works for now)
  5. @fishsaucey got it to work somehow...
  6. also trying to figure out the same thing
  7. TileEntityType.register("oak_crate", Builder.create(TileEntityOakCrate::new)).setRegistryName(Main.MODID, "oak_crate"), TileEntityType.register("spruce_crate", Builder.create(TileEntitySpruceCrate::new)).setRegistryName(Main.MODID, "spruce_crate"), TileEntityType.register("birch_crate", Builder.create(TileEntityBirchCrate::new)).setRegistryName(Main.MODID, "birch_crate"), TileEntityType.register("jungle_crate", Builder.create(TileEntityJungleCrate::new)).setRegistryName(Main.MODID, "jungle_crate"), TileEntityType.register("acacia_crate", Builder.create(TileEntityAcaciaCrate::new)).setRegistryName(Main.MODID, "acacia_crate"), TileEntityType.register("dark_oak_crate", Builder.create(TileEntityDarkOakCrate::new)).setRegistryName(Main.MODID, "dark_oak_crate") ive tried doing this but i get a registry error (so obviously thats not how to register them)
  8. @ObjectHolder(Main.MODID) public class TileEntityInit { //Storage public static final TileEntityType<?> OAK_CRATE = null; public static final TileEntityType<?> SPRUCE_CRATE = null; public static final TileEntityType<?> BIRCH_CRATE = null; public static final TileEntityType<?> JUNGLE_CRATE = null; public static final TileEntityType<?> ACACIA_CRATE = null; public static final TileEntityType<?> DARK_OAK_CRATE = null; @Mod.EventBusSubscriber(bus=Mod.EventBusSubscriber.Bus.MOD) public static class RegistryEvents { @SubscribeEvent public static void registerTileEntities(final RegistryEvent.Register<TileEntityType<?>> e) { e.getRegistry().registerAll ( //Storage TileEntityType.Builder.create(TileEntityOakCrate::new).build(null).setRegistryName(Main.MODID, "oak_crate"), TileEntityType.Builder.create(TileEntitySpruceCrate::new).build(null).setRegistryName(Main.MODID, "spruce_crate"), TileEntityType.Builder.create(TileEntityBirchCrate::new).build(null).setRegistryName(Main.MODID, "birch_crate"), TileEntityType.Builder.create(TileEntityJungleCrate::new).build(null).setRegistryName(Main.MODID, "jungle_crate"), TileEntityType.Builder.create(TileEntityAcaciaCrate::new).build(null).setRegistryName(Main.MODID, "acacia_crate"), TileEntityType.Builder.create(TileEntityDarkOakCrate::new).build(null).setRegistryName(Main.MODID, "dark_oak_crate") ); Main.logger.debug("Registered Tile Entities"); } } } This is not how to register tile entities in 1.13.2 Forge? How then do I go about doing that?
  9. So I have this issue whereby if I load a world with my Tile Entity (crate), it will crash the game and give this error: Caused by: java.lang.RuntimeException: class cout.sngtech.beneathMod.tileentities.TileEntityOakCrate is missing a mapping! This is a bug! at net.minecraft.tileentity.TileEntity.writeInternal(TileEntity.java:72) ~[?:?] at net.minecraft.tileentity.TileEntity.write(TileEntity.java:66) ~[?:?] at cout.sngtech.beneathMod.tileentities.TileEntityCrate.write(TileEntityCrate.java:81) ~[?:?] at cout.sngtech.beneathMod.tileentities.TileEntityCrate.getUpdateTag(TileEntityCrate.java:95) ~[?:?] at net.minecraft.network.play.server.SPacketChunkData.<init>(SPacketChunkData.java:47) ~[?:?] at net.minecraft.server.management.PlayerChunkMapEntry.sendToPlayer(PlayerChunkMapEntry.java:146) ~[?:?] at net.minecraft.server.management.PlayerChunkMapEntry.addPlayer(PlayerChunkMapEntry.java:63) ~[?:?] at net.minecraft.server.management.PlayerChunkMap.addPlayer(PlayerChunkMap.java:224) ~[?:?] at net.minecraft.server.management.PlayerList.preparePlayer(PlayerList.java:261) ~[?:?] at net.minecraft.server.management.PlayerList.playerLoggedIn(PlayerList.java:331) ~[?:?] at net.minecraft.server.management.PlayerList.initializeConnectionToPlayer(PlayerList.java:162) ~[?:?] at net.minecraft.network.NetHandlerLoginServer.tryAcceptPlayer(NetHandlerLoginServer.java:114) ~[?:?] at net.minecraft.network.NetHandlerLoginServer.tick(NetHandlerLoginServer.java:65) ~[?:?] at net.minecraft.network.NetworkManager.tick(NetworkManager.java:257) ~[?:?] at net.minecraft.network.NetworkSystem.tick(NetworkSystem.java:151) ~[?:?] Also loading a new world then placing the crate down then exiting and going back to the world that crashed me doesn't crash anymore for some weird reason until i restart the game. This is my github: https://github.com/SNGTech/Beneath-Mod/tree/master/src/main/java/cout/sngtech/beneathMod Help would be greatly appreciated! Thanks
×
×
  • Create New...

Important Information

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