Customies icon indicating copy to clipboard operation
Customies copied to clipboard

The texture doesn't work

Open ghost opened this issue 7 months ago • 20 comments

I'm using the latest version of the plugin on pmmp 5.24.0. I did everything according to the wiki, but the texture doesn't work. The plugin and texture pack are archived.

rp.zip

plugin.zip

ghost avatar May 01 '25 10:05 ghost

Change your $this->initComponent("custom:gears"); to $this->initComponent("gears"); it should be same as whatever is in your item_texture.json

"texture_data": {
    "gears": {
      "textures": "textures/items/gears"
    }

HydroGames-dev avatar May 01 '25 11:05 HydroGames-dev

Image

Image

Don't work

ghost avatar May 01 '25 11:05 ghost

ahh, what is your identifier ?? #157

GabBiswajit avatar Aug 14 '25 10:08 GabBiswajit

This is my new accaunt. Identifier? I try gears and custom:gears. Don't work.

theevgeny avatar Oct 05 '25 12:10 theevgeny

This is my new accaunt. Identifier? I try gears and custom:gears. Don't work.

Could you test it out using this fork https://github.com/Amblydia/Customies/tree/v2 Because I think the current IconComponent is broken.

jeantkg avatar Oct 05 '25 12:10 jeantkg

I'll try it now

theevgeny avatar Oct 05 '25 12:10 theevgeny

<?php

namespace RustBedrock\items;

use customiesdevs\customies\item\component\AllowOffHandComponent;
use customiesdevs\customies\item\component\CooldownComponent;
use customiesdevs\customies\item\component\DurabilityComponent;
use customiesdevs\customies\item\component\IconComponent;
use customiesdevs\customies\item\component\MaxStackSizeComponent;
use pocketmine\item\ItemUseResult;
use pocketmine\item\Releasable;
use pocketmine\item\Tool;
use pocketmine\item\ItemIdentifier;
use pocketmine\player\Player;
use customiesdevs\customies\item\ItemComponents;
use customiesdevs\customies\item\ItemComponentsTrait;

class RockItem extends Tool implements Releasable, ItemComponents
{
    use ItemComponentsTrait;
    public function onReleaseUsing(Player $player, array &$returnedItems): ItemUseResult
    {
        return ItemUseResult::SUCCESS;
    }
    public function canStartUsingItem(Player $player): bool
    {
        return true;
    }
    public function getMaxDurability(): int
    {
        return 10000;
    }
    public function __construct()
    {
        parent::__construct(new ItemIdentifier(1000), "Rock");
        $this->initComponent("rb:rock");
        $this->addComponent(new IconComponent("rb:rock","rb:rock","rb:rock"));
        $this->addComponent(new DurabilityComponent(10000,100,100));
        $this->addComponent(new CooldownComponent("rb:rock",1.0));
        $this->addComponent(new AllowOffHandComponent(true));
        $this->addComponent(new MaxStackSizeComponent(64));
    }
    public function getCooldownTag(): string
    {
        return "rock";
    }
    public function getMaxStackSize(): int {
        return 64;
    }
    public function getCooldownTicks(): int {
        return 20;
    }
}

$item = new RockItem();
CustomiesItemFactory::getInstance()->registerItem(fn() => clone $item, "rb:rock", null);

Apparently I'm dumb, I don't see any other explanation. I can't see the texture.

Image Image

theevgeny avatar Oct 05 '25 13:10 theevgeny

Could you use IconComponent instead of initComponent()

jeantkg avatar Oct 05 '25 13:10 jeantkg

Also don't work

theevgeny avatar Oct 05 '25 13:10 theevgeny

Also don't work

If you're using the fork above, then the problem is in your resource pack.

jeantkg avatar Oct 05 '25 13:10 jeantkg

Send me your registered method!!

GabBiswajit avatar Oct 05 '25 13:10 GabBiswajit

CustomiesItemFactory::getInstance()->registerItem(fn() => clone $item, "rb:rock", null);

theevgeny avatar Oct 05 '25 13:10 theevgeny

Also don't work

If you're using the fork above, then the problem is in your resource pack.

What?

theevgeny avatar Oct 05 '25 13:10 theevgeny

If I use a vanilla test server instead of PocketMineMP with a set of parameters for the rb:rock texture, everything works

theevgeny avatar Oct 05 '25 13:10 theevgeny

Which fork do you use ?

GabBiswajit avatar Oct 05 '25 13:10 GabBiswajit

If I use a vanilla test server instead of PocketMineMP with a set of parameters for the rb:rock texture, everything works

Are you using https://github.com/Amblydia/Customies/tree/v2 ?

jeantkg avatar Oct 05 '25 13:10 jeantkg

Please send me the test item class and registration method + a link to the required fork I use 5.24.0 PMMP

Resource Pack: te.zip

theevgeny avatar Oct 05 '25 13:10 theevgeny

I'll just take a look at how it's done and do what I need to do.

theevgeny avatar Oct 05 '25 13:10 theevgeny

do you have discord? if yes then can you join the customies discord server.

jeantkg avatar Oct 05 '25 13:10 jeantkg

Joined what's next

theevgeny avatar Oct 05 '25 13:10 theevgeny