Customies
Customies copied to clipboard
The texture doesn't work
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.
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"
}
Don't work
ahh, what is your identifier ?? #157
This is my new accaunt. Identifier? I try gears and custom:gears. Don't work.
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.
I'll try it now
<?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.
Could you use IconComponent instead of initComponent()
Also don't work
Also don't work
If you're using the fork above, then the problem is in your resource pack.
Send me your registered method!!
CustomiesItemFactory::getInstance()->registerItem(fn() => clone $item, "rb:rock", null);
Also don't work
If you're using the fork above, then the problem is in your resource pack.
What?
If I use a vanilla test server instead of PocketMineMP with a set of parameters for the rb:rock texture, everything works
Which fork do you use ?
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 ?
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
I'll just take a look at how it's done and do what I need to do.
do you have discord? if yes then can you join the customies discord server.
Joined what's next