Jump to content

Azarsra

Members
  • Posts

    67
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Azarsra

  1. public void inventoryTick(ItemStack stack, Level world, Entity entity, int i, boolean p_41408_) { if(active && world.getDayTime() < 13000) { active = false; } if(active&& world.getDayTime() > 13000) { serverlevel().setDayTime(1000); } } here's code so far
  2. What I have tried so far Is calling setDayTime, it has an ticking entity crash.
  3. I'm sorry for bothering You, but I can't seem to figure any of this out. How do the TimeCommand class changes the time without the game crashing? once again I'm really sorry for bothering you. I guess 1.7.10 was way easier for me to grasp.
  4. Okay thanks I will try.
  5. Okay, thanks I'll look in to that. Is there Away I get this effect I got back in 1.7.10? : https://gamejolt.com/p/1-7-10-transition-ewgpjxzc
  6. Do you know where I can access setWorldtime in the version?, what class is it in?
  7. So do you have any fix?
  8. The first Line of code: public ItemStack onItemRightClick(ItemStack stack, World world, EntityPlayer player) { if (world.getWorldTime() < 13000) { return stack; } active = true; player.setItemInUse(stack, this.getMaxItemUseDuration(stack)); return stack; } The second line of code: public void onUpdate(ItemStack itemstack, World world, Entity entity_, int i, boolean flag) { block4 = world.getBlock(x, y, z); if (active && world.getWorldTime() > 24000) { world.setWorldTime(world.getWorldTime() - 24000); } if(active && world.getWorldTime() < 13000) active =false; if (active) { world.setWorldTime(world.getWorldTime() + 200); } }
  9. Okay One second, sorry for not responding I was sleeping.
  10. The title says it all, I manage to do this back in 1.7.10, but now, I don't know how to do it. Any help is fine. I also been trying to get this to work for the past few hours, but, I'll be honest, I do not know how any of the Worldtime code works. also, I only need it to be able to skip the night cycle, besides from some minor hickups, the port have been going really well
  11. Anyone? I can't find anything about block generation
  12. once again I find myself stuck while trying to port my mod from 1.7.10 to 1.18.1, anyone knows how to generate blocks through out the world? I searched but can't seem to find anything.
  13. @diesieben07 I figured it out! thanks for your help!
  14. Okay, thanks! I will See what I can learn.
  15. @diesieben07 okay thanks, Any places you'd recommend to look in to it?
  16. I've created a working mod on 1.7.10 and now I am trying to port it to 1.18.1 for me and my brothers to play, can somebody help me Make an item that drops and sometimes do not drop an item.
×
×
  • Create New...

Important Information

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