<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://leaf.trashdev.org/index.php?action=history&amp;feed=atom&amp;title=UseItemDBLegacyModeByDefault</id>
	<title>UseItemDBLegacyModeByDefault - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://leaf.trashdev.org/index.php?action=history&amp;feed=atom&amp;title=UseItemDBLegacyModeByDefault"/>
	<link rel="alternate" type="text/html" href="https://leaf.trashdev.org/index.php?title=UseItemDBLegacyModeByDefault&amp;action=history"/>
	<updated>2026-09-21T01:32:20Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>https://leaf.trashdev.org/index.php?title=UseItemDBLegacyModeByDefault&amp;diff=562&amp;oldid=prev</id>
		<title>Ashy: Created page with &quot;UseItemDBLegacyModeByDefault is a &quot;hidden&quot; option in leaf  == What it does ==  it is &quot;true&quot; by default, this makes all items saved store in the &quot;legacy&quot; format which just contains a reference to a structure and a point in an entity&#039;s inventory container. this makes UIs using the Buy Button store the actual item data in the button, rather than just a reference, making exports transfer the item you buy aswell  this option does not need to be enabled all the time to uti...&quot;</title>
		<link rel="alternate" type="text/html" href="https://leaf.trashdev.org/index.php?title=UseItemDBLegacyModeByDefault&amp;diff=562&amp;oldid=prev"/>
		<updated>2026-09-20T08:26:01Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;UseItemDBLegacyModeByDefault is a &amp;quot;hidden&amp;quot; option in leaf  == What it does ==  it is &amp;quot;true&amp;quot; by default, this makes all items saved store in the &amp;quot;legacy&amp;quot; format which just contains a reference to a structure and a point in an entity&amp;#039;s inventory container. this makes UIs using the &lt;a href=&quot;/index.php?title=Buy_Button&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Buy Button (page does not exist)&quot;&gt;Buy Button&lt;/a&gt; store the actual item data in the button, rather than just a reference, making exports transfer the item you buy aswell  this option does not need to be enabled all the time to uti...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;UseItemDBLegacyModeByDefault is a &amp;quot;hidden&amp;quot; option in leaf&lt;br /&gt;
&lt;br /&gt;
== What it does ==&lt;br /&gt;
&lt;br /&gt;
it is &amp;quot;true&amp;quot; by default, this makes all items saved store in the &amp;quot;legacy&amp;quot; format which just contains a reference to a structure and a point in an entity&amp;#039;s inventory container. this makes UIs using the [[Buy Button]] store the actual item data in the button, rather than just a reference, making exports transfer the item you buy aswell&lt;br /&gt;
&lt;br /&gt;
this option does not need to be enabled all the time to utilize it, when &amp;quot;false&amp;quot; it only generates the new item format for anything you use after it and wont change any prior item save, and does not need to be &amp;quot;false&amp;quot; for the items saved in the new format to be usable when it is &amp;quot;true&amp;quot;&lt;br /&gt;
&lt;br /&gt;
If you are transferring UIs between worlds using this feature, only the world you make the UI in will need the option to be &amp;quot;false&amp;quot;, the other one can stay &amp;quot;true&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Changing the value ==&lt;br /&gt;
&lt;br /&gt;
Since this is a [[LeafConfigAPI]] boolean option, it can be changed using the &amp;#039;&amp;#039;&amp;#039;leaf:set_bool_property&amp;#039;&amp;#039;&amp;#039; scriptevent&lt;br /&gt;
&lt;br /&gt;
To switch to legacy format (reference mode): &amp;#039;&amp;#039;&amp;#039;/scriptevent leaf:set_bool_property UseItemDBLegacyModeByDefault false&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
To switch to new format (embed mode): &amp;#039;&amp;#039;&amp;#039;/scriptevent leaf:set_bool_property UseItemDBLegacyModeByDefault true&amp;#039;&amp;#039;&amp;#039;&lt;/div&gt;</summary>
		<author><name>Ashy</name></author>
	</entry>
</feed>