#Hey! how would I go about checking if a player has a specific item in their hotbar?

70 messages · Page 1 of 1 (latest)

stiff geyser
#

start with player.getInventory

mystic kindle
#

!!cheats

novel atlasBOT
#

We do not support hacked clients, cheats, or modifications that are intended to give you the upper hand in a server, competitive or otherwise.
See rule 1 in #welcome and the Discord TOS: https://discordapp.com/terms

mystic kindle
#

This is definitely a cheat

#

They’re trying to make a breach swapping client

#

They didn’t even bother hiding it lol (Maceutils)

trim torrent
#

Im not really sure if its possible to check hotbar slots (clientside) but it is possible to check what the player is currently holding
here is an example for getting the target players item

item = String.valueOf(((LivingEntity) target).getMainHandStack());
        System.out.println(item);```
#

to check for a specific item you could do getMainHandStack.equals()

mystic kindle
#

Why are you going around and actively helping potential cheaters

trim torrent
mystic kindle
#

The forum is meant for helping people who are not cheating

#

This is made very clear by !!cheats

trim torrent
#

He wanted help i tried to help instead of whining

#

Every single thing that could be used in a cheat you whine about even dropping items

mystic kindle
#

There's a reason why this post is deleted

trim torrent
#

I dont even know what the original post was xd

#

I just saw getting item

mystic kindle
#

Then why are you here

trim torrent
#

To help

mystic kindle
#

No

#

That's not helping

#

If you didn't read the original post, how do you know what they're asking for
How do you know what the context is

trim torrent
#

The thread title

mystic kindle
#

Why do you think that you're better informed than people who were actually here when the messages were sent

trim torrent
#

Im not?

#

Why are you so pressed

mystic kindle
#

Then why are you still helping a deleted post

trim torrent
#

Because i assumed it needed help as the op didnt clarify anything was solved

mystic kindle
#

I'm so tired of people getting annoyed at me for telling people that they shouldn't be cheating

mystic kindle
#

They didn't clarify anything because they deleted the post as soon as I noticed that it was a cheat

#

That's not reasonable behavior for someone who is not making a cheat

mystic kindle
#

How is that not a cheat

trim torrent
#

That is indeed a cheat Yes

trim torrent
#

Called auto hotbar i do the same thing in my own project for managing inventories

mystic kindle
#

Yes, and we don't support that

trim torrent
#

What if its singleplayer

#

Or a private server

#

I mostly just test anticheats whenever im on mc doing no harm

#

On a server specifically meant for it

#

Also read the eula

mortal canopy
mystic kindle
trim torrent
#

Unless they updated their terrible tos

mystic kindle
trim torrent
#

You can just say lol

#

I do not care if you laugh or not

mystic kindle
trim torrent
#

No problem at all feel free to express your emotions

#

We would all be just 😐 without them xd

potent cipher
#

why is everyone getting all mad about cheats rn

#

like i understand the rules

#

but EVERYTHING seems to be about cheats rn

#

(coming from someone who develops cheats in their spare time but not related to here)

trim torrent
#

Ive even seen people send threats because of it.. some people are just online too much

winter nymph
winter nymph
mystic kindle
delicate frost
delicate frost
mystic kindle
#

I also noticed that they are also part of a pvp community, which makes it all the worse lol

trim torrent
#

the only reason there have been alot of more cheaters in the modern minecraft community is because 1.8 has basically been fully used and developers try to use newer versions to exploit anticheat exceptions for newer versions