Solved On pick up (block name)

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

Status
Not open for further replies.

EnZi

Supporter
Feb 7, 2020
8
1
0
Skript Version: Skript 2.4.1
Minecraft Version: 1.12.2

Hello.. I'm trying to get name of block in "on pick up" event.. I currently wasted 4hours to get this thing to work but without any progress.. I tried something about 20 different types of code but none work..

Few Examples I tried:
Code:
on pick up:
    if event-item is cobblestone named "Cobblestone":
        send "1" to player

Code:
on pick up:
    if event-item is cobblestone:
        if name of event-item contains "Cobblestone":
            send "1" to player

Code:
on pick up:
    if event-item is cobblestone:
        if name of event-item is "Cobblestone":
            send "1" to player

Addons using:
skRayFall+v1.9.19
SkQuery-4.1.2
Sk-NBeeT
Skellett
Ersatz
skript-yaml
skript-mirror

Have you tried searching the docs? Yes
Have you tried searching the forums? Yes
 
Status
Not open for further replies.