The Ability to put multiple lines of code into one

Started by SpiDro on Tue, 06/15/2021 - 00:10

Topic category: Feature requests and ideas for MCreator

Last seen on 22:53, 9. Jul 2021
Joined Mar 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
The Ability to put multiple lines of code into one
Tue, 06/15/2021 - 00:10

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.