Advanced Peripherals

Advanced Peripherals

29M Downloads

[Feature] Envrionment Detector methods

Jason-c-o opened this issue ยท 2 comments

commented

Describe your feature idea
Some additional methods for the Environment Detector I feel would be useful:

Chunk:

  • isSlimeChunk() returns a boolean

Dimension:

  • getDimension() returns a string of the current dimension
  • isDimension(STRING) returns a boolean
  • listDimensions() returns a table of the dimensions generated in the current world file.

Moon:

Weather:

  • getWeather() returns a string
  • isRaining, isSnowing, isThunderstorm, etc returns a boolean

Liquid:

  • getLiquid(NAME, RANGE) returns a boolean if a certain liquid is found in range

Describe alternatives you've considered if you've any
-Some may be different enough to warrant their own block/component.
-You could also handle them as upgrade chips for the environment detector. (The detector could have a slot, or slots, to accept upgrades that allow use of the methods.)

Additional context
I'm more interested in the slime chunk method, but all these could be useful.
Apologies if you would prefer these as separate requests, but I felt organizing them by peripheral would be better.

commented

Added in f22961f

commented

Awesome, thank you! I've already been playing around with it!