Slimefun

Slimefun

3M Downloads

Prevent Magnet on other plugins custom items

fonkfader opened this issue ยท 3 comments

commented

Description (Required)

i made a plugin that spawn an item on the top of a bloc and made him a teleporter, the plugin need to have the item on the top of the block to be recognized (the item store informations about destination) but if i use the magnet the item move in the air and the plugin cannot reconize the teleporter anymore.

Steps to reproduce the Issue (Required)

use infused magnet on custom items (modified metadata and persitentdataholder custom key) not part of slimefun

Expected behavior (Required)

1 ) if pickupitem is canceled by the plugin slimefun need to respect the canceled state
or
2) if item is not vanilla and not part of slimefun cancel the event (possible config option ?)
or
3) how i can made my plugin stop this beavior without the use of armor stand ?

Server Log / Error Report

no error

Environment (Required)

  • Minecraft Version: 1.15.2
  • Slimefun Version: Slimefun vRC - 4 (git ec40988)
  • CS-CoreLib Version: DEV 80 (git e3242c60)

Thanks a lot for this marvellous plugin ;)

commented

Stable Builds are not supported.

commented

@fonkfader Assign the item metadata with the key "no_pickup".

commented

thanks that work fine !