Add the option to modify the code of Minecraft

Started by Bloticube on

Topic category: Feature requests and ideas for MCreator

Joined Apr 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Add the option to modify the code of Minecraft

Now in the last snapshot (first snapshot of Mcreator for 1.18.2) we can't change the code, we can only say it and explore but you can't change anything in the code. My propostion is to add an option to change the code.

 

Joined May 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
MCreator 2022.1  Expand the…
Fri, 04/01/2022 - 20:01

MCreator 2022.1 

Expand the Workspace File Browser 

 

Look for the file you would like to modify 

 

Make changes 

 

Close and save 

 

Sometimes you will be required to lock the code.

Joined Apr 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Yes but you edited your own…
Sat, 04/02/2022 - 14:34

Yes but you edited your own mod, me I speak to like modify the code the minecraft like made tnt explosion bigger.

Joined May 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
As per my understanding, my…
Mon, 04/04/2022 - 22:36

As per my understanding, my or anyone's mod is a way to modify the code (also datapacks, but at a different level). In order to capture the moment a tnt explodes fall under the 80 tick window after ignited. Since modifying the tnt directly requires advance coding, above my knowledge (it would be better to create a custom tnt). I can give you a different approach:

1. Create a standalone procedure (name it as you like)

2. Add these blocks 

 

The command inside is:

summon tnt ~ ~-1 ~ {Fuse:1,Passengers:[{id:"minecraft:creeper",ExplosionRadius:9b,Fuse:1,ignited:1b}]}

 

Increase or decrease the ExplosionRadius:#b

3. Save and test

 

What is happening? Global trigger - waits to an explosion to occur ... if the block at that location is tnt, it will summon a new tnt which will have a creeper passenger that will explode, but with a radius of 9. You could increase or decrease that value. With no lag. But if it is a huge explosion, you might see a significant lag.