• Hey! Register here to create your account, engage with the community, and talk about what is new!

Python library for creating code templates.

AlignedCookie88

Active member
Overlord
Joined
Mar 17, 2022
Messages
49
Reaction score
7

ARMcPro

Forum adept
Overlord
Joined
Oct 20, 2020
Messages
1,260
Reaction score
356
it doesn't look that user friendly cuz like you have to import stuff and it doesn't look that easy 😟
 

AlignedCookie88

Active member
Overlord
Joined
Mar 17, 2022
Messages
49
Reaction score
7
it doesn't look that user friendly cuz like you have to import stuff and it doesn't look that easy 😟
import stuff? of course you have to import stuff! its a python library.... how else do you think it would work?
 

ARMcPro

Forum adept
Overlord
Joined
Oct 20, 2020
Messages
1,260
Reaction score
356
import stuff? of course you have to import stuff! its a python library.... how else do you think it would work?
you import the whole library and type
diamondfire.player_action()

or you import as * and you can then do
player_action()
 

AlignedCookie88

Active member
Overlord
Joined
Mar 17, 2022
Messages
49
Reaction score
7
you import the whole library and type
diamondfire.player_action()

or you import as * and you can then do
player_action()
that would not be good, as there are hundreds of classes, and importing all of them at once is a bad practice for any large library. you can still ofc do from mcdfpy.blocks import * to import all blocks
 

rayOrSomething

New member
Joined
Mar 18, 2023
Messages
3
Reaction score
2
hey! when i try sending my template i get a "KeyError: 'action'". did anybody use the lib yet and experienced this?
 
Top Bottom