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

I don't know what I've done but I've messed up some how and I don't know how to fix itย 

package com.igc.sbpm.core.init;

import com.igc.sbpm.SBPM;

import net.minecraft.world.level.block.Block;
import net.minecraft.world.level.block.SoundType;
import net.minecraft.world.level.material.Material;
import net.minecraft.world.level.material.MaterialColor;
import net.minecraftforge.fmllegacy.RegistryObject;
import net.minecraftforge.registries.DeferredRegister;
import net.minecraftforge.registries.ForgeRegistries;

public class BlockInit {
	public static final DeferredRegister<Block> BLOCKS = DeferredRegister.create(ForgeRegistries.BLOCKS,
			SBPM.MOD_ID);

	public static final RegistryObject<Block> SLATE_BLOCK = BLOCKS
			.register("slate_block",
					() -> new Block(AbstractBlock.Properties.create(Material.STONE, MaterialColor.STONE)
							.hardnessAndResistance(1.5f, 0.7f).harvestTool(ToolType.PICKAXE).harvestLevel(2)
							.sound(SoundType.STONE)));
}

it shows a error under AbstractBlock, Properties and Tool Type

forge use since 1.17 mojang class names,
this is why the error occurs, you can use forge bot on discord to convert from mcp to mojang mappings names
command:

!mcp -c moj <class-name> -> retruns the mojang name


ย 

  • Author

ah okay thank, do you have any recommendations for any bots and how to use them?

join the forge discord server via link, go to the #bot-commands text channel
typ in the command above and replace "<class-name>" with the class name you want to know
for example:

!mcp -c moj AbstractBlock

the bot returns:

MC 1.16.5: net/minecraft/world/level/block/state/BlockBehaviour
Name: ceg => net/minecraft/world/level/block/state/BlockBehaviour
Side: BOTH
AT: public net.minecraft.block.AbstractBlock

the new name of AbstractBlock is now net.minecraft.world.level.block.state.BlockBehaviour

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.