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


  • Posts

  • Joined

  • Last visited

  • Days Won


Everything posted by Azarsra

  1. Nvm, I got it to work, Thanks! for helping!.
  2. do you know if I can use the "setAggressive" method in the Mob class?. or will this not work?
  3. Okay thanks, I'll test this tomorrow, but for now I am going to bed.
  4. 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.
  5. I'm so sorry, The .Json files were the problem, I feel so stupid right now. Thanks for helping.
  6. 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
  7. The version I am using is: 1.18.2-40.1.0
  8. 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.
  9. Found the problem, Turns out there is a json file called "animals_spawnable_on", and one called "wolves_spawnable_on", And that worked!
  10. 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.
  11. 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()); }
  12. 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?.
  13. Thanks, By any chance do you know how to make it look like glass panes, right now it just renders like a normal block.
  14. Ok, I will see if I find anything, thanks.
  15. How would I schedule the tick the tick to happen randomly?
  16. 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); } } }
  17. Just trying to make my custom grass block grow on dirt, did this back in 1.7.10, But can't seem to get the tick to happen in this version.
  18. it turns out it is a problem when another mod, The problem is caused by terrablender.
  19. My fluid changes color depending on the biome, the same way water does. But I want it to stay the same color.
  20. Well, I got this working, thanks for trying to help though, how do I get my fluid to have water physics?, right now it does not push you. You can just sorta clip through it. Nevermind, I got the fluid fully working.
  21. Right now it only works with players but I want it to work with every entity. I achieved this same thing back in 1.7.10. so I'm not sure what changed in this version.
  22. Nevermind, I just made use of canHarvestBlock. Thanks everyone.
  23. Hey, how would I go about apply the enchanted effect?, also I don't want the armor to be enchanted I just want it to look enchanted when wearing it.
  • Create New...

Important Information

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