-
how to scale text inside a gui and still display at the correct position | Minecraft Forge 1.18.2
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
-
Generating trees
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); } } } }
-
destroying blocks when they arent connected to any blocks
i figured it out i just wasnt calling it
-
destroying blocks when they arent connected to any blocks
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); }
-
destroying blocks when they arent connected to any blocks
Im trying to make a log that works somewhat like the bamboo where it destroys the entire tree when breaking bottom log
-
Adding my block to already existing entity block types
i dont understand how i would do that
-
Adding my block to already existing entity block types
i tried making a Block entity class where i tried to overwrite the vanilla BeehiveBlockEntity
-
Adding my block to already existing entity block types
can you show how i would do that cus i cant figure it out
-
Adding my block to already existing entity block types
should i just duplicate the BeehiveBlockEntity class as the BlockEntityType
-
Adding my block to already existing entity block types
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
IPS spam blocked by CleanTalk.