Help me with overlays pls

Started by BaguetteDoesnt… on

Topic category: Help with Minecraft modding (Java Edition)

Active 3 years ago
Joined Oct 2021
Points:
570

User statistics:

  • Modifications: 0
  • Forum topics: 5
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 7
Help me with overlays pls

ive been trying to make an item that makes an overlay display when you hold it, ive tried everything i could find about overlays but i didnt got it working, can someone help me with this please?

Active 1 year ago
Joined Oct 2020
Points:
1630

User statistics:

  • Modifications: 0
  • Forum topics: 15
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 1874
with conditions overlay…
Wed, 11/03/2021 - 20:08

with conditions

overlay display condition trigger (on overlay condition)

if item in main hand of event target entity = ITEM OR item in off hand of event target entity = ITEM

 do return true

return false (outside of If Statement)

Active 3 years ago
Joined Oct 2021
Points:
570

User statistics:

  • Modifications: 0
  • Forum topics: 5
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 7
return true the return…
Wed, 11/03/2021 - 20:51

return true

the return procedure makes an error message appear when i try to use it and i dont even know what am i doing wrong

Active 1 year ago
Joined Oct 2020
Points:
1630

User statistics:

  • Modifications: 0
  • Forum topics: 15
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 1874
show me your procedure 
Wed, 11/03/2021 - 21:04

show me your procedure 

Active 1 year ago
Joined Oct 2020
Points:
1630

User statistics:

  • Modifications: 0
  • Forum topics: 15
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 1874
no, no, delete the second if…
Wed, 11/03/2021 - 21:49

no, no, delete the second if statement, and just put return False outside, 

Active 3 years ago
Joined Oct 2021
Points:
570

User statistics:

  • Modifications: 0
  • Forum topics: 5
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 7
i already solved it lol…
Thu, 11/04/2021 - 15:53

i already solved it lol
thanks anyways
also i do know how to use conditions what made me boggle my mind is the return procedure

Active 1 year ago
Joined Oct 2020
Points:
1630

User statistics:

  • Modifications: 0
  • Forum topics: 15
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 1874
yeah it's supposed to be…
Thu, 11/04/2021 - 16:08

yeah it's supposed to be outside of the if statement, that's how conditions just work