Jump to content
  • Home
  • Files
  • Docs
Status Updates
  • All Content

  • Advanced Search
  • Existing user? Sign In  

    Sign In



    • Not recommended on shared computers


    • Forgot your password?

  • Sign Up
  • All Activity
  • Home
  • Forix

Forix

Members
 View Profile  See their activity
  • Content Count

    18
  • Joined

    April 29, 2020
  • Last visited

    Saturday at 12:02 PM

Community Reputation

0 Neutral

About Forix

  • Rank
    Tree Puncher

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Forix

    [1.16.4] Multiple worlds

    Forix replied to Forix's topic in Modder Support

    Thanks you i'm going to check this
    • January 18
    • 9 replies
  2. Forix

    [1.16.4] Multiple worlds

    Forix replied to Forix's topic in Modder Support

    You know in 1.15 it was so much easier with the DimensionManager class
    • January 18
    • 9 replies
  3. Forix

    [1.16.4] Multiple worlds

    Forix replied to Forix's topic in Modder Support

    i'm doing this mod for a modded minecraft server. I know that there is things which can support both mods and plugin like magma, but we want to use only mods without plugins.
    • January 18
    • 9 replies
  4. Forix

    [1.16.4] Multiple worlds

    Forix replied to Forix's topic in Modder Support

    i'm actually creating a skyblock mod. the user have to type in the tchat a command to create his island. Each player have is own island, and the thing what i want to do is that each island is in his own dimension
    • January 17
    • 9 replies
  5. Forix

    [1.16.4] Multiple worlds

    Forix replied to Forix's topic in Modder Support

    Ok so, it's possible to dynamically register new dimensions by creating new json dimension file while the server is running?
    • January 17
    • 9 replies
  6. Forix

    [1.16.4] Multiple worlds

    Forix posted a topic in Modder Support

    Hi, There is a way to create multiple worlds from a dimension? Like when a player connect to server, i have to create a new world from my custom dimension. What is common within these worlds is the dimension which is the same. I actually have my custom dimension with the new json system
    • January 16
    • 9 replies
  7. Forix

    [1.16.4] New dimension registry

    Forix replied to Forix's topic in Modder Support

    ok thanks
    • January 11
    • 4 replies
  8. Forix

    [1.16.4] New dimension registry

    Forix posted a topic in Modder Support

    Hello, with the new version, dimension registration system has completely changed. Can someone explain me how to register new dimension?
    • January 11
    • 4 replies
  9. Forix

    [1.15.2] NoSuchMethodError on packets in server

    Forix replied to Forix's topic in Modder Support

    I tried your advice and it's worked thanks !
    • August 10, 2020
    • 2 replies
  10. Forix started following [1.15.2] Get block instance or it's id from registry name, [1.15.2] NoSuchMethodError on packets in server and [1.15.2] How to use ScrollPanel in gui? August 10, 2020
  11. Forix

    [1.15.2] NoSuchMethodError on packets in server

    Forix posted a topic in Modder Support

    Hi, I'm creating am trying to send a packet to the dedicated server but i get this error: [18:45:59] [Server thread/ERROR] [minecraft/MinecraftServer]: Encountered an unexpected exception java.lang.NoSuchMethodError: 'java.lang.String net.minecraft.network.PacketBuffer.readString()' at fr.modcraftmc.skyblock.network.PacketAddMember.<init>(PacketAddMember.java:17) ~[main/:?] {re:classloading} at net.minecraftforge.fml.network.simple.IndexedMessageCodec.lambda$tryDecode$0(IndexedMessageCodec.java:120) ~[forge-1.15.2-31.2.36_mapped_snapshot_20200802-1.15.1-recomp.jar:?] {re:classloading} at java.util.Optional.map(Optional.java:265) ~[?:?] {} at net.minecraftforge.fml.network.simple.IndexedMessageCodec.tryDecode(IndexedMessageCodec.java:120) ~[forge-1.15.2-31.2.36_mapped_snapshot_20200802-1.15.1-recomp.jar:?] {re:classloading} at net.minecraftforge.fml.network.simple.IndexedMessageCodec.consume(IndexedMessageCodec.java:162) ~[forge-1.15.2-31.2.36_mapped_snapshot_20200802-1.15.1-recomp.jar:?] {re:classloading} at net.minecraftforge.fml.network.simple.SimpleChannel.networkEventListener(SimpleChannel.java:80) ~[forge-1.15.2-31.2.36_mapped_snapshot_20200802-1.15.1-recomp.jar:?] {re:classloading} at net.minecraftforge.eventbus.EventBus.doCastFilter(EventBus.java:212) ~[eventbus-2.2.0-service.jar:?] {} at net.minecraftforge.eventbus.EventBus.lambda$addListener$11(EventBus.java:204) ~[eventbus-2.2.0-service.jar:?] {} at net.minecraftforge.eventbus.EventBus.post(EventBus.java:258) ~[eventbus-2.2.0-service.jar:?] {} at net.minecraftforge.fml.network.NetworkInstance.dispatch(NetworkInstance.java:84) ~[?:?] {re:classloading} at net.minecraftforge.fml.network.NetworkHooks.lambda$onCustomPayload$1(NetworkHooks.java:78) ~[?:?] {re:classloading} at java.util.Optional.map(Optional.java:265) ~[?:?] {} at net.minecraftforge.fml.network.NetworkHooks.onCustomPayload(NetworkHooks.java:78) ~[?:?] {re:classloading} at net.minecraft.network.play.ServerPlayNetHandler.processCustomPayload(ServerPlayNetHandler.java:1366) ~[?:?] {re:classloading} at net.minecraft.network.play.client.CCustomPayloadPacket.processPacket(CCustomPayloadPacket.java:51) ~[?:?] {re:classloading,pl:runtimedistcleaner:A} at net.minecraft.network.play.client.CCustomPayloadPacket.processPacket(CCustomPayloadPacket.java:12) ~[?:?] {re:classloading,pl:runtimedistcleaner:A} at net.minecraft.network.PacketThreadUtil.lambda$checkThreadAndEnqueue$0(PacketThreadUtil.java:19) ~[?:?] {re:classloading} at net.minecraft.util.concurrent.TickDelayedTask.run(TickDelayedTask.java:20) ~[?:?] {re:classloading} at net.minecraft.util.concurrent.ThreadTaskExecutor.run(ThreadTaskExecutor.java:140) ~[?:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A} at net.minecraft.util.concurrent.RecursiveEventLoop.run(RecursiveEventLoop.java:22) ~[?:?] {re:classloading} at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:759) ~[?:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A} at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:141) ~[?:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A} at net.minecraft.util.concurrent.ThreadTaskExecutor.driveOne(ThreadTaskExecutor.java:110) ~[?:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A} at net.minecraft.server.MinecraftServer.driveOneInternal(MinecraftServer.java:742) ~[?:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A} at net.minecraft.server.MinecraftServer.driveOne(MinecraftServer.java:736) ~[?:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A} at net.minecraft.util.concurrent.ThreadTaskExecutor.driveUntil(ThreadTaskExecutor.java:123) ~[?:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A} at net.minecraft.server.MinecraftServer.runScheduledTasks(MinecraftServer.java:722) ~[?:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A} at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:666) [?:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A} at java.lang.Thread.run(Thread.java:834) [?:?] {} There is my code: PacketHandler class: public class PacketHandler { private static final String PROTOCOL_VERSION = "1"; public static SimpleChannel INSTANCE; private static int Id = 0; private static int nextId(){ return Id++; } public static void registerMessageS(){ INSTANCE = NetworkRegistry.newSimpleChannel( new ResourceLocation(SkyBlock.MOD_ID, "main"), () -> PROTOCOL_VERSION, PROTOCOL_VERSION::equals, PROTOCOL_VERSION::equals ); INSTANCE.registerMessage(nextId(), PacketOpenGUI.class, PacketOpenGUI::toBytes, PacketOpenGUI::new, PacketOpenGUI::handle); INSTANCE.registerMessage(nextId(), PacketOpenSettingsGUI.class, PacketOpenSettingsGUI::toBytes, PacketOpenSettingsGUI::new, PacketOpenSettingsGUI::handle); INSTANCE.registerMessage(nextId(), PacketRequestSettings.class, PacketRequestSettings::toBytes, PacketRequestSettings::new, PacketRequestSettings::handle); INSTANCE.registerMessage(nextId(), PacketAddMember.class, PacketAddMember::toBytes, PacketAddMember::new, PacketAddMember::handle); INSTANCE.registerMessage(nextId(), PacketRemoveMember.class, PacketRemoveMember::toBytes, PacketRemoveMember::new, PacketRemoveMember::handle); } } PacketAddMember class: public class PacketAddMember { String owner; String newMember; public PacketAddMember(PacketBuffer buf){ owner = buf.readString(); newMember = buf.readString(); } public void toBytes(PacketBuffer buf){ buf.writeString(owner); buf.writeString(newMember); } public PacketAddMember(String owner, String newMember){ this.owner = owner; this.newMember = newMember; } public void handle(Supplier<NetworkEvent.Context> ctx){ ctx.get().enqueueWork(() -> { Islands.addMember(owner, newMember); }); ctx.get().setPacketHandled(true); } } Bit of code of where i send the packet to the server: private void addMember(Button button){ System.out.println("playerList.getSelected().toString() = " + playerList.getSelected().toString()); PacketHandler.INSTANCE.sendToServer(new PacketAddMember(Minecraft.getInstance().player.getDisplayName().getString().toLowerCase(), playerList.getSelected().toString())); String newMember = playerList.getSelected().toString().toLowerCase(); memberList.set(memberList.indexOf(newMember+"=false"), newMember+"=true"); children.remove(playerList); playerList = new PlayerList(Minecraft.getInstance(), 300, 110, 10, 100, 15); children.add(playerList); addMember.active = false; removeMember.active = false; } The error occurs when i press the button which have for listener this method above. Thank you for your help
    • August 10, 2020
    • 2 replies
  12. Forix

    [1.15.2] How to use ScrollPanel in gui?

    Forix posted a topic in Modder Support

    My question is in the post title. Thanks for your help
    • July 29, 2020
  13. Forix

    [1.15.2] Get block instance or it's id from registry name

    Forix replied to Forix's topic in Modder Support

    because i am reading schematic file who is written by worldedit. In the worldedit schematic format there is an nbt called "Palette" which contains all blocks used
    • June 11, 2020
    • 8 replies
  14. Forix

    [1.15.2] Get block instance or it's id from registry name

    Forix replied to Forix's topic in Modder Support

    I know i can do that but i wanted to read registries names who were written on a file
    • June 11, 2020
    • 8 replies
  15. Forix

    [1.15.2] Get block instance or it's id from registry name

    Forix replied to Forix's topic in Modder Support

    Thank you so much ! For other guys who watch this thread I used this function precisly: ForgeRegistries.BLOCKS.getValue(new ResourceLocation("minecraft:coal_block"))
    • June 10, 2020
    • 8 replies
  16. Forix

    [1.15.2] Get block instance or it's id from registry name

    Forix posted a topic in Modder Support

    Hi guys, since yesterday i can't find how can I get a Block instance or an Id from a registry name (for example "minecraft:coal_block") I'm using forge 1.15.2-31.2.9 Thanks for helping me
    • June 10, 2020
    • 8 replies
  • All Activity
  • Home
  • Forix
  • Theme

Copyright © 2019 ForgeDevelopment LLC · Ads by Longitude Ads LLC Powered by Invision Community