Jump to content

LeiteDesnatado

Members
  • Posts

    18
  • Joined

  • Last visited

Everything posted by LeiteDesnatado

  1. People can't help you, if you dont give more information
  2. fixed it, I didn't know I needed the globalentityattributes to entity attributes work, thanks
  3. When I try to summon my entity it says "Unable to summon entity" on chat BeagleEntity: https://pastebin.com/a3HpP3dM BeagleRender: https://pastebin.com/fXTLKtF5 (I know the texture variants have the same path, I'll make the second one later) BeagleModel: https://pastebin.com/09QtCpP2 Main: https://pastebin.com/iQsLh93D ClientReference: @Mod.EventBusSubscriber(modid = Leitespets.MOD_ID, bus = Mod.EventBusSubscriber.Bus.MOD, value = Dist.CLIENT) public class ClientReference { @SubscribeEvent public static void onClientSetup(FMLClientSetupEvent event) { RenderingRegistry.registerEntityRenderingHandler(ModEntities.BEAGLE.get(), BeagleRender::new); } } Log when run and try to summon entity: [20:51:51] [Server thread/INFO] [minecraft/MinecraftServer]: Dev joined the game [20:51:52] [Server thread/INFO] [minecraft/IntegratedServer]: Saving and pausing game... [20:51:52] [Server thread/INFO] [minecraft/MinecraftServer]: Saving chunks for level 'ServerLevel[New World]'/minecraft:overworld [20:51:53] [Render thread/INFO] [minecraft/AdvancementList]: Loaded 0 advancements [20:51:53] [Server thread/INFO] [minecraft/MinecraftServer]: Saving chunks for level 'ServerLevel[New World]'/minecraft:the_nether [20:51:53] [Server thread/INFO] [minecraft/MinecraftServer]: Saving chunks for level 'ServerLevel[New World]'/minecraft:the_end [20:51:53] [Server thread/DEBUG] [ne.mi.fm.FMLWorldPersistenceHook/WP]: Gathering id map for writing to world save New World [20:51:53] [Server thread/DEBUG] [ne.mi.fm.FMLWorldPersistenceHook/WP]: ID Map collection complete New World [20:52:14] [Server thread/WARN] [minecraft/EntityType]: Exception loading entity: java.lang.NullPointerException: null at net.minecraft.entity.ai.attributes.AttributeModifierManager.getAttributeValue(AttributeModifierManager.java:67) ~[forge-1.16.4-35.1.4_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading} at net.minecraft.entity.LivingEntity.getAttributeValue(LivingEntity.java:1849) ~[forge-1.16.4-35.1.4_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading} at net.minecraft.entity.LivingEntity.getMaxHealth(LivingEntity.java:1610) ~[forge-1.16.4-35.1.4_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading} at net.minecraft.entity.LivingEntity.<init>(LivingEntity.java:209) ~[forge-1.16.4-35.1.4_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading} at net.minecraft.entity.MobEntity.<init>(MobEntity.java:108) ~[forge-1.16.4-35.1.4_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading,pl:accesstransformer:B} at net.minecraft.entity.CreatureEntity.<init>(CreatureEntity.java:13) ~[forge-1.16.4-35.1.4_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading} at com.leitedesnatado.leitespets.entity.BeagleEntity.<init>(BeagleEntity.java:25) ~[main/:?] {re:classloading} at net.minecraft.entity.EntityType.create(EntityType.java:448) ~[forge-1.16.4-35.1.4_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading} at net.minecraft.entity.EntityType.lambda$loadEntityUnchecked$1(EntityType.java:459) ~[forge-1.16.4-35.1.4_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading} at java.util.Optional.map(Optional.java:215) ~[?:1.8.0_261] {} at net.minecraft.entity.EntityType.loadEntityUnchecked(EntityType.java:458) ~[forge-1.16.4-35.1.4_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading} at net.minecraft.entity.EntityType.loadEntity(EntityType.java:516) ~[forge-1.16.4-35.1.4_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading} at net.minecraft.entity.EntityType.loadEntityAndExecute(EntityType.java:498) ~[forge-1.16.4-35.1.4_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading} at net.minecraft.command.impl.SummonCommand.summonEntity(SummonCommand.java:50) ~[forge-1.16.4-35.1.4_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading} at net.minecraft.command.impl.SummonCommand.lambda$register$1(SummonCommand.java:34) ~[forge-1.16.4-35.1.4_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading} at com.mojang.brigadier.CommandDispatcher.execute(CommandDispatcher.java:262) ~[brigadier-1.0.17.jar:?] {re:classloading} at net.minecraft.command.Commands.handleCommand(Commands.java:222) ~[forge:?] {re:classloading} at net.minecraft.network.play.ServerPlayNetHandler.handleSlashCommand(ServerPlayNetHandler.java:1162) ~[forge:?] {re:classloading} at net.minecraft.network.play.ServerPlayNetHandler.func_244548_c(ServerPlayNetHandler.java:1142) ~[forge:?] {re:classloading} at net.minecraft.network.play.ServerPlayNetHandler.processChatMessage(ServerPlayNetHandler.java:1121) ~[forge:?] {re:classloading} at net.minecraft.network.play.client.CChatMessagePacket.processPacket(CChatMessagePacket.java:40) ~[forge:?] {re:classloading} at net.minecraft.network.play.client.CChatMessagePacket.processPacket(CChatMessagePacket.java:8) ~[forge:?] {re:classloading} at net.minecraft.network.PacketThreadUtil.lambda$checkThreadAndEnqueue$0(PacketThreadUtil.java:19) ~[forge:?] {re:classloading} at net.minecraft.util.concurrent.TickDelayedTask.run(TickDelayedTask.java:20) ~[forge:?] {re:classloading} at net.minecraft.util.concurrent.ThreadTaskExecutor.run(ThreadTaskExecutor.java:139) ~[forge:?] {re:classloading,pl:accesstransformer:B} at net.minecraft.util.concurrent.RecursiveEventLoop.run(RecursiveEventLoop.java:22) ~[forge:?] {re:classloading} at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:758) ~[forge:?] {re:classloading,pl:accesstransformer:B} at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:159) ~[forge:?] {re:classloading,pl:accesstransformer:B} at net.minecraft.util.concurrent.ThreadTaskExecutor.driveOne(ThreadTaskExecutor.java:109) ~[forge:?] {re:classloading,pl:accesstransformer:B} at net.minecraft.server.MinecraftServer.driveOneInternal(MinecraftServer.java:741) ~[forge:?] {re:classloading,pl:accesstransformer:B} at net.minecraft.server.MinecraftServer.driveOne(MinecraftServer.java:735) ~[forge:?] {re:classloading,pl:accesstransformer:B} at net.minecraft.util.concurrent.ThreadTaskExecutor.drainTasks(ThreadTaskExecutor.java:97) ~[forge:?] {re:classloading,pl:accesstransformer:B} at net.minecraft.server.MinecraftServer.runScheduledTasks(MinecraftServer.java:720) ~[forge:?] {re:classloading,pl:accesstransformer:B} at net.minecraft.server.MinecraftServer.func_240802_v_(MinecraftServer.java:667) ~[forge:?] {re:classloading,pl:accesstransformer:B} at net.minecraft.server.MinecraftServer.lambda$startServer$0(MinecraftServer.java:233) ~[forge:?] {re:classloading,pl:accesstransformer:B} at java.lang.Thread.run(Thread.java:748) [?:1.8.0_261] {} [20:52:15] [Render thread/INFO] [minecraft/NewChatGui]: [CHAT] Unable to summon entity [20:52:17] [Server thread/INFO] [minecraft/IntegratedServer]: Saving and pausing game... [20:52:17] [Server thread/INFO] [minecraft/MinecraftServer]: Saving chunks for level 'ServerLevel[New World]'/minecraft:overworld [20:52:17] [Server thread/INFO] [minecraft/MinecraftServer]: Saving chunks for level 'ServerLevel[New World]'/minecraft:the_nether [20:52:17] [Server thread/INFO] [minecraft/MinecraftServer]: Saving chunks for level 'ServerLevel[New World]'/minecraft:the_end [20:52:17] [Server thread/DEBUG] [ne.mi.fm.FMLWorldPersistenceHook/WP]: Gathering id map for writing to world save New World [20:52:17] [Server thread/DEBUG] [ne.mi.fm.FMLWorldPersistenceHook/WP]: ID Map collection complete New World [20:52:19] [Server thread/INFO] [minecraft/ServerPlayNetHandler]: Dev lost connection: Disconnected [20:52:19] [Server thread/INFO] [minecraft/MinecraftServer]: Dev left the game [20:52:19] [Server thread/INFO] [minecraft/ServerPlayNetHandler]: Stopping singleplayer server as player logged out [20:52:19] [Server thread/INFO] [minecraft/MinecraftServer]: Stopping server [20:52:19] [Server thread/INFO] [minecraft/MinecraftServer]: Saving players [20:52:19] [Server thread/INFO] [minecraft/MinecraftServer]: Saving worlds [20:52:19] [Server thread/INFO] [minecraft/MinecraftServer]: Saving chunks for level 'ServerLevel[New World]'/minecraft:overworld [20:52:20] [Server thread/INFO] [minecraft/ChunkManager]: ThreadedAnvilChunkStorage (New World): All chunks are saved [20:52:20] [Server thread/INFO] [minecraft/MinecraftServer]: Saving chunks for level 'ServerLevel[New World]'/minecraft:the_nether [20:52:20] [Server thread/INFO] [minecraft/ChunkManager]: ThreadedAnvilChunkStorage (DIM-1): All chunks are saved [20:52:20] [Server thread/INFO] [minecraft/MinecraftServer]: Saving chunks for level 'ServerLevel[New World]'/minecraft:the_end [20:52:20] [Server thread/INFO] [minecraft/ChunkManager]: ThreadedAnvilChunkStorage (DIM1): All chunks are saved [20:52:20] [Server thread/DEBUG] [ne.mi.fm.FMLWorldPersistenceHook/WP]: Gathering id map for writing to world save New World [20:52:20] [Server thread/DEBUG] [ne.mi.fm.FMLWorldPersistenceHook/WP]: ID Map collection complete New World [20:52:20] [Server thread/INFO] [minecraft/ChunkManager]: ThreadedAnvilChunkStorage (New World): All chunks are saved [20:52:20] [Server thread/INFO] [minecraft/ChunkManager]: ThreadedAnvilChunkStorage (DIM-1): All chunks are saved [20:52:20] [Server thread/INFO] [minecraft/ChunkManager]: ThreadedAnvilChunkStorage (DIM1): All chunks are saved [20:52:20] [Server thread/DEBUG] [ne.mi.re.GameData/REGISTRIES]: Reverting to FROZEN data state. [20:52:20] [Server thread/DEBUG] [ne.mi.re.ForgeRegistry/REGISTRIES]: Registry Block Sync: ACTIVE -> FROZEN [20:52:20] [Server thread/DEBUG] [ne.mi.re.ForgeRegistry/REGISTRIES]: Registry Fluid Sync: ACTIVE -> FROZEN [20:52:20] [Server thread/DEBUG] [ne.mi.re.ForgeRegistry/REGISTRIES]: Registry Item Sync: ACTIVE -> FROZEN [20:52:20] [Server thread/DEBUG] [ne.mi.re.ForgeRegistry/REGISTRIES]: Registry Effect Sync: ACTIVE -> FROZEN [20:52:20] [Server thread/DEBUG] [ne.mi.re.ForgeRegistry/REGISTRIES]: Registry SoundEvent Sync: ACTIVE -> FROZEN [20:52:20] [Server thread/DEBUG] [ne.mi.re.ForgeRegistry/REGISTRIES]: Registry Potion Sync: ACTIVE -> FROZEN [20:52:20] [Server thread/DEBUG] [ne.mi.re.ForgeRegistry/REGISTRIES]: Registry Enchantment Sync: ACTIVE -> FROZEN [20:52:20] [Server thread/DEBUG] [ne.mi.re.ForgeRegistry/REGISTRIES]: Registry EntityType Sync: ACTIVE -> FROZEN [20:52:20] [Server thread/DEBUG] [ne.mi.re.ForgeRegistry/REGISTRIES]: Registry TileEntityType Sync: ACTIVE -> FROZEN [20:52:20] [Server thread/DEBUG] [ne.mi.re.ForgeRegistry/REGISTRIES]: Registry ParticleType Sync: ACTIVE -> FROZEN [20:52:20] [Server thread/DEBUG] [ne.mi.re.ForgeRegistry/REGISTRIES]: Registry ContainerType Sync: ACTIVE -> FROZEN [20:52:20] [Server thread/DEBUG] [ne.mi.re.ForgeRegistry/REGISTRIES]: Registry PaintingType Sync: ACTIVE -> FROZEN [20:52:20] [Server thread/DEBUG] [ne.mi.re.ForgeRegistry/REGISTRIES]: Registry IRecipeSerializer Sync: ACTIVE -> FROZEN [20:52:20] [Server thread/DEBUG] [ne.mi.re.ForgeRegistry/REGISTRIES]: Registry Attribute Sync: ACTIVE -> FROZEN [20:52:20] [Server thread/DEBUG] [ne.mi.re.ForgeRegistry/REGISTRIES]: Registry StatType Sync: ACTIVE -> FROZEN [20:52:20] [Server thread/DEBUG] [ne.mi.re.ForgeRegistry/REGISTRIES]: Registry VillagerProfession Sync: ACTIVE -> FROZEN [20:52:20] [Server thread/DEBUG] [ne.mi.re.ForgeRegistry/REGISTRIES]: Registry PointOfInterestType Sync: ACTIVE -> FROZEN [20:52:20] [Server thread/DEBUG] [ne.mi.re.ForgeRegistry/REGISTRIES]: Registry MemoryModuleType Sync: ACTIVE -> FROZEN [20:52:20] [Server thread/DEBUG] [ne.mi.re.ForgeRegistry/REGISTRIES]: Registry SensorType Sync: ACTIVE -> FROZEN [20:52:20] [Server thread/DEBUG] [ne.mi.re.ForgeRegistry/REGISTRIES]: Registry Schedule Sync: ACTIVE -> FROZEN [20:52:20] [Server thread/DEBUG] [ne.mi.re.ForgeRegistry/REGISTRIES]: Registry Activity Sync: ACTIVE -> FROZEN [20:52:20] [Server thread/DEBUG] [ne.mi.re.ForgeRegistry/REGISTRIES]: Registry WorldCarver Sync: ACTIVE -> FROZEN [20:52:20] [Server thread/DEBUG] [ne.mi.re.ForgeRegistry/REGISTRIES]: Registry SurfaceBuilder Sync: ACTIVE -> FROZEN [20:52:20] [Server thread/DEBUG] [ne.mi.re.ForgeRegistry/REGISTRIES]: Registry Feature Sync: ACTIVE -> FROZEN [20:52:20] [Server thread/DEBUG] [ne.mi.re.ForgeRegistry/REGISTRIES]: Registry Placement Sync: ACTIVE -> FROZEN [20:52:20] [Server thread/DEBUG] [ne.mi.re.ForgeRegistry/REGISTRIES]: Registry ChunkStatus Sync: ACTIVE -> FROZEN [20:52:20] [Server thread/DEBUG] [ne.mi.re.ForgeRegistry/REGISTRIES]: Registry Structure Sync: ACTIVE -> FROZEN [20:52:20] [Server thread/DEBUG] [ne.mi.re.ForgeRegistry/REGISTRIES]: Registry BlockStateProviderType Sync: ACTIVE -> FROZEN [20:52:20] [Server thread/DEBUG] [ne.mi.re.ForgeRegistry/REGISTRIES]: Registry BlockPlacerType Sync: ACTIVE -> FROZEN [20:52:20] [Server thread/DEBUG] [ne.mi.re.ForgeRegistry/REGISTRIES]: Registry FoliagePlacerType Sync: ACTIVE -> FROZEN [20:52:20] [Server thread/DEBUG] [ne.mi.re.ForgeRegistry/REGISTRIES]: Registry TreeDecoratorType Sync: ACTIVE -> FROZEN [20:52:20] [Server thread/DEBUG] [ne.mi.re.ForgeRegistry/REGISTRIES]: Registry Biome Sync: ACTIVE -> FROZEN [20:52:20] [Server thread/DEBUG] [ne.mi.re.ForgeRegistry/REGISTRIES]: Registry DataSerializerEntry Sync: ACTIVE -> FROZEN [20:52:20] [Server thread/DEBUG] [ne.mi.re.ForgeRegistry/REGISTRIES]: Registry GlobalLootModifierSerializer Sync: ACTIVE -> FROZEN [20:52:21] [Server thread/DEBUG] [ne.mi.re.ObjectHolderRegistry/REGISTRIES]: Applying holder lookups [20:52:21] [Server thread/DEBUG] [ne.mi.re.ObjectHolderRegistry/REGISTRIES]: Holder lookups applied [20:52:21] [Server thread/DEBUG] [ne.mi.re.GameData/REGISTRIES]: FROZEN state restored. [20:52:21] [Server thread/DEBUG] [ne.mi.fm.lo.FileUtils/CORE]: Found existing serverconfig directory : .\saves\New World\serverconfig [20:52:21] [Server thread/DEBUG] [ne.mi.fm.co.ConfigTracker/CONFIG]: Unloading configs type SERVER [20:52:21] [Thread-1/DEBUG] [ne.mi.fm.co.ConfigFileTypeHandler/CONFIG]: Config file forge-server.toml changed, sending notifies [20:52:21] [Thread-1/DEBUG] [ne.mi.co.ForgeConfig/FORGEMOD]: Forge config just got changed on the file system! [20:52:21] [Render thread/INFO] [minecraft/Minecraft]: Stopping!
  4. Why is my helmet armor model isn't loading properly?, I'm almost sure it's my model class because a model I downloaded worked fine package com.leitedesnatado.examplemod.client.model; import com.mojang.blaze3d.matrix.MatrixStack; import com.mojang.blaze3d.vertex.IVertexBuilder; import net.minecraft.client.renderer.entity.model.BipedModel; import net.minecraft.client.renderer.model.ModelRenderer; import net.minecraft.entity.LivingEntity; import net.minecraftforge.api.distmarker.OnlyIn; import net.minecraftforge.api.distmarker.Dist; @OnlyIn(Dist.CLIENT) public class ModelGoggles extends BipedModel<LivingEntity> { private ModelRenderer armorHead; public ModelGoggles(float modelSize) { super(modelSize, 0.0F, 64, 64); armorHead = new ModelRenderer(this); armorHead.setRotationPoint(0.0F, 0.0F, 0.0F); armorHead.setTextureOffset(11, 0).addBox(-4.0F, -5.0F, -5.0F, 8.0F, 3.0F, 1.0F, 0.0F); armorHead.setTextureOffset(0, 10).addBox(4.0F, -4.0F, -5.0F, 1.0F, 1.0F, 9.0F, 0.0F); armorHead.setTextureOffset(0, 0).addBox(-5.0F, -4.0F, -5.0F, 1.0F, 1.0F, 9.0F, 0.0F); armorHead.setTextureOffset(11, 11).addBox(-5.0F, -4.0F, 4.0F, 10.0F, 1.0F, 1.0F, 0.0F); bipedHead.addChild(armorHead); } public void setRotationAngles(LivingEntity entityIn, float limbSwing, float limbSwingAmount, float ageInTicks, float netHeadYaw, float headPitch) { super.setRotationAngles(entityIn, limbSwing, limbSwingAmount, ageInTicks, netHeadYaw, headPitch); } @Override public void render(MatrixStack matrixStackIn, IVertexBuilder bufferIn, int packedLightIn, int packedOverlayIn, float red, float green, float blue, float alpha) { super.render(matrixStackIn, bufferIn, packedLightIn, packedOverlayIn, red, green, blue, alpha); } public void setRotationAngle(ModelRenderer modelRenderer, float x, float y, float z) { modelRenderer.rotateAngleX = x; modelRenderer.rotateAngleY = y; modelRenderer.rotateAngleZ = z; } }
  5. If I build a structure using a modded block I created then make it into a nbt file to use the structure in my mod and later modify the block(for example adding a property) will the structure block have the new property?
  6. How can I use the villager/wandering trade system in my entity and make custom trades?
  7. How could I make an event to for example make all parrots variant 2 or all creepers charged? because what define this conditions are private
  8. Even though it's old you can watch thenewboston's java tutorials it's really good
  9. I agree with other people said about learning java first, but as a beginner I think it's hard to learn modding because there aren't many tutorials and most of them are incomplete
  10. I'm making an entity and I'm getting this error in the class ModEntityTypes in the entity penguin when registering it (before I created the penguin entity my another entity was working fine) Error in eclipse: https://prnt.sc/vlmsev Github: https://github.com/LeiteDesnatado/Mod Class ModEntityTypes: https://pastebin.com/U8qnCFCd Class PenguinEntity: https://pastebin.com/mQfPtiYu
  11. Is there any open source mod that is good for learning and have structures, biomes, dimensions etc?
  12. I'm a beginner on modding and I created a entity named Fishy but when I spawn it, it stop and dies drowned, what should I add to my code to make it breath underwater and swim? Entity class: https://pastebin.com/MP9usA3m
  13. I'm a beginner in modding, and my item texture aren't showing up, can someone say what did I do wrong? and I know I shouldn't be using IHasModel but I'm a beginner and writting good code is not a think I'm looking for right now Code: https://github.com/LeiteDesnatado/testmod
×
×
  • Create New...

Important Information

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