[SOLVED]Is there any way to disable the player to build?

Started by TactiQ on

Topic category: Help with Minecraft modding (Java Edition)

Joined Sep 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
[SOLVED]Is there any way to disable the player to build?
Sun, 10/17/2021 - 02:35 (edited)

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
Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I will be honest that thing…
Sat, 10/16/2021 - 19:50

I will be honest that thing is is blurry I can only see Player Right Clicks with item

Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
so* PS: might be my phone tho
Sat, 10/16/2021 - 19:50

so* PS: might be my phone tho

Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
could you write down your…
Sat, 10/16/2021 - 19:51

could you write down your procedure instead?

Joined Sep 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
sure Event trigger - trigger…
Sat, 10/16/2021 - 23:35

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?

Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
remove the first if…
Sat, 10/16/2021 - 23:43

remove the first if statement as the allow block might be getting true = if player instead of true = if item in main hand

Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
also I am not very familiar…
Sat, 10/16/2021 - 23:47

also I am not very familiar with the block, but don't you need to disable building first?

Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
just re read it and appears…
Sat, 10/16/2021 - 23:47

just re read it and appears not, ignore 2nd comment

Joined Sep 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
it doesn't work either, i…
Sat, 10/16/2021 - 23:54

it doesn't work either, i tried to build normal blocks like, gravel, glass and it didn't work

Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
if you haven't found an…
Sat, 10/16/2021 - 23:55

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)

Joined Sep 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
okay thanks your help
Sat, 10/16/2021 - 23:57

okay thanks your help

Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
made 2 procedures, A. you…
Sun, 10/17/2021 - 01:52

made 2 procedures, A. you will need to get the player his block back B. it will drop the item

Procedure

Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
wait sorry on B add a not…
Sun, 10/17/2021 - 01:53

wait sorry on B add a not before item in off hand of event target entity

Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
and I think B needs the…
Sun, 10/17/2021 - 01:54

and I think B needs the Block is placed global trigger and not Right Click

Joined Sep 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
It works! thanks you so much…
Sun, 10/17/2021 - 02:27

It works! thanks you so much for the help, i really appreciate it :)