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.

XpresS

Members
  • Joined

  • Last visited

Everything posted by XpresS

  1. Thank you very much. @Override public IBlockState getStateForPlacement(World world, BlockPos pos, EnumFacing facing, float hitX, float hitY, float hitZ, int meta, EntityLivingBase placer, EnumHand hand) { return super.getStateForPlacement(world, pos, facing, hitX, hitY, hitZ, meta, placer, hand).withProperty(FACING, placer.getHorizontalFacing()); } Maybe this will be then before. When somebody will have same problem as me the solution for this is on following lines: { "forge_marker": 1, "defaults": { "model": "prisonthings:red_chair1" }, "variants": { "facing=north": { "y": 0 }, "facing=east": { "y": 90 }, "facing=south": { "y": 180 }, "facing=west": { "y": 270 }, "inventory": { "model": "prisonthings:red_chair1", "transform": "forge:default-block" } } }
  2. Yea of course I this finded on this forum: https://pastebin.com/frHzCGwV and then I had 4 models for this but when I wants 1 it will be perfect. I know but, its doesnt matter. Its transparent to me.
  3. Hello guys, I had a little problem, I spend too much hours looking for the best solution. But i didnt find it. Can somebody explain me. I wants something like this: When i placed the block and block should be rotating where I looking. I had some code and the blocks rotating only to two sides. Code: https://pastebin.com/E5erjEYe Thanks for all helps. (sorry for my bad english)
  4. Hmm... Thanks Now, I writed something @EventBusSubscriber public static class RegistrationHandler { @SubscribeEvent public static void registerItems(RegistryEvent.Register<Item> e) { e.getRegistry().register(new ItemBase("redCoal")); e.getRegistry().register(new ItemBase("ruby")); //---> ModelLoader.setCustomModelResourceLocation(item, 0, new ModelResourceLocation(item.getRegistryName(), "inventory")); } } But now How will I load texture for items ? ( ModelLoader )
  5. Okay I forgot for something in PreInit, my wrong. public final class ModItems { public static List<Item> ITEMS = new ArrayList<Item>(); @EventBusSubscriber public static class RegistrationHandler { @SubscribeEvent public static void registerItems(RegistryEvent.Register<Item> e) { Item RED_COAL = new ItemBase("redCoal"); Item ... e.getRegistry().registerAll(ITEMS.toArray(new Item[0])); for(Item item : ITEMS) { ModelLoader.setCustomModelResourceLocation(item, 0, new ModelResourceLocation(item.getRegistryName(), null)); System.out.println("Done registering: " + item.getUnlocalizedName() +"..."); } } } } You think these item initializers or what ? And how can I register the item for server-side ? Thanks to much for helping
  6. I got some bad code I didnt know why Its working can you explain me or repair ? public class ItemBase extends Item{ public ItemBase(String name) { this.setUnlocalizedName(name); this.setRegistryName(name); ModItems.ITEMS.add(this); } public ItemBase creativeTab(CreativeTabs tab) { this.creativeTab(tab); return this; } } public final class ModItems { public static List<Item> ITEMS = new ArrayList<Item>(); public static final Item RED_COAL = new ItemBase("redCoal").creativeTab(CreativeTabs.MATERIALS); @EventBusSubscriber public static class RegistrationHandler { @SubscribeEvent public static void registerItems(RegistryEvent.Register<Item> e) { e.getRegistry().registerAll(ITEMS.toArray(new Item[0])); IForgeRegistry<Item> registry = e.getRegistry(); for(Item item : ITEMS) { registry.register(item); ModelLoader.setCustomModelResourceLocation(item, 0, new ModelResourceLocation(Reference.MOD_ID + ":" + item.getUnlocalizedName())); System.out.println("Done registering: " + item.getUnlocalizedName() +"..."); } } } } Error Log: https://pastebin.com/Uv30at7M I searched on google as Can not register to a locked registry. Modder should use Forge Register methods. but I couldnt find solution. I inspirated by https://github.com/Choonster-Minecraft-Mods/TestMod3/blob/2cb7b67adf7ab41e066c3308ac898224b2891752/src/main/java/choonster/testmod3/init/ModItems.java Somebody on this forum post this link.
  7. I thinked ruby.json has been wrong. I tried more format of these thing. Yeah its my wrong. I agree with you, when you know this tutorial is totaly bullshit I will find another. I didnt override methors manually its do eclipse. I tried it but, I didnt learn more about it, but I had github Thanks for get solutions and oriantate on good way. I will find another tutorials. I am looking on this but i didnt understands of these tutorials how on to. https://mcforge.readthedocs.io/en/latest/concepts/registries/#registering-things I must have how to on and get instructions step by step.
  8. I didnt know nothing about Forge API, I doing only with SpigotMC API. Are there some function tutorial, where I can learn more about Forge ? And the basics and other things. There is Source Folder: http://www.mediafire.com/file/0qvqu6wqdjgwrc2/src.rar/file
  9. Hi community, I am there a new member. I wants start something new about java and get the news experiences. But I came across the "error". I spent my 3 hours to get the solutions but I couldnt find it. I had this problem https://imgur.com/a/8GdLRQO Log of starting Minecraft: https://pastebin.com/W49B6Y6e/?e=1 I did it by this tutorial: https://www.youtube.com/watch?v=rQLhheYcnrY&amp;t=1485s This thins him work. I try it 2 times created 2 projects and I had the same problem. Thanks for help and get solution for this

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.