Multiple questions regarding code

Started by KurisuMurei on Wed, 09/19/2018 - 05:14

Topic category: Advanced modding

Last seen on 18:24, 24. Sep 2018
Joined Sep 2018
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Multiple questions regarding code
Wed, 09/19/2018 - 05:14

Okay, so I'm working on a Mario-themed mod I have a few questions:

1. Where should I put code so that it executes every tick, regardless of player inventory or other factors? For example, a custom item with a temporary effect tied to a variable that states whether that item's effect is active.

2. What kind of code should I use to modify the proportions of the player character's model and/or hitbox in ways other than vanilla? For example, while under a custom item effect, the player character is larger.

Last seen on 18:24, 24. Sep 2018
Joined Sep 2018
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Update: I figured out how to…
Wed, 09/19/2018 - 22:13

Update: I figured out how to get the first one done with procedure blocks (it's not really clear, but the drop down for the event trigger doesn't show all of the options at once, and for others who might be asking, that is also the case for potion effects.)

The second question is still on the table, though.

Last seen on 23:03, 17. Nov 2018
Joined Apr 2014
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
  • wiki contributor
For the second one it is not…
Thu, 09/20/2018 - 14:17

For the second one it is not possible
Developers have stated that MCreator is a moding tool only and it will never be able to change anything in original code of minecraft

Last seen on 18:24, 24. Sep 2018
Joined Sep 2018
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Sounds like it's more an…
Fri, 09/21/2018 - 04:04

Sounds like it's more an area of expertise of a MinecraftForge expert, then. I've been hearing a bit of that going on over there. (Items that change the player character into a giant robot, as an example.)