Jump to content

LizNet

Members
  • Posts

    17
  • Joined

  • Last visited

Converted

  • Gender
    Male
  • URL
    http://liznet.fi
  • Location
    Finland
  • Personal Text
    Amateur programmer

Recent Profile Visitors

6104 profile views

LizNet's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. Solved the problem with some help from Discord. The problem was in my BaseBinBlock.java file: I had this in my place logic which was causing the bug: protected void checkPoweredState(Level level, BlockPos pos, BlockState state) { boolean flag = level.hasNeighborSignal(pos); if (flag != state.getValue(POWERED)) level.setBlock(pos, state.setValue(POWERED, Boolean.valueOf(flag)), Block.UPDATE_INVISIBLE); } and changing it to like this fixed it: protected void checkPoweredState(Level level, BlockPos pos, BlockState state) { boolean flag = level.hasNeighborSignal(pos); if (flag != state.getValue(POWERED)) level.setBlock(pos, state.setValue(POWERED, Boolean.valueOf(flag)), Block.UPDATE_ALL); } Now the onLoad override is no longer needed either. So in short: I needed to use Block.UPDATE_ALL, not Block.UPDATE_INVISIBLE in Level#setBlock().
  2. Okay, if that's fine then I'll use it. I already sync on block update because I have custom data with the blocks. Should I still add this: @Override public void onLoad() { super.onLoad(); this.level.updateNeighborsAt(getBlockPos(), getBlockState().getBlock()); this.level.sendBlockUpdated(getBlockPos(), getBlockState(), getBlockState(), 2) // Not sure about the 2 } Also, that whole bug seems weird because it seems to be something that needs to be exclusively coded. I'm very confused about how I even broke the vanilla mechanic in the first place..
  3. I have been updating my mod to a newer versions but encountered a very weird bug that I cannot solve: my block does not inform surrounding blocks nor other players when it is placed to ground. For example: 1. I put my block to the ground; no other player can see it but it has collision, so it behaves like a "ghost block". If other player right-clicks the block then it turns visible. 2. I put my block (with fluid capability) to the ground under a pipe, the pipe does not connect to the block. I put pipe top of my block, it connects normally. It seems that the pip doesn't know that my block is there if the block is placed afterwards. I managed to "fix" the second problem by adding this to my BlockEntity class, but it seems just a workaround: @Override public void onLoad() { super.onLoad(); this.level.updateNeighborsAt(getBlockPos(), getBlockState().getBlock()); } Full WIP source available in GitHub.
  4. Tried th TickProfiler, then removed Forge Essentials and I have saw none of thse warnings anymore. So it was caused by Forge Essentials, don't know why it used so much resources that the server was unplayable. But thanks to you (and TickProfiler) I managed to solve this! Now I can even use Sponge at the same time.
  5. I just hoped that there's some kind of timings function like Paper has. It's so handy for situations like this. There's so many mods that it would be nice if Forge has some mods which can do timings report.
  6. I've noticed that my server constantly gives that annoying "Can't keep up!" warning and the whole server freezes at little time when server is skipping ticks. This happens few time in five minutes so it's frustrating. My modlist is this: and my server's specs are: Intel Core i7-2700K 20Gb DDR3 1600MHz 750 & 500 Gb HDD 100/50 Mbps Internet speed Those warnings happens after srver boot and even if there's no even players online. I have limited the server to allow maximum 20 players byt for now only one is too much. Is there anythin I can do to make my server run smooth? I've searched some timings mod so I can see which causes the lag but didn't find anything.
  7. I made a littlebit googling and it seems that it's easier to port it as a Sponge plugin. I'll try different methods and report which is better.
  8. The main reason why I'm doing this is the round shaped world.
  9. I was thinking that is it easier to port Bukkit plugin to Sponge plugin instead of Forge mod? In my opinion it can make sense because they're both plugins. Correct me if I'm wrong.
  10. No it's not, I linked the plugin earlier and I used it myself on my old server.
  11. Yes I know that and I've done similar thing before. But I also need to pre-generate a round map, I think it's a little bit harder.
  12. I need it for my server, there's apparently zero mods which can do same as this plugin. My only choice is try to make one myself or "port" the plugin. Thanks for the link, I'll check it tomorrow.
  13. I've been searching a mod which can do same as one Bukkit plugin can, generate round world. Apparently I didn't find any and no one wanted to port it so I decided to do it myself. I have experience about programming on multiple languages including C#, Java, PHP etc, but I don't have any experience about Bukkit plugins or Forge mods. So where to start exactly? It's very hard to find how to use Forge for creating mods (or I'm just dumb) and even harder to find corresponding structure so I can make the Plugin work as expected. I tried to port the main java file but I can't do even that. There's the original java file (Bukkit): An there's my version of it (Forge): So can you guys help me to make some progress? I'm totally noob what comes to modding Minecraft, so any kind of advice is welcome.
  14. Thanks, I'll check that and report back if it's the one! For the laziness, are you refering to dynmap? Last time I checked there was only unofficial version for MC 1.9.4, though it worked, it also glitched/bugged a lot. I checked it now and seems that it's updated to 1.10.2, so it's my bad it isn't on the list. I've googled already for other corresponding mods, but it's difficult to google mods if you don't know their names, like I said before, this is first time for me setting up a Forge server. I've planned this server upgrade for months now, so I'm done some research already. EDIT : Tried the Grave Stone Mod and it's great, thanks again!
  15. I've searched a server that supports both, the Bukkit plugins and the Forge mods but apparently there's none at the moment of writing. So what I'm asking for is that I want to know if there's an alternative mods to replace the plugins I need for my server. I'll update the list when I found a compatible mod for that plugin. I'm using Minecraft version 1.10.2 (might update to 1.11 if there's enough support for it) My plugins are: ClearLag (important, my server isn't a super-xeon-server powerful) Dynmap (important, I totally need a map) [DynmapForge] WorldEdit (not so important, but it's good for a little "fixing") GiantTrees (kinda important, this is one of my servers "trademarks" and people really like it) WorldBorder (very important, needed for pre-generating a circle shaped map) EntityWatch (important for same reasons that ClearLag) KeepDeathDrop (important because of ClearLag) [GraveStone Mod] PurpleIRC (not so important, used only to merge two minecraft servers chat) BackupManager (kinda important, you never know what might happen) UltimateCore (not so important, only used for nice messages for player events. also causes lag) [SpongeForge with Nucleus] PetMaster (not important) WorldGuard (important, I don't want to know what kind of things the players try to do) [SpongeForge with FoxGuard] Best solution is to be able to run both, the Forge and the Bukkit, but if that's not possible anymore then I'll switch fully to Forge. I originally posted this to the Minecraft Forum but then realize that here, on the Forge forums, might be a little more knowledge about Forge... I've never ran Forge server before so any tricks and tips are also welcome. Thanks you guys in advance!
×
×
  • Create New...

Important Information

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