Discord Thread Disable Placing of Custom Blocks

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

This thread came from the skUnity Discord. You can't reply to it here but if you join the skUnity Discord, you'll be able to post a reply there. The thread link is part of the thread's message.
Status
Not open for further replies.

skUnity Discord

Site Manager
Aug 5, 2023
12,755
1
0
The skUnity Discord
discord.gg
I have a list of custom named items, and I want to not let players place them down, while still allowing them to place the normal versions of those items.

For example, one item in the list is
oak wood named "&3Compressed Wood"

So players should be able to place normal oak wood, but not this custom item.

I have tried this, but it didn't work, since the block is just a normal block and not the custom item:
code_language.skript:
on place:
    if {mylist::*} contains event-block:
        cancel event

Posted by: ChicknTurtle from the skUnity Discord. View the thread on skUnity Discord here
 
would make crafting tables / any other interactive block unusable while holding a custom block / item. you should use "on place" instead
mhm okay
by the way. the op should add the "solved" tag to this post.
so people know

Posted by: andrie_ from the skUnity Discord.
 
Status
Not open for further replies.