Multiple questions regarding code

Started by KurisuMurei on

Topic category: Advanced modding

Last seen on 17:01, 3. Jun 2022
Joined Sep 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Multiple questions regarding code

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 17:01, 3. Jun 2022
Joined Sep 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
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 03:03, 6. Feb 2024
Joined Apr 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
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 17:01, 3. Jun 2022
Joined Sep 2018
Points:

User statistics:

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