Started by
TactiQ
on
Topic category: Help with Minecraft modding (Java Edition)
i tried to make the player allow to build ONLY if they have an specific item off hand, but i think it doesn't work, can someone help please?
link to the image : https://imgur.com/a/KrmyQwH
Edited by TactiQ on Sun, 10/17/2021 - 02:35
I will be honest that thing is is blurry I can only see Player Right Clicks with item
so* PS: might be my phone tho
could you write down your procedure instead?
sure
Event trigger - trigger by external call
or when (global trigger):
If - is target entity (sub)type of entity player
AND - item in off hand of event target item = (item i wanna use)
do- allow Event target entity to build if [true] otherwise don't
when i run client it doesn't work, you have any idea why?
remove the first if statement as the allow block might be getting true = if player instead of true = if item in main hand
also I am not very familiar with the block, but don't you need to disable building first?
just re read it and appears not, ignore 2nd comment
it doesn't work either, i tried to build normal blocks like, gravel, glass and it didn't work
if you haven't found an answer till I get home, I will see the procedures. (20 mins aprox, at that time prob you alr found answer)
okay thanks your help
made 2 procedures, A. you will need to get the player his block back B. it will drop the item
wait sorry on B add a not before item in off hand of event target entity
and I think B needs the Block is placed global trigger and not Right Click
It works! thanks you so much for the help, i really appreciate it :)