How to create a Sculk-Vein like block

Started by pajamas on

Topic category: Help with Minecraft modding (Java Edition)

Joined Oct 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to create a Sculk-Vein like block

I'm looking to create a modded block that functions the same as sculk-veins, where you can place it on any block side and have multiple block faces covered in a single block. I'm a visual learner and I haven't found any tutorials on this yet, any help would be appreciated :)

Joined Dec 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to make a sculk vein…
Tue, 10/08/2024 - 14:32

How to make a sculk vein like block:

  1. Make a custom model in block bench that is 16x16 pixels wide/long but completely flat and texture it. 
    1. Import this model and texture into mcreator
  2. Make your block
    1. Visual Tab
      1. Select your custom model and textures
      2. Set block rotation D/U/N/S/W/E from block face
      3. Texture Transparency to mip mapped and check the box for transparent parts
    2. Bounding Box
      1. Minimums should all be 0 0 0
      2. Maximum should be set to Max X: 16 Max Y: 0 Max Z: 16
    3. Properties
      1. Material: Air
        1. Air is not a solid block, thus, your block will not be able to be placed on itself.
      2. Can Walk through block? Check
      3. Is Replaceable? Check
      4. Drop Amount to 0 if you don't want it to drop itself
        1. Otherwise make a custom drop if you want it to drop something else
        2. Make a loot table if you want it to drop something by chance
      5. If the block requires a hoe or shears to collect
        1. Requires Correct tool for drops? check
        2. Select the tool it requires
      6. Vanilla Sound Set
        1. Pick what block you want it to sound or make your own customs
    4. Advanced Properties
      1. Does Block Act like Ladder: Check this if you want to be able to climb your block
      2. Reaction to being pushed: Break
      3. AI Path: Walkable
    5. Triggers
      1. You will need several triggers
      2. When Block Added Trigger
        1. You will need to specify the direction of the block and the block under/above/beside it based on the direction it is facing.
          1. Up = y+
          2. Down = y-
          3. North = x-
          4. South = x+
          5. East = z-
          6. West = z+
        2. If block is facing Down and is block at x y+1 z solid do return true
          1. You will do something like this for each direction
      3. When Neighbour block changes
        1. You will just make the same procedure, except you will check if the solid block is no longer solid
        2. If block at xyz facing Down and is block at x y+1 z solid = false do break block at xyz
    6. Generation
      1. blocks this block can replace: Air, Cave Air
      2. Restricted Biomes: Select the biomes this block can generate in
      3. Generation Shape: Uniform unless you want it to become more common at lower levels
      4. Generation Height: What Y Level your block can generate at.
      5. Make sure you enable ore generation feature.
  3. IF This does not work, let me know and I'll seek a different method. 
  4. Plausible Issues
    1. Rotation is wrong
      1. Ensure block face rotation is selected properly
      2. Remodel the block so that it is designed like a vine instead
    2. Not generating
      1. Disable ore generation and create a new feature
      2. Call the feature CustomBlockPatchFeature
      3. Generation Stage: Underground Decoration
      4. Biome if any
      5. Feature Type
        1. Misc Features - Patch Feature with block CustomSculk
      6. conditions: 
        1. With randomd xz in chunk repeated x times on every vertical layer
        2. Only if biome at current position has this feature (If biome specified)
        3. With Uniform Distribution between min Y: and  max Y:
    3. Block only generating like carpet
      1. Block added trigger needs to be altered to make the block rotate after it is added.
  5. If nothing that I said works, I will experiment and play around until I figure it out and come back with a proper tutorial.
Joined Oct 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thanks so much for the reply…
Mon, 10/21/2024 - 23:49

Thanks so much for the reply! I'll try this out, but I'll let you know if I get stuck anywhere or if something doesn't work. I really appreciate it Void :)