Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

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?

20 minutes ago, MaxAnimator said:

Am I doing something wrong?

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

Edited by ChampionAsh5357

  • Author
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.

1 minute ago, MaxAnimator said:

The exact issue is that the block is still not part of the group tag.

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

  • Author
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

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.

  • Author
2 minutes ago, diesieben07 said:

Please post a Git repository of your mod.

Ill try to make one as I have never used git before...

  • Author
3 minutes ago, diesieben07 said:

Cannot reproduce:

image.png.afebe640a3aecd35211566b42f202d7c.png

You used the exact same code? Then why isn't mine working? That makes no sense

  • Author
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

  • Author

Nevermind IntelliJ or my workspace seemed to be the problem. I switched to eclipse with a fresh workspace and it works just fine now.

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...

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.