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.

Parent

Members
  • Joined

  • Last visited

  1. I've been getting issues with: public static final RegistryObject<Block> PWO_BLOCK = registerBlock("pwo_block", ()->new Block( AbstractBlock.Properties.of(Material.STONE) .harvestLevel(4) //Diamond pick .harvestTool(ToolType.PICKAXE) .strength(50f) .sound(SoundType.METAL) .setRequiresTool() //Error, not found )); I'm using the default forge MDK mapping though. Any ideas?
  2. Alright well thanks, a squeaky clean new forge directory fixed it... for some reason, probably one of the gradlew files not being set up properly.
  3. Hello, so I've been trying to find a solution to this for what seems to be forever, now I'm reposting this thread with a lot more information hopefully leading to its resolution. When trying to run gradlew build in a minecraft forge project, I get: I'm using forge 1.16.1, with Java(TM) SE Runtime Environment (build 17.0.2+8-LTS-86) and gradle 7.3.3
  4. Ah, so I basically added gradle to the environmental variable called "Path", it has a list with directories. I put the /bin in there. I'm using forge 1.17.1
  5. So I've gotten this error and I tried fixing it the way another form did, but it came with no success and I am truly lost as this isn't well documented. Doing `gradlew build` shows: My gradlew path is the following: C:/ Gradle bin docs init.d lib src LICENSE NOTICE README The bin is added to the system environment variables "Path" list. Any help? Thanks!
  6. The method is located in a public class called EventHandler, an Event Bus Subscriber.
  7. Hello, I'm once again stuck on the new version. With minimal documentation and support, I can't seem to figure out how I could getPlayerInfoMap() in the new 1.17.1 version of forge. Here's where I want it (line 4): @SubscribeEvent public static void onJoin(final LoggedInEvent event){ Entity player = event.getPlayer(); if(playerInfoMap().size() > 1) { player.sendMessage(new TextComponent("Cannot be in multiplayer!"),event.getPlayer().getUUID()); } } Any help would be appreciated.
  8. Never thought that would be so simple. Spend a whole hour trying to figure it out. Thanks a lot.
  9. I was wondering how I could add/format color to a TextComponent in the following code: event.getPlayer().sendMessage(new TextComponent("Red colored, blue, and this is bold!"),event.getPlayer().getUUID()); I'm new to this version and it's a bit confusing. Any help would be appreciated. Thanks.
  10. Yep got it working.
  11. Hey, I wanted to know how I would link an entity's model file (.java exported from blockbench) and the entity itself. Can't seem to figure that out. Here's my entity code: public class headcrabEntity extends ChickenEntity{ @SuppressWarnings("unchecked") public static EntityType<headcrabEntity> TYPE = (EntityType<headcrabEntity>) EntityType.Builder.create(headcrabEntity::new, EntityClassification.MONSTER).build("headcrab").setRegistryName(BaseMod.MODID, "headcrab"); public headcrabEntity(World worldIn){ super(TYPE, worldIn); } public headcrabEntity(EntityType type, World worldIn) { super(type, worldIn); } public static Item EGG = EntityUtils.buildEntitySpawnEgg(TYPE, 0xb00101, 0xacbf1f); public static AttributeModifierMap.MutableAttribute setupAttributes() { return EntityUtils.addAttributes(false,40,30.0d,10,0,8.0d,2,10); } } Thanks
  12. Hello, I was wondering how I would make an entity a certain model with a provided JSON file and a UV texture (png). This is my code for now: public class headcrabRender extends ChickenRenderer{ public headcrabRender(EntityRendererManager manager) { super(manager); } @Override public ResourceLocation getEntityTexture(ChickenEntity entity) { return new ResourceLocation(BaseMod.MODID, "textures/entity/headcrab.png"); } } Thanks.

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.