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.

tychobrailleur

Members
  • Joined

  • Last visited

Everything posted by tychobrailleur

  1. Thanks. I was on the right path, but it seems I probably had messed up my `BlockPos` calculation. For posterity, here is what I finally came up with, which seems to work ok: World overworld = server.getWorld(0); BlockPos blockPosition = overworld.getSpawnPoint(); logger.info("World: " + overworld.getClass()); BlockPos tmp = blockPosition; while (!overworld.isAirBlock(tmp)) { tmp = tmp.up(); } Block blockStandingSign = Blocks.STANDING_SIGN; overworld.setBlockState(tmp, blockStandingSign.getDefaultState() .withProperty(BlockStandingSign.ROTATION, 0)); TileEntity tileEntity = overworld.getTileEntity(tmp); if (tileEntity instanceof TileEntitySign) { TileEntitySign tileEntitySign = (TileEntitySign) tileEntity; tileEntitySign.signText[0] = new TextComponentString("tychobrailleur"); } Happy to hear suggestions/improvement if any.
  2. Apologies for the super-n00b question — but despite looking at the docs and checking out a few sample mod, I haven't been able to figure out how to get a mod to automatically place a block (in particular a `BlockStandingSign`) at a given `BlockPos`. Would anyone have an example somewhere, or could point me to the relevant part of the Forge docs? Thanks in advance!

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.