Everything posted by Azarsra
-
Anybody know how to make tiered block and items? Back then it was much easier. Read for more info
Back then there was a number which determined the tier of an item and block. If the block tier is lower or equal to the item number, the block would be mined. this however, has changed and now it goes by "needs_netherite_tool" which is fine, until you realized that some mods had items and blocks that exceeded these values. You can make you own "needs_mod_tool" but I feel that this is more limiting(and just more work) than before. So is there anyway to use something similar to the old tier system while also still being compatible with a lot of other mod tools?
- 1.20.1 How do I make a block that copies the texture from the block below it.
- 1.20.1 How do I make a block that copies the texture from the block below it.
- 1.20.1 How do I make a block that copies the texture from the block below it.
- [1.20.1] What has block#getMaterial been changed to?
-
1.19.2: how to get a block from Modid and block name?
Nevermind. I found out how to do it on this version
-
1.19.2: how to get a block from Modid and block name?
Back in 1.7.10 this was pretty easy to do. Do anyone know what's the best method to use here?
-
How to make entity not attack the player.
Nvm, I got it to work, Thanks! for helping!.
-
How to make entity not attack the player.
do you know if I can use the "setAggressive" method in the Mob class?. or will this not work?
-
How to make entity not attack the player.
Okay thanks, I'll test this tomorrow, but for now I am going to bed.
-
How to make entity not attack the player.
I just need to make the entities not attack the player just like creative, For context I am making a mod where you're a zombie, I already made it where you burn in the sunlight, I just need entities not to attack.
-
What RenderType Do glass panes Use?
I'm so sorry, The .Json files were the problem, I feel so stupid right now. Thanks for helping.
-
What RenderType Do glass panes Use?
Nevermind, I think the .json files are wrong, I'll check and see if that is the problem, if so, I am completely sorry for wasting your time
-
What RenderType Do glass panes Use?
The version I am using is: 1.18.2-40.1.0
-
What RenderType Do glass panes Use?
When I hover the crosshair over the glass, the glass pane outline appears, but it renders like a normal block, I tried translucent and cutoutMipped, non of these have worked.
-
How to make entitys spawn in biome without grass
Found the problem, Turns out there is a json file called "animals_spawnable_on", and one called "wolves_spawnable_on", And that worked!
-
How to make entitys spawn in biome without grass
So anyone have an Solution? The BIome is working fine and everything else, it is just getting my custom grass to be a valid spawn that is the problem. Also I probably should clarify that hostile mobs spawn, it is just creatures that don't spawn.
-
What RenderType Do glass panes Use?
here is the block class: public class linaglass extends IronBarsBlock { public linaglass(BlockBehaviour.Properties p_56839_) { super(p_56839_); this.registerDefaultState(this.stateDefinition.any().setValue(NORTH, Boolean.valueOf(false)).setValue(EAST, Boolean.valueOf(false)).setValue(SOUTH, Boolean.valueOf(false)).setValue(WEST, Boolean.valueOf(false)).setValue(WATERLOGGED, Boolean.valueOf(false))); } } and here is the how I registered the RenderType: private void LinaClient(final FMLClientSetupEvent event) { ItemBlockRenderTypes.setRenderLayer(BlockInit.blockeeveelinaglass.get(), RenderType.translucent()); }
-
How to make entitys spawn in biome without grass
So I have a BIome with a custom block has the surface block, But entities do not spawn, I tried using the "valid_spawn.json", but that didn't work. Anyone knows how to fix this?.
-
What RenderType Do glass panes Use?
Thanks, By any chance do you know how to make it look like glass panes, right now it just renders like a normal block.
-
What RenderType Do glass panes Use?
title says it all
-
1.18.2: How to make how to make a block tick?
Thanks, this Works!
-
1.18.2: How to make how to make a block tick?
Ok, I will see if I find anything, thanks.
-
1.18.2: How to make how to make a block tick?
How would I schedule the tick the tick to happen randomly?
-
1.18.2: How to make how to make a block tick?
This code is working, I just want the tick to happen randomly, this is the tick code: public void tick(BlockState state, ServerLevel level, BlockPos pos, Random p_60465_) { if(!level.isClientSide) { if(level.getBlockState(pos.above()) != Blocks.AIR.defaultBlockState()) { level.setBlock(pos, Blocks.DIRT.defaultBlockState(), 11); } Random ran = new Random(); int x = pos.getX(); int y = pos.getY(); int z = pos.getZ(); int i1 = x + ran.nextInt(3) - 1; int j1 = y + ran.nextInt(5) - 3; int k1 = z + ran.nextInt(3) - 1; if(level.getBlockState(new BlockPos(i1, j1, k1)) == Blocks.DIRT.defaultBlockState() && level.getBlockState(new BlockPos(i1, j1 + 1, k1)) == Blocks.AIR.defaultBlockState()) { level.setBlock(new BlockPos(i1, j1, k1), BlockInit.LINAGRASS.get().defaultBlockState(), 11); } } }
IPS spam blocked by CleanTalk.