Cobweb place and break not working

  • 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 community!

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

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

nowak

Member
May 13, 2026
2
0
1
Hi everyone,

I'm having a weird issue with Skript version 2.12.2 on Minecraft 1.20.1.

My code:
on break:
if "%region at player%" contains "mapka1":

if event-block is diamond ore or diamond block or emerald ore or emerald block or gilded blackstone or cobweb or oak planks or hay block:
stop

cancel event
send "&cNie możesz niszczyć tego bloku!" to player

on place:
if "%region at player%" contains "mapka1":

if event-block is cobweb or oak planks:
stop

cancel event
send "&cTutaj możesz stawiać tylko deski i cobweby!" to player

The problem:
I am trying to place and break cobweb in region "mapka1" but i can't, it only shows me my message: "Tutaj możesz stawiać tylko deski i cobweby!", but as you can see in this part: "if event-block is cobweb or oak planks:" it is clearly said "cobweb".

I can only place and break the cobweb when I have operator on my server.

What I've already tried:
1. Using `web`, `spider web`, `spider webs`, and `minecraft:cobweb` instead of `cobweb`.
2. Wrapping the list in parentheses: `if event-block is (item, item, or item):`
3. If I remove "cobweb" from the list, the script works perfectly.

It seems like Skript 2.12.2 has a conflict with the cobweb.

Has anyone encountered this before?

Versions:
* Skript: 2.12.2
* Server: Spigot
* Addons: No addons, im beginner and I don't really know them.