Skip to content

Commit

Permalink
Updating readme & version
Browse files Browse the repository at this point in the history
  • Loading branch information
anOtherAnalyse committed Nov 1, 2020
1 parent c9f64da commit b93bda7
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 4 deletions.
26 changes: 25 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,5 +60,29 @@ Few commands, use them in chat (Command module must be enabled):
##### Disconnect from server
```.disconnect```

##### Open inventory from ride
##### Open mount inventory
```.open```

##### Use entity from unloaded chunk
While standing near an unloaded chunk, be able to load it and use an entity (minecraft, horse, ...) in the chunk by guessing its entity id. You still need to be near the entity to use it.

How it works (actions performed sequentially):
- drop one dirt on floor
- use / break a block from unloaded chunk to load the chunk and its entities.
- drop one cobblestone on floor
- After receiving from server the entities ids of the dirt & cobblestone items: try to use every entity id between the dirt id and the cooblestone id (guess the target entity id).
- If everything worked correctly your action was performed, then the chunk will unload. For example if you tried to mount a horse you can then use the ```.open``` command to open its inventory (dupe ?).

Set up command: register the block to be used to load the chunk (it has to be a block in the unloaded chunk):
```.ldride reg```

Check the registered block:
```.ldride get```

Actual command: load the chunk, guess entity id & use the entity:
```.ldride exe [break] [nb_tries]```

You need at least one dirt & cobblestone item in your inventory to use the ```.ldride exe``` command.

Specify ```break``` if you want to send a break packet instead of a use packet, to load the chunk.
```nb_tries``` is a number, the maximum number of entity ids to try. This is used to limit the packet spam if the gap between dirt id & cobblestone id is too big. Default is 15, maximum 15 use entity packets sent.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ apply plugin: 'net.minecraftforge.gradle.forge'
//Only edit below this line, the above code adds and enables the necessary things for Forge to be setup.


version = "1.1"
version = "1.1.1"
group = "com.bobeezz.family_fun_pack" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
archivesBaseName = "family_fun_pack"

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/family_fun_pack/FamilyFunPack.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public class FamilyFunPack
{
public static final String MODID = "family_fun_pack";
public static final String NAME = "Family Fun Pack";
public static final String VERSION = "1.1";
public static final String VERSION = "1.1.1";

private static NetworkHandler networkHandler;
private static Modules modules;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ public Packet<?> packetReceived(EnumPacketDirection direction, int id, Packet<?>
}

// Try to open donkey inventory
((CommandsModule)FamilyFunPack.getModules().getByName("FFP Commands")).getCommand("open").execute(new String[0]);
// ((CommandsModule)FamilyFunPack.getModules().getByName("FFP Commands")).getCommand("open").execute(new String[0]);
}
}
} else { // SPacketSetPassengers
Expand Down

0 comments on commit b93bda7

Please sign in to comment.