The Ability to put multiple lines of code into one

Started by SpiDro on

Topic category: Feature requests and ideas for MCreator

Last seen on 02:16, 22. Aug 2023
Joined Mar 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
The Ability to put multiple lines of code into one

Code snippits are a great way to do things mcreator doesnt directly support.  And for the most part I dont mind stacking code snippits 

to set lines of code.  however, it would be far easier if we could put multiple lines into one code snippit.  as that would allow me to for example

Set Local Variable Test to < <Code Snippit ;

(((entity.getCapability(TempagencyModVariables.PLAYER_VARIABLES_CAPABILITY, null)
.orElse(new TempagencyModVariables.PlayerVariables())).sellprice)))),

 

as of right now the 2nd line would get ignored, which in most cases would be fine.  But I go from needing to add 2 lines of snippits, to needing 7.