Jump to content

Mathsylv

Members
  • Posts

    10
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Mathsylv's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. im trying to make some text smaller in my gui i currently use stack.scale(0.5F,0.5F,0.5F) but the text wont display in the correct place and changing the gui size in minecraft settings shifts the text how do i make the text always display at the same spot and still be small
  2. im trying to generate trees on beaches but almost everytime it generates in the water here is the code: public class FJPlacements { public static final PlacedFeature PALM_TREE_PLACED = PlacementUtils.register("palm_tree_placement", FJConfiguredFeatures.PALM.placed(RarityFilter.onAverageOnceEvery(1), InSquarePlacement.spread(), PlacementUtils.HEIGHTMAP_WORLD_SURFACE, PlacementUtils.HEIGHTMAP_TOP_SOLID, BiomeFilter.biome())); } @Mod.EventBusSubscriber(modid = FosilizedJourneys.MOD_ID) public class WorldGenerationEvents { @SubscribeEvent public static void biomeLoadingEvent(final BiomeLoadingEvent event) { ResourceKey<Biome> key = ResourceKey.create(Registry.BIOME_REGISTRY, event.getName()); Set<BiomeDictionary.Type> types = BiomeDictionary.getTypes(key); if (types.contains(BiomeDictionary.Type.BEACH)) { if (types.contains(BiomeDictionary.Type.SANDY)) { event.getGeneration().addFeature(GenerationStep.Decoration.VEGETAL_DECORATION, FJPlacements.PALM_TREE_PLACED); } } } }
  3. i figured it out i just wasnt calling it
  4. yes i did but i havent used Level#destroyBlockLevel this was my solution but it dosent destroy the block @Override public void tick(BlockState p_60462_, ServerLevel p_60463_, BlockPos p_60464_, Random p_60465_) { if (!p_60462_.canSurvive(p_60463_, p_60464_)) { p_60463_.destroyBlock(p_60464_, true); } } @Override public boolean canSurvive(BlockState p_60525_, LevelReader p_60526_, BlockPos p_60527_) { return p_60526_.getBlockState(p_60527_.below()).is(BlockTags.LOGS); }
  5. Im trying to make a log that works somewhat like the bamboo where it destroys the entire tree when breaking bottom log
  6. i dont understand how i would do that
  7. i tried making a Block entity class where i tried to overwrite the vanilla BeehiveBlockEntity
  8. can you show how i would do that cus i cant figure it out
  9. should i just duplicate the BeehiveBlockEntity class as the BlockEntityType
  10. Im trying to create add a funcional beehive and the only thing i need to get it working is adding it to the BeehiveBlockEntity. How would i achive that
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.