Skip to content

Commit

Permalink
File blocking refactor (#150)
Browse files Browse the repository at this point in the history
* done

* fix
  • Loading branch information
brachy84 authored Mar 29, 2024
1 parent 3317873 commit c1a68ac
Show file tree
Hide file tree
Showing 9 changed files with 1,068 additions and 158 deletions.
15 changes: 15 additions & 0 deletions examples/postInit/vanilla.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,21 @@ import net.minecraftforge.event.entity.living.EnderTeleportEvent
import net.minecraftforge.event.world.BlockEvent
import net.minecraft.util.text.TextComponentString

import java.time.LocalDate

/*
def time = LocalDate.now()
log.info('{} {}', time.month, time.dayOfMonth)
def f = file('config/groovyscript.cfg')
log.info(f)
log.info(f.text)
f = new File('config/groovyscript.cfg')
log.info(f)
log.info(f.text)
*/

*/
def ore_iron = ore('ingotIron')
def item_iron = item('minecraft:iron_ingot')
log.info(item_iron in ore_iron) // true
Expand Down
Loading

0 comments on commit c1a68ac

Please sign in to comment.