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 everyone!  I'm making a minecraft mod right now which requires me to have my character spawn with an item for now lets say its a stick.  I saw another thread and i was like "Yes! This is perfect" so i tried the code it had there thinking it would work(i dont understand why its not tbh but i dont have the slightest clue where to start with making it spawn with the character) here's the code:
 

 @SubscribeEvent
public void onPlayerJoin(PlayerLoggedInEvent event)
{
if (!event.player.worldObj.isRemote)
{
	event.player.inventory.addItemStackToInventory(new ItemStack(Items.stick));
}
}

and that didnt work, so i scrolled down a bit more to see "Maybe you should keep up to date on teh versions, minecraft 1.7.10 is no longer supported" or something along those lines.  The problem is i dont want to make my mod in a version above 1.7.10 yet :\ so can anyone explain to me how i could make this happen?

  • Guest locked this topic
Guest
This topic is now closed to further replies.

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.