Jump to content
  • 0

Please Help Me Remove Normal Cobblestone, But Not Named Cobblestones


duhnoob1010

Question

on block break:
    loop all players:
        loop all items in loop-player's inventory:
            if loop-item's name is "&6&lCOBBLESTONE AUTO CRAFTER":
                if amount of cobblestone named "" in loop-player's inventory is greater than 9:
                    remove 9 cobblestone named "" from loop-player's inventory

 

So as you can see in this skript, it is supposed to remove 9 cobblestone from player's inventory. The issue is that it also removes other cobblestones that have different names. If I use color codes such as &f, &r, &e, etc, none of those removes ordinary cobblestones. 

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

Hey duhnoob1010

This is the wrong category. Please go here -> https://forums.minehut.com/forum/18-discussion/

If I helped you out, give this post a Like or a Thanks :>

Like_Thanks_Cropped_Resized.gif.f2d012f7dc2f12e8dc3a1000131d4816.gif

Spoiler

IGN: Practice40Hours

DiscordPractice#6633

──────────────────────── 

Joined - 06/02/2020

[VIP] - 11/28/2020

[PRO] - 10/25/2021

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...