Skript

Skript

788k Downloads

Placing a block with the on place event dupes the block?

Closed this issue ยท 3 comments

commented

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.

https://cdn.discordapp.com/attachments/1399699348941570049/1403744596646826135/Minecraft_2025.08.09_-_15.19.10.01.mp4?ex=6898aa88&is=68975908&hm=0e37b35deecdb3b693f916dfa98eb248ca8380d9439cc37b62b7c33554b9cabf&

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.
commented

Can you please provide a full output of /sk info?
Does this still occur with 2.12.1?

commented

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%"
commented

Closing due to inactivity