• Recently Browsing

    No registered users viewing this page.

  • Posts

    • This is a horrible modid. They are meant to be unique and you have quite a few characters, use them. 1.12.2 is no longer supported on this forum. Please update to a modern version of Minecraft to receive support. For more information read the LTS at the top of the page.
    • Every time I try to launch the game, even after attempting to restart, refresh, build, all that stuff (in eclipse), it still gives me these errors:   [09:48:56] [main/ERROR] [FML.TEXTURE_ERRORS]: +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+= [09:48:56] [main/ERROR] [FML.TEXTURE_ERRORS]: The following texture errors were found. [09:48:56] [main/ERROR] [FML.TEXTURE_ERRORS]: ================================================== [09:48:56] [main/ERROR] [FML.TEXTURE_ERRORS]:   DOMAIN items/stm [09:48:56] [main/ERROR] [FML.TEXTURE_ERRORS]: -------------------------------------------------- [09:48:56] [main/ERROR] [FML.TEXTURE_ERRORS]:   domain items/stm is missing 3 textures [09:48:56] [main/ERROR] [FML.TEXTURE_ERRORS]:     domain items/stm is missing a resource manager - it is probably a side-effect of automatic texture processing [09:48:56] [main/ERROR] [FML.TEXTURE_ERRORS]: ------------------------- [09:48:56] [main/ERROR] [FML.TEXTURE_ERRORS]:     The missing resources for domain items/stm are: [09:48:56] [main/ERROR] [FML.TEXTURE_ERRORS]:       textures/aluminium_nugget.png [09:48:56] [main/ERROR] [FML.TEXTURE_ERRORS]:       textures/aluminium_sword.png [09:48:56] [main/ERROR] [FML.TEXTURE_ERRORS]:       textures/aluminium_ingot.png [09:48:56] [main/ERROR] [FML.TEXTURE_ERRORS]: ------------------------- [09:48:56] [main/ERROR] [FML.TEXTURE_ERRORS]:     No other errors exist for domain items/stm [09:48:56] [main/ERROR] [FML.TEXTURE_ERRORS]: ================================================== [09:48:56] [main/ERROR] [FML.TEXTURE_ERRORS]: ================================================== [09:48:56] [main/ERROR] [FML.TEXTURE_ERRORS]:   DOMAIN blocks/stm [09:48:56] [main/ERROR] [FML.TEXTURE_ERRORS]: -------------------------------------------------- [09:48:56] [main/ERROR] [FML.TEXTURE_ERRORS]:   domain blocks/stm is missing 2 textures [09:48:56] [main/ERROR] [FML.TEXTURE_ERRORS]:     domain blocks/stm is missing a resource manager - it is probably a side-effect of automatic texture processing [09:48:56] [main/ERROR] [FML.TEXTURE_ERRORS]: ------------------------- [09:48:56] [main/ERROR] [FML.TEXTURE_ERRORS]:     The missing resources for domain blocks/stm are: [09:48:56] [main/ERROR] [FML.TEXTURE_ERRORS]:       textures/aluminium_ore.png [09:48:56] [main/ERROR] [FML.TEXTURE_ERRORS]:       textures/aluminium_block.png [09:48:56] [main/ERROR] [FML.TEXTURE_ERRORS]: ------------------------- [09:48:56] [main/ERROR] [FML.TEXTURE_ERRORS]:     No other errors exist for domain blocks/stm [09:48:56] [main/ERROR] [FML.TEXTURE_ERRORS]: ================================================== [09:48:56] [main/ERROR] [FML.TEXTURE_ERRORS]: +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=   The thing is, I have all the textures in place; I might have something somewhere misnamed, but if so I really can't tell. This is my folder structure: (I've only kept the ingot and block for an example of each)   resources             ├── assets             │   └── stm             │       ├── blockstates             │       │   ├── aluminium_block.json             │       ├── lang             │       │   ├── en_gb.lang             │       │   ├── en_us.lang             │       │   └── zh_cn.lang             │       ├── models             │       │   ├── block             │       │   │   ├── aluminium_block.json             │       │   └── item             │       │       ├── aluminium_block.json             │       │       ├── aluminium_ingot.json             │       ├── recipes             │       │   ├── aluminium_block.json             │       │   ├── aluminium_ingot_from_block.json             │       │   ├── aluminium_ingot_from_nuggets.json             │       └── textures             │           ├── blocks             │           │   ├── aluminium_block.png             │           ├── items             │           │   ├── aluminium_ingot.png             ├── mcmod.info             └── pack.mcmeta   For example, the ingot model file is: {     "parent": "item/generated",     "textures": {         "layer0": "items/stm:aluminium_ingot"     } }   And, this is how I add items: public class ItemBase extends Item implements IHasModel { public ItemBase(String name, CreativeTabs tab) { setUnlocalizedName(name); setRegistryName(name); setCreativeTab(tab); ItemInit.ITEMS.add(this); } @Override public void registerModels() { Main.proxy.registerItemRenderer(this, 0, "inventory"); } }     Please help, I have searched everywhere to no avail... (BTW there's actually a lot more files, most unused, like textures and models etc for arrows which I plan to implement later...)
    • This doesn't make sense. Either assign the field yourself or use @ObjectHolder, not both. If you do assign it yourself, do not do it in a static initializer.   You are already using DeferredRegister to register your entities...?   Also do not use @OnlyIn.
    • This could be possible as my entity is invisible 😅 Here is my entity class: @ObjectHolder(DeepAffection.modid) public class HeartEntity extends ProjectileItemEntity { @ObjectHolder("heart_entity") public static final EntityType<HeartEntity> HEART = RegistryHandler.HEART_ENTITY.get(); @OnlyIn(Dist.CLIENT) public HeartEntity(double x, double y, double z, World worldIn) { super(HeartEntity.HEART, x, y, z, worldIn); } protected HeartEntity(LivingEntity livingEntityIn, World worldIn) { super(HeartEntity.HEART, livingEntityIn, worldIn); } public HeartEntity(FMLPlayMessages.SpawnEntity packet, World world) { super(HeartEntity.HEART, world); } @Override public IPacket<?> createSpawnPacket() { return NetworkHooks.getEntitySpawningPacket(this); } @Override protected void onImpact(RayTraceResult result) { if (result instanceof EntityRayTraceResult) { EntityRayTraceResult entityRayTraceResult = (EntityRayTraceResult) result; if(entityRayTraceResult.getEntity() instanceof AnimalEntity) { MobEntity entity = (MobEntity) entityRayTraceResult.getEntity(); entity.addPotionEffect(new EffectInstance(Effects.REGENERATION,100,2)); this.remove(); } else if(entityRayTraceResult.getEntity() instanceof PlayerEntity) { PlayerEntity entity = (PlayerEntity) entityRayTraceResult.getEntity(); entity.addPotionEffect(new EffectInstance(Effects.REGENERATION,100,2)); this.remove(); }else if(entityRayTraceResult.getEntity() instanceof MonsterEntity) { MobEntity entity = (MobEntity) entityRayTraceResult.getEntity(); entity.addPotionEffect(new EffectInstance(Effects.SLOWNESS,100,10)); this.remove(); } } else if (result instanceof BlockRayTraceResult) { BlockRayTraceResult blockRayTraceResult = (BlockRayTraceResult) result; World world = this.world; Block block = world.getBlockState(blockRayTraceResult.getPos()).getBlock(); if(block == Blocks.GRASS_BLOCK) { world.setBlockState(blockRayTraceResult.getPos(), BlockList.pink_grass_block.getDefaultState()); Vec3d vec = blockRayTraceResult.getHitVec(); double x = vec.getX(); double y = vec.getY(); double z = vec.getZ(); this.setMotion(x,y,z); this.remove(); } Vec3d vec = blockRayTraceResult.getHitVec(); double x = vec.getX(); double y = vec.getY(); double z = vec.getZ(); this.setMotion(x,y,z); this.remove(); } } public void tick() { super.tick(); if(!this.world.isRemote) { Vec3d vec3d = this.getMotion(); double d0 = this.getPosX() + vec3d.x; double d1 = this.getPosY() + vec3d.y; double d2 = this.getPosZ() + vec3d.z; this.world.addParticle(ParticleTypes.HEART, d0 - vec3d.x * 0.25D, d1 - vec3d.y * 0.25D, d2 - vec3d.z * 0.25D, vec3d.x, vec3d.y, vec3d.z); } } @Override protected Item getDefaultItem() { return ItemList.heart; } }   And my registration code: public class RegistryHandler { public static final DeferredRegister<EntityType<?>> ENTITY_TYPES = new DeferredRegister<>(ForgeRegistries.ENTITIES, DeepAffection.modid); public static void init(){ ENTITY_TYPES.register(FMLJavaModLoadingContext.get().getModEventBus()); } public static final RegistryObject<EntityType<HeartEntity>> HEART_ENTITY = ENTITY_TYPES.register("heart_entity", () -> EntityType.Builder.<HeartEntity>create(EntityClassification.MISC).size(0.5F, 0.5F).build("heart_entity")); }   And this could also be relevant: @Mod("deepaffection") public class DeepAffection { public static DeepAffection instance; public static final String modid = "deepaffection"; private static final Logger Logger = LogManager.getLogger(modid); public static final ItemGroup group = new DeepAffectionItemGroup(); public DeepAffection() { instance = this; FMLJavaModLoadingContext.get().getModEventBus().addListener(this::setup); FMLJavaModLoadingContext.get().getModEventBus().addListener(this::clientRegistries); RegistryHandler.init(); MinecraftForge.EVENT_BUS.register(this); } private void clientRegistries(final FMLClientSetupEvent event) { DeepAffectionRenderRegistry.registryEntityRenders(); DeepAffectionItemRender.render(); Logger.info("clientRegistries method registred."); } ... @Mod.EventBusSubscriber(bus=Mod.EventBusSubscriber.Bus.MOD) public static class RegistryEvents{ ... @SubscribeEvent public void registerEntities(final RegistryEvent.Register<EntityType<?>> event) { event.getRegistry().registerAll ( HeartEntity.HEART ); Logger.info("Entities registred."); } }   And for completeness my renderer for the entity: @OnlyIn(Dist.CLIENT) public class DeepAffectionRenderRegistry { public static void registryEntityRenders() { final Logger logger = LogManager.getLogger(DeepAffection.modid); RenderingRegistry.registerEntityRenderingHandler(RegistryHandler.HEART_ENTITY.get(), renderManager -> new SpriteRenderer<HeartEntity>(renderManager, Minecraft.getInstance().getItemRenderer())); logger.info("Entity render registerd."); } }  
    • 1.12 is no longer supported on this forum. Please update to a modern version of Minecraft to receive support.
  • Topics

  • Who's Online (See full list)