renamed sample_density with 'sample_noise'. sample noise values directly from the local router if possible.
This commit is contained in:
1 parent
ec2b56183a
commit
2133675ac7
4 files changed
+54
-15
No files matched your search
@@ -509,19 +509,18 @@ Returns the map colour of a block at position. One of:
|
||||
`'brown_terracotta'`, `'green_terracotta'`, `'red_terracotta'`, `'black_terracotta'`,
|
||||
`'crimson_nylium'`, `'crimson_stem'`, `'crimson_hyphae'`, `'warped_nylium'`, `'warped_stem'`, `'warped_hyphae'`, `'warped_wart'`
|
||||
|
||||
### `sample_density()`, `sample_density(pos, ... types?)` 1.19+
|
||||
### `sample_noise()`, `sample_noise(pos, ... types?)` 1.18+
|
||||
|
||||
**Note: Replaces the old defunct `sample_noise` function**
|
||||
|
||||
Samples the density function(s) / worldgen noise values at a given position.
|
||||
Samples the world generation noise values / data driven density function(s) at a given position.
|
||||
|
||||
If no types are passed in, or no arguments are given, it returns a list of all the available registry defined density functions.
|
||||
|
||||
Function accepts any registry defined density functions, both built in, as well as namespaced defined in datapacks.
|
||||
On top of that, scarpet provides the following list of functions for convenience (not returned with no-argument call):
|
||||
|
||||
With a single function name passed in, it returns a scalar. With multiple function names passed in, it returns a list of results.
|
||||
|
||||
Function accepts any registry defined density functions, both built in, as well as namespaced defined in datapacks.
|
||||
On top of that, scarpet provides the following list of noises sampled directly from the current level (and not returned with no-argument call):
|
||||
|
||||
|
||||
`'barrier_noise'`, `'fluid_level_floodedness_noise'`, `'fluid_level_spread_noise'`, `'lava_noise'`,
|
||||
`'temperature'`, `'vegetation'`, `'continents'`, `'erosion'`, `'depth'`, `'ridges'`,
|
||||
`'initial_density_without_jaggedness'`, `'final_density'`, `'vein_toggle'`, `'vein_ridged'` and `'vein_gap'`
|
||||
|
||||
@@ -93,7 +93,7 @@ reload_chunk
|
||||
remove_all_markers
|
||||
reset_chunk
|
||||
run
|
||||
sample_density
|
||||
sample_noise
|
||||
save
|
||||
scan
|
||||
schedule
|
||||
|
||||
@@ -57,7 +57,7 @@
|
||||
hardness blast_resistance top loaded suffocates power ticks_randomly update block_tick random_tick in_slime_chunk
|
||||
set without_updates
|
||||
blocks_movement block_sound material map_colour block_state block_list block_tags block_data poi set_poi
|
||||
place_item set_biome biome loaded_status generation_status sample_density inhabited_time spawn_potential chunk_tickets
|
||||
place_item set_biome biome loaded_status generation_status sample_noise inhabited_time spawn_potential chunk_tickets
|
||||
plop harvest destroy create_explosion
|
||||
structure_eligibility structures structure_references set_structure
|
||||
reset_chunk reload_chunk create_datapack
|
||||
|
||||
Reference in new issue
Block a user