Jump to content

Would it be possible to support custom items?

Pending 1.0.16

hid333
hid333

Posted (edited)

Would it be possible to support custom items?
For example, I am using a BlackCardKey with a skin applied to a BlueCard key as a custom item.
I would like it so that when this item is recycled, it produces scrap,
but I want the default Blue Card key to be excluded from this.

Edited by hid333
  • Curator
imthenewguy

Posted

6 minutes ago, hid333 said:

Would it be possible to support custom items?
For example, I am using a BlackCardKey with a skin applied to a BlueCard key as a custom item.
I would like it so that when this item is recycled, it produces scrap,
but I want the default Blue Card key to be excluded from this.

The creator of the plugin that handles the keycard would need to handle the feature. My plugin doesnt change the vanilla recycling functions at all besides blacklisting some items.

hid333

Posted

When registering a custom item, it also affects the base item (skin ID 0),
so recycling the base item produces the same output as the custom item.
My intention was to differentiate them by skin.

For example:

item shortname: keycard_blue, skin ID: 123456789, recycling result: scrap x 10

item shortname: keycard_blue, skin ID: 246810, recycling result: scrap x 20

I intended to have them separated in this way.

  • Curator
imthenewguy

Posted

51 minutes ago, hid333 said:

When registering a custom item, it also affects the base item (skin ID 0),
so recycling the base item produces the same output as the custom item.
My intention was to differentiate them by skin.

For example:

item shortname: keycard_blue, skin ID: 123456789, recycling result: scrap x 10

item shortname: keycard_blue, skin ID: 246810, recycling result: scrap x 20

I intended to have them separated in this way.

You would be better off writing a dedicated recycling plugin to handle this. PersonalRecyclers is designed to provide a deployable recycler that players can have in their base, and is only accessible to them and their team. Your suggestion is outside of the scope of my plugin.

1.9m

Downloads

Total number of downloads.

9.1k

Customers

Total customers served.

133.4k

Files Sold

Total number of files sold.

2.8m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.