Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added /raycount command, and ray count / probability infos added to /info #24

Merged
merged 2 commits into from
Oct 27, 2021

Conversation

SRAZKVT
Copy link

@SRAZKVT SRAZKVT commented Oct 25, 2021

To use : enable the raycount command with carpet, select a position with /raycount, then just run /info targetting a primed tnt entity.

This simulates a tnt explosion to get probability of a block being possibly blown up by a tnt

public int ping;
public boolean queuedEndExit;

+ //CM
+ public EntityPlayerActionPack actionPack;
+ public BlockPos posToCheckRaycount = null;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think storing the position to check inside the player entity is a good idea. The player entity instance will be recreated during relogining or respawning etc., idk if this is your intended behavior
Storing the position with dimension type globally in InfoCommand should be fine imo since usually only 1 player is using this funtionality, or you can ofc use a map to store them

@Fallen-Breath Fallen-Breath merged commit 4f2974f into TISUnion:TIS-Server Oct 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants