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.

Crack3dC0d3

Members
  • Joined

  • Last visited

  1. I have multiple model files that i'd like to apply to one single item. And be able to change it based on nbt tag ?
  2. Oh whoops, I made a mistake and put it in the wrong category, @diesieben07 can you please move this to the Modder support directory? I cant find how
  3. So i need some help with models. I'm trying to create an item that has multiple models at once. I know i have to do something with baked models and stuff but i cant figure it out. Some help would be appreciated. To clearify my problem: Say i got model A a stick, model B a log and model C a chicken, I want to be able to combine model A and C and A and B from code
  4. Alright ill try thanks!
  5. Hello, I am trying to create a custom biome and i got the class setup. But i cant find where i have to say hey this biome goes in this world type. Any help?
  6. I figured it out thanks a lot!
  7. Sorry, wrong method. I meant Biome#createDecoratedFeature
  8. Alright thanks, which parameters do i use? i got the first 2 but i dont understand the last 2
  9. See, I forgot something. How can i do that?
  10. Thats not the problem since saplings work with the same files. But they are located in resources/data/arcana/structures.. Oh wait thats not right EDIT: It is right, Nevermind. But still, they dont spawn in the world. The saplings do work though Tried that, Doesnt change anything. I got no errors in the console
  11. Alright, I''m trying to spawn trees in my normal world. I already got the nbt files but i cant seem to fix how the "Feature" class works. (If i'm actually supposed to use that one) heres my code now public class SilverwoodFeature extends Feature<NoFeatureConfig> { public SilverwoodFeature(Function<Dynamic<?>, ? extends NoFeatureConfig> configFactoryIn) { super(configFactoryIn); } @Override public boolean place(IWorld world, ChunkGenerator<? extends GenerationSettings> generator, Random random, BlockPos spawnPos, NoFeatureConfig config) { ServerWorld worldserver = (ServerWorld) world; TemplateManager templatemanager = worldserver.getStructureTemplateManager(); Template template = templatemanager.getTemplate(new ResourceLocation("arcana", "trees/greatwoodtree")); int h = ThreadLocalRandom.current().nextInt(0, 7); switch(h) { case 1: template = templatemanager.getTemplate(new ResourceLocation("arcana", "trees/silverwood/silverwood1")); break; case 2: template = templatemanager.getTemplate(new ResourceLocation("arcana", "trees/silverwood/silverwood2")); break; case 3: template = templatemanager.getTemplate(new ResourceLocation("arcana", "trees/silverwood/silverwood3")); break; case 4: template = templatemanager.getTemplate(new ResourceLocation("arcana", "trees/silverwood/silverwood4")); break; case 5: template = templatemanager.getTemplate(new ResourceLocation("arcana", "trees/silverwood/silverwood5")); break; case 6: template = templatemanager.getTemplate(new ResourceLocation("arcana", "trees/silverwood/silverwood6")); break; case 7: template = templatemanager.getTemplate(new ResourceLocation("arcana", "trees/silverwood/silverwood7")); break; } if(random.nextInt(1) != 0 || world.getBiome(spawnPos) != Biomes.PLAINS) { return false; } if(template == null) { Constants.LOGGER.error("Could not find structure at " + new ResourceLocation("arcana:structures/trees/greatwood")); return false; } PlacementSettings placementsettings = (new PlacementSettings()).setMirror(Mirror.NONE) .setRotation(Rotation.NONE).setIgnoreEntities(false).setChunk(null); template.addBlocksToWorld(world, spawnPos.add(-4, 0, -4), placementsettings); return true; }
  12. its easier to create a batch script that runs the jar. That way it throws errors you can actually see.

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.