Jump to content
Search In
  • More options...
Find results that contain...
Find results in...


  • Posts

  • Joined

  • Last visited

Everything posted by blinky000

  1. I find in both BlockBed and BlockDoor , i only find one method in commen that use SetBlock() (which i assme? is how you set a block) setPlacedBy() when i override setPlacedBy() in my custom_block, it never gets called. the custom_block does extend three classes(that don't have setPlacedBy() ) before Block class, but that wasn't a problem in 1.16 I hope im making sense
  2. In 1.16 i used onBlockAdded() to create the other blocks. So far in 1.17 i cannot find the equivalent. Something i read makes me think i have to create and register a event
  3. Is there a way so it does not pass light?
  4. I Can't believe i missed that, ty
  5. Is there a way to make eclipse run my mod in a different resolution?
  6. if i have two events : public static void onRegisterBlocks(RegistryEvent.Register<Block> event) { } @SubscribeEvent public static void onRegisterBlocks(RegistryEvent.Register<Block> event) { String doubleList[] = {"brick_plaster", "bricks_dark_oak_wains", "rock_wall_dark_oak_wains", "rock_wall_plaster", "stone_brick_dark_oak_wains"}; for(String sl : doubleList) { event.getRegistry().register(new BlockStdHorz(PROP_STONE),"singleblock/"+sl)); } } @SubscribeEvent public static void onRegisterItems(RegistryEvent.Register<Item> event) { } How would i get the registered blocks into the Register<Item >event }
  7. Ok i got the project uploaded to git, in blinky000/yabm5, the mods i was having issues with are in blinky000/mods still looiking for a file free file hoster
  8. Where is the SnowLayerBlock located, it's not i blocks or items
  9. I create a static list of blocks, and i use this list to register my blocks. I understand this is not the correct way do do this. Every example i see about the correct way, individually names every block. Since i have over a hundred blocks, i really don't want to do that. So there questions is, is there a way to correctly register the without having to name them all.
  10. github blinky000/yabm5. i can't upload my final jar, its too big
  11. Never used git, trying to get it setup
  12. Do you mean using .notSolid() property ? how would i make just one face not solid
  13. is there a way to NOT let snow on my block?
  14. Yes, sorta, not sure mods can interact with that code, except maybe the other code loading after mine and overloaded something?
  15. I found it was a conflict with another mod for(Block grassBlockList : BlockList.GRASS_BLOCK_COLOR) { // No Item event.getBlockColors().register((x, reader, pos, u) -> reader != null && pos != null ? BiomeColors.getGrassColor(reader, pos) : GrassColors.get(0.5D, 1.0D), grassBlockList); } for(Block grassBlockList : BlockList.GRASS_BLOCK) { // Have Item event.getBlockColors().register((x, reader, pos, u) -> reader != null && pos != null ? BiomeColors.getGrassColor(reader, pos) : GrassColors.get(0.5D, 1.0D), grassBlockList); } . here is the color handler
  16. In my modding environment , my custom grass changes shade to match the biome . after i build add put it in the real game, the shades no longer match. I'm using the same resource pack in both places, and the forge-client.toml match (using the experimentalForgeLightPipelineEnabled = true) Any ideas?
  17. doing some more playing around i got a basic block,. thanks for you help
  18. Maybe an import problem, i can't get this to work private static final Properties PROP_WOOD = Properties.create(Material.WOOD, MaterialColor.WOOD).hardnessAndResistance(2.0F, 3.0F).sound(SoundType.WOOD); i have tried all the import suggested. So its seems more then just names and I have having other problems from my code from 1.16 , and I thought i saw a web site addressing changes
  19. I was looking at a site that had information changes from 1.16, but i can't find it again. Anybody have any ideas?
  20. thank very much, that work fine
  21. I'm trying to create a new 1.17.1 eclipse project, when i run the examplemod i get an error: Could not create the Java Virtual Machine. the console shows :Unrecognized option: -p. I tried the increase the JAVA_OPTIONS: -Xmx512M . didn't not help, and caused my 1.16 project to never open thanks for any help
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.