Bug Closed · Resolved

CanPlaceOn and CanBreak don't work

#6236 opened by Unknown 1 year ago

Unknownreported this bug

Summary

I have been testing around with CanBreak and CanPlaceOn in the files, but every time I try it out it gives me the error that the item is not properly configurated and it returned to null. I have used the examples from the wiki and tried out many options, but it either doesn't work at all or just completely breaks. Please note I am using MythicMobs on Aternos!

Steps to reproduce

Really it's just create any item with the CanBreak and/or the CanPlaceOn prompts.

Current behavior

An error pops up saying 'Could not get item: item is improperly configurated and returned to null.'

Intended correct behavior

If I use "/mm i get <ItemName>" that has the prompts in its code, it should give me the item like with any other and have the working attributes.

Server log file

LOG 1 https://pastebin.com/UbUPWYxT

LOG 2 https://pastebin.com/bYHJKv8v

HOW THE CODE LOOKS https://pastebin.com/PBTrHVBS

Debug log snippet

I'm a little lost here... Sorry :/

Proposed fixes

It should simply give me the item without errors and work like intended... right?

Unknowncommented

Please upload a complete startup log for this issue for version and environment checks to begin debugging.
(from server start through Done! until you recreate the issue)

Unknowncommented

Am able to confirm bug on 5.8.2 and 1.21.4

Probably related to the component changes, since this is now a data component. My latest.log: https://pastebin.com/2QJCCLVE

MyCoolAnvil:
  Id: ANVIL
  CanPlaceOn:
  - diamond_block
Unknowncommented

I believe you're talking about the full server log from start to present? In that case, here it is: https://pastebin.com/UQEejyqM

I hope this is enough information! (Sorry, I'm not that good with technical stuff)

Unknowncommented

Can also confirm this is still happening on 1.21.5 5.10.0

Unknowncommented

Fixed in new dev builds

Sign in to join the discussion.