Skip to content

CraftPlay777/juha_get

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

juha_get

A mod for luanti that gives you any block, liquid, or mob spawn egg you're looking at — straight to your inventory.

Command

/dar [mode] [amount]

Requires the give privilege.

Usage

Command Result
/dar Gives a full stack of the block you're looking at
/dar 5 Gives 5 of the block you're looking at
/dar liq Gives a full stack of the liquid you're looking at
/dar liq 10 Gives 10 of the liquid you're looking at
/dar mob Gives a full stack of the spawn egg of the mob you're looking at
/dar mob 3 Gives 3 of that spawn egg
  • If no amount is specified, the command gives the maximum stack size of that item (determined by the item's own stack_max value).
  • Requesting more than the stack max will cap at the stack max automatically.

Modes

Default (no mode)

Points a ray from your eyes forward and detects the first solid node in a 10-node range. Liquids are ignored.

liq

Same as default but the ray also detects liquids. If you're looking at water or lava, you'll receive that liquid source block.

mob

Points a longer ray (20 nodes) and detects the first entity in range, skipping yourself and other players. Searches all registered items for a matching spawn egg using multiple naming patterns common across mob mods. If no spawn egg is found, the entity's internal name is shown so you can report it.

Notes

  • The mod does not add any nodes, crafts, or ABMs — it only registers the /dar command.
  • Spawn egg detection is fuzzy: it tries several naming patterns and falls back to scanning all registered items for a match. Compatible with most mob mods including mobs_redo and forks.
  • Items with a stack_max of 1 (tools, armor, etc.) will always be given as a single item regardless of the amount specified.
  • Spawn egg detection is approximate — it searches by name pattern and may not find eggs from all mob mods.

Author: Juha (CraftPlay777)
License: MIT

About

Tomar bloques con rayos x de forma muy insana

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages