Jump to content

Fortune on any block


Minus_02

Recommended Posts

in need help with a skript that makes fortune working on normal block like oak logs or cobblestone

i asked ChatGPT and got this

on tool with fortune:  
    cancel event  
    set tool's fortune level to 0  
    loop blocks at tool's target:  
        if block's fortune drop is set:  
            set block's drop count to block's fortune drop  
            drop block  
            cancel event  
        else if block is in list of blocks with fortune drops:  
            set block's fortune drop to drop of block in list of blocks with fortune drops  
            set block's fortune drop count to fortune drop count of block in list of blocks with fortune drops  
            set block's drop count to block's fortune drop count  
            drop block  
            cancel event  

list of blocks with fortune drops:  
    - oak log  
    - spruce log  
    - birch log  
    - jungle log  
    - acacia log  
    - dark_oak log  
    - stone  
    - coal_ore  
    - iron_ore  
    - diamond_ore  
    - emerald_ore  
    - netherrack  
    - gold_ore  
    - blackstone  
    - ancient_debris  
    - netherite_block  
    - end_stone  
    - end_stone_bricks  
    - obsidian  
    - crying_obsidian  
    - beacon

 

can someone help me to get it work?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...