
Placing a block with the on place event dupes the block?
Closed this issue ยท 3 comments
Skript/Server Version
Skript: 2.11.1
Bug Description
Whenever i do a on place: when i place the block even if theres no code after it will dupe the block.
Expected Behavior
Its normally supposed to just place the block and go on with its day
Steps to Reproduce
just do on place: and it will show it
Errors or Screenshots
No response
Other
No response
Agreement
- I have read the guidelines above and affirm I am following them with this report.
Can you please provide a full output of /sk info?
Does this still occur with 2.12.1?
If I had to guess this is more related to issues with modifying information on the item itself i.e.
- setting the item's name
- setting the item's lore
- getting/setting anything regarding nbt
- basically anything that modifies itemmeta
iirc the way to work around this is to store a reference to event-item
or 1 of player's tool
if you're using that
in other words forcing skript to make a copy of the item without any references to the original data
Providing code would help with replicating this but isn't too hard to replicate.
EDIT: for easier replication
on block place:
set name of event-item to "%random uuid%"
And for how I fixed in for myself
on block place:
copy event-item into {_item}
set name of {_item} to "%random uuid%"