Cant set effect or enchant for player with enchant id >=3 nd effect id = 6 and 7
Pmmp need update enchant and effect system
Nothig
Closing due to not reproducible. Check your plugins.
My bad, /enchant command issue. I misread the issue. No such issue occurs with effects though.
I can not set effect with effect id = 6 and 7
It's because not all enchants aren't registered on PMMP.
Yeah I forgot to add "not" in front of it, don't know what I was thinking.
Make sure you are using the the item IDs for their purpose.
const TYPE_ARMOR_EXPLOSION_PROTECTION = 3; -- Protection from explosions when wearing the enchanted armor.
const TYPE_WATER_BREATHING = 6; -- Breath under water
const TYPE_WATER_SPEED = 7; -- Travel under water with speed
For ~all~ most PocketMine friendly enchantments, see here https://github.com/pmmp/PocketMine-MP/blob/master/src/pocketmine/item/enchantment/Enchantment.php#L29
But only 3 are implemented, check the implementation below. https://github.com/pmmp/PocketMine-MP/blob/master/src/pocketmine/item/enchantment/Enchantment.php#L87
correct... hence the "not implemented" label.
Talking to @TheDeibo 馃槅
So that we dont forget this:
https://github.com/pmmp/PocketMine-MP/blob/master/src/pocketmine/item/enchantment/Enchantment.php#L103 here
GitHub
pmmp/PocketMine-MP
PocketMine-MP - A server software for Minecraft Pocket Edition in PHP
[10:43]
I think that should return null
Xenial
[10:43 AM]
yea
Xenial
[10:43 AM]
it should not succeed with the enchant
Dylan K. Taylor
[10:43 AM]
agreed
Closing this in favour of #414 and #1012