#I'm dumb why does this not work lol

1 messages · Page 1 of 1 (latest)

bleak ruin
#

you are missing a space in "left click"...

maiden dust
#

You can do either

#

That doesn't matter

bleak ruin
#

debug then

maiden dust
#

how

#

I'm dumb lol

bleak ruin
#

oh...

maiden dust
#

Never done it before

#

Hold on I'll just try to look it up

icy atlas
#

on left click:
if clicked-block is leaves?

#

idk

#

try something along those lines

maiden dust
#

I think that wouldn't do anything

bleak ruin
#

if player's tool is (item) named "idk" pretty sure

icy atlas
#

theyre tryna click leaf blocks

stray anvil
#

Why check if players hunger is 20 and stop ir

bleak ruin
#

Yeah...

#

They have a if played held item is

icy atlas
#

on left click:
  if clicked-block is leaves:
    # do stuff

maybe?

stray anvil
#

Why nor
If player's food level < 20:

maiden dust
#

What I'm trying to do is make it so the "+1 food" message won't show when they click on the leaves

#

basically

maiden dust
icy atlas
stray anvil
#

Because i feel like player's hunger doesn't exist or is broken

icy atlas
#

last time I tried that it didnt work without skquery

stray anvil
#

No

#

Ofc not

icy atlas
#

tf

#

im in a diff universe then lmfao what

#

odd

stray anvil
#

< means smaller than aka if object is smaller than 69

icy atlas
stray anvil
#

But its better written as if object < 69

maiden dust
stray anvil
icy atlas
#

o

stray anvil
#

🧠

#

Brain

icy atlas
stray anvil
#

Eat brain

icy atlas
#

psomasterio(player)

#

promasterio(player)

stray anvil
#

Another good day to terrorize a villager

icy atlas
#

indeed

stray anvil
#

Nvm he sold me 1 lantern for 2 stacks of emeralds

maiden dust
#

cries

stray anvil
#

Send ur updated code

#

And errors if u have em

maiden dust
#

on leftclick on leaves:
if name of the player's held item is "&fAttack&f":
If player's food level < 20:
feed player by 1
send action bar "&a+1 food&a" to player
else:
stop

#

I also tried it like this without the else:

on leftclick on leaves:
if name of the player's held item is "&fAttack&f":
If player's food level < 20:
feed player by 1
send action bar "&a+1 food&a" to player

stray anvil
#

Remove else: stop

#

Its useless

#

Ye

maiden dust
#

ok

stray anvil
#

Are you in creative?

maiden dust
#

That didn't work either unfortunately tho

stray anvil
#

It sends the message right

maiden dust
stray anvil
#

Or action bsr i mean

maiden dust
#

yes

stray anvil
#

Well just try debugging

maiden dust
#

aaaaaaaaa I still don't really know what that meansss

stray anvil
#

After every if statement

#

Add an else

#

That broadcast something

maiden dust
#

ok then