Jump to content

How to add a block to a vanilla group tag


MaxAnimator

Recommended Posts

Hello there,

I'm adding a custom wall to my mod as my first block, as I thought it'd be very easy and quick to do. I was wrong.

Essentially, everything works fine, but my wall needs to be in the minecraft:walls group tag.

But I cannot make it work.

image.png.54e7fd1b15c1d0f673a8b4c03ac0727c.png

{
  "values":[
    "azure:stone_wall"
  ]
}

This is part of my mod, but it doesn't seem to affect the actual block below:

public static final RegistryObject<Block> STONE_WALL = BLOCKS.register("stone_wall", () -> new WallBlock(WallBlock.Properties.create(Material.ROCK).harvestTool(ToolType.PICKAXE).harvestLevel(0).sound(SoundType.STONE).hardnessAndResistance(2.0F, 30.0F)));

    public static final RegistryObject<Item> STONE_WALL_ITEM = ITEMS.register("stone_wall", () -> new BlockItem(STONE_WALL.get(), new Item.Properties().group(Azure.TAB)));

 

Am I doing something wrong?

Link to comment
Share on other sites

3 minutes ago, ChampionAsh5357 said:

That depends on what you expect the outcome to be. What is your expected end result? What is the exact issue you are facing?

I want my stone_wall block to be part of the minecraft:walls group tag. The exact issue is that the block is still not part of the group tag.

Link to comment
Share on other sites

11 minutes ago, ChampionAsh5357 said:

How are you verifying that? Is the wall not connecting to other walls?

Oh sorry I forgot to give information on what's happening in game. The wall isn't connecting to other walls of the same type(e.g. stone wall not connecting to stone wall) and it tries to connect to vanilla walls, but the vanilla walls don't connect to the stone walls.

image.png.699bd17000db33b4eb887dcf8af56e88.png

image.png.4247fdbfdda47343f3c569321832c836.png

You can also see that the stone walls don't have the #minecraft:walls group tag as the cobblestone walls and other vanilla walls do.

Edited by MaxAnimator
precision
Link to comment
Share on other sites

6 minutes ago, MaxAnimator said:

You can also see that the stone walls don't have the #minecraft:walls group tag as the cobblestone walls and other vanilla walls do.

That's quite strange as the modded wall is trying to connect to the vanilla ones but not vice versa. There are two issues I can think of. First, the name of the wall block is wrong, most likely in the namespace. Second, the file is not being built by the test compiler, in which case you can try to edit the file and resave it.

Link to comment
Share on other sites

2 minutes ago, diesieben07 said:

I cloned your repository. No idea why it is not working for you, something is broken about your workspace. Try and clean the build folder.

I just want to point out the fact that my .gradle and build folder are orange-red, is this normal? Are they broken? And I also have this whenever I hit the run button

image.png.6aef867d471cf8750e07f84c58c783c4.png

Edited by MaxAnimator
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.