Pocketmine-mp: Can't use /enchant with id >= 3

Created on 14 Feb 2017  路  12Comments  路  Source: pmmp/PocketMine-MP

Issue description

Cant set effect or enchant for player with enchant id >=3 nd effect id = 6 and 7
Pmmp need update enchant and effect system

  • PocketMine-MP: 01a07a0
  • PHP: 7.0.4
  • Server OS: linux
  • Game version: Win10 and mcpe 1.0.3

Crashdump, backtrace or other files

Nothig

  • ...
Gameplay

All 12 comments

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.

  • _not all enchantments are_ registered (just to be less confusing ;))

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

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jarne picture jarne  路  20Comments

MisteFr picture MisteFr  路  19Comments

admsteck picture admsteck  路  22Comments

zKoz210 picture zKoz210  路  23Comments

mal0ne-23 picture mal0ne-23  路  32Comments