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

Started by TactiQ on

Topic category: Help with Minecraft modding (Java Edition)

Active 3 years ago
Joined Sep 2018
Points:
690

User statistics:

  • Modifications: 0
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 7
[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
Active 1 year ago
Joined Oct 2020
Points:
1615

User statistics:

  • Modifications: 0
  • Forum topics: 15
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 1874
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

Active 1 year ago
Joined Oct 2020
Points:
1615

User statistics:

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

so* PS: might be my phone tho

Active 1 year ago
Joined Oct 2020
Points:
1615

User statistics:

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

could you write down your procedure instead?

Active 3 years ago
Joined Sep 2018
Points:
690

User statistics:

  • Modifications: 0
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 7
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?

Active 1 year ago
Joined Oct 2020
Points:
1615

User statistics:

  • Modifications: 0
  • Forum topics: 15
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 1874
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

Active 1 year ago
Joined Oct 2020
Points:
1615

User statistics:

  • Modifications: 0
  • Forum topics: 15
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 1874
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?

Active 1 year ago
Joined Oct 2020
Points:
1615

User statistics:

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

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

Active 3 years ago
Joined Sep 2018
Points:
690

User statistics:

  • Modifications: 0
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 7
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

Active 1 year ago
Joined Oct 2020
Points:
1615

User statistics:

  • Modifications: 0
  • Forum topics: 15
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 1874
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)

Active 3 years ago
Joined Sep 2018
Points:
690

User statistics:

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

okay thanks your help

Active 1 year ago
Joined Oct 2020
Points:
1615

User statistics:

  • Modifications: 0
  • Forum topics: 15
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 1874
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

Active 1 year ago
Joined Oct 2020
Points:
1615

User statistics:

  • Modifications: 0
  • Forum topics: 15
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 1874
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

Active 1 year ago
Joined Oct 2020
Points:
1615

User statistics:

  • Modifications: 0
  • Forum topics: 15
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 1874
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

Active 3 years ago
Joined Sep 2018
Points:
690

User statistics:

  • Modifications: 0
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 7
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 :)