CustomiesDevs/Customies

Custom Entities have no Texture

Closed this issue · 4 comments

{
	"format_version": "1.10.0",
	"minecraft:client_entity": {
		"description": {
			"identifier": "customies:tier1",
			"materials": {
				"default": "entity_alphatest"
			},
			"textures": {
				"default": "textures/entity/tier1"
			},
			"geometry": {
				"default": "geometry.tier1"
			},
			"render_controllers": ["controller.render.default"]
		}
	}
}
<?php

namespace GalacticraftPM\DemonicDev\Entities\Rockets;

use pocketmine\entity\Entity;
use pocketmine\entity\EntitySizeInfo;
use pocketmine\entity\Location;
use GalacticraftPM\DemonicDev\Main;
class Tier1 extends Entity
{

    public function __construct(Location $location, ?CompoundTag $nbt = null){
        parent::__construct($location);
        $this->setScale(2);
        $this->setNameTag("tier1");
        $this->setNameTagAlwaysVisible(true);
        $this->setInvisible(false);
    }

    public static function getNetworkTypeId(): string {
      return "customies:tier1";

    }

    protected function getInitialSizeInfo() : EntitySizeInfo{
        return new EntitySizeInfo(1.8, 0.6);
    }

    public function onUpdate(int $currentTick): bool{
        Main::getInstance()->getLogger()->info("I exist");
        $cords = $this->getPosition();
        Main::getInstance()->getLogger()->info("$cords");

        return parent::onUpdate($currentTick);
    }
}

Yeah even with your customWikiPack.... my Entity has no texture, idk why :/

like i tried anything, even a working addon, where i used the NetworkType Id, still no success, so yeah i dont know what i am doing wrongly, could u help me?

can i get a look about the register code?

This is an issue with your resource pack, Customies has no relation to the rendering of textures. Make sure there is a file textures/entity/tier1.png inside your resource pack

like when using Customies, the entity has no hitbox anf no skin...
When i use DemonicCustomMobsV5 with Human Entity, and set skin, the geometry and tier1.png are loaded, with customies its blanc, and yes there was tier1.png in the resourcepack