How to make working Custom Damage Blocks/Cacti and Carpets. (2021.3)

Started by 1Sldiru on

Topic category: User side tutorials

Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to make working Custom Damage Blocks/Cacti and Carpets. (2021.3)

Hello! You might have seen this thread for help with the newest version. I have all of the info here.

Custom Cacti/Damage Block

Go through the normal steps of creating an mcreator block. Then when you are finished go to the Triggers section. And do not click save and close just yet.
In triggers make a new procedure for "When entity walks on Block". Do this: Click Entity Management and drag the first block in the menu into the procedure. Now Save it.
Your damaging block is now ready.

Custom Carpets
Make sure you have a texture. This one is more straight forward. Make a new block. Set the Bounding Box Y value from 16 to 1. Create a custom model. The bounding box tag only affects hitboxes. I have some example code that you can create and use for a json file:
{
"textures": {
"0": "example:blocks/example",
"particle": "example:blocks/example"
},
"elements": [
{
"from": [0, 0, 0],
"to": [16, 1, 16],
"faces": {
"north": {"uv": [0, 0, 16, 1], "texture": "#0"},
"east": {"uv": [0, 0, 16, 1], "texture": "#0"},
"south": {"uv": [0, 0, 16, 1], "texture": "#0"},
"west": {"uv": [0, 0, 16, 1], "texture": "#0"},
"up": {"uv": [0, 0, 16, 16], "texture": "#0"},
"down": {"uv": [0, 0, 16, 16], "texture": "#0"}
}
}
],
"display": {
"thirdperson_righthand": {
"rotation": [75, 45, 0],
"translation": [0, 2.5, 2],
"scale": [0.375, 0.375, 0.375]
},
"thirdperson_lefthand": {
"rotation": [75, 45, 0],
"translation": [0, 2.5, 0],
"scale": [0.375, 0.375, 0.375]
},
"firstperson_righthand": {
"rotation": [0, 45, 0],
"scale": [0.4, 0.4, 0.4]
},
"firstperson_lefthand": {
"rotation": [0, 225, 0],
"scale": [0.4, 0.4, 0.4]
},
"ground": {
"translation": [0, 3, 0],
"scale": [0.25, 0.25, 0.25]
},
"gui": {
"rotation": [30, 225, 0],
"scale": [0.625, 0.625, 0.625]
},
"head": {
"scale": [0.375, 0.375, 0.375]
},
"fixed": {
"scale": [0.5, 0.5, 0.5]
}
}
}

Enjoy your new blocks and don't forget to share this!
-Sildur1

Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Note: Damage Blocks actually…
Tue, 12/21/2021 - 16:54

Note: Damage Blocks actually need to have the "when entity collides" Trigger instead of the when stepped on trigger.